/* ==========================================================================
   Snow Guys: main stylesheet
   --------------------------------------------------------------------------
   1. Theme tokens (change colours and fonts here)
   2. Base / reset
   3. Layout helpers
   4. Buttons
   5. Header & navigation
   6. Hero
   7. Sections (services, steps, pricing, why, reviews, area)
   8. Contact form
   9. Footer
   10. Scroll-reveal animation
   11. Reduced motion
   ========================================================================== */

/* 1. THEME TOKENS ========================================================= */
:root {
  /* Core palette */
  --color-white: #FFFFFF;
  --color-snow: #F4F6F8;        /* alternate section background */
  --color-frost: #D9DEE3;       /* borders, dividers */
  --color-slate: #8A939C;       /* decorative only (fails contrast for small text) */
  --color-ink: #3A4048;         /* main text, footer background */
  --color-text-muted: #5B646D;  /* secondary text, passes WCAG AA on white */

  /* Icy-blue accent */
  --color-accent: #7FB3D5;        /* button backgrounds, highlights */
  --color-accent-hover: #6AA4CB;
  --color-accent-strong: #2E6A93; /* accent for text/links/icons: readable on white */
  --color-accent-soft: #E7F1F8;   /* icon chips, subtle fills */
  --color-on-accent: #16242E;     /* text that sits on the accent colour */

  /* Hero "winter sky" */
  --hero-top: #2F3842;
  --hero-bottom: #56636F;

  /* Feedback */
  --color-error: #B3261E;
  --color-success: #2E7D5B;

  /* Typography */
  --font-heading: "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(58, 64, 72, 0.06), 0 2px 8px rgba(58, 64, 72, 0.05);
  --shadow: 0 4px 12px rgba(58, 64, 72, 0.06), 0 12px 32px rgba(58, 64, 72, 0.08);
  --shadow-lg: 0 10px 24px rgba(58, 64, 72, 0.08), 0 24px 56px rgba(58, 64, 72, 0.12);

  /* Layout */
  --container: 1160px;
  --gutter: 1rem;
  --header-h: 72px;
  --section-pad: clamp(4rem, 9vw, 6.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 1.5rem; }
}

/* 2. BASE ================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px); /* anchors land below sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

a { color: var(--color-accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--color-ink); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--color-white); }

/* 3. LAYOUT =============================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--color-snow); }

.section-head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head-left { text-align: left; margin-inline: 0; }

.section-lead {
  font-size: 1.075rem;
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}
.eyebrow-light { color: #CFE3F1; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  flex-shrink: 0;
}
.card-icon .icon { width: 24px; height: 24px; }

/* Clearly visible markers on placeholder content */
.placeholder-note,
.placeholder-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7A4B00;
  background: #FFF3D6;
  border: 1px dashed #E0B35A;
  border-radius: 999px;
}

/* 4. BUTTONS ============================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px; /* comfortable touch target */
  padding: 0.7rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 6px 18px rgba(127, 179, 213, 0.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
  box-shadow: 0 10px 24px rgba(127, 179, 213, 0.45);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-accent-strong);
  border-color: var(--color-frost);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-ink); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: var(--color-white); border-color: var(--color-white); }

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Frost shimmer: a soft band of light that sweeps across the button */
.btn-frost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: frost-shimmer 4.5s var(--ease) 1.2s infinite;
  pointer-events: none;
}
@keyframes frost-shimmer {
  0%   { transform: translateX(-120%); }
  30%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* 5. HEADER & NAV ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-frost);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-ink);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-accent-soft), #CFE3F1);
  color: var(--color-accent-strong);
}
.logo-mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--color-ink); }

.main-nav { order: 3; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  color: var(--color-ink);
  background: var(--color-snow);
  border: 1px solid var(--color-frost);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu: a dropdown panel under the header */
.nav-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-frost);
  box-shadow: var(--shadow);
}
.nav-menu.is-open { display: block; animation: menu-in 0.2s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

.nav-menu a:not(.btn) {
  display: block;
  padding: 0.8rem 0.25rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-snow);
}
.nav-menu a:not(.btn):hover { color: var(--color-accent-strong); }
.nav-cta-mobile { padding-top: 1rem; }
.nav-cta-mobile .btn { width: 100%; }

.header-cta { display: none; margin-left: auto; }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .nav-cta-mobile { display: none; }
}

@media (min-width: 960px) {
  .main-nav { order: 0; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    gap: 0.25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-menu a:not(.btn) {
    padding: 0.5rem 0.85rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color 0.2s, background-color 0.2s;
  }
  .nav-menu a:not(.btn):hover,
  .nav-menu a.is-active { color: var(--color-ink); background: var(--color-snow); }
  .header-cta { margin-left: 0; }
}

/* 6. HERO ================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding-block: 5rem 8rem;
  color: var(--color-white);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(127, 179, 213, 0.28), transparent 60%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
}

.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-content { text-align: center; }
.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: inline; } }

.hero-sub {
  max-width: 600px;
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #E3EAF0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
  list-style: none;
  font-size: 0.92rem;
  color: #DCE5EC;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust .icon { color: #A9CDE5; }

/* Snow-drift wave */
.hero-drift {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 120px);
  z-index: 0;
}
.drift-back { fill: rgba(255, 255, 255, 0.55); }
.drift-front { fill: var(--color-white); }

/* 7a. SERVICES ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-frost);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #C7DCEB;
}
.service-card .card-icon { margin-bottom: 1.1rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; flex-grow: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.card-link .icon { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* 7b. HOW IT WORKS ======================================================== */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
  /* dashed line linking the three step numbers */
  .steps::before {
    content: "";
    position: absolute;
    top: 52px; left: 16%; right: 16%;
    border-top: 2px dashed var(--color-frost);
  }
}

.step {
  position: relative;
  padding: 2rem 1.6rem;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}
.step p { color: var(--color-text-muted); margin: 0; }

/* 7c. PRICING ============================================================= */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-frost);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.price-desc { color: var(--color-text-muted); font-size: 0.95rem; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin: 0.5rem 0 0.4rem; }
.price-unit { white-space: nowrap; }
.price-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}
.price-unit { color: var(--color-text-muted); }
.price-card .placeholder-note { align-self: flex-start; }

.price-features {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 1.75rem;
  flex-grow: 1;
}
.price-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; }
.price-features .icon { color: var(--color-accent-strong); margin-top: 0.15em; width: 1.1em; height: 1.1em; stroke-width: 2.4; }

.price-card-featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #F7FBFE 0%, var(--color-white) 40%);
}
@media (min-width: 900px) {
  .price-card-featured { padding-block: 2.6rem; }
}
.badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.35rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(127, 179, 213, 0.4);
}

/* 7d. WHY CHOOSE US ======================================================= */
.why-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .why-layout { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .why-layout .section-head { margin-bottom: 0; }
}
.why-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.why-item h3 { margin-bottom: 0.3rem; }
.why-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* 7e. REVIEWS ============================================================= */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.review-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-frost);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review-card .placeholder-tag { align-self: flex-start; }
.stars { display: flex; gap: 2px; color: #E0A526; margin-bottom: 0.75rem; }
.stars .icon { width: 18px; height: 18px; }
.review-card blockquote { margin: 0 0 1.25rem; flex-grow: 1; }
.review-card blockquote p { margin: 0; font-size: 1.02rem; }
.review-card figcaption { display: flex; align-items: center; gap: 0.75rem; line-height: 1.35; }
.reviewer-avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}
.reviewer-meta { font-size: 0.875rem; color: var(--color-text-muted); }

/* 7f. SERVICE AREA ======================================================== */
.area-layout { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .area-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.area-card {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--color-snow);
  border: 1px solid var(--color-frost);
  border-radius: 999px;
}
.area-list .icon { width: 1em; height: 1em; color: var(--color-accent-strong); }

/* 8. CONTACT FORM ========================================================= */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
}

.contact-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; line-height: 1.5; }

.form-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--color-white);
  border: 1px solid var(--color-frost);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; min-width: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; }

.field label,
.field legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.req { color: var(--color-error); }
.optional { font-weight: 400; color: var(--color-text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS from zooming on focus */
  color: var(--color-ink);
  background: var(--color-snow);
  border: 1.5px solid var(--color-frost);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B646D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
}
.field input::placeholder,
.field textarea::placeholder { color: #7D868F; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #BFC7CE; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 4px rgba(127, 179, 213, 0.35);
}

.field [aria-invalid="true"] { border-color: var(--color-error); background-color: #FFF8F7; }

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-error);
}
.field-error:empty { display: none; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio {
  position: relative;
  flex: 1 1 140px;
  display: flex;
  cursor: pointer;
}
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  font-weight: 500;
  background: var(--color-snow);
  border: 1.5px solid var(--color-frost);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background-color 0.2s;
}
.radio span::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-slate);
  background: var(--color-white);
  flex-shrink: 0;
  transition: border 0.15s;
}
.radio input:checked + span { border-color: var(--color-accent-strong); background: var(--color-accent-soft); }
.radio input:checked + span::before { border: 6px solid var(--color-accent-strong); }
.radio input:focus-visible + span { outline: 3px solid var(--color-accent-strong); outline-offset: 2px; }
fieldset[data-invalid="true"] .radio span { border-color: var(--color-error); }

.form-note { margin: 1rem 0; font-size: 0.85rem; color: var(--color-text-muted); }

.quote-form button[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.form-success {
  padding: 2rem 0.5rem;
  text-align: center;
  animation: success-in 0.45s var(--ease);
}
.form-success:focus { outline: none; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 1.25rem;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 10px #F2F8FC;
}
.success-icon .icon { width: 36px; height: 36px; animation: spin-slow 8s linear infinite; }
.form-success p { color: var(--color-text-muted); max-width: 420px; margin-inline: auto; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* 9. FOOTER =============================================================== */
.site-footer {
  padding-top: 4rem;
  color: #C9D0D6;
  background: var(--color-ink);
}
.site-footer a { color: #E6EBEF; text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }

.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.logo-light, .logo-light:hover { color: var(--color-white); }
.logo-light .logo-mark { background: rgba(255, 255, 255, 0.1); color: #CFE3F1; }
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 300px; }

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}
.footer-col ul { display: grid; gap: 0.55rem; }

.social { display: flex; gap: 0.6rem; }
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, transform 0.2s;
}
.social a:hover { background: var(--color-accent); color: var(--color-on-accent); transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; }

/* 9b. LOADING SCREEN ======================================================
   Same winter-sky gradient as the hero, so the hand-off feels seamless. */
.is-loading,
.is-loading body { overflow: hidden; }

.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(127, 179, 213, 0.28), transparent 60%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.7s var(--ease);
}
.preloader.is-done .preloader-inner { transform: translateY(-12px) scale(0.97); }

/* Frosted circle with a slowly turning snowflake and a soft pulse ring */
.preloader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  color: #CFE3F1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.preloader-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(127, 179, 213, 0.6);
  animation: pl-pulse 1.8s var(--ease) infinite;
}
.preloader-mark .icon {
  width: 50px; height: 50px;
  stroke-width: 1.6;
  animation: pl-turn 6s linear infinite;
}

.preloader-word {
  margin: 1.25rem 0 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Thin indeterminate progress bar with an icy glint */
.preloader-bar {
  position: relative;
  width: 160px; height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.preloader-bar span {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--color-accent), #FFFFFF, var(--color-accent), transparent);
  animation: pl-bar 1.4s var(--ease) infinite;
}

.preloader-text {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: #DCE5EC;
}

/* Falling snowflakes: the outer span falls, the inner icon sways & spins */
.preloader-flakes { position: absolute; inset: 0; pointer-events: none; }
.preloader-flake {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  color: var(--color-white);
  opacity: var(--o);
  will-change: transform;
  animation: pl-fall var(--d) linear var(--delay) infinite;
}
.preloader-flake .icon {
  width: 100%; height: 100%;
  stroke-width: 2;
  animation: pl-sway calc(var(--d) / 3) ease-in-out var(--delay) infinite alternate;
}

@keyframes pl-fall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(var(--drift), calc(100vh + 80px), 0) rotate(var(--spin)); }
}
@keyframes pl-sway {
  from { transform: translateX(-14px); }
  to   { transform: translateX(14px); }
}
@keyframes pl-turn { to { transform: rotate(360deg); } }
@keyframes pl-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes pl-bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* 10. SCROLL REVEAL =======================================================
   Elements with .reveal fade/slide in when js/main.js adds .is-visible.
   Only hidden when JS is running (html.js), so content never gets stuck. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hover lift must win over the reveal transform once visible */
.js .service-card.reveal.is-visible:hover,
.js .service-card.reveal.is-visible:focus-within { transform: translateY(-6px); }
.js .service-card.reveal.is-visible {
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* 11. REDUCED MOTION ======================================================
   Users who ask for less motion get no shimmer, reveals or hover lifts.
   The snow itself is handled in js/snow.js (it renders a still frame). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn-frost::after { display: none; }
  .btn:hover,
  .service-card:hover,
  .service-card:focus-within,
  .js .service-card.reveal.is-visible:hover,
  .js .service-card.reveal.is-visible:focus-within { transform: none; }
}
