/* Sempreverdi Digital — site styles
   Colours carried over from the Wix site's tiles, plus the logo's gold. */
/* Self-hosted fonts: Tinos (headings, Apache 2.0) and DejaVu Sans (body, free licence). */
@font-face { font-family: "Tinos"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/tinos-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/tinos-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/tinos-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/dejavu-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/dejavu-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("/assets/fonts/dejavu-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --olive: #5e8a34;
  --olive-deep: #46692a;
  --sage: #9bb27e;
  --sage-pale: #eef3e6;
  --apricot: #efc394;
  --peach: #f7dac0;
  --forest: #173a22;
  --paper: #fbfcf8;
  --gold: #c9a227;
  --ink-soft: #3e5a45;

  --display: "Tinos", "Times New Roman", Times, serif;
  --sans: "DejaVu Sans", Verdana, sans-serif;

  --wrap: 72rem;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--forest);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 38em; }
.small { font-size: 0.9rem; }
.prose { max-width: 40em; }
.prose-page { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--forest); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e3e9da; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.wordmark { display: none; font-family: var(--display); font-size: 1.35rem; color: var(--olive); }
.wordmark span { color: var(--gold); }
.brand.no-logo .wordmark { display: inline; }

#site-nav ul { list-style: none; margin: 0; padding: 0; }
#site-nav > ul { display: flex; gap: 0.25rem; align-items: center; }
#site-nav a, .sub-toggle {
  display: block; padding: 0.5rem 0.8rem; font: 600 1rem var(--sans);
  color: var(--forest); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 4px;
}
#site-nav a:hover, .sub-toggle:hover { background: var(--sage-pale); }
#site-nav a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--olive-deep); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 0.4em; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #e3e9da; min-width: 15rem; padding: 0.4rem 0; }
.has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
@media (hover: hover) and (min-width: 52.01rem) { .has-sub:hover .sub { display: block; } }
.sub a { font-weight: 400; }
.menu-toggle { display: none; }

@media (max-width: 52rem) {
  .menu-toggle {
    display: block; font: 600 1rem var(--sans); color: var(--forest); background: var(--sage-pale);
    border: 0; padding: 0.55rem 1rem; border-radius: 4px; cursor: pointer;
  }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #e3e9da; }
  #site-nav.open { display: block; }
  #site-nav > ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gap) 1rem; }
  .sub { display: block; position: static; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .sub-toggle { display: none; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-block; font: 700 1.05rem var(--sans); text-decoration: none;
  background: var(--gold); color: var(--forest); padding: 0.85rem 1.5rem; border: 2px solid var(--gold); border-radius: 3px; cursor: pointer;
}
.button:hover { background: #ddb83b; border-color: #ddb83b; color: var(--forest); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.button-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23,58,34,0.92) 0%, rgba(23,58,34,0.72) 45%, rgba(23,58,34,0.25) 100%),
    url("/images/hero.jpg") center 40% / cover no-repeat,
    var(--forest);
  min-height: min(82vh, 46rem);
  display: flex; align-items: center;
}
.hero-inner { padding-block: 5rem; width: 100%; }
.hero h1 { max-width: 12em; font-size: clamp(2.6rem, 6.5vw, 5rem); }
.hero .lede { color: #eef3e6; }
.hero-tag { font-family: var(--display); font-style: italic; color: var(--apricot); font-size: 1.15rem; margin-bottom: 1.25rem; }

.page-hero { background: var(--forest); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 16em; }
.page-hero.has-img {
  background:
    linear-gradient(90deg, rgba(23,58,34,0.92) 0%, rgba(23,58,34,0.62) 50%, rgba(23,58,34,0.15) 100%),
    var(--img) center / cover no-repeat,
    var(--forest);
  min-height: 24rem; display: flex; align-items: flex-end;
}
.page-hero.has-img > .wrap { width: 100%; }
@media (max-width: 52rem) {
  .page-hero.has-img { background:
    linear-gradient(180deg, rgba(23,58,34,0.6) 0%, rgba(23,58,34,0.9) 100%),
    var(--img) center / cover no-repeat, var(--forest); }
}
.page-hero .lede { color: #dfe8d6; }
.page-hero a { color: var(--apricot); }
.crumb { font-size: 0.95rem; color: var(--sage); margin-bottom: 1.25rem; }
.crumb a { color: var(--sage); }

/* ---------- promise strip ---------- */
.promise { background: var(--olive); color: #fff; }
.promise-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; margin-block: 0; }
.promise-list li { font-size: 1.05rem; }
.promise-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--peach); }
@media (max-width: 52rem) { .promise-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--sage-pale); }
.section.dark { background: var(--forest); color: #e6eedd; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 40em; margin-bottom: 3rem; }
.section-head p { font-size: 1.2rem; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap) 4rem; align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.more { margin-top: 2rem; }
.more a { font-weight: 700; }

/* ---------- the four stages: the signature element ----------
   Four tiles in the Wix tile colours, rising left to right like growth. */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 0; }
.stage { padding: 1.75rem 1.5rem 2rem; position: relative; }
.stage h3 { font-size: 1.75rem; margin-bottom: 0.15em; }
.stage-num { font-family: var(--display); font-size: 3.25rem; line-height: 1; display: block; margin-bottom: 1.25rem; color: var(--olive-deep); }
.stage-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; color: var(--ink-soft); }
.stage-1 { background: var(--peach);   min-height: 21rem; }
.stage-2 { background: var(--apricot); min-height: 24.5rem; }
.stage-3 { background: var(--sage);    min-height: 28rem; }
.stage-4 { background: var(--olive);   min-height: 31.5rem; color: #fff; }
.stage-3 .stage-label, .stage-3 .stage-num { color: var(--forest); }
.stage-4 .stage-label { color: var(--peach); }
.stage-4 .stage-num { color: var(--gold); }
@media (max-width: 60rem) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage { min-height: 0 !important; }
}
@media (max-width: 34rem) { .stages { grid-template-columns: 1fr; } }

/* full version on Our approach: rows, colour band grows wider each stage */
.stages-full { grid-template-columns: 1fr; gap: 0.75rem; align-items: stretch; }
.stages-full .stage { min-height: 0 !important; display: grid; grid-template-columns: 16rem 1fr; gap: 0 2.5rem; padding: 2rem; }
.stages-full .stage-num { grid-row: span 3; margin: 0; }
.stages-full .stage h3, .stages-full .stage .stage-label { grid-column: 1; }
.stages-full .stage-num { grid-column: 1; grid-row: 1; }
.stages-full .stage h3 { grid-row: 2; }
.stages-full .stage-label { grid-row: 3; }
.stages-full .stage p:last-child { grid-column: 2; grid-row: 1 / span 3; margin: 0; max-width: 40em; align-self: center; }
.stages-full .stage-1 { margin-right: 18%; }
.stages-full .stage-2 { margin-right: 12%; }
.stages-full .stage-3 { margin-right: 6%; }
@media (max-width: 52rem) {
  .stages-full .stage { grid-template-columns: 1fr; margin-right: 0 !important; }
  .stages-full .stage p:last-child, .stages-full .stage-num, .stages-full .stage h3, .stages-full .stage-label { grid-column: 1; grid-row: auto; }
  .stages-full .stage-num { margin-bottom: 0.75rem; }
}
.cycle { margin-top: 2rem; font-family: var(--display); font-size: 1.25rem; color: var(--ink-soft); }

/* ---------- AI band ---------- */
.three { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.three li { border-top: 2px solid var(--gold); padding-top: 1.25rem; }
@media (max-width: 52rem) { .three { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- services list ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.services a { display: block; text-decoration: none; color: inherit; padding: 1.5rem 0 1.5rem 1.25rem; border-left: 4px solid var(--sage); margin-bottom: 1.5rem; }
.services a:hover { border-left-color: var(--gold); background: var(--sage-pale); }
.services h3 { color: var(--olive-deep); margin-bottom: 0.3em; }
.services p { margin: 0; color: var(--ink-soft); }
@media (max-width: 52rem) { .services { grid-template-columns: 1fr; } }

/* ---------- OGGA ---------- */
.ogga { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #cfdcc0; border: 1px solid #cfdcc0; }
.ogga li { background: #fff; padding: 1.75rem 1.5rem; }
.letter { font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 0.75rem; }
.delivers { font-size: 0.98rem; color: var(--ink-soft); border-top: 1px solid #e3e9da; padding-top: 0.9rem; margin: 0; }
@media (max-width: 60rem) { .ogga { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .ogga { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 0.9rem 0 0.9rem 2.25rem; border-bottom: 1px solid #e3e9da; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: 1.35rem; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--olive); border-bottom: 3px solid var(--olive); transform: rotate(-45deg); }

.quote { margin: 0; max-width: 46rem; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { color: var(--ink-soft); }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
.story-img { margin: 0; background: var(--sage); aspect-ratio: 4 / 5; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.profile { display: grid; grid-template-columns: 18rem 1fr; gap: 3rem; align-items: start; }
.profile.no-photo { grid-template-columns: 1fr; }
.headshot { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sage); }
.role { color: var(--ink-soft); }
@media (max-width: 52rem) {
  .story, .profile { grid-template-columns: 1fr; gap: 2rem; }
  .headshot { max-width: 14rem; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 1.5rem 0; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.contact-form { background: var(--sage-pale); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-form label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: inherit; padding: 0.7rem 0.8rem; border: 1px solid #b9c9a6; border-radius: 3px; background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { margin-top: 1.5rem; }
.hint { color: var(--ink-soft); font-size: 1rem; }
.form-error { color: #9b2c1f; font-weight: 600; margin-top: 1rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- CTA + footer ---------- */
.cta { background: var(--sage); padding-block: clamp(3rem, 7vw, 5rem); }
.cta-inner { max-width: var(--wrap); }
.cta h2 { max-width: 18em; }
.cta p { font-size: 1.2rem; }
.site-footer { background: var(--forest); color: #cfdcc0; padding: 3rem 0 2.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: #fff; margin-bottom: 0.25rem; }
.tagline { font-style: italic; }
.footer-head { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apricot); margin: 0.35rem 0 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; line-height: 1.45; }
.contact-list .ico { flex: none; width: 2.1rem; height: 2.1rem; padding: 0.45rem; border-radius: 50%; background: rgba(201,162,39,0.16); color: var(--gold); margin-top: -0.3rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .cta, .contact-form { display: none; } body { background: #fff; } }

.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal h2:first-of-type { margin-top: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .small { margin-top: 1rem; }
