/* Breathable Lime - shared design system. Linked by every page. */
  /*
    Breathable Lime, redesign 2026.
    Theme lock: light page, one colour-block switch (dark hero) per Section 4.11.
    Radius rule: 8px on all interactive elements, cards and panels; full pill on area tags only.
    Accent: brand terracotta #B87333 for icons, rules and non-text accents.
    CTA fills use #96541D, an AA-compliant (5.8:1 with white text) shade of the same terracotta,
    because white on raw #B87333 is 3.8:1 and fails WCAG AA for button-size text.
  */
  :root {
    --surface: #FAF8F4;
    --surface-2: #F5F0E8;
    --surface-3: #E8DFCF;
    --ink: #2A2420;
    --ink-2: #3D2E1F;
    --text: #3A332C;
    --text-muted: #6B6158;
    --clay: #C4A882;
    --accent: #B87333;
    --accent-deep: #96541D;
    --accent-deep-hover: #A05E22;
    --hairline: rgba(61, 46, 31, 0.14);
    --hairline-dark: rgba(250, 248, 244, 0.16);
    --radius: 8px;
    --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--ink);
  }

  h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 22ch;
  }

  h2 em, h1 em {
    font-style: italic;
    color: var(--accent);
  }

  p { max-width: 65ch; }

  .icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }

  section { padding: clamp(5rem, 9vw, 8rem) 0; }

  .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .section-head p {
    margin-top: 1.1rem;
    font-size: 1.05rem;
    color: var(--text-muted);
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--stagger, 0s);
  }
  .reveal.visible { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  }

  /* ---------- NAV ---------- */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--hairline);
  }

  .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--surface);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.35s ease;
  }
  nav.scrolled .logo { color: var(--ink); }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
  }

  .nav-links a {
    text-decoration: none;
    color: rgba(250, 248, 244, 0.88);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
  }
  nav.scrolled .nav-links a { color: var(--text); }
  .nav-links a:hover { color: var(--clay); }
  nav.scrolled .nav-links a:hover { color: var(--accent-deep); }

  .nav-cta {
    background: var(--accent-deep);
    color: #fff !important;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.15s ease;
  }
  .nav-cta:hover { background: var(--accent-deep-hover); color: #fff !important; }
  .nav-cta:active { transform: translateY(1px); }

  .mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
  }
  .mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--surface);
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  nav.scrolled .mobile-toggle span { background: var(--ink); }
  .mobile-toggle span:nth-child(1) { top: 0; }
  .mobile-toggle span:nth-child(2) { top: 10px; }
  .mobile-toggle span:nth-child(3) { top: 20px; }

  /* ---------- HERO (the page's single dark colour-block) ---------- */
  .hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: 6rem clamp(1.25rem, 4vw, 3rem) 4rem;
    background: var(--ink);
    position: relative;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--noise);
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    justify-self: end;
    width: 100%;
  }

  .hero-tag {
    display: inline-block;
    color: var(--clay);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    position: relative;
    padding-left: 3rem;
  }
  .hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--accent);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    line-height: 1.1;
    color: var(--surface);
    margin-bottom: 1.4rem;
    padding-bottom: 0.25rem;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--clay);
  }

  .hero p {
    font-size: 1.12rem;
    color: rgba(250, 248, 244, 0.78);
    max-width: 46ch;
    margin-bottom: 2.4rem;
  }

  .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }

  .btn-primary { background: var(--accent-deep); color: #fff; }
  .btn-primary:hover { background: var(--accent-deep-hover); }

  .btn-outline {
    background: transparent;
    color: var(--surface);
    border: 1px solid rgba(250, 248, 244, 0.4);
  }
  .btn-outline:hover { border-color: var(--surface); }

  .hero-visual {
    position: relative;
    z-index: 1;
    align-self: center;
    height: clamp(360px, 62vh, 540px);
    border-radius: var(--radius);
    overflow: hidden;
    /* TODO: replace this textured placeholder with a real photo:
       finished lime-plastered room in a Victorian property, portrait or 4:5 crop. */
    background:
      linear-gradient(160deg, #4A3928 0%, #5C4633 45%, #6d573f 100%);
  }
  .hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 25% 80%, rgba(184, 115, 51, 0.22) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 15%, rgba(196, 168, 130, 0.16) 0%, transparent 50%),
      var(--noise);
  }
  .hero-visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
  }

  /* ---------- PROBLEM: two-column list, rows aligned ---------- */
  .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
  }
  .problem-item {
    border-top: 1px solid var(--hairline);
    padding-top: 1.6rem;
  }

  .problem-item .icon {
    width: 1.8rem;
    height: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  .problem-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
  }
  .problem-item p {
    font-size: 0.98rem;
    color: var(--text-muted);
  }

  /* ---------- WHY LIME: comparison ledger ---------- */
  .why-lime { background: var(--surface-2); }

  .comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--hairline);
  }
  .comparison-col { padding: clamp(1.75rem, 3.5vw, 3rem); }
  .comp-wrong { background: var(--surface-2); }
  .comp-right {
    background: #fff;
    border-left: 1px solid var(--hairline);
  }
  .comparison-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .comp-wrong h3 { color: var(--text-muted); }
  .comp-wrong h3 .icon { color: var(--text-muted); }
  .comp-right h3 .icon { color: var(--accent); }

  .comparison-col ul { list-style: none; }
  .comparison-col li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.55rem 0;
    font-size: 0.98rem;
  }
  .comp-wrong li { color: var(--text-muted); }
  .comparison-col li .icon { width: 0.95rem; height: 0.95rem; }
  .comp-wrong li .icon { color: var(--clay); }
  .comp-right li .icon { color: var(--accent); }

  /* ---------- SERVICES: bento, 4 cells ---------- */
  .services-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.25rem;
  }
  .service-cell {
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .service-cell h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
  .service-cell p { font-size: 0.97rem; color: var(--text-muted); }
  .cell-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-deep);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
  }
  .cell-link:hover { text-decoration: underline; }

  .cell-photo {
    min-height: 340px;
    position: relative;
    overflow: hidden;
    /* TODO: replace this textured placeholder with a real photo:
       Breathaplasta being applied by hand, wide crop. */
    background: linear-gradient(150deg, var(--surface-3) 0%, var(--clay) 130%);
  }
  .cell-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--noise);
  }
  .cell-photo h3, .cell-photo p { position: relative; }
  .cell-photo p { color: var(--ink-2); }

  .cell-tint { background: var(--surface-2); }
  .cell-plain { border: 1px solid var(--hairline); }
  .cell-sand { background: var(--surface-3); }
  .cell-sand p { color: var(--ink-2); }

  /* ---------- PROCESS: vertical timeline ---------- */
  .process-steps {
    max-width: 720px;
    display: flex;
    flex-direction: column;
  }
  .step {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    padding: 1.9rem 0;
    position: relative;
  }
  .step + .step { border-top: 1px solid var(--hairline); }
  .step-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent);
  }
  .step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
  .step p { font-size: 0.98rem; color: var(--text-muted); }

  /* ---------- TESTIMONIALS: featured quote + pair ---------- */
  .quote-featured {
    max-width: 820px;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
  }
  .quote-featured blockquote {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 1.5rem;
  }
  .quote-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .quote-pair blockquote {
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 1.2rem;
  }
  .quote-attr { line-height: 1.4; }
  .quote-attr .name { font-weight: 500; color: var(--ink); }
  .quote-attr .where {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  .quote-pair figure {
    border-top: 1px solid var(--hairline);
    padding-top: 1.6rem;
  }

  /* ---------- AREAS: pill cloud ---------- */
  .areas { background: var(--surface-2); }
  .area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    max-width: 760px;
  }
  .area-tag {
    padding: 0.45rem 1.15rem;
    border-radius: 999px; /* pill exception, per the documented radius rule */
    border: 1px solid var(--hairline);
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--text);
  }

  /* ---------- FAQ: accordion ---------- */
  .faq-list { max-width: 720px; }
  .faq-item { border-bottom: 1px solid var(--hairline); }
  .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ink);
  }
  .faq-question .icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--accent);
    transition: transform 0.3s ease;
  }
  .faq-item.open .faq-question .icon { transform: rotate(180deg); }
  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
  }
  .faq-answer > div { overflow: hidden; }
  .faq-item.open .faq-answer { grid-template-rows: 1fr; }
  .faq-answer p {
    padding: 0 0 1.5rem;
    font-size: 0.98rem;
    color: var(--text-muted);
  }

  /* ---------- CTA band ---------- */
  .cta { background: var(--surface-3); }
  .cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .cta-content h2 { margin: 0 auto 1.1rem; }
  .cta-content > p {
    margin: 0 auto 2.2rem;
    color: var(--ink-2);
  }
  .cta-contacts {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.4rem;
  }
  .cta-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 500;
  }
  .cta-contacts a:hover { text-decoration: underline; }
  .cta-contacts .icon { color: var(--accent); }

  /* ---------- FOOTER ---------- */
  footer {
    border-top: 1px solid var(--hairline);
    padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  .footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
  }
  footer a { color: var(--text-muted); }
  footer a:hover { color: var(--accent-deep); }

  /* ---------- MODAL ---------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 36, 32, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 100;
  }
  .modal-overlay.open { display: flex; }

  .modal {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 460px;
    width: 100%;
    padding: 2.25rem;
    position: relative;
    max-height: 90dvh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  .modal h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
  .modal > div > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-muted);
    display: flex;
  }
  .modal-close .icon { width: 1.15rem; height: 1.15rem; }
  .modal-close:hover { color: var(--ink); }

  .form-group { margin-bottom: 1.2rem; }
  .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.45rem;
  }
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .form-group textarea { min-height: 100px; resize: vertical; }
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 3px rgba(150, 84, 29, 0.18);
  }
  .form-group input[aria-invalid="true"],
  .form-group textarea[aria-invalid="true"] { border-color: #9A3B24; }

  .field-error {
    display: none;
    font-size: 0.85rem;
    color: #8A3018;
    margin-top: 0.35rem;
  }
  .field-error.show { display: block; }

  .form-note {
    display: none;
    font-size: 0.9rem;
    color: #8A3018;
    margin-top: 0.9rem;
  }
  .form-note.show { display: block; }

  .form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
  }
  .form-submit:disabled { opacity: 0.65; cursor: wait; }

  .form-success { display: none; text-align: center; padding: 1.5rem 0 0.5rem; }
  .form-success .icon {
    width: 3rem;
    height: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  .form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .form-success p { color: var(--text-muted); font-size: 0.95rem; }

  :is(a, button, input, textarea):focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 2px;
  }

  /* ---------- MOBILE ---------- */
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
      padding-top: 6rem;
    }
    .hero-content { justify-self: start; }
    .hero-visual { min-height: 300px; }
    .services-grid { grid-template-columns: 1fr; }
    .cell-photo { min-height: 260px; }
  }

  @media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
      position: fixed;
      top: 68px;
      left: 0;
      right: 0;
      background: var(--surface);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      padding: 0.5rem 1.25rem 1.25rem;
      box-shadow: 0 12px 24px rgba(61, 46, 31, 0.12);
      display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
      display: block;
      padding: 0.85rem 0;
      color: var(--text) !important;
    }
    .nav-links .nav-cta {
      display: inline-block;
      margin-top: 0.75rem;
      padding: 0.7rem 1.4rem;
      color: #fff !important;
    }
    nav { background: var(--surface); box-shadow: 0 1px 0 var(--hairline); }
    nav .logo, nav.scrolled .logo { color: var(--ink); }
    nav .mobile-toggle span { background: var(--ink); }
    .hero { padding-top: 5.5rem; }

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

    .comparison { grid-template-columns: 1fr; }
    .comp-right { border-left: none; border-top: 1px solid var(--hairline); }

    .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
    .step-number { font-size: 2rem; }

    .quote-pair { grid-template-columns: 1fr; }
  }
