/* ============================================================================
   Cesco Holdings — site styles
   Built on the approved identity: Vineyard Green, Warm Ivory, Charcoal,
   Source Serif 4 (headings) and Source Sans 3 (body).
   Plain CSS. No build step, no JavaScript, no external requests.
   ========================================================================= */

/* ── Fonts (self-hosted, SIL Open Font License — see assets/fonts/) ─────── */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}


/* ── Design tokens ──────────────────────────────────────────────────────── */

:root {
  /* Approved palette */
  --green:        #1f3a2e;   /* Vineyard Green — primary */
  --ivory:        #faf8f1;   /* Warm Ivory — primary */
  --charcoal:     #2f2f2f;   /* Charcoal — secondary */
  --black:        #000000;   /* Black — secondary */
  --gold:         #a08a5a;   /* Antique Gold — fine rules only, never text */

  /* Derived working colours */
  --ink:          var(--charcoal);
  --ink-muted:    #55564f;
  --rule:         #d9d5c7;
  --rule-soft:    #e6e2d6;
  --on-green:     #f4f1e8;
  --on-green-dim: #bfc9c0;
  --rule-green:   rgba(244, 241, 232, 0.24);

  /* Typography */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Source Sans 3", Arial, Helvetica, sans-serif;
  --track-caps: 0.16em;

  /* Measure and rhythm */
  --shell-max:  1160px;
  --gutter:     clamp(1.25rem, 5vw, 3.5rem);
  --section-y:  clamp(3.75rem, 8vw, 7rem);
}


/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--green);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 1px;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--green);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}


/* ── Shared editorial elements ──────────────────────────────────────────── */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.eyebrow--reversed { color: var(--on-green-dim); }

.accent-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  max-width: 22ch;
}

.section__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.6;
  color: var(--green);
  max-width: 46ch;
  margin-top: 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
}

.site-header__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.site-header__logo img { width: 158px; height: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--green); }


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

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  .hero__lead { margin-top: 0.6rem; }
}

.hero__title {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.9vw, 1.375rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--green);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.75rem;
  margin-top: 2.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding-block: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}
.cta__arrow { transition: transform 0.25s ease; }
.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow { transform: translateX(4px); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.link-quiet:hover,
.link-quiet:focus-visible { color: var(--green); border-bottom-color: var(--green); }


/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section:has(+ .shell .mark-divider) { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section--rule { border-top: 1px solid var(--rule); }

/* Two-column editorial head: title left, supporting text right */
.section-head {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  .section-head .section__lead { margin-top: 0.35rem; }
}


/* ── Three principles ───────────────────────────────────────────────────── */

.principles {
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.principle {
  padding-block: 2rem;
  border-top: 1px solid var(--rule-soft);
}

.principle__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.principle__title {
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.principle p:last-child {
  max-width: 34ch;
  color: var(--ink);
}

@media (min-width: 60rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--rule-soft);
  }
  .principle {
    border-top: 0;
    padding-block: 2.25rem 0;
    padding-inline-start: clamp(1.25rem, 2.5vw, 2rem);
    border-inline-start: 1px solid var(--rule-soft);
  }
  .principle:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}


/* ── Botanical divider (the single permitted vine accent) ───────────────── */

.mark-divider {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-block: 0 clamp(3.5rem, 8vw, 6rem);
}
.mark-divider::before,
.mark-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.mark-divider img {
  width: 30px;
  height: auto;
  opacity: 0.85;
}


/* ── Contact (deep green block) ─────────────────────────────────────────── */

.contact {
  background: var(--green);
  color: var(--on-green);
  padding-top: var(--section-y);
}

.contact__title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  line-height: 1.18;
  color: var(--on-green);
  max-width: 16ch;
}

.contact__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.6;
  max-width: 44ch;
  margin-top: 0.35rem;
}

.contact__note {
  font-size: 0.9375rem;
  color: var(--on-green-dim);
  max-width: 44ch;
  margin-top: 1.25rem;
}

.card {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-green);
}

.card__email a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  color: var(--on-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 232, 0.5);
  word-break: break-word;
}
.card__email a:hover,
.card__email a:focus-visible { border-bottom-color: var(--on-green); }
.contact :focus-visible { outline-color: var(--on-green); }


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

.site-footer {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule-green);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: 2.25rem;
}

.site-footer__logo { width: 116px; height: auto; opacity: 0.92; }

.site-footer__legal {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--on-green-dim);
}


/* ── Motion preferences ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 34rem) {
  .site-header__inner {
    justify-content: center;
    text-align: center;
    gap: 1.1rem;
    padding-block: 1.5rem 1.1rem;
  }
  .site-header__logo img { width: 132px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; gap: 0 1.5rem; }
  .hero__title { max-width: none; }
  .br-wide { display: none; }
  .hero__actions { gap: 0.5rem 2rem; }
  .site-footer__inner { justify-content: flex-start; }
}


/* ── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .site-nav, .skip-link, .mark-divider { display: none; }
  body { background: #fff; color: #000; }
  .contact { background: #fff; color: #000; }
  .contact__title, .card__name, .card__email a { color: var(--green); }
}


/* ── 404 page ───────────────────────────────────────────────────────────── */

.notfound {
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.notfound__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  max-width: 16ch;
}

.notfound__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.6;
  color: var(--green);
  max-width: 42ch;
  margin-top: 1.5rem;
}

.site-footer--plain {
  margin-top: 0;
  border-top: 1px solid var(--rule);
}
.site-footer__legal--dark { color: var(--ink-muted); }
