/* Free lookalikes for the live site's Adobe Fonts (see README.md, Fonts). */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* Georgia scaled to each web font's width and line metrics, so text keeps its line breaks when the web font swaps in
   and nothing below it moves. Measured in WebKit (see the chunk 7b build log). Where Georgia is missing, as on Android,
   the plain serif fallback applies. */
@font-face {
  font-family: "Cormorant Garamond fallback";
  src: local("Georgia");
  size-adjust: 88.31%;
  ascent-override: 104.18%;
  descent-override: 32.84%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "EB Garamond fallback";
  src: local("Georgia");
  size-adjust: 85.61%;
  ascent-override: 117.98%;
  descent-override: 35.04%;
  line-gap-override: 0%;
}

/* Colours and type scale from site-archive-2026-11-15/raw/json/design-tokens.json. */
:root {
  --gold: #e2b75a;
  --brown: #28211e;
  --white: #fff;
  --black: #000;

  --font-heading: "Cormorant Garamond", "Cormorant Garamond fallback", Georgia, serif;
  --font-body: "EB Garamond", "EB Garamond fallback", Georgia, serif;

  --page-max: 1400px;
  --page-pad: 3vw;
}

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

/* The live site's default section theme is white text on dark brown, on every page. */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--brown);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.4;
}

/* Live sizes are 4 / 2.8 / 2.2rem at full width; clamp scales them down on narrow screens. */
h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

a {
  color: inherit;
}

/* Gold on brown is 8.41:1. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: var(--brown);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-decoration: none;
}

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

.site-nav a {
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

main {
  flex: 1;
  padding-block: 3rem;
}

/* Live footer: title, Services / Contact / About, Instagram icon, copyright. Stacked on phones. */
.site-footer .wrap {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.4;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--gold);
}

/* 28px icon, padded to a 44px target. */
.footer-instagram {
  display: block;
  padding: 8px;
}

.footer-instagram svg {
  display: block;
}

@media (min-width: 768px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer-title {
    justify-self: start;
  }

  .footer-instagram {
    justify-self: end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Live "secondary" button. */
.button {
  display: inline-block;
  padding: 1.3em 2.171em;
  border-radius: 6.4px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* Home. Column spans and image shapes follow the live page's 24-column grid at 1400px. */
.hero {
  text-align: center;
}

.hero h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.hero img {
  aspect-ratio: 3 / 2;
}

.feature {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: clamp(3rem, 6vw, 6rem);
  text-align: center;
}

.feature h2,
.feature p {
  margin: 0;
}

.feature p {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
}

.feature picture {
  width: 100%;
}

.feature img {
  aspect-ratio: 1;
}

.testimonials {
  display: grid;
  gap: 60px;
  padding-block: clamp(2rem, 3.3vmax, 4rem);
}

.testimonials figure,
.testimonials blockquote {
  margin: 0;
}

.testimonials blockquote p {
  margin: 0 0 1em;
  font-family: var(--font-heading);
  font-size: min(1rem + 0.72vw, 1.63rem);
  line-height: 1.4;
}

.testimonials figcaption {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero img {
    aspect-ratio: 20 / 11;
  }

  .feature {
    grid-template-columns: 13fr 11fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      "image ."
      "image heading"
      "image text"
      "image button"
      "image .";
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }

  .feature--flip {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      ". image"
      "heading image"
      "text image"
      "button image"
      ". image";
  }

  .feature h2 {
    grid-area: heading;
  }

  .feature picture {
    grid-area: image;
  }

  .feature p {
    grid-area: text;
  }

  .feature .button {
    grid-area: button;
  }

  .feature img {
    aspect-ratio: 13 / 14;
  }

  .feature--flip img {
    aspect-ratio: 6 / 7;
  }

  .testimonials {
    grid-template-columns: 1fr 1fr;
  }
}

/* Services. Column spans and image shapes follow the live page's 24-column grid at 1400px. */
.services h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  text-align: center;
}

.service-list {
  display: grid;
  gap: 2.5rem;
}

.service h2,
.locations h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.service h2 {
  margin: 1rem 0 0.5rem;
}

.service p {
  margin: 0;
}

.service img {
  aspect-ratio: 7 / 8;
  border-radius: 10px;
}

/* Crops match the live focal points. The cart offsets place the live page's 923x692 crop inside the full 1024x1024 photo. */
.service--design img {
  object-position: 100% 0;
}

.service--installation img {
  object-position: 37% 26%;
}

.service--maintenance img {
  object-position: 100% 100%;
}

.locations {
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.locations h2 {
  margin: 0 0 1rem;
}

.gallery {
  padding-block: clamp(2rem, 3.3vmax, 4rem) 0;
}

.gallery ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Block, so the focus ring wraps the whole photo. */
.gallery a {
  display: block;
}

/* The tiles touch, so the ring sits inside the photo. Gold over black stays visible on light and dark parts of a photo, including the yellow planters. */
.gallery a:focus-visible {
  outline-offset: -3px;
}

.gallery a:focus-visible img {
  outline: 2px solid var(--black);
  outline-offset: -5px;
}

.gallery img {
  aspect-ratio: 2 / 3;
}

@media (min-width: 768px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 11px;
  }

  .service img {
    aspect-ratio: 13 / 9;
  }

  .gallery ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* About. Column spans, image shapes and the banner follow the live page's 24-column grid at 1400px. */
.about {
  padding-bottom: 0;
}

.about-intro {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.about-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.about-intro img {
  border-radius: 20px;
}

.about-text p {
  margin: 0 0 1em;
}

/* Live banner: full-bleed photo under a 29% black overlay, cropped to its focal point. */
.about-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  /* Live phone height. Covering it crops the 16:9 photo to about 940px wide, the banner's phone `sizes` value. */
  min-height: 33rem;
  padding: 2rem var(--page-pad);
  text-align: center;
}

.about-banner picture {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.about-banner img {
  height: 100%;
  object-position: 5% 18%;
}

.about-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.29);
}

.about-banner h2 {
  margin: 0;
}

/* On phones the heading crosses the dracaena's sunlit leaves, where white over the live 29% overlay dips to 2.4:1.
   At 40% every pixel next to the letters is at least 3.1:1 (large text needs 3:1; measured, see the chunk 7 build log). */
@media (max-width: 767px) {
  .about-banner::after {
    background: rgb(0 0 0 / 0.4);
  }
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    /* The text spans both rows; 1fr gives its extra height to the photo row, so the photo stays under the heading. */
    grid-template-rows: auto 1fr;
    column-gap: 11px;
    row-gap: 3rem;
  }

  .about-intro h1 {
    grid-column: 1 / 7;
  }

  .about-intro picture {
    grid-column: 1 / 9;
    grid-row: 2;
  }

  .about-text {
    grid-column: 13 / 25;
    grid-row: 1 / span 2;
  }

  /* Live height: 12 grid rows of 2.15% of the content width (about 26vw, stopping at the 1400px page width),
     plus 7.5rem of row gaps and padding. */
  .about-banner {
    min-height: calc(min(26vw, 364px) + 7.5rem);
  }

  /* Live columns 5-23 of 24. */
  .about-banner h2 {
    max-width: 75%;
  }
}

/* Contact and thank-you. The live form sits on a translucent beige panel over a full-bleed photo with an 18% black overlay.
   Column spans follow the live page's 24-column grid at 1400px. */
.contact {
  padding-block: 0;
}

/* The form makes the section about 800-835px tall at 375, 768 and 1400px. Covering that with the 2:1 photo
   makes it about 1670px wide, the `sizes` value below 1670px. */
.contact-section {
  position: relative;
  isolation: isolate;
}

.contact-section picture {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact-section img {
  height: 100%;
  object-position: 66% 66.4%;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.18);
}

.contact-content {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 3rem;
}

/* Live colour: dark brown on the pale wall. */
.contact-content h1 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  text-align: center;
}

.contact-panel {
  padding: max(1rem, 3%);
  border-radius: 15px;
  background: hsl(36.67deg 32% 78% / 0.79);
  backdrop-filter: blur(4px);
  color: var(--black);
}

.contact-panel p {
  margin: 0 0 1em;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

/* Measured on the beige panel: gold would be 1.35:1, black is 8.2:1. */
.contact-panel :focus-visible {
  outline-color: var(--black);
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
}

/* Live fields are white pills with no border. The 1px brown border is ours: white on the beige panel is under the 3:1 needed to see the field. */
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.6em 1.2em;
  border: 1px solid var(--brown);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: inherit;
}

.contact-form textarea {
  border-radius: 1.5rem;
  resize: vertical;
}

.contact-form .botcheck {
  display: none;
}

/* Live form button: black with white text, otherwise the site button. */
.contact-form .button {
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    column-gap: 11px;
  }

  .contact-content h1 {
    grid-column: 1 / -1;
  }

  .contact-panel {
    grid-column: 6 / 20;
  }
}

/* Accessibility statement: one text column at a readable line length, with the Services and About heading sizes. */
.statement {
  max-width: 46rem;
}

.statement h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.statement h2 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

/* Accessibility toolbar (js/a11y.js). Settings are classes on <html>, set before first paint by each page's <head> script. */
.a11y-text-1 {
  font-size: 125%;
}

.a11y-text-2 {
  font-size: 150%;
}

.a11y-text-3 {
  font-size: 175%;
}

.a11y-text-4 {
  font-size: 200%;
}

/* Black page; the contact panel goes opaque white (black text 21:1) and the About banner overlay darkens to 60%
   (white text is at least 5.7:1, even over pure white). The contact heading turns black on the pale wall. */
.a11y-contrast {
  --brown: #000;
}

.a11y-contrast .contact-panel {
  background: var(--white);
  backdrop-filter: none;
}

.a11y-contrast .about-banner::after {
  background: rgb(0 0 0 / 0.6);
}

/* System fonts only. Verdana's wide letters and open shapes are the usual dyslexia-friendly pick; spacing stays within WCAG 1.4.12. */
.a11y-font {
  --font-heading: Verdana, "Segoe UI", system-ui, sans-serif;
  --font-body: Verdana, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.03em;
  word-spacing: 0.1em;
}

/* Black text on gold is 11.2:1. html and [href] outrank the nav's current-page and hover colours, which would be gold on gold. */
html.a11y-links a[href] {
  background: var(--gold);
  color: var(--black);
  text-decoration: underline 2px;
  text-underline-offset: 0.2em;
}

/* The current page loses its gold colour here, so it gets a thicker underline instead. */
html.a11y-links a[aria-current="page"] {
  text-decoration-thickness: 5px;
}

.a11y-still *,
.a11y-still *::before,
.a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* When Tab scrolls a control into view from below, it stops 72px above the bottom edge (the trigger's 48px and 12px inset,
   plus 12px), so it never lands under the trigger. Without it the footer Instagram icon could be all but covered (WCAG 2.4.11). */
html {
  scroll-padding-bottom: 72px;
}

/* Room below the footer for the trigger (48px plus its 12px inset), so it never sits over the last line. */
.site-footer {
  padding-bottom: 60px;
}

.a11y {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.4;
}

/* Px, not rem, so larger text doesn't grow it over the page. Brown ring keeps the gold disc visible on pale photos. */
.a11y-trigger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
}

.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: grid;
  gap: 8px;
  width: min(18rem, calc(100vw - 24px));
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 12px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: var(--brown);
  color: var(--white);
  animation: a11y-open 0.15s ease-out;
}

.a11y-panel[hidden] {
  display: none;
}

@keyframes a11y-open {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.a11y-size {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a11y-size p {
  flex-basis: 100%;
  margin: 0;
}

.a11y-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.4em 0.8em;
  border: 1px solid var(--white);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.a11y-size button {
  flex: 1;
  justify-content: center;
}

.a11y-panel button:hover {
  text-decoration: underline;
}

.a11y-panel [aria-disabled="true"] {
  border-style: dashed;
  text-decoration: none;
  cursor: default;
}

/* Gold fill with black text (11.2:1) plus a tick, so "on" doesn't rely on colour alone. */
.a11y-panel [aria-pressed]::before {
  content: "";
  width: 6px;
  height: 12px;
  margin: -4px 4px 0;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.a11y-panel [aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.a11y-panel [aria-pressed="true"]::before {
  border-color: currentColor;
}
