@layer base, components;
@layer base{*,::before,::after{box-sizing:border-box;border:0 solid}
html,body{margin:0}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{list-style:none;padding:0}
img,svg,video{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;cursor:pointer}
:root{--font-heading:"Montserrat";--font-body:"Inter"}}


/*
 * LFS CTW — single page modelled on the company's Figma site (lfsctw.figma.site):
 * photo hero with badges, card grids, project carousels, red "why choose us" band, contact + hours.
 * Brand: red #DC2626 · white #FFFFFF · light grey #F5F5F5 · dark grey #242424
 */
:root {
  --color-red: #dc2626;
  --color-red-deep: #b91c1c;
  --color-red-soft: #fee2e2;
  --color-white: #ffffff;
  --color-paper: #f5f5f5;
  --color-soft: #f8f8f9;
  --color-ink: #242424;
  --color-ink-soft: #4d4d52;
  --color-muted: #6e6e75;
  --color-line: #e6e6e9;
  --color-wa: #1f8f4e;
  --color-wa-deep: #16733d;
  --color-warn: #8a5a00;
  --color-warn-bg: #fff6df;

  --font-display: var(--font-heading), "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-sans: var(--font-body), "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;

  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgb(16 16 20 / 0.05), 0 10px 30px -12px rgb(16 16 20 / 0.18);
}

@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
  body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-white);
  }
  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
  }
  h1 {
    font-size: clamp(2.2rem, 4.6vw + 0.6rem, 4.1rem);
    letter-spacing: -0.01em;
  }
  h2 {
    font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem);
    letter-spacing: -0.01em;
  }
  h3 {
    font-size: 1.3rem;
    font-weight: 700;
  }
  p {
    margin: 0;
  }
  a {
    color: var(--color-red);
  }
  address {
    font-style: normal;
  }
  :focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 3px;
  }
  main:focus,
  .form-card:focus {
    outline: none;
  }
  [id] {
    scroll-margin-top: 84px;
  }
}

@layer components {
  /* ─── Primitives ─────────────────────────────────── */
  .wrap {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  @media (min-width: 700px) {
    .wrap {
      padding-left: max(28px, env(safe-area-inset-left, 0px));
      padding-right: max(28px, env(safe-area-inset-right, 0px));
    }
  }
  .section {
    padding-block: 72px;
  }
  @media (min-width: 960px) {
    .section {
      padding-block: 100px;
    }
  }
  .section-tight-top {
    padding-top: 24px;
  }
  .section-soft {
    background: var(--color-soft);
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .block {
    display: block;
  }
  .skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .skip-link:focus {
    top: 12px;
    color: var(--color-white);
  }
  .section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
  }
  .section-head h2 {
    color: var(--color-ink);
  }
  .section-head p {
    margin-top: 14px;
    font-size: 1.08rem;
    color: var(--color-muted);
  }
  .grid-3 {
    display: grid;
    gap: 24px;
  }
  @media (min-width: 640px) {
    .grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (min-width: 1000px) {
    .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 28px;
    }
  }
  .icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-red-soft);
    color: var(--color-red);
    flex-shrink: 0;
  }
  .icon-tile-sm {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  /* ─── Buttons ────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 24px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  }
  .btn:active {
    transform: translateY(1px);
  }
  .btn[disabled] {
    opacity: 0.7;
    cursor: progress;
  }
  .btn-lg {
    min-height: 54px;
    padding: 12px 30px;
    font-size: 1.05rem;
  }
  .btn-block {
    width: 100%;
  }
  .btn-primary {
    background: var(--color-red);
    color: var(--color-white);
  }
  .btn-primary:hover {
    background: var(--color-red-deep);
    color: var(--color-white);
  }
  .btn-white {
    background: var(--color-white);
    color: var(--color-red);
  }
  .btn-white:hover {
    background: var(--color-paper);
    color: var(--color-red-deep);
  }
  .btn-outline {
    border-color: currentColor;
    color: inherit;
    background: transparent;
  }
  .btn-whatsapp {
    background: var(--color-wa);
    color: var(--color-white);
  }
  .btn-whatsapp:hover {
    background: var(--color-wa-deep);
    color: var(--color-white);
  }
  .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
  }
  .btn-row-center {
    justify-content: center;
  }
  .card-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-red);
    text-decoration: none;
  }
  .card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .card-link-wa {
    color: var(--color-wa-deep);
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e7f5ec;
    color: var(--color-wa-deep);
    text-decoration: none;
  }
  .chip:hover {
    background: var(--color-wa);
    color: var(--color-white);
  }

  /* ─── Preview banner ─────────────────────────────── */
  .preview-banner {
    background: var(--color-warn-bg);
    color: var(--color-warn);
    font-size: 0.85rem;
    text-align: center;
    padding: 7px 16px;
  }
  .pending-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-warn);
    background: var(--color-warn-bg);
    border: 1px dashed #d9b75f;
    padding: 2px 8px;
  }
  .pending-block {
    display: block;
    margin-block: 20px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  /* ─── Header ─────────────────────────────────────── */
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: rgb(255 255 255 / 0.97);
    backdrop-filter: saturate(1.4) blur(8px);
    box-shadow: 0 1px 0 var(--color-line), 0 6px 20px -16px rgb(0 0 0 / 0.4);
  }
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
  }
  .header-logo {
    min-width: 0;
    text-decoration: none;
    color: var(--color-ink);
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .logo-mark {
    flex-shrink: 0;
  }
  .logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
    overflow: hidden;
  }
  .logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--color-red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-sub {
    margin-top: 3px;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    color: var(--color-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  @media (max-width: 420px) {
    .logo-name {
      font-size: 1.02rem;
    }
    .lang-switch {
      border: 0;
    }
    .btn-row-center .btn {
      min-width: 210px;
    }
  }
  @media (max-width: 380px) {
    .logo-mark {
      width: 40px;
      height: auto;
    }
    .logo-name {
      font-size: 1rem;
    }
    .logo-sub {
      letter-spacing: 0.06em;
    }
    .header-right {
      gap: 6px;
    }
  }

  .lang-switch {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding-inline: 4px;
  }
  .lang-switch-item {
    display: inline-flex;
    align-items: center;
  }
  .lang-switch-sep {
    color: var(--color-line);
  }
  .lang-switch a,
  .lang-switch-current {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-inline: 8px;
  }
  .lang-switch a {
    color: var(--color-muted);
    text-decoration: none;
  }
  .lang-switch a:hover {
    color: var(--color-red);
  }
  .lang-switch-current {
    color: var(--color-red);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-ink);
    cursor: pointer;
  }
  .nav-panel {
    display: none;
  }
  .nav[data-open="true"] .nav-panel {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-white);
    box-shadow: 0 20px 30px -20px rgb(0 0 0 / 0.35);
    border-top: 1px solid var(--color-line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-link {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--color-line);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-link:hover {
    color: var(--color-red);
  }
  .nav-cta {
    margin-top: 16px;
    width: 100%;
  }
  @media (min-width: 1100px) {
    .nav-toggle {
      display: none;
    }
    .nav-panel,
    .nav[data-open="true"] .nav-panel {
      display: flex;
      align-items: center;
      gap: 20px;
      position: static;
      padding: 0;
      border: 0;
      box-shadow: none;
      background: none;
    }
    .nav-list {
      display: flex;
      gap: 4px;
    }
    .nav-link {
      border-bottom: 0;
      padding: 8px 12px;
      font-size: 0.98rem;
      color: var(--color-ink-soft);
    }
    .nav-cta {
      margin-top: 0;
      width: auto;
      min-height: 44px;
      padding-inline: 20px;
    }
  }

  /* ─── Hero ───────────────────────────────────────── */
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
    min-height: min(760px, 92vh);
    display: flex;
    align-items: center;
    padding-block: 72px;
  }
  .hero-bg {
    z-index: -2;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(15 18 24 / 0.7), rgb(15 18 24 / 0.5) 55%, rgb(15 18 24 / 0.72));
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badges {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 3px solid var(--color-white);
    text-align: left;
    box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  }
  .hero-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
  }
  .hero-badge small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .hero-badge-solid {
    background: var(--color-red);
    color: var(--color-white);
  }
  .hero-badge-outline {
    background: var(--color-white);
    color: var(--color-red);
    border-color: var(--color-red);
  }
  .hero h1 {
    max-width: 18ch;
    text-shadow: 0 2px 20px rgb(0 0 0 / 0.35);
  }
  .hero-text {
    margin-top: 22px;
    max-width: 62ch;
    font-size: 1.12rem;
    color: #ececee;
  }

  /* ─── Service cards ──────────────────────────────── */
  /* 8 services → 4 per row on wide screens */
  @media (min-width: 1180px) {
    .service-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 24px;
    }
    .service-grid .service-card {
      padding: 28px 24px;
    }
  }
  .service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px rgb(16 16 20 / 0.05), 0 18px 40px -16px rgb(16 16 20 / 0.28);
  }
  .service-card h3 {
    margin-top: 6px;
  }
  .service-card p {
    color: var(--color-muted);
    flex: 1;
  }

  /* ─── Machinery cards ────────────────────────────── */
  /* Flex row so an incomplete last row is centred instead of left-aligned. */
  .machine-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .machine-grid > * {
    flex: 1 1 100%;
    max-width: 100%;
  }
  @media (min-width: 640px) {
    .machine-grid > * {
      flex-basis: calc((100% - 24px) / 2);
      max-width: calc((100% - 24px) / 2);
    }
  }
  @media (min-width: 1000px) {
    .machine-grid {
      gap: 28px;
    }
    .machine-grid > * {
      flex-basis: calc((100% - 56px) / 3);
      max-width: calc((100% - 56px) / 3);
    }
  }
  .machine-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }
  .machine-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    background: var(--color-paper);
    overflow: hidden;
  }
  .machine-photo img {
    transition: transform 0.4s;
  }
  .machine-card:hover .machine-photo img {
    transform: scale(1.04);
  }
  .machine-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
    flex: 1;
  }
  .machine-body p {
    color: var(--color-muted);
    flex: 1;
  }

  /* ─── Project carousel cards ─────────────────────── */
  .project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-ink);
    box-shadow: var(--shadow-card);
    color: var(--color-white);
  }
  .project-slides {
    position: absolute;
    inset: 0;
  }
  .project-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s;
  }
  .project-slide[data-active="true"] {
    opacity: 1;
  }
  .project-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 0.78));
  }
  .project-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
  }
  .project-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fca5a5;
  }
  .project-info h3 {
    margin-top: 4px;
    font-size: 1.45rem;
  }
  .project-count {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #d7d7da;
    font-variant-numeric: tabular-nums;
  }
  .project-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.9);
    color: var(--color-ink);
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s, background-color 0.2s;
  }
  .project-arrow:hover {
    background: var(--color-white);
    opacity: 1;
  }
  .project-arrow-prev {
    left: 12px;
  }
  .project-arrow-next {
    right: 12px;
  }
  .project-dots {
    position: absolute;
    right: 20px;
    bottom: 24px;
    display: flex;
    gap: 6px;
  }
  .project-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
  }
  .project-dot[aria-current="true"] {
    background: var(--color-white);
    width: 22px;
    border-radius: 6px;
  }

  /* ─── Why choose us (red band) ───────────────────── */
  .section-red {
    background: var(--color-red);
    color: var(--color-white);
  }
  .why-grid {
    display: grid;
    gap: 48px;
    align-items: center;
  }
  @media (min-width: 960px) {
    .why-grid {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 72px;
    }
  }
  .why-grid h2 {
    margin-bottom: 22px;
  }
  .why-text {
    color: #fff1f1;
    max-width: 62ch;
  }
  .why-text + .why-text {
    margin-top: 16px;
  }
  .why-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
  }
  .why-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
  }
  .stat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius-card);
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.18);
  }
  .stat-tile strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
  }
  .stat-tile span {
    font-size: 0.92rem;
    color: #fff1f1;
  }

  /* ─── Contact ────────────────────────────────────── */
  .contact-grid {
    display: grid;
    gap: 32px;
  }
  @media (min-width: 1000px) {
    .contact-grid {
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
      gap: 48px;
      align-items: start;
    }
  }
  .form-card,
  .contact-side {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px 20px;
  }
  @media (min-width: 640px) {
    .form-card,
    .contact-side {
      padding: 36px;
    }
  }
  .form-card h3,
  .contact-side > h3 {
    font-size: 1.45rem;
  }
  .form-intro {
    margin-block: 6px 24px;
    color: var(--color-muted);
    font-size: 0.92rem;
  }
  .contact-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
  }
  .contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .contact-label {
    font-weight: 600;
    margin-bottom: 2px;
  }
  .contact-list a:not(.chip):not(.card-link) {
    color: var(--color-ink-soft);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .contact-list a:not(.chip):not(.card-link):hover {
    color: var(--color-red);
  }
  .contact-list address,
  .contact-list p {
    color: var(--color-ink-soft);
  }
  .contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .contact-list .card-link {
    margin-top: 6px;
  }
  .hours-card {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 12px;
    background: var(--color-soft);
    border: 1px solid var(--color-line);
  }
  .hours-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
  }
  .hours-card h3 svg {
    color: var(--color-red);
  }
  .hours-card dl {
    margin: 14px 0 0;
    display: grid;
    gap: 8px;
  }
  .hours-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .hours-card dt {
    color: var(--color-muted);
  }
  .hours-card dd {
    margin: 0;
    font-weight: 600;
  }
  .contact-person {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--color-muted);
  }

  /* ─── Form ───────────────────────────────────────── */
  .form-grid {
    display: grid;
    gap: 18px;
  }
  @media (min-width: 640px) {
    .form-grid {
      grid-template-columns: 1fr 1fr;
    }
    .field-full {
      grid-column: 1 / -1;
    }
  }
  .field label {
    display: block;
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 6px;
  }
  .req {
    color: var(--color-red);
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 1rem;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid #d6d6db;
    border-radius: 8px;
    padding: 11px 14px;
    min-height: 48px;
  }
  .field textarea {
    resize: vertical;
    min-height: 130px;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.2);
  }
  .field [aria-invalid="true"] {
    border-color: var(--color-red);
    background: #fff8f8;
  }
  .field-hint {
    margin-top: 5px;
    font-size: 0.82rem;
    color: var(--color-muted);
  }
  .field-error {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-red);
  }
  .hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .form-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-wa-deep);
  }
  .form-note svg {
    flex-shrink: 0;
    margin-top: 3px;
  }
  .form-consent {
    margin-block: 10px 20px;
    font-size: 0.82rem;
    color: var(--color-muted);
  }
  .quote-form .btn-primary {
    width: 100%;
  }
  .form-status {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid;
  }
  .form-status:focus {
    outline: none;
  }
  .form-status svg {
    flex-shrink: 0;
  }
  .form-status-title {
    font-weight: 700;
    margin-bottom: 4px;
  }
  .form-status .btn {
    margin-top: 12px;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.92rem;
  }
  .form-status-success {
    background: #eaf6ef;
    border-color: var(--color-wa);
    color: #12512d;
  }
  .form-status-error {
    background: #fdeeee;
    border-color: var(--color-red);
    color: #6d1215;
  }
  .spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgb(255 255 255 / 0.45);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* ─── Privacy / 404 ──────────────────────────────── */
  .prose {
    max-width: 800px;
  }
  .prose h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
    margin-bottom: 10px;
  }
  .prose-section {
    margin-top: 36px;
  }
  .prose h2 {
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
  .prose p + p {
    margin-top: 12px;
  }
  .prose-section p {
    color: var(--color-ink-soft);
  }
  .muted {
    color: var(--color-muted);
  }
  .eyebrow {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 10px;
  }
  .not-found {
    text-align: center;
  }
  .not-found-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 7rem;
    line-height: 1;
    color: var(--color-red);
  }
  .not-found h1 {
    font-size: 2.2rem;
    margin-block: 8px 12px;
  }
  .not-found .btn-row {
    justify-content: center;
  }

  /* ─── Footer ─────────────────────────────────────── */
  .site-footer {
    background: #18181b;
    color: #b9b9c0;
    font-size: 0.93rem;
  }
  .footer-grid {
    display: grid;
    gap: 36px;
    padding-block: 64px 44px;
  }
  @media (min-width: 720px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (min-width: 1060px) {
    .footer-grid {
      grid-template-columns: 1.3fr 0.8fr 1.1fr 1.3fr;
    }
  }
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  .footer-heading {
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: 14px;
  }
  .footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
  }
  .footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-contact svg {
    color: #ff7d82;
    flex-shrink: 0;
    margin-top: 4px;
  }
  .site-footer a {
    color: #d8d8de;
    text-decoration: none;
  }
  .site-footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
  }
  .footer-bottom {
    border-top: 1px solid #2c2c31;
    font-size: 0.84rem;
    padding-block: 20px 100px;
    text-align: center;
  }
  @media (min-width: 720px) {
    .footer-bottom {
      padding-bottom: 20px;
    }
  }

  /* ─── Floating WhatsApp ──────────────────────────── */
  .wa-float {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--color-white);
    box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.45);
    transition: transform 0.15s;
  }
  .wa-float:hover {
    color: var(--color-white);
    transform: scale(1.06);
  }
}
