/* ==========================================================================
   Lagovian Advisory — site styles
   Brand tokens come from the brand sheet. Mobile-first: base styles are for
   phones; media queries add the wider layouts.
   ========================================================================== */

:root {
  /* Brand colors */
  --pine: #2F5D4E;
  --pine-dark: #1F4337;      /* link hover */
  --navy: #1C2A3F;
  --birch: #F4F3EE;
  --sage: #A8B8A8;
  --copper: #B8673C;         /* rules and accents only */
  --copper-button: #A85A31;  /* deeper copper so white button text passes 4.5:1 */
  --slate: #5A6470;
  --white: #FFFFFF;
  --on-navy-muted: #C9D0D8;
  --on-pine-muted: #DDE5E0;

  /* Type */
  --font-display: "Libre Bodoni", Georgia, serif;
  --font-body: "Inter", Helvetica, Arial, sans-serif;
  --h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);     /* 36px → 56px */
  --h2: clamp(1.75rem, 1.5rem + 1vw, 2.125rem);     /* 28px → 34px */
  --h3: 1.3125rem;                                   /* 21px */
  --body: 1.0625rem;                                 /* 17px */
  --lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); /* 17px → 19px */
  --small: 0.875rem;                                 /* 14px */

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-space: clamp(64px, 9vw, 104px);
  --radius: 8px;
  --radius-small: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); color: var(--pine); }
h3 { font-size: var(--h3); font-weight: 500; line-height: 1.3; }
p { margin: 0; }

a { color: var(--pine); }
a:hover { color: var(--pine-dark); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section--birch { background: var(--birch); }
.section--flush-top { padding-top: 0; }
.muted { color: var(--slate); }

/* Copper rule (brand accent) */
.rule { display: block; width: 48px; height: 2px; background: var(--copper); border: 0; margin: 0; }

/* Heading row: title on the left, intro text on the right (stacks on phones) */
.section-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.section-head p { max-width: 34em; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-small); border: 1px solid transparent;
  font: 500 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn--primary { background: var(--pine); color: var(--birch); }
.btn--primary:hover { background: var(--pine-dark); color: var(--birch); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--birch); color: var(--pine); }
.btn--light:hover { background: var(--white); color: var(--pine-dark); }
.btn--outline-light { border-color: var(--birch); color: var(--birch); background: transparent; }
.btn--outline-light:hover { background: var(--birch); color: var(--pine); }
.btn--copper { background: var(--copper-button); color: var(--white); } /* one per page */
.btn--copper:hover { background: #924E2A; color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* ---------- Header and navigation ---------- */
.site-header { position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.site-header__logo img { height: 44px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border-radius: var(--radius-small);
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
  padding: 12px; border-radius: var(--radius); background: var(--white);
  box-shadow: 0 12px 32px rgba(28, 42, 63, 0.18);
}
.site-nav a { padding: 12px; font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--navy); border-radius: var(--radius-small); }
.site-nav a:hover { background: var(--birch); color: var(--navy); }
.site-nav .btn { margin-top: 8px; }

/* Header on pine (homepage hero) */
.site-header--on-pine { color: var(--birch); }
.site-nav .btn--primary { color: var(--birch); }

@media (min-width: 860px) {
  .site-header__logo img { height: 52px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; flex-direction: row; align-items: center; gap: 28px;
    position: static; padding: 0; background: none; box-shadow: none;
  }
  .site-nav a { padding: 0; font-size: 0.9375rem; }
  .site-nav a:hover { background: none; text-decoration: underline; }
  .site-nav .btn { margin-top: 0; padding: 12px 22px; }
  .site-nav .btn:hover { text-decoration: none; }
  .site-header--on-pine .site-nav a:not(.btn) { color: var(--birch); }
  .site-header--on-pine .site-nav .btn { background: var(--birch); color: var(--pine); }
  .site-header--on-pine .site-nav .btn:hover { background: var(--white); }
}

/* ---------- Hero ---------- */
.hero { background: var(--pine); color: var(--birch); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; padding-top: clamp(24px, 4vw, 48px); }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy p { font-size: var(--lead); color: var(--on-pine-muted); max-width: 32em; }
.hero__image { height: clamp(300px, 55vw, 540px); border-radius: var(--radius) var(--radius) 0 0; background: var(--sage); overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: end; }
  .hero__copy { padding-bottom: 96px; gap: 28px; }
}

/* ---------- Image placeholders (delete once real photos are in) ---------- */
.placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: var(--small); color: var(--navy); background: var(--sage); }

/* ---------- Pain points ---------- */
.pain-list { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.pain-list li { background: var(--birch); border-radius: var(--radius); padding: 24px 28px; font-size: 1.125rem; line-height: 1.55; }
@media (min-width: 700px) { .pain-list { gap: 20px; } .pain-list li { padding: 30px; font-size: 1.1875rem; } }

.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.4; color: var(--pine); max-width: 46em; }

/* ---------- Ways to work together ---------- */
.offerings { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); margin-bottom: 40px; }
.offering { border: 1px solid var(--sage); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.offering__meta { font-size: var(--small); color: var(--slate); }
.offering p { color: var(--slate); }
.closing-line { font-size: var(--lead); }
.closing-line a { font-weight: 500; }

/* ---------- Side of the table + testimonial ---------- */
.trust { display: grid; gap: 24px; }
@media (min-width: 960px) { .trust { grid-template-columns: 1.2fr 1fr; gap: 32px; } }
.trust__card { background: var(--navy); color: var(--birch); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.trust__card h2 { color: var(--birch); }
.trust__card p { color: var(--on-navy-muted); }

.pull-quote { margin: 0; background: var(--birch); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.pull-quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem); line-height: 1.45; }
.pull-quote figcaption { font-size: 0.9375rem; color: var(--slate); }
.pull-quote figcaption strong { display: block; font-weight: 500; color: var(--navy); }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 0.8fr 1fr; gap: 64px; } }
.about__photo { aspect-ratio: 4 / 5; max-height: 520px; border-radius: 6px; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: var(--small); font-weight: 500; color: var(--slate); }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--copper); }
.name-note { margin-top: 8px; background: var(--white); border-radius: 6px; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.name-note h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--pine); }
.name-note p { font-size: 0.9375rem; color: var(--slate); }

/* ---------- Notes (blog) ---------- */
.post-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 48px; }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--navy); }
.post-card:hover h3 { text-decoration: underline; }
.post-card__image { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: var(--small); color: var(--slate); }
.post-card h3 { font-family: var(--font-display); font-size: 1.375rem; color: var(--pine); }
.post-card p { font-size: 1rem; color: var(--slate); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--birch); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; gap: 48px; } }
.newsletter__intro { display: flex; flex-direction: column; gap: 8px; }
.newsletter__intro h2, .newsletter__intro h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.625rem); line-height: 1.25; color: var(--navy); margin-top: 6px; }
.newsletter__intro p { font-size: 1rem; color: var(--slate); }
.newsletter__form label { display: block; font-size: var(--small); font-weight: 500; margin-bottom: 8px; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter__row input {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px;
  border: 1px solid var(--slate); border-radius: var(--radius-small);
  font: 400 1rem var(--font-body); color: var(--navy); background: var(--white);
}
.newsletter__row .btn { height: 50px; flex: 0 0 auto; }
@media (max-width: 479px) { .newsletter__row .btn { flex: 1 1 100%; } }

/* ---------- Contact ---------- */
.contact-panel { background: var(--pine); color: var(--birch); border-radius: var(--radius); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.contact-panel__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.contact-panel h2 { color: var(--birch); font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem); }
.contact-panel p { font-size: var(--lead); color: var(--on-pine-muted); }
@media (max-width: 479px) { .contact-panel .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--birch); padding-block: 36px; font-size: var(--small); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer img { height: 40px; width: auto; }
.site-footer__tagline { color: var(--on-navy-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--birch); }
.site-footer a:hover { color: var(--white); }

/* ---------- Blog post page ---------- */
.site-header--light { border-bottom: 1px solid var(--sage); }
.article { max-width: 720px; margin-inline: auto; padding: clamp(48px, 8vw, 80px) var(--gutter) 64px; display: flex; flex-direction: column; gap: 24px; }
.article h1 { color: var(--pine); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article__meta { font-size: 0.9375rem; color: var(--slate); }
.article__image { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; margin-block: 12px; }
.article__image img { width: 100%; height: 100%; object-fit: cover; }
.article__lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem); line-height: 1.6; }
.article h2 { margin-top: 16px; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.article h3 { margin-top: 12px; }
.article .pull-quote { margin-block: 16px; }
.author { margin-top: 24px; border-top: 1px solid var(--sage); padding-top: 28px; display: flex; gap: 20px; align-items: center; }
.author__photo { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden; background: var(--sage); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__name { font-weight: 500; }
.author__bio { font-size: 0.9375rem; color: var(--slate); }

.narrow { max-width: 1000px; }
.related { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 28px; }
.related a { border-top: 1px solid var(--sage); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--navy); }
.related a:hover span:last-child { text-decoration: underline; }
.related__meta { font-size: var(--small); color: var(--slate); }
.related__title { font-family: var(--font-display); font-weight: 500; font-size: 1.3125rem; line-height: 1.3; color: var(--pine); }
/* ---------- Photo band ---------- */
.photo-band { height: clamp(240px, 32vw, 440px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

/* ---------- Offering icons ---------- */
.offering__icon { width: 36px; height: 36px; color: var(--pine); margin-bottom: 6px; }