/* =========================================================
   Your Local Handyman — Site stylesheet
   Built from DESIGN.md tokens + globals.css
   ========================================================= */

/* ---------- Fonts (local woff2, no external CDN) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals */
  --color-white: #ffffff;
  --color-neutral-lightest: #f2f2f2;
  --color-neutral-lighter: #d9dad9;
  --color-neutral-light: #b3b5b3;
  --color-neutral: #808481;
  --color-neutral-dark: #4d524f;
  --color-neutral-darker: #1b211d;
  --color-neutral-darkest: #020904;

  /* Science Blue */
  --color-science-blue-lightest: #e6eff8;
  --color-science-blue-lighter: #cee0f2;
  --color-science-blue-light: #5393d4;
  --color-science-blue: #0a66c2;
  --color-science-blue-dark: #08519b;
  --color-science-blue-darker: #04284d;
  --color-science-blue-darkest: #031e3a;

  /* Burning Orange */
  --color-burning-orange-lightest: #fff0ea;
  --color-burning-orange-lighter: #ffe1d6;
  --color-burning-orange-light: #ff9771;
  --color-burning-orange: #ff6b35;
  --color-burning-orange-dark: #cc552a;
  --color-burning-orange-darker: #662a15;
  --color-burning-orange-darkest: #4c200f;

  /* Mountain Meadow */
  --color-mountain-meadow-lightest: #e8f6ee;
  --color-mountain-meadow-lighter: #d2eedd;
  --color-mountain-meadow-light: #62c38a;
  --color-mountain-meadow: #1faa59;
  --color-mountain-meadow-dark: #188847;
  --color-mountain-meadow-darker: #0c4423;
  --color-mountain-meadow-darkest: #09331a;

  /* Type scale — mobile defaults */
  --text-h1: 2.5rem;
  --text-h2: 2.25rem;
  --text-h3: 2rem;
  --text-h4: 1.5rem;
  --text-h5: 1.25rem;
  --text-h6: 1.125rem;
  --text-large: 1.125rem;
  --text-medium: 1rem;
  --text-regular: 0.875rem;
  --text-small: 0.75rem;
  --text-tiny: 0.625rem;

  /* Radii */
  --radius-button: 0.375rem;   /* 6px */
  --radius-card: 0rem;
  --radius-badge: 0.25rem;     /* 4px (tagRadius) */
  --radius-form: 0.375rem;     /* 6px */
  --radius-image: 0rem;

  /* Spacing */
  --container-xxl: 80rem;

  /* Scheme defaults (overridden per section) */
  --color-scheme-background: var(--color-white);
  --color-scheme-foreground: var(--color-neutral-lightest);
  --color-scheme-text: var(--color-neutral-darkest);
  --color-scheme-border: rgba(2, 9, 4, 0.15);
  --color-scheme-accent: var(--color-science-blue);
  --color-scheme-btn-text: var(--color-white);
}

@media (min-width: 992px) {
  :root {
    --text-h1: 3.5rem;
    --text-h2: 3rem;
    --text-h3: 2.5rem;
    --text-h4: 2rem;
    --text-h5: 1.5rem;
    --text-h6: 1.25rem;
    --text-large: 1.25rem;
    --text-medium: 1.125rem;
    --text-regular: 1rem;
    --text-small: 0.875rem;
    --text-tiny: 0.75rem;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--text-medium);
  line-height: 1.5;
  color: var(--color-neutral-darkest);
  background: var(--color-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400; /* per DESIGN.md heading.fontWeight: 400 */
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); line-height: 1.3; }
h5 { font-size: var(--text-h5); line-height: 1.4; }
h6 { font-size: var(--text-h6); line-height: 1.4; }

.font-bold    { font-weight: 400; } /* DESIGN.md maps bold→400 for headings */
.font-semibold{ font-weight: 600; }
.text-h1 { font-size: var(--text-h1); }
.text-h2 { font-size: var(--text-h2); }
.text-h3 { font-size: var(--text-h3); }
.text-h4 { font-size: var(--text-h4); }
.text-h5 { font-size: var(--text-h5); }
.text-h6 { font-size: var(--text-h6); }
.text-large { font-size: var(--text-large); }
.text-medium { font-size: var(--text-medium); }
.text-small { font-size: var(--text-small); }
.text-tiny { font-size: var(--text-tiny); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-xxl);
  margin-inline: auto;
}
.section {
  padding-inline: 5%;
  padding-block: 4rem;
}
@media (min-width: 768px) { .section { padding-block: 6rem; } }
@media (min-width: 992px) { .section { padding-block: 7rem; } }

.section-tight {
  padding-inline: 5%;
  padding-block: 3rem;
}
@media (min-width: 768px) { .section-tight { padding-block: 4rem; } }
@media (min-width: 992px) { .section-tight { padding-block: 5rem; } }

/* ---------- Color schemes ---------- */
.scheme-1 {
  --color-scheme-background: var(--color-science-blue-lightest);
  --color-scheme-foreground: var(--color-science-blue-lighter);
  --color-scheme-text: var(--color-neutral-darkest);
  --color-scheme-border: rgba(2, 9, 4, 0.15);
  --color-scheme-accent: var(--color-science-blue);
  background: var(--color-scheme-background);
  color: var(--color-scheme-text);
}
.scheme-2 {
  --color-scheme-background: var(--color-white);
  --color-scheme-foreground: var(--color-neutral-lightest);
  --color-scheme-text: var(--color-neutral-darkest);
  --color-scheme-border: rgba(2, 9, 4, 0.15);
  --color-scheme-accent: var(--color-science-blue);
  background: var(--color-scheme-background);
  color: var(--color-scheme-text);
}
.scheme-3 {
  --color-scheme-background: var(--color-neutral-lightest);
  --color-scheme-foreground: var(--color-white);
  --color-scheme-text: var(--color-neutral-darkest);
  --color-scheme-border: rgba(2, 9, 4, 0.15);
  --color-scheme-accent: var(--color-science-blue);
  background: var(--color-scheme-background);
  color: var(--color-scheme-text);
}
.scheme-4 {
  --color-scheme-background: var(--color-science-blue-darker);
  --color-scheme-foreground: var(--color-science-blue-darkest);
  --color-scheme-text: var(--color-white);
  --color-scheme-border: rgba(255, 255, 255, 0.2);
  --color-scheme-accent: var(--color-white);
  background: var(--color-scheme-background);
  color: var(--color-scheme-text);
}
.scheme-5 {
  --color-scheme-background: var(--color-science-blue-darkest);
  --color-scheme-foreground: var(--color-science-blue-darker);
  --color-scheme-text: var(--color-white);
  --color-scheme-border: rgba(255, 255, 255, 0.2);
  --color-scheme-accent: var(--color-white);
  background: var(--color-scheme-background);
  color: var(--color-scheme-text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-button);
  font-size: var(--text-medium);
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-regular); }
.btn-icon { gap: 0.5rem; }
.btn-icon svg { width: 1.1em; height: 1.1em; }

/* Primary (default) — solid science-blue */
.btn-primary {
  background: var(--color-science-blue);
  color: var(--color-white);
  border-color: var(--color-science-blue);
}
.btn-primary:hover { background: var(--color-science-blue-dark); border-color: var(--color-science-blue-dark); }

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: var(--color-scheme-text);
  border-color: var(--color-scheme-text);
}
.btn-secondary:hover { background: var(--color-scheme-text); color: var(--color-scheme-background); }

/* Alternate (for hero) — solid white over imagery */
.btn-alternate {
  background: var(--color-white);
  color: var(--color-neutral-darkest);
  border-color: var(--color-white);
}
.btn-alternate:hover { background: rgba(255,255,255,0.85); }

/* Secondary-alt — outlined white for hero */
.btn-secondary-alt {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary-alt:hover { background: var(--color-white); color: var(--color-neutral-darkest); }

/* Link button (inline arrow) */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-scheme-text);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-link svg { width: 1.15em; height: 1.15em; transition: transform 0.18s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* On dark schemes, default btn-primary still pops, secondary uses white border */
.scheme-4 .btn-secondary, .scheme-5 .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.scheme-4 .btn-secondary:hover, .scheme-5 .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-neutral-darkest);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-badge);
  font-size: var(--text-small);
  font-weight: 500;
  border: 1px solid var(--color-scheme-border);
  background: var(--color-scheme-foreground);
  color: var(--color-scheme-text);
}

/* ---------- Card ---------- */
.card {
  background: var(--color-scheme-background);
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 4px rgba(2, 9, 4, 0.04),
    0 12px 24px rgba(2, 9, 4, 0.08),
    0 24px 48px rgba(2, 9, 4, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow:
    0 4px 8px rgba(2, 9, 4, 0.06),
    0 18px 36px rgba(2, 9, 4, 0.12),
    0 32px 64px rgba(2, 9, 4, 0.08);
  transform: translateY(-3px);
}
/* Dark schemes get a lighter shadow so it doesn't disappear into the bg */
.scheme-4 .card, .scheme-5 .card {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.25);
}
.scheme-4 .card:hover, .scheme-5 .card:hover {
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.3);
}
.scheme-1 .card, .scheme-2 .card, .scheme-3 .card { background: var(--color-white); }
.scheme-4 .card, .scheme-5 .card { background: var(--color-scheme-foreground); }

.card-pad { padding: 1.5rem; }
@media (min-width: 768px) { .card-pad { padding: 2rem; } }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 0.125rem; }
.stars svg { width: 1.5rem; height: 1.5rem; color: var(--color-scheme-text); fill: currentColor; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.5rem; max-width: 32rem; }
.form-row-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.label { font-size: var(--text-regular); font-weight: 500; }

.input, .textarea, .select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-medium);
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-form);
  background: var(--color-white);
  color: var(--color-neutral-darkest);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-science-blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}
.textarea { min-height: 11.25rem; resize: vertical; }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem 1.5rem; padding: 0.5rem 0; }
.radio-item { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.radio-item input[type="radio"],
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 1rem; height: 1rem;
  border: 1px solid var(--color-scheme-border);
  background: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.radio-item input[type="radio"] { border-radius: 50%; }
.checkbox input[type="checkbox"] { border-radius: 2px; }
.radio-item input[type="radio"]:checked,
.checkbox input[type="checkbox"]:checked {
  background: var(--color-science-blue);
  border-color: var(--color-science-blue);
}
.radio-item input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-white);
}
.checkbox input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 3px; top: 0px; width: 5px; height: 9px;
  border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-regular); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 1rem; }
.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(2, 9, 4, 0.03),
    0 8px 16px rgba(2, 9, 4, 0.05);
}
.scheme-4 .accordion-item, .scheme-5 .accordion-item { background: var(--color-scheme-foreground); }
.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: var(--text-medium);
  font-weight: 500;
  text-align: left;
}
@media (min-width: 768px) { .accordion-trigger { padding: 1.25rem 1.5rem; } }
.accordion-trigger .icon {
  width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-scheme-text);
}
.accordion-item[data-state="open"] .accordion-trigger .icon { transform: rotate(45deg); }
.accordion-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--color-scheme-text);
}
.accordion-item[data-state="open"] .accordion-content { display: block; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4.5rem;
  padding-inline: 5%;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 4.5rem;
  gap: 1.5rem;
}
.navbar-logo img { height: 32px; width: auto; }
.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.navbar-links a, .navbar-links .dropdown-trigger {
  padding: 0.5rem 1rem;
  font-size: var(--text-medium);
  color: var(--color-scheme-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar-links a:hover, .navbar-links .dropdown-trigger:hover { opacity: 0.85; }
.navbar-actions { display: none; gap: 0.75rem; align-items: center; }
.navbar-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
}
.navbar-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--color-scheme-text);
  margin: 3px 0;
  transition: transform 0.2s ease, width 0.2s ease, opacity 0.2s ease;
}
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(-45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { width: 0; opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(45deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.dropdown[data-open="true"] .dropdown-trigger svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--color-scheme-background);
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-button);
  padding: 0.5rem;
  z-index: 50;
}
.dropdown[data-open="true"] .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 0.75rem; font-size: var(--text-medium); border-radius: 4px; }
.dropdown-menu a:hover { background: var(--color-scheme-foreground); }

@media (min-width: 992px) {
  .navbar { min-height: 4.5rem; }
  .navbar-inner { min-height: 4.5rem; }
  .navbar-links { display: flex; }
  .navbar-actions { display: flex; }
  .navbar-toggle { display: none; }
}

/* Mobile menu drawer */
.navbar-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-scheme-background);
  border-top: 1px solid var(--color-scheme-border);
  padding: 1rem 5% 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 998;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a { padding: 0.75rem 0; font-size: var(--text-medium); }
.navbar-mobile .dropdown { position: static; }
.navbar-mobile .dropdown-menu { position: static; padding: 0 0 0 1rem; border: none; background: none; }
.navbar-mobile .navbar-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.navbar-mobile .btn { width: 100%; }
@media (min-width: 992px) { .navbar-mobile { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-inline: 5%;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 100svh;
  max-height: 60rem;
  padding-block: 4rem;
}
@media (min-width: 768px) { .hero-inner { padding-block: 6rem; } }
@media (min-width: 992px) { .hero-inner { padding-block: 7rem; } }
.hero-content {
  max-width: 32rem;
  color: var(--color-white);
}
.hero-content h1 { color: var(--color-white); margin-bottom: 1.25rem; }
@media (min-width: 768px) { .hero-content h1 { margin-bottom: 1.5rem; } }
.hero-content p { color: var(--color-white); font-size: var(--text-medium); }
.hero-content .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 768px) { .hero-content .actions { margin-top: 2rem; } }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(2, 9, 4, 0.5);
}

/* Header for inner pages (no full-bleed image, just colored bg) */
.page-header {
  padding-inline: 5%;
  padding-block: 6rem 4rem;
}
@media (min-width: 768px) { .page-header { padding-block: 8rem 5rem; } }
@media (min-width: 992px) { .page-header { padding-block: 10rem 6rem; } }
.page-header h1 { margin-bottom: 1.5rem; }
.page-header .lead {
  font-size: var(--text-large);
  max-width: 48rem;
}
.page-header .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Section title ---------- */
.section-title {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 768px) { .section-title { margin-bottom: 4.5rem; } }
@media (min-width: 992px) { .section-title { margin-bottom: 5rem; } }
.section-title.left { text-align: left; margin-left: 0; }
.section-title h2 { margin-bottom: 1.25rem; }
@media (min-width: 768px) { .section-title h2 { margin-bottom: 1.5rem; } }

/* ---------- Grids ---------- */
.grid { display: grid; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* ---------- Project card ---------- */
.project-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.project-card .pad { padding: 1.5rem; }
.project-card .pad h3 { margin-bottom: 0.5rem; }
.project-card .tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Feature card (3-up icon row) ---------- */
.feature-card { text-align: left; }
.feature-card .icon-wrap {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-button);
  background: var(--color-scheme-foreground);
  color: var(--color-scheme-accent);
  margin-bottom: 1.5rem;
}
.feature-card .icon-wrap svg { width: 1.75rem; height: 1.75rem; }
.feature-card h3 { margin-bottom: 0.75rem; }

/* ---------- Layout-19 / split feature ---------- */
.split-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 992px) {
  .split-feature { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split-feature.reverse > :first-child { order: 2; }
}
.split-feature .copy h2 { margin-bottom: 1.25rem; }
.split-feature .copy p { font-size: var(--text-medium); }
.split-feature .copy .actions { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.split-feature .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Testimonial carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 2rem;
  padding-bottom: 1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 992px) {
  .carousel-slide { flex: 0 0 calc((100% - 4rem) / 3); }
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.carousel-dots { display: flex; gap: 0.375rem; }
.carousel-dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: rgba(2, 9, 4, 0.2);
}
.carousel-dots button[data-active="true"] { background: var(--color-scheme-text); }
.carousel-arrows { display: flex; gap: 0.75rem; }
.carousel-arrows button {
  width: 3rem; height: 3rem;
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-button);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-scheme-background);
}
.carousel-arrows button:hover { background: var(--color-scheme-foreground); }
.carousel-arrows svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Testimonial cards ---------- */
.testi-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-scheme-background);
  border: 1px solid var(--color-scheme-border);
  border-radius: var(--radius-card);
  height: 100%;
  box-shadow:
    0 2px 4px rgba(2, 9, 4, 0.04),
    0 12px 24px rgba(2, 9, 4, 0.08),
    0 24px 48px rgba(2, 9, 4, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.testi-card:hover {
  box-shadow:
    0 4px 8px rgba(2, 9, 4, 0.06),
    0 18px 36px rgba(2, 9, 4, 0.12),
    0 32px 64px rgba(2, 9, 4, 0.08);
  transform: translateY(-3px);
}
.scheme-4 .testi-card, .scheme-5 .testi-card {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) { .testi-card { padding: 2rem; gap: 1.5rem; } }
.scheme-3 .testi-card { background: var(--color-white); }
.scheme-4 .testi-card, .scheme-5 .testi-card { background: var(--color-scheme-foreground); }

.testi-card .who {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}
.testi-card .who .avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-neutral-lightest);
  flex-shrink: 0;
}
.testi-card .who img { width: 100%; height: 100%; object-fit: cover; }
.testi-card .who .name { font-weight: 600; }

/* ---------- CTA with image ---------- */
.cta-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-image-wrap .cta-copy {
  max-width: 36rem;
  text-align: center;
  margin: 0 auto 3rem;
}
.cta-image-wrap .cta-copy .actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-image-wrap .cta-image {
  width: 100%;
}
.cta-image-wrap .cta-image img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: var(--radius-image);
}

/* ---------- Footer ---------- */
.footer { padding-inline: 5%; padding-block: 3rem; }
@media (min-width: 768px) { .footer { padding-block: 4.5rem; } }
@media (min-width: 992px) { .footer { padding-block: 5rem; } }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
  padding-bottom: 3rem;
  text-align: center;
}
@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 0.25fr 1fr 0.25fr;
    justify-items: stretch;
    text-align: left;
    padding-bottom: 5rem;
  }
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}
@media (min-width: 768px) {
  .footer-nav { grid-auto-flow: column; grid-auto-columns: max-content; gap: 1.5rem; }
}
.footer-nav a { font-weight: 600; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-self: center;
}
@media (min-width: 992px) { .footer-social { justify-self: end; } }
.footer-social a {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 1.5rem; height: 1.5rem; }
.footer-divider {
  height: 1px;
  background: var(--color-scheme-border);
}
.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: var(--text-small);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
  }
}
.footer-bottom .legal {
  display: grid;
  grid-auto-flow: row;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom .legal { grid-auto-flow: column; gap: 1.5rem; align-items: center; }
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Gallery (flooring) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid > :nth-child(1) { grid-column: span 2; }
  .gallery-grid > :nth-child(4) { grid-row: span 2; }
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 4/3;
}

/* ---------- How it works steps ---------- */
.steps {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step .num {
  font-family: "Poppins";
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--color-scheme-accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.step h3 { margin-bottom: 0.75rem; }

/* ---------- Inline icons (SVG sprites) ---------- */
.i-sm { width: 1.25rem; height: 1.25rem; }
.i-md { width: 1.5rem; height: 1.5rem; }
.i-lg { width: 2rem; height: 2rem; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.muted { color: var(--color-scheme-text); opacity: 0.85; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-science-blue);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-neutral-darkest);
  color: var(--color-white);
  padding: 8px 12px;
  z-index: 10000;
}
.skip-link:focus { top: 0; }
