/* =========================================================
   Burns NED Services – site styles
   Palette and layout follow the client deck (Sept 2026).
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #28357D;
  --navy-dark: #1F2A64;
  --green: #94C11C;
  --green-dark: #83AC15;
  --green-text: #5C7A0F;
  --sky: #00B0F0;
  --sky-deep: #0095CF;   /* statement panel: white text reaches 3.4:1 (AA large text); brand sky is only 2.5:1 */
  --ink: #172033;
  --body: #596273;
  --line: #D9DEE5;
  --panel: #F4F6F7;
  --white: #FFFFFF;

  --font: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* fluid type scale (min at 360px, max at 1600px) */
  --fs-display: clamp(2.125rem, 1rem + 2.3vw, 3.75rem);      /* 34 -> 60, ~48 at 1440 */
  --fs-h1: clamp(2rem, 0.9rem + 2.1vw, 3.5rem);              /* 32 -> 56, ~45 at 1440 */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);         /* 26 -> 38 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);          /* 20 -> 26 */
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);           /* 18 -> 24 */
  --fs-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);         /* 17 -> 20 */
  --fs-small: 0.9375rem;                                      /* 15 */

  --container: 1600px;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section: clamp(3rem, 6vw, 6rem);
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 5rem;
  --focus: 3px solid var(--navy);
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 10px 28px rgba(23, 32, 51, .07);
  --shadow-lift: 0 2px 4px rgba(23, 32, 51, .05), 0 18px 40px rgba(23, 32, 51, .10);
  --ease: .18s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html.nav-locked, html.nav-locked body { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.15; text-wrap: balance; }
h2 { color: var(--ink); }
p { margin: 0; }
p + p { margin-top: 1.25em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--navy-dark); }
button { font: inherit; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--panel { background: var(--panel); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* heroes give the text column a little more room, as in the deck */
  .hero .grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero .grid-2--text-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.grid-2--top { align-items: start; }
.grid-2--text-first > .media { order: -1; }
@media (min-width: 900px) { .grid-2--text-first > .media { order: 0; } }

.eyebrow {
  display: block; margin-bottom: 0.75rem;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-text);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.flow > * + * { margin-top: 1.5rem; }
.flow > h1 + p, .flow > h2 + p { margin-top: 1.75rem; }
.flow > p + .btn-group, .flow > p + .btn { margin-top: 2.5rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--navy); color: var(--white);
  font-weight: 700; text-decoration: none; transform: translateY(-120%);
}
.skip-link:focus { transform: none; outline-color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .05s; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); color: var(--white); box-shadow: var(--shadow); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); box-shadow: var(--shadow); }
/* CTA: navy text on green is 5.2:1. A navy border gives the component a 3:1 boundary against
   white (1.4.11); hover inverts to navy/white (11:1) instead of darkening the green, which would
   drop the text to 4.2:1. */
.btn--cta { background: var(--green); color: var(--navy); border-color: var(--navy); }
.btn--cta:hover { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: var(--shadow); }
.btn:focus-visible { outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 900px) { .btn { min-height: 3.75rem; padding: 1rem 2.25rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: clamp(2.5rem, 2rem + 1.5vw, 4rem); width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.5rem 0.75rem; margin-right: -0.5rem;
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 700; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 24px; height: 18px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__link {
  display: block; padding: 0.9rem 0; color: var(--body); font-weight: 500; font-size: 1.0625rem;
  text-decoration: none; border-bottom: 1px solid var(--line); transition: color var(--ease);
}
.site-nav__link:hover { color: var(--navy); }
.site-nav__link[aria-current="page"] { color: var(--navy); font-weight: 700; }
.site-nav__cta { margin-top: 1.25rem; }
.site-nav__cta .btn { width: 100%; }

/* Mobile: dropdown panel under the header */
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 0.5rem var(--gutter) 2rem; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(23, 32, 51, .08);
}
.site-header__cta { display: none; }
@media (min-width: 600px) { .site-header__cta { display: inline-flex; margin-left: auto; } .nav-toggle { margin-left: 0.5rem; } }

/* Desktop nav */
@media (min-width: 900px) {
  :root { --header-h: 6.5rem; }
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav {
    display: block; position: static; order: 2; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-nav__list { flex-direction: row; gap: clamp(1.25rem, 2.5vw, 3rem); align-items: center; }
  .site-nav__link {
    position: relative; padding: 0.5rem 0; border: 0; font-size: 1.0625rem;
  }
  .site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.65rem; height: 3px;
    background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
  }
  .site-nav__link[aria-current="page"]::after, .site-nav__link:hover::after { transform: scaleX(1); }
  .site-nav__cta { display: none; }
  .site-header__cta { display: inline-flex; order: 3; margin-left: clamp(1.5rem, 3vw, 4rem); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 5rem) var(--section); }
.hero h1 { font-size: var(--fs-h1); }
.hero--home h1 { font-size: var(--fs-display); line-height: 1.12; }
@media (max-width: 599px) { .hero--home h1 br { display: none; } }
.hero .lead { max-width: 40em; }

.statement {
  display: flex; align-items: center;
  min-height: clamp(16rem, 30vw, 33rem); padding: clamp(2rem, 4.5vw, 5.5rem);
  background: var(--sky-deep); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.statement p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 700; line-height: 1.3; text-wrap: pretty; }

/* ---------- Media frame (image placeholders in the deck) ---------- */
.media {
  position: relative; overflow: hidden; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Green rule only on an empty placeholder frame, as in the deck */
.media:not(:has(img))::before {
  content: ""; position: absolute; top: 1.5rem; left: 1.5rem; z-index: 1;
  width: 5rem; height: 6px; background: var(--green); border-radius: 3px;
}
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  /* Service-page heroes: the photo stretches to the height of the text column */
  .hero .media--wide { aspect-ratio: auto; align-self: stretch; min-height: 24rem; }
  .media--portrait { aspect-ratio: 10 / 11; }
}

/* ---------- Service summary (home) ---------- */
.services-intro h2 { font-size: var(--fs-h2); margin-bottom: 2.5rem; }
.services-grid { display: grid; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #C5CCD6; }
.service-card h3 { font-size: var(--fs-small); }
.service-card p { margin-top: 0.75rem; }
.service-card .more { display: inline-block; margin-top: auto; padding-top: 1.5rem; font-weight: 700; }

/* ---------- Two-column list bands ---------- */
.band h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.band .grid-2 { align-items: start; }
.bullets li {
  position: relative; padding-left: 2rem; color: var(--ink); font-size: var(--fs-body);
}
.bullets li + li { margin-top: 1.1rem; }
.bullets li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.55em; width: 0.6rem; height: 0.6rem;
  border-radius: 50%; background: var(--green);
}
.band p.lead { font-size: var(--fs-body); }

/* ---------- About ---------- */
.about-copy p + p { margin-top: 1.75rem; }
.stats {
  display: grid; gap: 1.25rem 2rem; margin-top: var(--section);
  padding: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem);
  background: var(--navy); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { font-size: clamp(1.125rem, 1rem + 0.7vw, 1.625rem); font-weight: 700; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ---------- Contact ---------- */
.contact-details { margin-top: 3rem; display: grid; gap: 2rem; }
.contact-details .eyebrow { margin-bottom: 0.4rem; }
.contact-details a { font-size: var(--fs-h3); font-weight: 700; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* External profile link (LinkedIn) */
.profile-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; text-decoration: none;
}
.profile-link:hover { text-decoration: underline; }
.profile-link svg { width: 1.35em; height: 1.35em; flex-shrink: 0; fill: currentColor; }
.contact-details .profile-link { font-size: var(--fs-h3); }

.form-card {
  padding: clamp(1.5rem, 3.5vw, 3.75rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--fs-h2); color: var(--navy); margin-bottom: 1.75rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: var(--fs-small); font-weight: 700; color: var(--body); }
.field .hint { display: block; margin-top: 0.4rem; font-size: var(--fs-small); }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #B9C1CC; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: var(--focus); outline-offset: 0; border-color: var(--navy);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #B3261E; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--pending { background: var(--white); color: var(--body); border: 1px solid var(--line); }
.form-status--success { background: #EAF4D3; color: #34500A; }
.form-status--error { background: #FBEAE9; color: #8A1C15; }

/* ---------- Simple text pages (legal, thank-you, 404) ---------- */
.prose { max-width: 46em; }
.prose h1 { font-size: var(--fs-h1); margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }
.notice {
  padding: 1rem 1.25rem; margin-block: 1.5rem;
  background: #FFF7DB; border-left: 4px solid #E0B400; color: #5C4A00; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); font-size: var(--fs-small); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.site-footer__brand { font-weight: 700; letter-spacing: 0.02em; color: var(--white); text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__links a { color: var(--white); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--ease); }
.site-footer__links a:hover { text-decoration-color: currentColor; }
.site-footer a:focus-visible { outline-color: var(--green); }
.site-footer__copy { width: 100%; opacity: .8; font-size: 0.875rem; }
@media (min-width: 900px) { .site-footer__copy { width: auto; order: 2; margin-left: auto; } .site-footer__links { order: 3; } }
