/* shared.css — common styles for dharampalsingh.com */

:root {
  --bg:         #07100a;
  --bg-2:       #0c1a10;
  --bg-card:    rgba(255,255,255,0.028);
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   rgba(201,168,76,0.12);
  --text:       #f0ede6;
  --muted:      #7a9080;
  --border:     rgba(201,168,76,0.14);
  --nav-h:      68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ── NAV ── */
nav#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

nav#mainNav.scrolled {
  background: rgba(7,16,10,0.88);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 42px;
}

.nav-logo svg {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 100px !important;
  color: var(--gold) !important;
  background: var(--gold-dim) !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: rgba(201,168,76,0.2) !important;
  border-color: rgba(201,168,76,0.35) !important;
  color: var(--gold-light) !important;
}

/* ── SHARED SECTION ELEMENTS ── */
section { padding: clamp(5rem, 10vh, 9rem) clamp(1.5rem, 8vw, 7rem); }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #07100a;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(201,168,76,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201,168,76,0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.footer-copy { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-logo svg { width: 44px; overflow: hidden; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    z-index: 200;
  }

  .nav-burger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    inset: 0;
    background: rgba(7,16,10,0.97);
    backdrop-filter: blur(20px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem !important;
    letter-spacing: 0.15em;
  }

  .nav-cta {
    font-size: 1rem !important;
    padding: 0.75rem 2rem !important;
  }

  footer { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 769px) {
  .nav-burger { display: none; }
}

@media (max-width: 480px) {
  section { padding: 4rem clamp(1.25rem, 5vw, 2rem); }
}
