/* ICBUILD site styles
   Palette and type from the agreed identity. Accessibility first:
   large body text, strong contrast, big tap targets, no motion. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1F3B32;
  --green-deep: #183028;
  --charcoal: #2B2B2B;
  --limestone: #EAE6DD;
  --limestone-light: #F5F2EC;
  --oak: #B78B5A;          /* decoration and large text on green only */
  --sage: #6B7B6D;         /* decoration only, fails as text */
  --muted-on-green: #A9B4AC;
  --text-soft: #4A4A48;    /* secondary text on light backgrounds, 7.9:1 on limestone-light, 7.1:1 on limestone */
  --rule: #CFC8BA;
  --rule-on-green: rgba(234, 230, 221, 0.18);

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --measure: 64ch;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --radius: 6px;
  --tap: 3rem; /* 48px minimum target */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--limestone-light);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px, never smaller on phones */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--green);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.5rem); font-weight: 600; }

p, ul, ol, blockquote { max-width: var(--measure); }
p + p { margin-top: 1em; }

a {
  color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 3px; }

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

strong { font-weight: 600; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--limestone);
  color: var(--green);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--limestone); }
.section--green {
  background: var(--green);
  color: var(--limestone);
}
.section--green h1,
.section--green h2,
.section--green h3 { color: var(--limestone); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 0.75rem; color: var(--text-soft); }
.section--green .section__head p { color: var(--muted-on-green); }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.section--green .eyebrow { color: var(--muted-on-green); }

.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Header ---------- */
.site-header {
  background: var(--green);
  color: var(--limestone);
  border-bottom: 1px solid var(--rule-on-green);
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--limestone);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 3.1rem; height: auto; flex: none; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.035em;
}
.brand__descriptor {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
.brand__specialism {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.0625rem; /* 17px: legible wayfinding for a low-vision audience */
  line-height: 1.35;
  color: var(--muted-on-green);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.header-contact__label {
  font-size: 0.95rem;
  color: var(--muted-on-green);
}
.header-contact__email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--limestone);
  text-decoration-color: var(--oak);
}
.site-header :focus-visible,
.section--green :focus-visible,
.site-footer :focus-visible { outline-color: var(--oak); }

/* ---------- Navigation ---------- */
.site-nav { border-top: 1px solid var(--rule-on-green); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  max-width: none;
  padding: 0.5rem 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 0.9rem;
  color: var(--limestone);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem; /* 19px: primary navigation meets the body-text floor */
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--green-deep); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--oak);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}

@media (max-width: 40rem) {
  .header-contact { align-items: flex-start; }
  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-block: 0.75rem;
  }
  .site-nav a {
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    padding-block: 0.4rem;
    background: var(--green-deep);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green);
  color: var(--limestone);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 { color: var(--limestone); max-width: 20ch; }
.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  color: var(--limestone);
  max-width: 52ch;
}
.page-hero {
  background: var(--green);
  color: var(--limestone);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.page-hero h1 { color: var(--limestone); }
.page-hero p {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--muted-on-green);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
}
.button:hover { text-decoration: underline; }
.button--primary { background: var(--limestone); color: var(--green); }
.button--secondary { color: var(--limestone); border-color: var(--limestone); }
.button--dark { background: var(--green); color: var(--limestone); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.75rem; }
.section--tint .card { background: var(--limestone-light); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem 2.5rem;
}
.pillar { border-top: 2px solid var(--oak); padding-top: 1.25rem; }
.pillar h3 { margin-bottom: 0.6rem; }
.section--green .pillar p { color: var(--limestone); }

/* ---------- Two column text ---------- */
.split {
  display: grid;
  gap: 2rem 4rem;
  align-items: start;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Service sections ---------- */
.service + .service {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.service h2 { margin-bottom: 1.25rem; }

.tick-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}
.tick-list li {
  position: relative;
  padding-left: 2rem;
}
.tick-list li + li { margin-top: 0.6rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.75rem;
  min-height: 2.75rem;
}
.steps li + li { margin-top: 1.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--limestone);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}
.quote {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--oak);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.section--tint .quote { background: var(--limestone-light); }
.quote blockquote p { font-size: 1.15rem; }
.quote figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-soft);
}
.quote figcaption strong { color: var(--charcoal); }

.pull-quote {
  border-left: 4px solid var(--oak);
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--green);
}
.pull-quote footer {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-soft);
}

/* ---------- Work gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption { margin-top: 0.6rem; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  color: var(--green);
  word-break: break-word;
}
.details { display: grid; gap: 1.25rem; }
.details dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
}
.details dd { margin: 0.2rem 0 0; }

/* ---------- Call to action band ---------- */
.cta-band h2 { color: var(--limestone); }
.cta-band p { margin-top: 0.9rem; color: var(--limestone); }
.cta-band .contact-email { color: var(--limestone); text-decoration-color: var(--oak); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--limestone);
  padding-block: 3rem;
  font-size: 1.0625rem; /* 17px: keep footer body legible */
}
.site-footer a { color: var(--limestone); }
.site-footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  font-size: 1.1rem;
  color: var(--limestone);
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.site-footer__strap {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-on-green);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-green);
}

/* ---------- Review markers ----------
   .tbc marks copy that still needs Ian's confirmation or a missing fact.
   Launch check: no element with class "tbc" may remain in any page. */
.tbc {
  background: #FFF0B3;
  color: #3A2E00;
  outline: 2px dashed #8A6D00;
  outline-offset: 1px;
  border-radius: 2px;
  padding: 0 0.2em;
}
.tbc::before {
  content: "TBC: ";
  font-weight: 700;
}
div.tbc, p.tbc, ul.tbc { display: block; padding: 1rem 1.25rem; }

/* ---------- Photos (added 18 October 2026) ---------- */
.card__img {
  display: block;
  width: calc(100% + 3.5rem);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.5rem;
}
.service-figure { max-width: 46rem; }
.service-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-figure figcaption { margin-top: 0.6rem; font-size: 1.05rem; color: var(--text-soft); }
.gallery figure a,
.before-after figure a { display: block; border-radius: var(--radius); }
.gallery figure img { height: auto; }
.before-after {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .before-after { grid-template-columns: 1fr 1fr; }
}
.before-after img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.before-after figcaption { margin-top: 0.6rem; font-size: 1.05rem; }

/* ---------- Common questions (added for launch) ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem 3rem;
}
.faq__item { border-top: 2px solid var(--rule); padding-top: 1rem; }
.faq__item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
