/* ═══════════════════════════════════════════════════════════
   LIGNUM ADVISORY — Stylesheet
   Palette: Forest #1E3D1F · Grove #2E6B30 · Blue #2B6FDE
            Amber #E8901A · Ivory #F7F4EE · Rule #dedad4
   Typefaces: Cormorant (display) · Jost (body/UI)
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────── */

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

:root {
  --ivory:      #F7F4EE;
  --ivory-deep: #EDE9DF;
  --forest:     #1E3D1F;
  --grove:      #2E6B30;
  --blue:       #2B6FDE;
  --amber:      #E8901A;
  --amber-dim:  rgba(232, 144, 26, 0.65);
  --rule:       #dedad4;
  --muted:      #74726d;
  --text:       #1c1c19;
  --white:      #ffffff;

  --nav-height: 72px;
  --section-pad: 8rem;

  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

/* ─── Layout ─────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }

.section-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.section-heading--light { color: var(--ivory); }

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-eyebrow--light { color: rgba(232, 144, 26, 0.8); }

.section-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: var(--ivory);
  text-decoration: none;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--forest);
  transition: background 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}

.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

.btn-large {
  padding: 1.1rem 2.6rem;
  font-size: 0.82rem;
}

.btn-ghost {
  display: inline-block;
  color: var(--forest);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  transition: background 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--ivory);
}

/* ─── Navigation ──────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 3rem;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: height 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

#nav.scrolled {
  height: 60px;
  box-shadow: 0 2px 24px rgba(30, 61, 31, 0.06);
}

.nav-logo img { height: 40px; width: auto; }
#nav.scrolled .nav-logo img { height: 34px; }

.nav-toggle-input { display: none; }
.nav-hamburger   { display: none; }

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

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--amber); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--ivory) !important;
  padding: 0.6rem 1.3rem;
  letter-spacing: 0.12em !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover {
  background: var(--amber) !important;
  color: var(--white) !important;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(43, 111, 222, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(30, 61, 31, 0.04) 0%, transparent 60%),
    var(--ivory);
}

.hero-bg-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-52%);
  width: min(54vw, 660px);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 660px;
  animation: fadeUp 0.9s var(--ease-out) both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.9s 0.08s var(--ease-out) both;
}

.hero-headline {
  color: var(--forest);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.16s var(--ease-out) both;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.24s var(--ease-out) both;
}

.hero-sectors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: 0.55;
  margin-bottom: 2.6rem;
  animation: fadeUp 0.9s 0.3s var(--ease-out) both;
}

.hero-sectors .dot { color: var(--amber); opacity: 1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.9s 0.36s var(--ease-out) both;
}

/* Ticker bar */
.hero-ticker {
  border-top: 1px solid var(--rule);
  background: rgba(237, 233, 223, 0.55);
  padding: 1rem 0;
}

.hero-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  overflow: hidden;
}

.ticker-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-highlight {
  color: var(--forest);
  font-weight: 600;
}

.ticker-rule {
  flex: 0 0 1px;
  height: 18px;
  background: var(--rule);
  margin: 0 0.4rem;
}

.ticker-sep {
  color: var(--amber);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ─── About ───────────────────────────────────────────────── */

.about {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--amber) 0%, transparent 100%);
  border-radius: 0 1px 1px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 7rem;
  align-items: start;
}

.about-mark {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.about-mark img {
  width: 180px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.about-mark img:hover { opacity: 1; }

.about-body p {
  color: var(--muted);
  margin-bottom: 1.3rem;
  font-size: 1rem;
  line-height: 1.85;
}

/* Credentials strip */
.credentials {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
}

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

.credential-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--forest);
  line-height: 1;
}

.credential-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.credential-rule {
  width: 1px;
  height: 52px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ─── Services ────────────────────────────────────────────── */

.services {
  padding: var(--section-pad) 0;
  background: var(--ivory);
}

.section-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: flex-start;
}

/* Cards 1-3: ~33% each; Cards 4-5: wider */
.service-card {
  flex: 0 0 calc(33.333% - 0.94rem);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  padding: 2.4rem;
  position: relative;
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              border-left-color 0.25s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px 0 -1px -3px;
  border-left: 3px solid var(--amber);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(30, 61, 31, 0.09);
}

.service-card:hover::before { opacity: 1; }

/* 4th and 5th cards share the row as ~50% width */
.service-card:nth-child(4),
.service-card:nth-child(5) {
  flex: 0 0 calc(50% - 0.7rem);
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.service-icon {
  color: var(--forest);
  opacity: 0.45;
  margin-bottom: 1.1rem;
  transition: opacity 0.25s;
}

.service-card:hover .service-icon { opacity: 0.75; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--forest);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.78;
}

/* Featured card */
.service-card--featured {
  background: var(--forest);
  border-color: var(--forest);
  border-left-color: var(--amber);
}

.service-card--featured::before {
  border-left-color: var(--amber);
}

.service-card--featured .service-number { color: var(--amber); }
.service-card--featured .service-icon   { color: var(--ivory); opacity: 0.6; }
.service-card--featured h3              { color: var(--ivory); }
.service-card--featured p               { color: rgba(247, 244, 238, 0.62); }
.service-card--featured:hover           { box-shadow: 0 16px 48px rgba(30, 61, 31, 0.22); }
.service-card--featured:hover .service-icon { opacity: 0.9; }

.service-featured-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 144, 26, 0.45);
  padding: 0.28rem 0.7rem;
  border-radius: 1px;
  margin-bottom: 1rem;
}

/* ─── Approach ─────────────────────────────────────────────── */

.approach {
  padding: 0;
  position: relative;
}

.approach-inner {
  background: var(--forest);
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.approach-bg-mark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(35vw, 380px);
  pointer-events: none;
  user-select: none;
}

.approach-bg-mark img {
  width: 100%;
  height: auto;
  filter: brightness(10);
  opacity: 0.055;
}

.approach-container {
  position: relative;
  z-index: 1;
}

.approach-content {
  max-width: 720px;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  display: flex;
  gap: 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(222, 218, 212, 0.12);
}

.pillar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-accent {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 0.55rem;
}

.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pillar p {
  color: rgba(247, 244, 238, 0.55);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ─── Contact ──────────────────────────────────────────────── */

.contact {
  padding: var(--section-pad) 0;
  background: var(--ivory-deep);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: center;
}

.contact-mark img {
  width: 220px;
  height: auto;
  opacity: 0.18;
}

.contact-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left 0.2s var(--ease-out);
}

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

.contact-channel:hover { padding-left: 0.5rem; }

.channel-label {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  min-width: 72px;
}

.channel-value {
  flex: 1;
  font-size: 0.88rem;
  color: var(--forest);
  word-break: break-all;
  transition: color 0.2s;
}

.contact-channel:hover .channel-value { color: var(--grove); }

.channel-arrow {
  color: var(--amber);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.contact-channel:hover .channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
  background: var(--forest);
  padding: 2.4rem 0;
  border-top: 1px solid rgba(222, 218, 212, 0.12);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(247, 244, 238, 0.35);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

.footer-meta p {
  font-size: 0.74rem;
  color: rgba(247, 244, 238, 0.38);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.footer-legal { margin-top: 0.2rem; }

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

.footer-nav a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.42);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── Reveal Animations ──────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out),
              transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-card:nth-child(1) { transition-delay: 0s;    }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.1s;  }
.service-card:nth-child(5) { transition-delay: 0.18s; }

.pillar:nth-child(1) { transition-delay: 0s;    }
.pillar:nth-child(2) { transition-delay: 0.1s;  }
.pillar:nth-child(3) { transition-delay: 0.2s;  }
.pillar:nth-child(4) { transition-delay: 0.3s;  }

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .service-card {
    flex: 0 0 calc(50% - 0.7rem);
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    flex: 0 0 calc(50% - 0.7rem);
  }
}

@media (max-width: 900px) {
  :root { --section-pad: 5.5rem; }

  .container { padding: 0 2rem; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-mark {
    position: static;
    display: flex;
    justify-content: center;
  }

  .about-mark img { width: 130px; }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-mark { display: none; }

  .approach-bg-mark { opacity: 0.03; }

  .hero-ticker-inner {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .ticker-rule { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  #nav {
    padding: 0 1.5rem;
    flex-wrap: wrap;
    position: relative; /* so mobile menu sits below nav */
  }

  /* Hamburger */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 4px;
    z-index: 201;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--forest);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }

  .nav-toggle-input:checked + .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
  }
  .nav-toggle-input:checked + .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
  }
  .nav-toggle-input:checked + .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    z-index: 199;
  }

  .nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }

  .nav-cta {
    padding: 0.75rem 1.8rem !important;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .hero-bg-mark {
    width: 85vw;
    right: -18%;
    opacity: 0.35;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    flex: 0 0 100%;
  }

  .credentials {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .credential-rule { height: 1px; width: 36px; }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
  }
}

@media (max-width: 480px) {
  :root { --section-pad: 4rem; }

  .container { padding: 0 1.25rem; }

  .hero-headline { font-size: 2.2rem; }
  .section-heading { font-size: 1.75rem; }

  .service-card { padding: 1.8rem; }

  .credentials {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .credential-rule { width: 32px; height: 1px; }

  .contact-channel { flex-direction: column; gap: 0.3rem; align-items: flex-start; }

  .channel-arrow { display: none; }

  .hero-sectors { gap: 0.4rem; }
}
