/* ============================================================
   Equanimity Advisory — style.css
   Palette:
     Parchment  #EDE4D3  primary background (warm, aged paper)
     Wheat      #D9CEBC  dividers, texture
     Steel      #6D94C5  sole accent — links, italic labels
     Navy       #213555  primary type, headings, dark surfaces
   Fonts:
     Lora       headlines + body (editorial serif, wt 400–600)
     Inter      nav links, labels, UI elements (wt 400–500)
   ============================================================ */

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 56px;
}

body {
  background-color: #EDE4D3;
  color: #213555;
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageFadeIn 400ms ease-out both;
}

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

a {
  color: #213555;
  text-decoration: none;
  transition: color 280ms ease-out;
}

a:hover {
  color: #6D94C5;
}

.accent-link {
  color: #6D94C5;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3,
.wordmark,
.hero-headline,
.hero-sub,
.contact-framing {
  font-family: 'Lora', Georgia, serif;
}

h2.section-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #213555;
  opacity: 0.5;
  margin-bottom: 32px;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  background-color: #EDE4D3;
  border-bottom: 1px solid transparent;
  transition: border-color 280ms ease-out;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav.scrolled {
  border-bottom-color: rgba(33, 53, 85, 0.10);
}

.wordmark {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.wordmark:hover {
  color: inherit;
}

.wordmark-eq {
  color: #213555;
}

.wordmark-adv {
  color: #6D94C5;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #213555;
  opacity: 0.65;
  transition: opacity 280ms ease-out, color 280ms ease-out;
}

.nav-links a:hover {
  opacity: 1;
  color: #6D94C5;
}

.nav-dot {
  font-size: 8px;
  color: #213555;
  opacity: 0.3;
  line-height: 1;
  user-select: none;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 1px;
  background-color: #213555;
  position: relative;
  transition: background-color 280ms ease-out;
}

.hamburger-bar::before,
.hamburger-bar::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background-color: #213555;
  position: absolute;
  left: 0;
  transition: transform 280ms ease-out, top 280ms ease-out;
}

.hamburger-bar::before { top: -6px; }
.hamburger-bar::after  { top:  6px; }

.hamburger[aria-expanded="true"] .hamburger-bar {
  background-color: transparent;
}

.hamburger[aria-expanded="true"] .hamburger-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   Mobile overlay
   ------------------------------------------------------------ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: #213555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease-out;
}

.mobile-overlay:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #EDE4D3;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 280ms ease-out;
  padding: 8px;
}

.overlay-close:hover {
  opacity: 1;
}

.mobile-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.mobile-overlay nav a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EDE4D3;
  opacity: 0.7;
  transition: opacity 280ms ease-out;
}

.mobile-overlay nav a:hover {
  opacity: 1;
  color: #EDE4D3;
}

/* ------------------------------------------------------------
   Sections — shared layout (snap + full viewport)
   ------------------------------------------------------------ */
section {
  min-height: 100vh;
  padding: 56px 0 40px; /* top accounts for fixed nav, bottom for bottom bar */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

section + section {
  border-top: 1px solid #D9CEBC;
}

/* ------------------------------------------------------------
   Section 1 — Hero
   ------------------------------------------------------------ */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-ledger {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 39px,
    rgba(33, 53, 85, 0.028) 39px,
    rgba(33, 53, 85, 0.028) 40px
  );
}

.hero-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}


.hero-headline {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.hl-navy {
  color: #213555;
  font-style: normal;
}

.hl-steel {
  color: #6D94C5;
}

.hl-steel em {
  font-style: italic;
}

.hero-sub {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  color: #213555;
  margin-bottom: 20px;
  font-style: italic;
}


/* Ornament */
.hero-ornament {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orn-line {
  width: 1px;
  height: 60px;
  background-color: rgba(33, 53, 85, 0.10);
}

.orn-diamond {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(33, 53, 85, 0.10);
  transform: rotate(45deg);
  margin: 6px 0;
}

/* ------------------------------------------------------------
   Section 2 — Why
   ------------------------------------------------------------ */
.why-content p {
  margin-bottom: 24px;
  line-height: 1.8;
}

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

/* ------------------------------------------------------------
   Section 3 — Services
   ------------------------------------------------------------ */

.service-phase {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #D9CEBC;
}

.service-phase:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.phase-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: #213555;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}



/* ------------------------------------------------------------
   Section 4 — About
   ------------------------------------------------------------ */
.about-content p {
  margin-bottom: 24px;
  line-height: 1.8;
}

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

/* ------------------------------------------------------------
   Section 5 — Contact
   ------------------------------------------------------------ */
#contact {
  position: relative;
}

.contact-framing {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: #213555;
  line-height: 1.45;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #213555;
  border: 1px solid rgba(33, 53, 85, 0.30);
  padding: 16px 36px;
  margin-bottom: 28px;
  transition: color 280ms ease-out, border-color 280ms ease-out;
}

.cta-button:hover {
  color: #6D94C5;
  border-color: #6D94C5;
}


/* Footer line inside contact section */
.section-footer {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
}

.footer-copy {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  color: #213555;
  opacity: 0.3;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------
   Responsive — Mobile
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   Floating bottom bar
   ------------------------------------------------------------ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 32px;
  background-color: #EDE4D3;
  border-top: 1px solid rgba(33, 53, 85, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #213555;
  opacity: 0.3;
}

@media (max-width: 768px) {

  html {
    scroll-snap-type: none;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-ornament {
    display: none;
  }

  .hero-ledger {
    display: none;
  }

  .section-inner {
    padding: 0 20px;
  }

  section {
    min-height: auto;
    padding: 64px 0;
  }

  #hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero-headline {
    font-size: clamp(36px, 10vw, 52px);
    margin-bottom: 28px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .phase-title {
    font-size: 22px;
  }

  .bottom-bar {
    display: none;
  }

  #contact {
    position: relative;
    padding-bottom: 80px;
  }

  .section-footer {
    bottom: 20px;
  }

  .contact-framing {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .hero-headline {
    font-size: 36px;
  }
}
