/* Archer Maitland - shared stylesheet. Static site, no build step. */

/* ---- Fonts: self-hosted Cormorant Garamond (latin subset), weights 400/500/600 ---- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
}

:root {
  --green: #0f2b1d;
  --green-hover: #1e3827;
  /* ONE brand gold: emphasis text, accent rule, gold-on-green motto, hover underline.
     On white/linen the two emphasis lines are ~2.7-2.95:1 - a deliberate brand
     exception (decorative emphasis), documented; do not re-darken. */
  --orange: #c98932;
  /* Dark gold used ONLY for the focus ring (needs 3:1 on white, SC 1.4.11). */
  --focus-gold: #8a5a14;
  --linen: #faf3e5;
  --ink: #2b2b29;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  /* Layout: one content column + a couple of deliberate reading widths. */
  --w-content: 62rem;
  --w-hero: 44rem;
  --w-narrow: 34rem;
  --pad-y: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Sticky-footer shell so short pages (Contact / 404) fill exactly one viewport. */
body {
  font-family: "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* Screen-reader-only: gives the WYA hero a document h1 without a visible heading
   (its visible content is the lead over the photo - R6). */
.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;
}

/* ---- Keyboard focus (two-tone: dark-gold outline on light surfaces, linen halo
   on the dark-green surfaces - clears 3:1 SC 1.4.11 on both) ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(250, 243, 229, 0.55);
  border-radius: 2px;
}

/* ---- Shared header: fixed. Its band is a soft translucent gradient painted by
   the ::before below (NOT a solid fill), identical on all four pages (R7.1-1). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}
/* The nav band (translucent, painted below the nav - not a solid fill). The dark
   plateau ends ~15px above the header's bottom edge - the nav baseline (~56px on
   desktop), matching the original band's dark extent - then fades to transparent
   over a short ~27px. box = header + 12 (bottom:-12), so `calc(100% - 27px)` lands
   15px above the header bottom at any breakpoint, so the plateau still covers the
   nav even when it wraps. Base plateau 0.65 (Contact / 404 green pages) - over pure
   WHITE, the worst case, ~7:1 for the 18px nav; photo heroes override it to 0.84. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -12px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0,
    rgba(0, 0, 0, 0.65) calc(100% - 27px),
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}
/* Home + Who You Are sit over busy photos: denser 0.84 plateau (same extent). */
.site-header--photo::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.84) 0,
    rgba(0, 0, 0, 0.84) calc(100% - 27px),
    rgba(0, 0, 0, 0) 100%
  );
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ---- Top nav: one flat row, one type treatment, no divider (G1) ---- */
.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.1rem;
}
.top-nav a,
.top-nav span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.top-nav span[aria-current="page"] {
  cursor: default;
}
/* One standardized hover + active treatment: brand-gold underline, 4px offset. */
.top-nav a:hover,
a.brand:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.top-nav [aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

/* Fixed-nav clearance for in-page anchor jumps, so headings aren't hidden under
   the fixed bar (G1). */
#main,
#philosophy,
#partnership,
#investment {
  scroll-margin-top: 5.5rem;
}

/* ---- Hero (shared shell for home / who-you-are) ---- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 6rem 1.25rem 3.5rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  /* Warm dark placeholder (~ mean colour of the golden-hour hero photos) so the
     hero doesn't flash white before the image loads, and the white hero text
     stays legible during that first paint. */
  background-color: #463524;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Soft radial pool behind the centred hero text. The top nav band is no longer
   here - the fixed header now supplies its own constant band (G1). */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 36% 33% at 50% 52%,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    rgba(0, 0, 0, 0) 90%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-hero);
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 8.5vw, 76px);
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 22px rgba(0, 0, 0, 0.62);
}
.accent {
  width: 64px;
  height: 3px;
  background: var(--orange);
  margin: 0.75rem auto 1rem;
}
.tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 28px);
  max-width: 38rem;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

/* ---- Who You Are hero: gold motto eyebrow + lead over the desk photo, on the
   shared 0.5 .hero-scrim (same treatment as home). The lead's outer lines and the
   motto dip below AA over the bright desk - an accepted text-over-photo tradeoff. */
.hero.hero--wya {
  min-height: 68vh;
}
.hero--wya .hero-media img {
  object-position: 50% 50%;
}
/* Gold motto eyebrow above the lead (decorative brand line; the page's h1 is the
   visually-hidden "Who You Are"). */
.hero--wya .hero-motto {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 1px 12px rgba(0, 0, 0, 0.65);
}
/* The lead, over the photo - white with a soft shadow. */
.wya-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 23px);
  line-height: 1.55;
  max-width: 30rem;
  margin: 0 auto;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ---- Ribbon (Philosophy) ---- */
.ribbon {
  background: #fff;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
}
.ribbon-inner {
  display: flex;
  gap: 3rem;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}
.ribbon-left {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
}
.ribbon-left h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 40px);
  line-height: 1.15;
  color: #000;
}
.ribbon-right {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
}
.ribbon-right p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 22px);
  color: #000;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}
.ribbon-right p:last-child {
  color: var(--orange);
  margin-bottom: 0;
  font-weight: 600;
}

/* ---- Image band ---- */
.image-band {
  background: var(--linen);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
}
.image-band-left {
  flex: 1 1 320px;
  padding: var(--pad-y) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.image-band-left h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 40px);
  line-height: 1.2;
  color: #000;
  margin-bottom: 1rem;
}
.image-band-left p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 22px);
  color: #000;
  line-height: 1.4;
  margin: 0 0 0.22rem 0;
}
.image-band-left p.mt {
  margin-top: 1rem;
}
.image-band-left p.highlight-orange {
  color: var(--orange);
  font-weight: 600;
  margin-top: 1rem;
}
.band-media {
  flex: 1 1 42%;
  min-width: 340px;
  display: block;
}
.band-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* ---- Respect band (Partnership) ---- */
.respect-band {
  padding: var(--pad-y) 1.5rem;
  text-align: center;
}
.respect-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.respect-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 40px);
  line-height: 1.2;
  color: #000;
  margin-bottom: 1rem;
}
.respect-band p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 22px);
  color: #000;
  line-height: 1.5;
  margin: 0;
}

/* ---- Dusk band (Investment) - same directional-scrim system, no brightness filter ---- */
.dusk-band {
  position: relative;
  min-height: 55vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--pad-y) 1.25rem;
}
.dusk-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.dusk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Centred crop keeps the paragraph over the dark building; the wide h2/gold
     still graze the sunset + lit windows (see coordinator note). */
  object-position: 50% 50%;
}
/* The same soft pool as the hero, minus the top nav band - the dusk band is a
   mid-page section, not a hero, so it has no nav. */
.dusk-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 36% 33% at 50% 52%,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    rgba(0, 0, 0, 0) 90%
  );
}
.dusk-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  max-width: 40rem;
}
.dusk-inner h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 1px 16px rgba(0, 0, 0, 0.65);
}
.dusk-inner p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 22px);
  line-height: 1.5;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 1px 14px rgba(0, 0, 0, 0.65);
}
.dusk-inner p.highlight-orange {
  /* This emphasis line is white on the dusk photo (H3); the other two gold
     emphasis lines - ribbon :last-child and image-band .highlight-orange -
     stay gold. Size (>=24px, large text) and weight kept. */
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 26px);
}

/* ---- CTA band ---- */
.cta-band {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) 1rem;
}
.cta-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.tree-icon {
  display: block;
}
.tree-icon img {
  width: 96px;
  height: auto;
}
.cta-inner .tree-icon {
  margin-bottom: 0.45rem;
}
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0;
}
.cta-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  max-width: 40rem;
}
.cta-btn {
  margin-top: 1rem;
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.55rem 1.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.cta-btn:hover {
  background: var(--green-hover);
}

/* ---- Who You Are: list + closing (the lead is over the hero photo - R6) ---- */
.wya-list {
  background: var(--linen);
  padding: var(--pad-y) 1.5rem;
}
.wya-list ul {
  max-width: 52rem;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
}
.wya-list li {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.1vw, 24px);
  line-height: 1.35;
  color: #000;
}
/* Closing shares the linen band with the list but reads distinct: gold divider
   above, lighter weight, smaller, narrower measure. */
.wya-divider {
  width: 64px;
  height: 3px;
  background: var(--orange);
  margin: 2.25rem auto;
}
.wya-closing {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 23px);
  line-height: 1.6;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  color: #000;
}
/* The list-intro sentence (moved off the hero - W1) reuses .wya-closing's type
   and leads into the bullets, so it gets bottom spacing before the <ul>. */
.wya-list-intro {
  margin-bottom: 2rem;
}

/* ---- Footer (shared, identical on every page) ---- */
.footer-band {
  background: var(--green);
  color: #fff;
  padding: 1.75rem 1rem;
  flex-shrink: 0;
}
.footer-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.footer-sub {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.25rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
}
.footer-nav a,
.footer-nav span {
  color: #fff;
  text-decoration: none;
  position: relative;
}
.footer-nav span[aria-current="page"] {
  cursor: default;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

/* ---- Contact / 404 (green centred pages; fill main via the sticky-footer shell) ---- */
.hero--contact,
.hero--notfound {
  background: var(--green);
  color: #fff;
  min-height: 0;
  flex: 1 0 auto;
}
.hero--contact .hero-inner {
  max-width: var(--w-narrow);
}
.hero--contact h1 {
  font-family: var(--serif);
  font-weight: 600;
  /* Max 48px so "ARCHER MAITLAND" stays one line in the 34rem container on
     desktop (56px met the container and wrapped - R7.1-2). */
  font-size: clamp(2rem, 5vw, 48px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: none;
  margin-bottom: 0.7rem;
}
.contact-tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0;
}
.hero--contact .accent {
  margin: 2.6rem auto 2.8rem;
}
.contact-details p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 30px);
  line-height: 1.7;
  margin: 0;
}
.contact-details a {
  color: #fff;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

/* ---- 404 - distinct from Contact ---- */
.hero--notfound .hero-inner {
  max-width: 34rem;
}
.notfound-code {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4.5rem, 17vw, 9rem);
  line-height: 0.9;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.hero--notfound h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 1.25rem 0 1.35rem;
}
.notfound-msg {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 26px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.notfound-links {
  margin-top: 2.7rem;
}
.notfound-links a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 18px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.notfound-links a:hover {
  color: var(--orange);
}

/* ---- Responsive: layout only; type is fluid via clamp() above ---- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.85rem 1.1rem;
    gap: 0.5rem 0.9rem;
  }
  .brand {
    font-size: 21px;
  }
  /* Compact mobile nav: the three section anchors drop from the header (the
     footer keeps them), so phones show Home · Who You Are · Contact on one row
     and the header stays ~2 rows tall (R7.2-1). */
  .top-nav .nav-section {
    display: none;
  }
  /* The fixed header is ~85px on phones (brand + one nav row); this offset clears
     it for section-anchor jumps (R7.1-4). */
  #main,
  #philosophy,
  #partnership,
  #investment {
    scroll-margin-top: 9rem;
  }
  /* All six nav items now show on phones (no split). Extra top clearance so the
     hero text sits below the fixed header when the nav wraps to ~2 rows. */
  .hero {
    min-height: 56vh;
    padding: 6.75rem 1.1rem 3rem;
  }
  .wya-list {
    padding: 2.5rem 1.4rem;
  }
  .ribbon-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
  }
  /* In the stacked layout, size rows to content (flex-basis must not become a
     fixed row height). */
  .ribbon-left,
  .ribbon-right {
    flex: 0 0 auto;
  }
  .image-band {
    flex-direction: column;
  }
  .image-band-left {
    padding: 2rem 1.4rem;
  }
  .band-media {
    width: 100%;
    min-width: 0;
  }
  .band-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/2;
  }
  .dusk-band {
    min-height: 46vh;
  }
  .cta-btn {
    font-size: 0.82rem;
    padding: 0.5rem 1.15rem;
  }
  .footer-inner {
    gap: 1.25rem;
  }
}
@media (max-width: 400px) {
  .top-nav {
    gap: 0.3rem 0.7rem;
  }
  /* Mobile nav floor: keep items >= 16px */
  .top-nav a,
  .top-nav span {
    font-size: 16px;
  }
}
