/* =========================================================
   TATH Enterprise — Light Theme Stylesheet
   Navy & cool grey accents (distinct from red/white CPA branding)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f2f4f7;
  --bg-card: #ffffff;
  --bg-elevated: #f7f8fa;
  --bg-dark: #1a1d22;
  --border: rgba(24, 32, 44, 0.09);
  --border-strong: rgba(24, 32, 44, 0.14);
  --text: #1a1d22;
  --text-muted: #5c6570;
  --text-dim: #8a9199;
  --accent: #1e3555;
  --accent-bright: #2d5080;
  --accent-dark: #152a42;
  --accent-soft: rgba(30, 53, 85, 0.1);
  --accent-glow: rgba(30, 53, 85, 0.26);
  --accent-muted: #6b7f94;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-label-size: clamp(16px, 1.85vw, 21px);
  --section-label-size-mobile: 17px;
  --section-label-tracking: 0.2em;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Top notice bar ===== */
.notice {
  background: var(--accent);
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  padding: 10px 24px;
}
.notice strong { font-weight: 700; margin-right: 6px; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

header .container {
  position: relative;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(24px, 4vw, 48px);
  padding: 14px 0;
  position: relative;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: min(200px, 28vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 1px;
}
.brand-mark span {
  position: relative;
  z-index: 2;
  color: white;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-text { line-height: 1.15; }
.brand-text .name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text .tag {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 30px);
  list-style: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

/* CTA only in mobile dropdown (hidden in desktop horizontal nav) */
.nav-links .nav-cta {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.nav-call:hover {
  color: var(--accent-bright);
}
.nav-call:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-call-icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.85;
}

header .nav-right .btn-primary {
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
header .nav-right .btn-primary:hover {
  transform: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-dark {
  background: var(--bg-dark);
  color: white;
}
.btn-dark:hover {
  background: #28282e;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--accent);
}
.btn-white:hover {
  background: var(--text);
  color: white;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: white;
  color: var(--accent);
  border-color: white;
}
.btn .arrow { transition: transform 0.3s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Page header (interior pages) ===== */
.page-hero {
  background: var(--bg-soft);
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.page-hero .crumb {
  color: var(--accent);
  font-size: var(--section-label-size);
  letter-spacing: var(--section-label-tracking);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Section eyebrow labels (Services, Our Services, One-on-One Service, etc.) */
.eyebrow,
.section-eyebrow,
.services-head .label,
.intro-grid .label,
.story-side .label,
.contact-info .label,
.contact-form-wrap .form-eyebrow,
.section-label,
.booking-card .meta-line {
  font-size: var(--section-label-size) !important;
  letter-spacing: var(--section-label-tracking) !important;
}
.page-hero .crumb::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--accent);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 5.8vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px;
  color: var(--accent);
}
.page-hero h1 .accent {
  color: var(--accent-dark);
}
.page-hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
}

/* ===== Common section padding ===== */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }

/* ===== Footer ===== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 70px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.brand-logo--footer {
  height: 44px;
  max-width: 280px;
  width: auto;
  padding: 12px 16px;
  background: #fff;
  border-radius: 4px;
  box-sizing: content-box;
  object-fit: contain;
}
footer .brand-text .name { color: white; }
footer .brand-text .tag { color: rgba(255,255,255,0.55); }
.footer-about p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: white;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }
.footer-contact-item {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact-item .label {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.26s; }
.delay-4 { animation-delay: 0.36s; }
.delay-5 { animation-delay: 0.46s; }
.delay-6 { animation-delay: 0.56s; }

/* ===== Mobile menu toggle ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  border-radius: 2px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }
  .nav {
    column-gap: 20px;
  }
  .brand-logo {
    max-width: 160px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .nav-right .btn-primary {
    display: none;
  }
  .nav-call {
    font-size: 13px;
    padding: 8px 0;
  }
  .nav-call-icon {
    width: 15px;
    height: 15px;
  }
  .nav-links .nav-cta {
    display: list-item;
    list-style: none;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .nav-links {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: 0 16px 48px -12px rgba(15, 26, 42, 0.18);
  }
  .nav-links.open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open li:last-child {
    border-bottom: none;
  }
  .nav-links.open a {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
  }
  .nav-links.open a.active::after {
    display: none;
  }
  .nav-links.open a.active {
    background: var(--accent-soft);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 2px;
  }
  .nav-links.open .nav-cta a,
  .nav-links.open .nav-cta a.btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: var(--accent);
    border-radius: 2px;
  }
  .nav-links.open .nav-cta a:hover {
    background: var(--accent-bright);
    color: white;
    transform: none;
  }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav {
    padding: 12px 0;
    column-gap: 12px;
  }
  .brand-logo {
    max-width: calc(100vw - 88px);
    height: clamp(32px, 8.5vw, 42px);
  }
  .nav-right {
    gap: 10px;
  }
  .nav-right .nav-call { display: none; }
  .section { padding: 70px 0; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero .crumb { font-size: var(--section-label-size-mobile); }
  .page-hero p.lede { font-size: 16px; }
  .eyebrow,
  .section-eyebrow,
  .services-head .label,
  .intro-grid .label,
  .story-side .label,
  .contact-info .label,
  .contact-form-wrap .form-eyebrow,
  .section-label,
  .booking-card .meta-line {
    font-size: var(--section-label-size-mobile) !important;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-logo--footer {
    max-width: 100%;
    height: auto;
    max-height: 52px;
    padding: 10px 12px;
  }
  .notice {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    line-height: 1.45;
  }
  .notice strong {
    display: block;
    margin-right: 0;
    margin-bottom: 2px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    max-width: calc(100vw - 88px);
  }
}
