/* =====================================================================
   styles.css: the one shared stylesheet for every page.

   Written "mobile first": the rules at the top are for phones.
   Media queries further down (@media (min-width: ...)) add changes
   for bigger screens on top of them.

   Sections:
     1. Variables (colors, fonts, sizes)
     2. Base (page defaults)
     3. Text
     4. Layout helpers
     5. Buttons
     6. Skip link + keyboard focus
     7. Header + menu
     8. Footer
     9. Sticky Call / Text bar (phones)
    10. Screen sizes (media queries)
    11. Reduced motion
    12. Home page sections (each with its own screen-size rules)
    13. Inner pages (Services, and parts shared by later pages)
    14. Our Work gallery
    15. About page + [[ASK DEVEN]] placeholders
    16. Contact page
    17. Support pages (thank you, 404, privacy, review)
    18. Quote form
   ===================================================================== */


/* ---------- 1. Variables ----------
   A CSS variable stores a value once so every rule can reuse it:
   define it as --name: value; and use it as var(--name).
   Change a color here and it changes everywhere on the site. */
:root {
  /* Colors from Deven's logo (see context/design.md) */
  --color-black: #0b0d0c;      /* header, hero, footer, dark sections */
  --color-charcoal: #1a1f1c;   /* cards on dark sections */
  --color-grey: #f2f4f3;       /* light sections, form background */
  --color-mid-grey: #4a524d;   /* secondary text on light backgrounds */
  --color-deep-green: #0f5a24; /* links + accents on LIGHT backgrounds */
  --color-green: #3fae2a;      /* buttons + links on DARK backgrounds */
  --color-lime: #90df07;       /* hover states and small sparkle accents only */
  --color-silver: #c8d0cb;     /* borders, dividers, quieter text on dark */
  --color-white: #ffffff;

  /* Contrast rules from our check (WCAG AA = at least 4.5 : 1 for normal text):
     - Buttons: BLACK text on green (6.8 : 1). White on green fails (2.9 : 1).
     - Links on light backgrounds: deep green (7.6 : 1). Bright green fails (2.6 : 1). */

  /* Fonts. The names after the first are backups if Google Fonts doesn't load. */
  --font-heading: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  /* Sizes */
  --container-width: 1200px; /* content never gets wider than this */
  --space: 1rem;             /* 1rem = the base text size, usually 16 px */
  --radius: 8px;             /* rounded corners */
  --tap-size: 48px;          /* minimum height for anything you tap */
  --mobile-bar-height: 60px; /* height of the sticky Call / Text bar */
}


/* ---------- Fonts ----------
   @font-face tells the browser: "the font named Inter is in this file".
   Both are variable fonts: one file holds every weight in the range given.
   font-display: swap = show text right away in a backup font, then swap in ours. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}


/* ---------- 2. Base ---------- */

/* Make width/height include padding and borders: much easier to size things */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17 px: easy to read on phones */
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  /* Leave room at the bottom so the sticky phone bar never covers the footer */
  padding-bottom: var(--mobile-bar-height);
}

/* Images never spill outside their box, and keep their shape when they shrink */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links on light backgrounds: deep green, underlined so they're clearly links */
a {
  color: var(--color-deep-green);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}


/* ---------- 3. Text ---------- */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* clamp(smallest, preferred, largest): text grows with the screen width
   but never goes below the smallest size or above the largest. */
h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem);
}
h2 {
  font-size: clamp(1.4rem, 2vw + 1rem, 2.25rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}


/* ---------- 4. Layout helpers ---------- */

/* Centers content and keeps it from touching the screen edges */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;       /* "inline" = left and right */
  padding-inline: var(--space);
}

/* Hides text from the eye but keeps it for screen readers
   (e.g. a button that only shows an icon still gets read out). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keeps something on one line, e.g. a phone number that would otherwise break at a hyphen */
.nowrap {
  white-space: nowrap;
}

/* A full-width band of the page. Add .section-dark or .section-light for color. */
.section {
  padding-block: calc(var(--space) * 3); /* "block" = top and bottom */
}

.section-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.section-dark a:not(.btn) {
  color: var(--color-green); /* bright green reads well on black */
}
.section-dark a:not(.btn):hover {
  color: var(--color-lime);
}

.section-light {
  background: var(--color-grey);
}


/* ---------- 5. Buttons ----------
   Usage: <a class="btn btn-primary">  or  <a class="btn btn-outline"> */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em; /* space between words split across tags, e.g. "Call" + <span>number</span> */
  min-height: var(--tap-size); /* big enough for a thumb */
  padding: 0.6rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap; /* keep button labels on one line */
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* Main action: bright green with BLACK text (passes contrast) */
.btn-primary {
  background: var(--color-green);
  color: var(--color-black);
}
.btn-primary:hover {
  background: var(--color-lime);
}

/* Second action: see-through with a silver edge, for dark backgrounds */
.btn-outline {
  background: transparent;
  border-color: var(--color-silver);
  color: var(--color-white);
}
.btn-outline:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
}

/* For light backgrounds, where a third green button would be too much:
   black with white text (19.5 : 1), turning deep green on hover */
.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-deep-green);
}


/* ---------- 6. Skip link + keyboard focus ---------- */

/* Hidden above the top of the screen until it gets keyboard focus (Tab key) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-lime);
  color: var(--color-black);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: var(--space);
}

/* A clear lime ring around whatever the keyboard is on.
   :focus-visible only shows it for keyboard users, not mouse clicks. */
:focus-visible {
  outline: 3px solid var(--color-lime);
  outline-offset: 3px;
}


/* ---------- 7. Header + menu ---------- */

.site-header {
  background: var(--color-black);
  color: var(--color-white);
  border-bottom: 1px solid var(--color-charcoal);
}

/* Flexbox lines the header items up in a row. "wrap" lets the menu
   drop onto its own full-width line on phones. */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem var(--space);
  padding-block: 0.5rem;
}

/* Logo + business name */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand-name span {
  display: block; /* puts "Cleaning & Handyman / Services, LLC" under "Reynolds" */
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-green);
}

/* Menu button (phones). Hidden unless JavaScript is running:
   main.js adds class="js" to <html> (Step 9). Without JavaScript the menu
   simply stays open, so it always works. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-size);
  padding: 0 0.9rem;
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-silver);
  border-radius: var(--radius);
  font: 700 0.95rem var(--font-heading);
  cursor: pointer;
}
.js .menu-toggle {
  display: inline-flex;
}

/* The "hamburger" icon: one bar plus two more drawn with ::before and ::after */
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-toggle-bars {
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before {
  top: -6px;
}
.menu-toggle-bars::after {
  top: 6px;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  transition: transform 0.2s;
}

/* When the menu is open (main.js sets aria-expanded="true"), turn ☰ into ✕:
   hide the middle bar and tilt the other two into a cross. */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu links: a full-width stacked list on phones */
.site-nav {
  flex-basis: 100%; /* take a whole line below the logo */
}
.js .site-nav {
  display: none; /* closed until the button opens it */
}
.js .site-nav.is-open {
  display: block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap-size);
  padding-inline: 0.5rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap; /* "Our Work" stays on one line */
  text-decoration: none;
  border-bottom: 1px solid var(--color-charcoal);
}
.site-nav a:hover {
  color: var(--color-lime);
}
/* The page you're on: green text with a green bar on the left */
.site-nav a[aria-current="page"] {
  color: var(--color-green);
  box-shadow: inset 4px 0 0 var(--color-green);
}

/* The header's Call / Quote buttons are hidden on phones:
   the sticky bar at the bottom of the screen does that job there. */
.header-actions {
  display: none;
}


/* ---------- 8. Footer ---------- */

.site-footer {
  background: var(--color-black);
  color: var(--color-silver);
  padding-top: calc(var(--space) * 3);
  border-top: 4px solid var(--color-deep-green);
}
.site-footer h2 {
  font-size: 1.05rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer a:not(.btn) {
  color: var(--color-green);
  overflow-wrap: anywhere; /* lets the long email address wrap on small phones */
}
.site-footer a:not(.btn):hover {
  color: var(--color-lime);
}
/* Taller tap areas for footer links (WCAG 2.2 asks for at least 24 x 24 px).
   inline-block + padding makes the tappable box taller without moving the text. */
.site-footer a:not(.btn),
.simple-list a,
.about-review > p > a {
  display: inline-block;
  padding-block: 0.3rem;
}

/* CSS Grid: one column on phones; more columns on bigger screens (section 10) */
.footer-grid {
  display: grid;
  gap: calc(var(--space) * 2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: inline-block;
  padding-block: 0.35rem; /* taller tap area */
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--space);
  margin-top: calc(var(--space) * 2);
  padding-block: var(--space);
  border-top: 1px solid var(--color-charcoal);
  font-size: 0.9rem;
}
.footer-bottom p {
  margin: 0;
}


/* ---------- 9. Sticky Call / Text bar (phones) ----------
   position: fixed pins it to the bottom of the screen while the page scrolls. */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50; /* sits on top of the page content */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* three equal buttons */
  height: var(--mobile-bar-height);
  background: var(--color-black);
  border-top: 2px solid var(--color-green);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.25rem;
  text-align: center; /* if "Get a Quote" wraps on a tiny phone, keep it centered */
  line-height: 1.15;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta a + a {
  border-left: 1px solid var(--color-charcoal); /* thin divider between buttons */
}
/* The last button (Get a Quote) stands out in green */
.mobile-cta a:last-child {
  background: var(--color-green);
  color: var(--color-black);
}


/* ---------- 10. Screen sizes ----------
   A media query wraps rules that only apply when the condition is true.
   (min-width: 600px) = "when the screen is at least 600 px wide". */

/* Small phones (under 380 px): show only the ☰ icon on the Menu button so the
   full business name still fits. The word "Menu" stays for screen readers. */
@media (max-width: 379px) {
  .menu-toggle {
    padding: 0;
    width: var(--tap-size);
    justify-content: center;
  }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Tablets and up */
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* two columns */
  }
}

/* Laptops and desktops */
@media (min-width: 900px) {
  /* No sticky bar on big screens, so no space needed for it */
  body {
    padding-bottom: 0;
  }
  .mobile-cta {
    display: none;
  }

  /* Header: logo, menu and buttons all on one line */
  .header-inner {
    flex-wrap: nowrap;
  }
  .brand img {
    width: 72px;
    height: 72px;
  }
  .js .menu-toggle {
    display: none; /* no menu button needed: the links fit */
  }
  .site-nav,
  .js .site-nav {
    display: block;
    flex-basis: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }
  .site-nav a {
    padding-inline: 0.75rem;
    border-bottom: 0;
    border-radius: var(--radius);
  }
  /* Current page: green line under the link instead of on the left */
  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--color-green);
  }
  .header-actions {
    display: flex;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr); /* four columns */
  }
}

/* Small laptops (900–1199 px): the header is tight. The Call button shows just
   "Call" (the number stays for screen readers, and it's in the hero and footer),
   and the menu links sit a little closer together. */
@media (min-width: 900px) and (max-width: 1199px) {
  .call-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-nav a {
    padding-inline: 0.5rem;
  }
}


/* ---------- 11. Reduced motion ----------
   Some people turn on "reduce motion" in their phone or computer settings
   (motion can make them dizzy). Respect it by turning animations off. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- 12. Home page sections ---------- */

/* --- Bigger button, for the hero --- */
.btn-large {
  min-height: 56px;
  padding: 0.8rem 1.5rem;
  font-size: 1.05rem;
}

/* --- Hero ---
   Black background with a soft green glow (like the logo's light). A
   radial-gradient is a circle of color that fades out, drawn by CSS (no image file). */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(63, 174, 42, 0.28), transparent 55%),
    var(--color-black);
  padding-block: calc(var(--space) * 2.5) calc(var(--space) * 3);
}

/* Small green label above the headline */
.hero-kicker {
  margin-bottom: 0.75rem;
  color: var(--color-green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-lead {
  max-width: 38em; /* long lines are hard to read: keep them to about 70 characters */
  color: var(--color-silver);
  font-size: 1.1rem;
}

/* Trust points: a green check mark before each one, drawn with ::before */
.hero-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 600;
}
.hero-points li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--color-green);
  font-weight: 800;
}

/* Buttons: stacked full-width on phones (easy thumb targets) */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-text-link {
  margin: 1rem 0 0;
  color: var(--color-silver);
}

/* The big logo is hidden on phones */
.hero-logo {
  display: none;
}

/* Tablets and up: buttons side by side */
@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Desktops: text on the left, big logo on the right */
@media (min-width: 900px) {
  .hero {
    padding-block: calc(var(--space) * 4);
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px; /* text takes the rest, logo gets 420 px */
    align-items: center;
    gap: calc(var(--space) * 3);
  }
  .hero-logo {
    display: block;
  }
  .hero-logo img {
    width: 100%;
    border-radius: 50%; /* round off the logo's square black corners into the background */
  }
}

/* --- Section intro + bottom button (used by several sections) --- */
.section-intro {
  max-width: 38em;
  margin-bottom: 2rem;
  color: var(--color-mid-grey);
  font-size: 1.1rem;
}
.section-cta {
  margin: 2rem 0 0;
  text-align: center;
}

/* --- Services overview ---
   Two cards (Cleaning, Handyman): stacked on phones, side by side on desktops. */
.service-groups {
  display: grid;
  gap: calc(var(--space) * 1.5);
}

.service-group {
  background: var(--color-white);
  border-radius: var(--radius);
  border-top: 4px solid var(--color-green);
  overflow: hidden; /* keeps the photo inside the rounded corners */
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
}

/* Photo + caption. The caption sits on the photo's bottom-left corner. */
.service-photo {
  position: relative;
  margin: 0;
}
.service-photo img {
  width: 100%;
  aspect-ratio: 4 / 3; /* every card photo gets the same shape... */
  object-fit: cover;   /* ...and is cropped to fit instead of squished */
}
.service-photo figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(11, 13, 12, 0.85);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

.service-group-body {
  padding: 1.25rem 1.25rem 0.5rem;
}

/* Each service: bold name on its own line, short description under it */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-grey);
  color: var(--color-mid-grey);
}
.service-list strong {
  display: block;
  color: var(--color-black);
  font-family: var(--font-heading);
}

@media (min-width: 900px) {
  .service-groups {
    grid-template-columns: 1fr 1fr;
  }
}

/* Intro text on dark sections: silver instead of mid grey (mid grey is too dark on black) */
.section-intro-dark {
  color: var(--color-silver);
}

/* --- Before / after pair ---
   Two photos side by side, even on phones (they're tall photos, so half the
   screen each works). Capped at 760 px wide so they don't get huge on desktops. */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.ba-photo {
  position: relative;
  margin: 0;
}
.ba-photo img {
  width: 100%;
  border-radius: var(--radius);
}

/* "Before" / "After" tag in the top-left corner of each photo */
.ba-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.ba-label-after {
  background: var(--color-green);
  color: var(--color-black);
}

@media (min-width: 600px) {
  .before-after {
    gap: 1rem;
  }
}

/* --- Reviews ---
   White cards with a big green quotation mark. One column on phones, two on desktops.
   align-items: start lets each card be as tall as its own text (Sur's is much longer). */
.reviews {
  display: grid;
  gap: calc(var(--space) * 1.5);
  align-items: start;
}

.review {
  position: relative;
  margin: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-green);
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
}

/* The big quotation mark, drawn by CSS (decoration only, so screen readers skip it) */
.review::before {
  content: "\201C"; /* the code for a curly opening quote mark */
  position: absolute;
  top: 0.25rem;
  left: 1.25rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-deep-green);
}

.review blockquote {
  margin: 0 0 1rem;
}
.review blockquote p {
  margin: 0;
  font-size: 1.05rem;
}

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
.review-name {
  font-family: var(--font-heading);
  font-weight: 800;
}
.review-source {
  color: var(--color-mid-grey);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .reviews {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Service area + Facebook --- */
.area-social {
  display: grid;
  gap: calc(var(--space) * 3);
}

/* Counties as rounded "chips": easy to scan */
.county-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.county-list li {
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-green);
  border-radius: 999px; /* a very big radius = fully rounded ends */
  font-family: var(--font-heading);
  font-weight: 700;
}

.area-note {
  color: var(--color-silver);
}

/* Facebook card: QR code beside the text and button */
.facebook-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-charcoal);
  border-radius: var(--radius);
}
/* The text column: at least 220 px wide, so on narrow phones it drops below the QR code */
.facebook-text {
  flex: 1 1 220px;
}
.facebook-box h2 {
  font-size: 1.4rem;
}
.facebook-box p {
  color: var(--color-silver);
}

/* White frame around the QR code: scanners need a light border ("quiet zone") */
.facebook-qr {
  width: 150px;
  padding: 8px;
  background: var(--color-white);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .area-social {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* --- Final call-to-action band ---
   Deep green background with white text (8.4 : 1 contrast). */
.cta-band {
  background: var(--color-deep-green);
  color: var(--color-white);
  text-align: center;
}
.cta-inner {
  max-width: 760px;
}
.cta-inner p {
  font-size: 1.1rem;
}

/* Inside this band only: the main button turns lime, because bright green
   barely stands out on deep green (2.9 : 1) while lime does (5.1 : 1). */
.cta-band .btn-primary {
  background: var(--color-lime);
}
.cta-band .btn-primary:hover {
  background: var(--color-white);
}
.cta-band .btn-outline {
  border-color: var(--color-white);
}

/* Buttons: stacked on phones, side by side (centered) from 600 px */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-text-link {
  margin: 1rem 0 0;
}
.cta-text-link a {
  color: var(--color-white);
  font-weight: 700;
}
.cta-text-link a:hover {
  color: var(--color-lime);
}


/* ---------- 13. Inner pages ---------- */

/* --- Page hero: a shorter version of the Home hero, for every other page --- */
.page-hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(63, 174, 42, 0.25), transparent 50%),
    var(--color-black);
  padding-block: calc(var(--space) * 2.5);
}

/* Jump links: pill-shaped links that scroll to parts of the same page */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-size);
  padding: 0 1.1rem;
  border: 2px solid var(--color-green);
  border-radius: 999px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}
.jump-links a:hover {
  background: var(--color-green);
  color: var(--color-black);
}

/* When a jump link scrolls to a section, leave a little space above its heading */
[id] {
  scroll-margin-top: 1rem;
}
/* Smooth scrolling for jump links (turned off for "reduce motion" in section 11) */
html {
  scroll-behavior: smooth;
}

/* --- Trust bar: a thin green strip of confirmed facts --- */
.trust-bar {
  background: var(--color-green);
  color: var(--color-black);
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding-block: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}
.trust-bar li::before {
  content: "✓";
  margin-right: 0.35rem;
}

/* --- Service cards: 1 column on phones, 2 on tablets, 4 on desktops --- */
.service-cards {
  display: grid;
  gap: calc(var(--space) * 1.25);
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border-top: 4px solid var(--color-green);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
}
.service-card-body {
  padding: 1.25rem;
}
.service-card-body h3 {
  margin-bottom: 0.4rem;
}
.service-card-body p {
  margin: 0;
  color: var(--color-mid-grey);
}
/* On the white Handyman section, give cards a light grey edge so they still stand out */
.section:not(.section-light):not(.section-dark) .service-card {
  border: 1px solid var(--color-grey);
  border-top: 4px solid var(--color-green);
}

/* --- Photo strip: three photos in a row, with one caption for all of them --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: calc(var(--space) * 2);
}
.photo-strip-item {
  margin: 0;
}
.photo-strip-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-strip-caption {
  margin: 0.75rem 0 0;
  color: var(--color-mid-grey);
  font-size: 0.95rem;
}

/* --- Residential / Commercial cards --- */
.audience {
  display: grid;
  gap: calc(var(--space) * 1.25);
}
.audience-card {
  padding: 1.5rem;
  background: var(--color-charcoal);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius);
}
.audience-card h3 {
  color: var(--color-green);
}
.audience-card p {
  margin: 0;
  color: var(--color-silver);
}

/* --- Numbered steps ---
   CSS counters number the steps automatically (1, 2, 3) and show them in green circles. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--space) * 1.25);
  counter-reset: step; /* start a counter named "step" at 0 */
}
.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
  counter-increment: step; /* add 1 for each step */
}
.steps li::before {
  content: counter(step); /* show the counter's number */
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 800;
}
.steps h3 {
  margin-bottom: 0.3rem;
}
.steps p {
  margin: 0;
  color: var(--color-mid-grey);
}

@media (min-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
  .audience {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .page-hero {
    padding-block: calc(var(--space) * 3.5);
  }
  .service-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------- 14. Our Work gallery ---------- */

/* One job = heading + short description + photos */
.job + .job {
  margin-top: calc(var(--space) * 3);
  padding-top: calc(var(--space) * 3);
  border-top: 1px solid var(--color-silver);
}
.job-header {
  margin-bottom: 1.25rem;
}
.job-header h3 {
  font-size: 1.35rem;
}
.job-header p {
  margin: 0;
  color: var(--color-mid-grey);
}
.job-count {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.5rem;
  background: var(--color-grey);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-light .job-count {
  background: var(--color-white);
}

/* Photo grid: 2 columns on phones, 3 on tablets, 4 on desktops.
   Every thumbnail is cropped to a square so the rows line up neatly;
   tapping one opens the whole photo. */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.gallery-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s;
}
/* A gentle zoom when you hover over a thumbnail (mouse users only) */
.gallery-link:hover img {
  transform: scale(1.04);
}
/* The before/after pairs on this page keep the photo's real shape */
.ba-photo .gallery-link img {
  aspect-ratio: auto;
}

/* "Before" / "After" tags on grid photos */
.photo-tag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.1rem 0.5rem;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.photo-tag-after {
  background: var(--color-green);
  color: var(--color-black);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Before / after slider ---
   Hidden unless JavaScript is running (the photo grid below always shows every photo). */
.ba-slider {
  display: none;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.js .ba-slider {
  display: block;
}

/* The frame: both photos are stacked inside it, same size, same spot */
.ba-slider-frame {
  position: relative;
  aspect-ratio: 3 / 4; /* these photos are tall (portrait) */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-black);
}
.ba-slider-after,
.ba-slider-before {
  position: absolute;
  inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
}
.ba-slider-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The "before" photo is cut off on the right. clip-path: inset(top right bottom left)
   hides that much of each side. At --position: 30%, it hides 70% from the right,
   so only the left 30% of "before" shows and the rest is "after" underneath. */
.ba-slider-before {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

/* Put the "After" tag in the top-right corner */
.ba-slider-tag-after {
  left: auto;
  right: 0.4rem;
}

/* The white line + round green handle that follows the cut */
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  margin-left: -2px; /* center the line on the cut */
  background: var(--color-white);
  pointer-events: none; /* clicks go "through" it to the range control */
}
.ba-slider-handle::after {
  content: "\2039\00a0\203A"; /* the arrows ‹ › with a space between */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center the circle on the line */
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green);
  border: 3px solid var(--color-white);
  color: var(--color-black);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* The real control: stretched over the whole photo and fully see-through */
.ba-slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize; /* left-right arrows cursor */
  touch-action: pan-y; /* a vertical swipe still scrolls the page on phones */
}

/* Keyboard users: when the slider has focus, ring the handle in lime */
.ba-slider:has(.ba-slider-range:focus-visible) .ba-slider-handle::after {
  outline: 3px solid var(--color-lime);
  outline-offset: 3px;
}

.ba-slider-hint {
  margin: 0.6rem 0 0;
  text-align: center;
  color: var(--color-mid-grey);
  font-size: 0.9rem;
}

/* --- Photo viewer (lightbox) ---
   A full-screen dark <dialog>; the photo is centered and never taller or wider than the screen. */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4rem 0.5rem 1.5rem;
  border: 0;
  background: rgba(11, 13, 12, 0.96);
  color: var(--color-white);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Stop the page behind from scrolling while the viewer is open */
html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lightbox-img {
  width: auto;
  max-width: min(100%, 1200px);
  max-height: calc(100dvh - 10rem); /* dvh = the screen height a phone actually shows */
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  max-width: 60ch;
  margin-top: 0.75rem;
  padding-inline: 0.5rem;
  color: var(--color-silver);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-count {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  margin: 0;
  color: var(--color-silver);
  font-size: 0.9rem;
}

/* Round buttons: close (top right), previous / next (middle of each side) */
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--tap-size);
  height: var(--tap-size);
  padding: 0;
  border: 2px solid var(--color-silver);
  border-radius: 50%;
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
}
.lightbox-close {
  top: 0.6rem;
  right: 0.6rem;
  font-size: 1.2rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 0.5rem;
}
.lightbox-next {
  right: 0.5rem;
}
/* On phones the arrows sit over the photo's edges, so make them a bit see-through */
@media (max-width: 599px) {
  .lightbox-prev,
  .lightbox-next {
    background: rgba(26, 31, 28, 0.75);
  }
}
@media (min-width: 900px) {
  .lightbox {
    padding-inline: 5rem; /* room for the arrows beside the photo */
  }
  .lightbox-prev {
    left: 1.25rem;
  }
  .lightbox-next {
    right: 1.25rem;
  }
}


/* ---------- 15. About page + [[ASK DEVEN]] placeholders ---------- */

/* Placeholder boxes for facts we still need from Deven.
   Loud on purpose (dashed yellow) so nobody can miss one before launch. */
.ask-deven {
  padding: 1rem 1.25rem;
  background: #fff8d6;
  border: 2px dashed #b38600;
  border-radius: var(--radius);
  color: #4d3a00;
  font-weight: 600;
}

/* Photo spot + text: stacked on phones, side by side on desktops */
.about-intro {
  display: grid;
  gap: calc(var(--space) * 2);
  align-items: start;
}
/* Deven's photo: cropped a little shorter on phones so the text isn't pushed too far down */
.about-photo {
  margin: 0;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%; /* keep faces in view when cropping */
  border-radius: var(--radius);
  border-bottom: 4px solid var(--color-green);
}
.about-photo figcaption {
  margin-top: 0.5rem;
  color: var(--color-mid-grey);
  font-size: 0.9rem;
  text-align: center;
}

/* Deven's bio, in his own words */
.owner-bio p {
  font-size: 1.1rem;
}
.owner-signature {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-deep-green);
}

/* Deven's own words, shown big */
.owner-quote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid var(--color-green);
}
.owner-quote blockquote {
  margin: 0;
}
.owner-quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}
.owner-quote figcaption {
  margin-top: 0.5rem;
  color: var(--color-mid-grey);
}

/* "What You Can Expect": cards with a green check */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--space) * 1.25);
}
.values li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
}
.values li::before {
  content: "✓";
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  color: var(--color-deep-green);
  font-weight: 800;
  font-size: 1.3rem;
}
.values h3 {
  margin-bottom: 0.3rem;
}
.values p {
  margin: 0;
  color: var(--color-mid-grey);
}

/* Single review: keep it a comfortable reading width */
.about-review {
  max-width: 760px;
}
.about-review .review {
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 340px 1fr;
  }
  .about-photo img {
    aspect-ratio: 3 / 4; /* the whole photo on desktops */
  }
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------- 16. Contact page ---------- */

/* grid-template-areas: name each block, then "draw" the layout with those names.
   Phones: one column, in this order. */
.contact-layout {
  display: grid;
  gap: calc(var(--space) * 2);
  grid-template-areas:
    "quick"
    "form"
    "details";
}
.contact-quick   { grid-area: quick; }
.contact-form-area { grid-area: form; }
.contact-details { grid-area: details; }

/* Big, stacked contact buttons */
.contact-buttons {
  display: grid;
  gap: 0.75rem;
}
.contact-buttons .btn {
  width: 100%;
  overflow-wrap: anywhere; /* the email address can wrap on very small phones */
  white-space: normal;
}

/* The quote area: a white card */
.contact-form-area {
  padding: 1.5rem;
  background: var(--color-white);
  border-top: 4px solid var(--color-green);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(11, 13, 12, 0.08);
}

/* Temporary note for something still being built (removed when the real thing is added) */
.dev-note {
  padding: 1rem 1.25rem;
  background: var(--color-grey);
  border: 2px dashed var(--color-mid-grey);
  border-radius: var(--radius);
}
.dev-note p {
  margin: 0;
}

/* Hours, area, mailing address. <address> is italic by default; we don't want that. */
.contact-details {
  font-style: normal;
  display: grid;
  gap: 1.25rem;
}
.contact-details h3 {
  margin-bottom: 0.25rem;
}
.contact-details p {
  margin: 0;
}
.contact-small {
  margin-top: 0.35rem !important;
  color: var(--color-mid-grey);
  font-size: 0.9rem;
}

/* Center the Facebook card */
.contact-facebook {
  max-width: 640px;
}

/* Desktops: form on the left (spanning both rows), buttons + details on the right */
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 360px;
    grid-template-areas:
      "form quick"
      "form details";
    grid-template-rows: auto 1fr; /* row 1 = just the buttons' height; row 2 takes the rest */
    align-items: start;
    column-gap: calc(var(--space) * 3);
  }
}


/* ---------- 17. Support pages (thank you, 404, privacy, review) ---------- */

/* Narrow, centered column for short pages */
.simple-page {
  max-width: 720px;
}
.simple-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.simple-links {
  margin-top: 1.25rem;
  color: var(--color-mid-grey);
}
.simple-list {
  padding-left: 1.25rem;
}
.simple-list li {
  margin-bottom: 0.6rem;
}

/* Big green check on the thank-you page */
.big-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 1rem;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-black);
  font-size: 2rem;
  font-weight: 800;
}

/* Long reading text (privacy page): comfortable line length and spacing */
.prose {
  max-width: 70ch; /* "ch" = the width of one character: about 70 characters per line */
}
.prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose-updated {
  color: var(--color-mid-grey);
  font-size: 0.95rem;
}

/* Review page: steps in one column, then the button */
.steps-single {
  grid-template-columns: 1fr !important;
}
.review-button {
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .simple-actions {
    flex-direction: row;
  }
}


/* ---------- 18. Quote form ---------- */

.quote-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

/* Two fields side by side on wider screens (name + phone, email + town) */
.form-row {
  display: grid;
  gap: 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}
.form-field label,
.form-photos legend {
  font-weight: 700;
}
.form-optional {
  font-weight: 400;
  color: var(--color-mid-grey);
}
.form-hint {
  margin: 0;
  color: var(--color-mid-grey);
  font-size: 0.9rem;
}

/* Text boxes, the drop-down and the big text area */
.quote-form input:not([type="file"]),
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: var(--tap-size);
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--color-silver);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-black);
  font: inherit;
  font-size: 1rem; /* 16 px or more stops iPhones zooming in when a field is tapped */
}
.quote-form textarea {
  resize: vertical;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--color-deep-green);
  outline: 3px solid var(--color-lime);
  outline-offset: 1px;
}

/* :user-invalid = a field the visitor has touched that still isn't valid
   (e.g. left a required field empty, or typed half an email address). */
.quote-form :user-invalid {
  border-color: #b3261e;
}

/* File pickers: one per photo, in a light box */
.form-photos {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  border: 2px dashed var(--color-silver);
  border-radius: var(--radius);
}
.form-photos legend {
  padding: 0 0.35rem;
}
.quote-form input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
}
.quote-form input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 0.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-black);
  color: var(--color-white);
  font: 700 0.9rem var(--font-heading);
  cursor: pointer;
}

.form-submit {
  width: 100%;
}
.form-privacy {
  text-align: center;
}

/* The spam trap: moved off-screen so people never see it (robots still "see" it in the HTML) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Photo previews (added by main.js after a photo is picked) --- */
.photo-preview {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--color-grey);
  border-radius: var(--radius);
}
.photo-preview[hidden] {
  display: none;
}
.photo-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.photo-preview img[hidden] {
  display: none;
}
.photo-status {
  margin: 0;
  font-size: 0.9rem;
}
/* With no thumbnail (e.g. an error message), let the text use the photo's column too */
.photo-preview:has(img[hidden]) .photo-status {
  grid-column: 1 / 3;
}
.photo-remove {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 2px solid var(--color-mid-grey);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-black);
  font: 700 0.85rem var(--font-heading);
  cursor: pointer;
}
.photo-remove[hidden] {
  display: none;
}
.photo-remove:hover {
  border-color: var(--color-deep-green);
}

/* Whole-form message (too big, still preparing) */
.form-status:empty {
  display: none;
}
.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fde8e7;
  border-left: 4px solid #b3261e;
  border-radius: var(--radius);
  color: #5f1410;
  font-weight: 600;
}

/* Send button while disabled ("Preparing photos…" / "Sending…") */
.form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
