/* ============================================================
   style.css — Shared styles for Dr. Shanoo Agarwal website
   ============================================================ */

/* ------------------------------------------------------------
   CSS VARIABLES & RESET
   ------------------------------------------------------------ */
:root {
  --ivory: #FAF8F4;
  --cream: #F4EFE6;
  --warm-white: #FFFDF9;
  --gold: #B8975A;
  --gold-light: #D4B483;
  --gold-dark: #8A6E3E;
  --charcoal: #1C1A17;
  --text-body: #3D3730;
  --text-muted: #8A7F74;
  --border: #E8E0D4;
  --error: #C0392B;
  --success: #27AE60;
  --shadow-sm: 0 2px 12px rgba(28, 26, 23, 0.06);
  --shadow-md: 0 8px 40px rgba(28, 26, 23, 0.10);
  --shadow-lg: 0 20px 80px rgba(28, 26, 23, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-body);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }

/* ------------------------------------------------------------
   SCROLL PROGRESS BAR
   ------------------------------------------------------------ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  transition: all 0.4s ease;
}

nav.scrolled,
nav.always-bg {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  justify-content: center;
}

.nav-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-logo-name,
.nav-logo-sub {
  display: none;
}

/* Fallback: show text if SVG fails to load */
.nav-logo-img[data-error] ~ .nav-logo-name,
.nav-logo-img[data-error] ~ .nav-logo-sub {
  display: block;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

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

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold-dark) !important;
}

/* ------------------------------------------------------------
   DROPDOWN NAVIGATION
   ------------------------------------------------------------ */
.nav-links .has-dropdown {
  position: relative;
}

.nav-links .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links .has-dropdown > a .drop-arrow {
  font-size: 0.55rem;
  transition: transform 0.3s;
  display: inline-block;
  opacity: 0.7;
}

.nav-links .has-dropdown:hover > a .drop-arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  min-width: 580px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 1001;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--warm-white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  rotate: 45deg;
}

.nav-links .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col {
  padding: 0 1.2rem;
  border-right: 1px solid var(--border);
}

.dropdown-col:last-child { border-right: none; }

.dropdown-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dropdown-col a {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none !important;
  color: var(--text-body) !important;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.2s, padding-left 0.2s;
  font-weight: 400;
}

.dropdown-col a::after { display: none !important; }

.dropdown-col a:hover {
  color: var(--gold) !important;
  padding-left: 4px;
}

/* Mobile dropdown */
.mobile-dropdown-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.mobile-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
  margin-bottom: 0.8rem;
}

.mobile-dropdown-links a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 5%;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-body);
  text-decoration: none;
}

/* ------------------------------------------------------------
   SHARED SECTION STYLES
   ------------------------------------------------------------ */
section { padding: 7rem 5%; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

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

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0 2rem;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
  background: var(--gold);
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 151, 90, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: white;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }

/* ------------------------------------------------------------
   FOOTER — Full (index.html)
   ------------------------------------------------------------ */
footer {
  background: var(--charcoal);
  color: white;
  padding: 5rem 5% 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
  margin-top: 0.2rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.footer-contact-icon { flex-shrink: 0; font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-socials { display: flex; gap: 1rem; }

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

/* Footer — Slim variant (services.html + appointment.html) */
.footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 320px;
  margin-top: 1rem;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 3rem;
}

.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--gold-light); }

/* ------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
   ------------------------------------------------------------ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all 0.3s;
  animation: waBounce 2s infinite 3s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--charcoal);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.wa-float:hover .wa-tooltip { opacity: 1; }

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes waBounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   RESPONSIVE — Shared
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  section { padding: 4rem 5%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-row { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-nav { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
