/* ============================================================
   National Hair Centers — Global Stylesheet
   Fonts: Playfair Display (serif headings) + Inter (sans body)
   ============================================================ */

/* Fonts: self-hosted via /fonts/fonts.css (loaded from each HTML <head>) */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --navy:       #1a2744;
  --navy-light: #243356;
  --gold:       #c9a84c;
  --gold-light: #d4b96a;
  --cream:      #faf8f4;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 8px 32px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-left a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}
.topbar-left a:hover { color: var(--gold); }
.topbar-left svg { flex-shrink: 0; }
.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topbar-right a {
  color: var(--white);
  opacity: 0.7;
  transition: opacity var(--transition);
  display: inline-flex;
}
.topbar-right a:hover { opacity: 1; }

/* ── Header / Nav (Full Width) ───────────────────────────── */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 100%;
  padding: 0 32px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  font-family: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 48px;
  width: auto;
}
.header .logo-img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(1200%) hue-rotate(190deg) brightness(95%) contrast(95%);
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
}
.main-nav > a:hover,
.main-nav > a.active { color: var(--navy); background: var(--gray-50); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.active > .nav-dropdown-trigger { color: var(--navy); background: var(--gray-50); }
.nav-dropdown-trigger .dd-chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}
.nav-dropdown.open .nav-dropdown-trigger .dd-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-radius: 8px;
  transition: all var(--transition);
}
.dropdown-panel a:hover { background: var(--cream); color: var(--navy); }

/* Header CTA */
.header-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all var(--transition);
}
.header-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-phone {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-phone:hover { background: rgba(255,255,255,0.2); }

/* ── Section Layout Helpers ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Scroll Animations ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible,
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Nav (Full-Screen Overlay) ────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 2000;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .logo-img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(1200%) hue-rotate(190deg) brightness(95%) contrast(95%);
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-nav-close {
  background: none;
  padding: 8px;
  color: var(--gray-600);
}
.mobile-nav-close svg { width: 28px; height: 28px; }
.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  background: var(--gold);
  color: var(--navy);
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 80px 32px 40px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand .logo-img {
  height: 56px;
  width: auto;
  filter: none;
}
.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.7;
}
.footer-brand > a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-brand > a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-social a svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-bottom a {
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }
.recaptcha-attribution {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ── Mobile Bar (Fixed Bottom) ───────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.12);
  z-index: 999;
  padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom));
  align-items: center;
  gap: 0.5rem;
}
.mobile-bar-actions {
  display: flex;
  flex: 1;
  gap: 0.25rem;
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.2rem;
  border-radius: 6px;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mobile-bar-btn:hover,
.mobile-bar-btn:active { background: rgba(255,255,255,0.1); color: var(--white); }
.mobile-bar-btn svg { opacity: 0.9; }

.mobile-bar-sep {
  width: 1px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
}
.mobile-bar-social {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-shrink: 0;
}
.mobile-bar-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.mobile-bar-social a:hover { transform: scale(1.1); color: var(--white); }

/* ── Form Styles (Shared) ────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Form success (per FORMS-AND-THANK-YOU.md pattern) */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success.show { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2e9b62;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}
.form-success h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ── Service Cards (Reusable) ────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 16px; height: 16px; }

/* ── Utility Classes ─────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.bg-cream   { background: var(--cream); }
.bg-navy    { background: var(--navy); color: var(--white); }

/* ── Responsive — Tablet ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive — Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Header: hide desktop nav, show toggle */
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .logo-text { font-size: 1.05rem; }

  /* Mobile nav overlay when open */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 2000;
    padding: 80px 24px 24px;
    overflow-y: auto;
    gap: 0;
  }
  .main-nav.open > a,
  .main-nav.open .nav-dropdown-trigger {
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    width: 100%;
    color: var(--gray-700);
  }
  .main-nav.open .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: auto;
  }
  .main-nav.open .nav-dropdown:not(.open) .dropdown-panel {
    display: none;
  }
  .main-nav.open .dropdown-panel a {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
  }

  /* Body padding for mobile bar */
  body { padding-bottom: 70px; }

  /* Topbar responsive */
  .topbar { padding: 8px 16px; flex-wrap: wrap; }
  .topbar-left { gap: 12px; font-size: 0.8rem; }

  /* Footer stacking */
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 60px 16px 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Mobile bar — show on mobile */
  .mobile-bar { display: flex; }
}
