/* ===== FOUNDATIONS ===== */
:root {
  --bg: #FFFFFF;
  --bg-warm: #F8F6F1;
  --bg-gold-tint: #FBF8F0;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --rule: #E8E4DD;
  --rule-light: #F0ECE5;
  --gold: #C4982D;
  --gold-hover: #B08825;
  --gold-light: rgba(196, 152, 45, 0.10);
  --gold-lighter: rgba(196, 152, 45, 0.05);
  --dark: #1A1A1A;
  --dark-soft: #2C2C2C;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

em, .serif-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section.bg-warm { background: var(--bg-warm); }
section.bg-gold-tint { background: var(--bg-gold-tint); }
section.bg-dark { background: var(--dark); color: #F5F5F5; }
section.bg-dark .eyebrow { color: var(--gold); }
section.bg-dark h2, section.bg-dark h3 { color: #F5F5F5; }
section.bg-dark p { color: rgba(245,245,245,0.75); }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-light);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  white-space: nowrap;
}

.wordmark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: 'Montserrat', 'Inter', sans-serif;
}

.wm-primary {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.wm-secondary {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-icon {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links > li > a,
.nav-links > li > .dropdown-toggle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
}

.nav-links > li > a:hover,
.nav-links > li > .dropdown-toggle:hover { color: var(--text); }
.nav-links > li > a.active { color: var(--gold); }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--gold);
  color: #fff;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '';
  width: 0.32rem;
  height: 0.32rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle::after {
  transform: rotate(-135deg) translateY(1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1rem;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  list-style: none;
  box-shadow: var(--card-shadow-hover);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: var(--gold-lighter);
  color: var(--text);
}

.dropdown-menu .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 1.2rem;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-cycle {
  position: relative;
  height: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.cycle-word {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.cycle-word.active { opacity: 1; }

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0 0 420px;
  position: relative;
}

.hero-logo-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-primary::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-primary:hover::after { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(0,0,0,0.02);
}

.btn-white {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.btn-white:hover {
  background: #F5F5F5;
  transform: translateY(-1px);
}

.btn-white::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-white:hover::after { transform: translateX(3px); }

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-header-left {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-header-left .eyebrow { margin-bottom: 0.75rem; }
.section-header-left h2 { margin-bottom: 1rem; }
.section-header-left p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== SERVICE GRID ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  color: inherit;
  min-height: 260px;
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.service-card .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.75rem; }

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1.25rem;
  transition: gap 0.2s ease;
}

.service-card:hover .card-link { gap: 0.55rem; }
.service-card .card-link::after { content: '→'; }

/* ===== WHY CHOOSE US (Tabs) ===== */
.why-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.why-tab {
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--rule);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.why-tab:hover { border-color: var(--gold); color: var(--text); }
.why-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.why-panel {
  display: none;
}

.why-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-panel-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.why-panel-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.why-panel-visual {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--gold);
  text-align: center;
  line-height: 1.2;
}

/* ===== PROSE ===== */
.prose { max-width: 720px; }

.prose p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.prose h3:first-child { margin-top: 0; }

.prose ul {
  list-style: none;
  margin: 1rem 0 2rem;
}

.prose ul li {
  color: var(--text-secondary);
  padding: 0.6rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.95rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.prose ul li:last-child { border-bottom: none; }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: rgba(245,245,245,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ===== LEAD FORM ===== */
.form-section { padding: 5rem 0; }

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.form-card > p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: #FFFFFF;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  margin-top: 1.5rem;
  text-align: center;
}

.form-submit .btn { width: 100%; justify-content: center; }

/* ===== CONTACT DETAILS ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-detail {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.contact-detail:first-child { border-top: 1px solid var(--rule-light); }

.contact-detail .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.contact-detail .value {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-detail .value a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-detail .value a:hover { border-color: var(--gold); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .wordmark {
  margin-bottom: 1rem;
}

.footer-brand .wm-primary { color: #FFFFFF; }
.footer-brand .wm-secondary { color: rgba(255,255,255,0.5); }
.footer-brand .logo-icon { filter: brightness(1.3); }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-col ul a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual { flex: 0 0 320px; }
  .hero-logo-card { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 101; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--rule);
    padding: 0 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    max-height: 600px;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }

  .nav-links > li { border-bottom: 1px solid var(--rule-light); }
  .nav-links > li:last-child { border-bottom: none; }

  .nav-links > li > a,
  .nav-links > li > .dropdown-toggle {
    display: flex;
    padding: 1rem 0;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.75rem;
    min-width: 0;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    visibility: visible;
    max-height: 400px;
    transform: none;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .hero-inner { flex-direction: column; gap: 2.5rem; }
  .hero-visual { flex: none; width: 100%; max-width: 360px; }
  .hero h1 br { display: none; }

  .service-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .why-panel.active { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  section { padding: 3.5rem 0; }
  .container, .nav { padding-left: 1.5rem; padding-right: 1.5rem; }
}
