/* ACGC website styles
   Palette taken from the ACGC logo: forest and leaf greens, gold ring, bark trunk. */

@font-face { font-family: "Lexend"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --forest: #10301D;
  --forest-2: #17402A;
  --canopy: #1E6B2B;
  --gold: #E8C35E;
  --bronze: #8A5A0B;
  --bark: #A87010;
  --sand: #F6F0E1;
  --rule: #E2D9C3;
  --paper: #FFFFFF;
  --ink: #1A1F1B;
  --ink-2: #3A443D;
  --muted: #4F5A52;
  --on-dark: #D6DFD2;

  --display: "Lexend", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--canopy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); color: var(--forest); margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-weight: 500; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--ink-2); max-width: 40rem; }
.measure { max-width: 38rem; }
.visually-hidden { position: absolute !important; 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: 1rem; top: -4rem; z-index: 20; background: var(--forest); color: #fff; padding: 0.75rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img.emblem { width: 2.5rem; height: auto; }
.brand img.wordmark { height: 1.15rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.6rem 0.9rem; font-weight: 500; font-size: 0.975rem; color: var(--ink); text-decoration: none; border-radius: 4px; }
.site-nav a:hover { color: var(--canopy); }
.site-nav a[aria-current="page"] { color: var(--canopy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav a.nav-cta { background: var(--forest); color: #fff; margin-left: 0.5rem; border-radius: 4px; box-shadow: none; }
.site-nav a.nav-cta:hover { background: var(--canopy); color: #fff; }
.site-nav a.nav-cta[aria-current="page"] { background: var(--canopy); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem; font: 500 0.975rem var(--body); color: var(--forest); background: none; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; }
.nav-toggle-bars { width: 1.1rem; height: 0.75rem; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav a.nav-cta { margin: 0.75rem 0 0; text-align: center; padding: 0.85rem 1rem; border-bottom: 0; }
  .header-inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.4rem; font: 600 1rem/1.2 var(--body); text-decoration: none; border-radius: 4px; border: 1px solid transparent; cursor: pointer; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--canopy); color: #fff; }
.button-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.button-secondary:hover { background: var(--sand); color: var(--forest); }
.button-gold { background: var(--gold); color: var(--forest); }
.button-gold:hover { background: #F0D27E; color: var(--forest); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Sections */
.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }
.section-rule { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 42rem; }
.text-link { font-weight: 600; text-decoration: underline; }

/* Home hero */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.5rem; }
.rings { position: relative; width: min(100%, 30rem); aspect-ratio: 1; margin-inline: auto; }
.rings svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings img { position: absolute; left: 50%; top: 50%; width: 42%; transform: translate(-50%, -54%); }
.rings circle { fill: none; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .rings circle { animation: ring-grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 90ms); }
  .rings img { animation: emblem-in 0.9s ease-out 0.2s both; }
}
@keyframes ring-grow { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
@keyframes emblem-in { from { opacity: 0; } to { opacity: 1; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.facts div { display: grid; gap: 0.25rem; }
.facts dt { font-size: 0.9375rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.3; color: var(--forest); }

/* Two-column prose */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .prose { color: var(--ink-2); max-width: 38rem; }
.split .prose .text-link { display: inline-block; margin-top: 1.5rem; }

/* Process (a real sequence) */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 2.25rem 1.25rem 0 0; counter-increment: step; }
.process li::before { content: ""; position: absolute; top: 0.5rem; left: 0; right: 0; height: 2px; background: var(--gold); }
.process li:last-child::before { right: auto; width: 1rem; }
.process li::after { content: counter(step); position: absolute; top: -0.25rem; left: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; font: 500 0.8125rem var(--display); color: var(--forest); background: var(--paper); border: 2px solid var(--gold); border-radius: 50%; }
.section-sand .process li::after { background: var(--sand); }
.process h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process p { font-size: 0.975rem; line-height: 1.55; color: var(--ink-2); }

/* Portfolio logos strip */
.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.logo-strip li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.logo-strip a { display: grid; grid-template-rows: 5.5rem auto; justify-items: center; align-items: center; gap: 0.75rem; padding: 1.75rem 1rem 1.25rem; text-decoration: none; height: 100%; }
.logo-strip img { max-height: 4.5rem; max-width: 9rem; width: auto; object-fit: contain; }
.logo-strip span { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-align: center; }
.logo-strip a:hover span { color: var(--canopy); text-decoration: underline; }
.strip-foot { margin-top: 1.5rem; }

/* CTA band */
.cta-band { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10rem; bottom: -20rem; width: 36rem; height: 36rem; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 2.6rem, rgba(232, 195, 94, 0.32) 2.6rem calc(2.6rem + 1.5px)); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 1.25rem; max-width: 40rem; }
.cta-band h2 { color: #fff; }
.cta-band .button-row { margin-top: 0.75rem; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.page-hero .lead { margin-top: 1.25rem; }

/* About */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; max-width: 52rem; }
.steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font: 300 2rem/1 var(--display); color: var(--bronze); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-2); }

.focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.focus-list div { padding-top: 1rem; border-top: 2px solid var(--gold); }
.focus-list dt { font-family: var(--display); font-weight: 500; color: var(--forest); font-size: 1.05rem; }
.focus-list dd { margin: 0.35rem 0 0; color: var(--ink-2); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.trio h3 { margin-bottom: 0.5rem; }
.trio p { color: var(--ink-2); }

.pull { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.3; color: var(--forest); max-width: 34ch; text-wrap: balance; }

/* Portfolio page */
.company { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.company:first-child { padding-top: 0; }
.company-logo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; }
.company-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.company-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; padding: 0; list-style: none; }
.company-meta li { font-size: 0.875rem; font-weight: 500; color: var(--forest); background: var(--sand); padding: 0.25rem 0.65rem; border-radius: 999px; }
.company p { color: var(--ink-2); max-width: 40rem; }
.company .history { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.company .site { display: inline-block; margin-top: 0.75rem; font-weight: 600; }

/* Team page */
.person { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.person:first-child { padding-top: 0; }
.person-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); }
.person-role { margin-top: 0.35rem; font-weight: 500; color: var(--bronze); }
.person .bio { margin-top: 1.25rem; color: var(--ink-2); max-width: 40rem; }
.person-links { margin: 1.25rem 0 0 -0.5rem; }

/* LinkedIn logo links */
.social { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: #0A66C2; border-radius: 4px; }
.social:hover { color: #004182; }
.social svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.site-footer .social { color: #FFFFFF; margin-left: -0.5rem; }
.site-footer .social:hover { color: var(--gold); }
.people-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.people-links li { display: flex; align-items: center; gap: 0.75rem; }
.people-links .social { margin-left: -0.5rem; }
.people-links div { display: grid; }
.people-links strong { font-weight: 600; color: var(--forest); }
.people-links span { font-size: 0.9375rem; color: var(--muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-direct { display: grid; gap: 1.75rem; }
.contact-direct h2 { font-size: 1.5rem; }
.contact-direct dl { margin: 0; display: grid; gap: 1.25rem; }
.contact-direct dt { font-size: 0.9375rem; color: var(--muted); }
.contact-direct dd { margin: 0.15rem 0 0; font-weight: 500; }
.contact-direct dd a { font-weight: 600; word-break: break-word; }

.form { background: var(--sand); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 4px; display: grid; gap: 1.25rem; }
.form h2 { font-size: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--forest); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid #B9AE93; border-radius: 4px; padding: 0.7rem 0.85rem; min-height: 3rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--bark); outline-offset: 1px; border-color: var(--forest); }
.field [aria-invalid="true"] { border-color: #A3261B; }
.field-error { color: #A3261B; font-size: 0.875rem; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-status { padding: 1rem 1.1rem; border-radius: 4px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #E3EFE0; color: var(--forest); border: 1px solid #A9C9A2; }
.form-status.is-error { background: #FBE9E6; color: #7A1D14; border: 1px solid #E5B3AC; }
.form .button[disabled] { opacity: 0.65; cursor: progress; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9375rem; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #F3D98F; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 2.5rem; }
.footer-brand img { width: 7.5rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 24rem; }
.site-footer h2 { font: 600 0.9375rem var(--body); color: #fff; margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3D5A3A; display: grid; gap: 0.75rem; font-size: 0.8125rem; color: #B9C6B4; }

/* 404 */
.not-found { min-height: 50vh; display: grid; align-content: center; gap: 1.25rem; }

/* Responsive */
@media (max-width: 63.99rem) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { padding: 0 0 1.75rem 2.75rem; }
  .process li::before { top: 0.75rem; bottom: 0; left: 0.75rem; right: auto; width: 2px; height: auto; }
  .process li:last-child::before { display: none; }
  .process li::after { top: 0; }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .focus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
  .hero-grid, .split, .contact-grid, .trio { grid-template-columns: 1fr; }
  .hero .rings { width: min(80%, 20rem); order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company, .person { grid-template-columns: 1fr; }
  .company-logo { max-width: 13rem; }
  .person-photo { max-width: 11rem; }
  .focus-list, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
