/* ==========================================================================
   CFE Installations - new B2C/B2B design system (Claude Design "B2B to B2C revamp")
   Loaded ONLY on the new pages (via CfeLayout). The legacy Avia theme is scoped
   to the old pages, so these pages stay lean and fast.
   Desktop styling matches the mockup verbatim (kept inline in the markup);
   this file adds the base layer, hover/focus states and the responsive layer.
   ========================================================================== */

/* ==========================================================================
   THEME - single source of truth for the warm B2C palette (2026 revamp).
   The site moved off the old "corporate navy" to a warm, sand-based look with a
   soft light-gradient hero (the current modern D2C direction). Change a colour
   here and it updates everywhere it's referenced as var(--cfe-*).
   Consumer surfaces are warm; the COMMERCIAL (B2B) section deliberately keeps a
   blue accent to read as its own distinct space.
   ========================================================================== */
:root {
  --cfe-ink: #3a2a22;        /* headings + dark text (replaced navy #0E4B60/#14313C) */
  --cfe-ink-soft: #6f5f52;   /* body / muted (warm taupe, replaced cool #5C7079) */
  --cfe-ink-faint: #7a6f63;  /* faint labels/eyebrows on light - darkened for WCAG AA text contrast */

  --cfe-sand: #faf6ef;       /* primary light section background */
  --cfe-sand-tint: #f3ecdf;  /* slightly deeper sand (cards, alt bands) */
  --cfe-line: #e7ddcd;       /* warm hairline border on light */

  --cfe-cta: #4d770f;        /* primary CTA green (unchanged - eco/comfort) */
  --cfe-cta-dark: #3f6210;
  --cfe-warm: #a24a26;       /* terracotta accent ("warm winters", eyebrows) - darkened for WCAG AA text contrast */
  --cfe-cool: #5e8b87;       /* sage accent ("cool summers") */

  --cfe-chrome: #3a2a22;     /* header / footer warm dark (replaced navy header) */
  --cfe-chrome-2: #2c1f18;   /* utility bar / darkest chrome */
  --cfe-on-dark: #f7efe4;    /* primary text on warm-dark chrome */
  --cfe-on-dark-soft: #cdbfb0;/* muted text on warm-dark chrome */

  /* Soft-mesh light hero: warm sand base with gentle peach, blush and sage glows. */
  --cfe-hero: radial-gradient(120% 120% at 12% 8%, #fcebd8 0%, rgba(252,235,216,0) 46%),
              radial-gradient(110% 110% at 92% 14%, #f4dbe7 0%, rgba(244,219,231,0) 50%),
              radial-gradient(120% 120% at 82% 96%, #dbe7d4 0%, rgba(219,231,212,0) 55%),
              linear-gradient(135deg, #f8efe2 0%, #eee0cd 100%);
  --cfe-hero-ink: #3a2a22;   /* heading text on the light hero */
  --cfe-hero-body: #6f5f52;  /* body text on the light hero */
}

/* Self-hosted fonts - no third-party (Google) dependency, so a Google outage can't
   affect the site. font-display:swap + <link rel="preload"> in App.razor means the brand
   font shows fast with minimal layout shift. Latin + latin-ext subsets only. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --teal-900: #072d3a;
  --teal-800: #0A3A4B;
  --teal-700: var(--cfe-ink);
  --ink: var(--cfe-ink);
  --ink-soft: #2b454f;
  --muted: var(--cfe-ink-soft);
  --muted-2: #7e949b;
  --lime: #A6C61A;
  --green: #4d770f;
  --green-dark: #3f6b0c;
  --blue: #36A9E1;
  --orange: #F18A00;
  --cream: var(--cfe-sand);
  --cream-border: #efe9dd;
  --line: #E4EAEC;
  --panel: var(--cfe-sand-tint);
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* ---- base (from the mockup helmet) ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--lime); color: var(--teal-800); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Blazor's <FocusOnNavigate Selector="h1"> gives the heading tabindex="-1" and focuses it on
   navigation, which draws a default focus ring. Suppress it for programmatic focus only;
   keyboard users still get a visible focus ring on real interactive elements. */
[tabindex="-1"]:focus { outline: none; }

/* anchored sections clear the sticky header */
:target { scroll-margin-top: 96px; }

/* ---- hover / focus states (mockup used style-hover / style-focus).
   !important because the base values are set inline (higher specificity). ---- */
.h-lime:hover        { color: var(--green) !important; }
.h-white:hover       { color: #fff !important; }
.h-green-btn:hover   { background: var(--green-dark) !important; }
.h-blue-btn:hover    { background: #5bbcec !important; }
.h-lift:hover        { transform: translateY(-4px) !important; }
.h-fade              { transition: opacity .15s ease; }
.h-fade:hover        { opacity: .6; }

/* FAQ accordion (native <details>, no JS) */
.faq-item            { background:#fff; border:1px solid #e3edf0; border-radius:12px; margin-bottom:12px; }
.faq-item summary    { list-style:none; cursor:pointer; padding:18px 22px; font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:16.5px; color:var(--cfe-ink); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; color:#4d770f; font-size:24px; font-weight:700; line-height:1; flex:none; }
.faq-item[open] summary::after { content:'\2013'; }
.faq-item .faq-a     { padding:0 22px 20px; font-size:15px; line-height:1.65; color:var(--cfe-ink-soft); font-weight:500; }
.h-border-lime:hover { border-color: var(--lime) !important; }
.h-social:hover      { background: var(--green) !important; }
.field:focus         { border-color: var(--green) !important; outline: none !important; }

.h-lift { transition: transform .18s ease; }
.h-border-lime, .path-card, .solution-card { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
a, button, .field { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }

/* ---- mobile navigation toggle (tiny, CSS-driven; no jQuery) ---- */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

/* ==========================================================================
   RESPONSIVE LAYER
   The mockup is desktop-only (1280). These rules add tablet/mobile behaviour
   by overriding the inline desktop styles on a small set of tagged containers.
   ========================================================================== */

/* tablet and below */
@media (max-width: 1000px) {
  .u-grid4 { grid-template-columns: repeat(2, 1fr) !important; }
  .u-grid3 { grid-template-columns: repeat(2, 1fr) !important; }
  .u-band,
  .u-quote { grid-template-columns: 1fr !important; gap: 38px !important; }
  .u-band-media { order: -1; }
  .u-foot { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}

/* phones */
@media (max-width: 760px) {
  .u-wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .u-util { flex-direction: column !important; gap: 6px !important; text-align: center; }
  .u-util-right { gap: 16px !important; }
  .u-section { padding-top: 60px !important; padding-bottom: 60px !important; }

  /* header: hide inline nav, show toggle, reveal as dropdown when checked */
  .u-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--cfe-sand);
    border-top: 1px solid var(--cfe-line);
    box-shadow: 0 18px 30px -20px rgba(58, 42, 34, .5);
    padding: 8px 0;
  }
  .u-nav a { padding: 13px 24px; }
  .nav-toggle:checked ~ .u-nav { display: flex !important; }
  .nav-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 9px;
    background: rgba(58, 42, 34, .06);
    color: var(--cfe-ink);
    cursor: pointer;
  }
  .u-header-cta { display: none !important; }

  .u-paths { flex-direction: column !important; }
  .u-grid4 { grid-template-columns: 1fr !important; }
  .u-grid3 { grid-template-columns: 1fr !important; }
  .u-grid2 { grid-template-columns: 1fr !important; }
  .u-foot { grid-template-columns: 1fr !important; }
  .u-form-row { grid-template-columns: 1fr !important; }

  h1.u-h1 { font-size: clamp(2.1rem, 9vw, 2.7rem) !important; }
}

/* ---- Product image gallery (unit detail page) ---- */
.ac-gallery-slide { display: none; width: 100%; height: 100%; }
.ac-gallery-slide.is-active { display: block; }
.ac-gallery-thumb {
  width: 76px; height: 58px; padding: 4px; flex: none;
  background: #fff; border: 2px solid #efe9dd; border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: border-color .15s ease;
}
.ac-gallery-thumb:hover { border-color: #A6C61A; }
.ac-gallery-thumb.is-active { border-color: #4d770f; }

/* Partner logo strip: a real grid so it never orphans a single logo (as flex-wrap did).
   6 across on desktop, 3 on tablet, 2 on mobile - all divide evenly into 6. */
/* Centred, wrapping row so the strip stays centred whatever the logo count. */
.u-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 34px 48px;
}
@media (max-width: 520px) { .u-logos { gap: 28px 32px; } }

/* ---- Quote wizard option cards (from the Claude Design handoff, harmonised to CFE colours).
   Illustrated icon on a tinted panel, hover-lift, checkmark badge on selection. ---- */
@keyframes q-popin { 0% { transform: scale(.35); opacity: 0; } 62% { transform: scale(1.14); } 100% { transform: scale(1); opacity: 1; } }
@keyframes q-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes q-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes q-spin { to { transform: rotate(360deg); } }
@keyframes q-drawin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.q-spin { animation: q-spin .7s linear infinite; }
.q-drawin { animation: q-drawin .45s ease both; }
.q-popin { animation: q-popin .45s cubic-bezier(.34, 1.56, .64, 1) both; }

.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto; }
.q-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
/* Tablet: 2-column vertical cards. */
@media (min-width: 561px) and (max-width: 760px) { .q-grid, .q-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
/* Phone: single-column list. */
@media (max-width: 560px) { .q-grid, .q-grid.cols-2 { grid-template-columns: 1fr; gap: 10px; max-width: 460px; } }

/* Multi-room quote: one question per screen for each room (big picture buttons, tap to move on),
   a strip of room chips above showing progress, and a "Same as the last room" shortcut. */
.qm-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 0 6px; justify-content: center; flex-wrap: wrap; }
.qm-strip-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 10px;
  border-radius: 22px; font-family: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer;
  background: #fff; border: 1px solid #e7ddcd; color: var(--cfe-ink);
}
.qm-strip-chip.is-current { border: 2px solid #4d770f; }
.qm-strip-chip.is-todo { background: transparent; border: 1.5px dashed #b7a996; color: var(--cfe-ink-soft); cursor: default; padding-left: 14px; }
.qm-strip-chip:focus-visible, .qm-opt:focus-visible, .qm-same:focus-visible, .qm-check-row:focus-visible { outline: 3px solid #4d770f; outline-offset: 2px; }
.qm-room { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.qm-same {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin: 0 auto; text-align: left;
  background: #eef4e4; border: 2px solid #4d770f; border-radius: 14px; padding: 10px 16px; cursor: pointer;
  font-family: inherit; color: var(--cfe-ink);
}
.qm-same img { flex: 0 0 auto; display: block; }
.qm-same strong { display: block; font-size: 16px; font-weight: 800; }
.qm-same small { display: block; font-size: 14px; font-weight: 600; color: #4b5e2a; }
.qm-opts { display: grid; gap: 12px; }
.qm-opts.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qm-opts.is-list { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); max-width: 640px; width: 100%; margin: 0 auto; }
.qm-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: #fff; border: 2px solid #e7ddcd; border-radius: 16px; padding: 10px 10px 14px; cursor: pointer;
  font-family: inherit; color: var(--cfe-ink); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.qm-opt:hover { border-color: #b9cf8f; }
.qm-opt.is-on { border-color: #4d770f; background: #f3f8ea; box-shadow: 0 8px 18px -12px rgba(77, 119, 15, .6); }
.qm-opt-ico { width: 100%; height: 96px; border-radius: 12px; background: #f3ecdf; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.qm-opt-ico img { width: 72px; height: 72px; display: block; }
.qm-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qm-opt-label { font-size: 16px; font-weight: 800; }
.qm-opt-sub { font-size: 13.5px; font-weight: 600; color: var(--cfe-ink-soft); line-height: 1.35; }
.qm-check { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.qm-check-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid #e7ddcd;
  border-radius: 16px; padding: 10px 14px 10px 10px; cursor: pointer; font-family: inherit; color: var(--cfe-ink);
}
.qm-check-row:hover { border-color: #b9cf8f; }
.qm-check-row .qm-opt-ico { width: 56px; height: 56px; }
.qm-check-row .qm-opt-ico img { width: 42px; height: 42px; }
.qm-check-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qm-check-text strong { font-size: 16px; font-weight: 800; }
.qm-check-text span { font-size: 14px; font-weight: 600; color: var(--cfe-ink-soft); line-height: 1.35; }
.qm-check-change { font-size: 14px; font-weight: 800; color: #4d770f; text-decoration: underline; }
@media (max-width: 640px) {
  .qm-strip { justify-content: flex-start; flex-wrap: nowrap; }
  .qm-opts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qm-opts.is-list { grid-template-columns: 1fr; gap: 10px; }
  .qm-opts.is-list .qm-opt { flex-direction: row; text-align: left; padding: 8px 40px 8px 8px; min-height: 76px; }
  .qm-opts.is-list .qm-opt-ico { width: 72px; height: 60px; }
  .qm-opts.is-list .qm-opt-ico img { width: 52px; height: 52px; }
  .qm-opts.is-grid .qm-opt-ico { height: 84px; }
  .qm-opts.is-grid .qm-opt-ico img { width: 60px; height: 60px; }
  .qm-opts.is-list .q-check { top: 50%; margin-top: -12px; }
}
.qm-count { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; max-width: 620px; margin: 0 auto; }
.qm-count button {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; color: var(--cfe-ink);
  padding: 18px 10px 14px; border: 2px solid #e7ddcd; border-radius: 16px; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s ease, background .15s ease;
}
.qm-count button span { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--cfe-ink-soft); }
.qm-count button:hover { border-color: #b9cf8f; }
.qm-count button.is-on { border-color: #4d770f; background: #f3f8ea; }
.qm-rooms-list { display: grid; gap: 8px; }
.qm-room-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed #e8e0d2; font-size: 14px; }
.qm-room-row:last-child { border-bottom: none; }

/* Order "how it works from here" steps: horizontal stepper (desktop) / vertical timeline (mobile). */
.q-order-badge { width: 56px; height: 56px; border-radius: 50%; background: #4d770f; color: #fff; font-weight: 800; font-size: 23px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(45, 66, 20, .24); }
.q-order-h { position: relative; margin-top: 44px; }
.q-order-h-line { position: absolute; top: 27px; left: 10%; right: 10%; height: 3px; background: #d3ddbf; border-radius: 2px; }
.q-order-h-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.q-order-h-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.q-order-h-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; color: var(--cfe-ink); margin: 18px 0 7px; line-height: 1.25; }
.q-order-h-desc { max-width: 210px; color: var(--cfe-ink-soft); font-size: 14px; font-weight: 500; line-height: 1.5; }
.q-order-v { display: none; list-style: none; margin: 32px 0 0; padding: 0; }

/* Progress state. The customer is at step 1 here, so the rest are shown as still-to-come: hollow
   badge, muted text. Colour is not the only signal - the step they're on also carries a visible
   "You're here" tag and aria-current, so it still reads without colour. */
.q-order-badge-todo { background: #fff; color: #a1927f; border: 2px solid #e0d5c4; box-shadow: 0 0 0 6px #fff; }
.q-order-todo .q-order-h-title, .q-order-todo .q-order-v-title { color: #8a7c6d; }
.q-order-todo .q-order-h-desc, .q-order-todo .q-order-v-desc { color: #9b8d7e; }
.q-order-todo .q-order-v-card { background: #fbf9f5; }
.q-order-now { display: inline-block; margin: 0 0 7px; padding: 3px 10px; border-radius: 20px;
  background: #eaf2d6; color: #3f6210; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
/* Below 900px the 5-across stepper gets cramped, so switch to a vertical timeline. */
@media (max-width: 900px) {
  .q-order-h { display: none; }
  .q-order-v { display: block; }
  .q-order-v-row { display: flex; gap: 16px; align-items: stretch; }
  .q-order-v-rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 44px; width: 44px; }
  .q-order-badge-sm { width: 44px; height: 44px; font-size: 19px; box-shadow: 0 4px 10px rgba(45, 66, 20, .25); }
  .q-order-v-line { flex: 1; width: 3px; min-height: 14px; margin: 6px 0; background: #d3ddbf; border-radius: 2px; }
  .q-order-v-card { flex: 1; margin-bottom: 14px; background: var(--cfe-sand); border: 1px solid #efe9dd; border-radius: 14px; padding: 14px 18px; }
  .q-order-v-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; color: var(--cfe-ink); margin-bottom: 4px; line-height: 1.25; }
  .q-order-v-desc { color: var(--cfe-ink-soft); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
}
.q-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: center;
  background: #fff; border: 2px solid #e4e9df; border-radius: 18px; padding: 0; overflow: hidden;
  cursor: pointer; font-family: inherit;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s ease, border-color .2s ease;
}
.q-card:hover { transform: translateY(-6px); border-color: #4d770f; box-shadow: 0 22px 36px -20px rgba(16, 58, 82, .42); }
.q-card.is-selected { border-color: #4d770f; }
.q-card.is-selected::after { content: ""; position: absolute; inset: 0; border: 2.5px solid #4d770f; border-radius: 18px; pointer-events: none; }
.q-icon-panel { padding: 20px 10px 8px; display: grid; place-items: center; }
.q-float { animation: q-floaty 3.4s ease-in-out infinite; line-height: 0; }
.q-icon-line { color: var(--cfe-ink); }
.q-text { padding: 8px 12px 18px; display: flex; flex-direction: column; gap: 5px; }
.q-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; color: var(--cfe-ink); line-height: 1.15; }
.q-range { font-size: 12.5px; font-weight: 700; color: #4d770f; }
.q-desc { font-size: 12px; line-height: 1.4; color: var(--cfe-ink-soft); margin: 0; }
.q-check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: #4d770f; color: #fff; display: grid; place-items: center; animation: q-popin .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.q-confirm-badge {
  width: 66px; height: 66px; border-radius: 50%; background: #4d770f; color: #fff;
  display: grid; place-items: center; animation: q-popin .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .q-float, .q-check, .q-confirm-badge, .q-card, .q-spin, .q-drawin, .q-popin { animation: none !important; transition: none !important; }
}
/* Phone: horizontal rows - icon left, text right. Placed after the base .q-card so it overrides. */
@media (max-width: 560px) {
  .q-card { flex-direction: row; align-items: center; text-align: left; }
  .q-icon-panel { flex: 0 0 88px; padding: 10px; align-self: stretch; }
  .q-icon-panel svg { width: 54px; height: 54px; }
  .q-text { flex: 1; text-align: left; padding: 13px 16px; gap: 3px; }
  .q-check { top: 12px; right: 12px; }
}

/* Legal pages (Privacy/Cookies/Terms): readable prose rendered from the admin-editable body. */
.legal-prose { color: #3a5560; font-size: 16px; line-height: 1.72; }
.legal-prose h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--cfe-ink); margin: 34px 0 10px; letter-spacing: -.3px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin: 0 0 16px; }
.legal-prose ul { margin: 0 0 18px; padding-left: 22px; }
.legal-prose li { margin: 0 0 7px; }
.legal-prose strong { color: var(--cfe-ink); font-weight: 700; }
.legal-prose a { color: #4d770f; font-weight: 600; }

/* Long-form editorial prose - "The science of air conditioning" pillar page. Centred reading
   column with pull-quotes, a styled point list and a numbered cycle. */
.sci-prose { max-width: 720px; margin: 0 auto; }
.sci-prose > p { font-size: 16.5px; line-height: 1.8; color: var(--cfe-ink-soft); font-weight: 500; margin: 0 0 18px; }
.sci-prose strong { color: var(--cfe-ink); font-weight: 800; }
.sci-prose em { font-style: italic; }
.sci-prose a { color: #4d770f; font-weight: 700; }
/* section heading (an optional eyebrow sits above via .sci-eyebrow) */
.sci-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 2.9vw, 2.3rem); line-height: 1.12; letter-spacing: -.8px; color: var(--cfe-ink); margin: 56px 0 18px; }
.sci-eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #4d770f; margin: 56px 0 -6px; }
.sci-eyebrow + .sci-h2 { margin-top: 12px; }
.sci-lead { font-size: 18px !important; line-height: 1.75 !important; color: var(--cfe-ink) !important; font-weight: 500; }
/* a punchy standalone line that closes a section */
.sci-kicker { font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px !important; line-height: 1.4 !important; font-weight: 700 !important; color: var(--cfe-ink) !important; margin: 22px 0 26px !important; }
/* the Second-Law pull-quote */
.sci-quote { margin: 30px 0; padding: 22px 28px; background: #fff; border-left: 4px solid var(--cfe-warm); border-radius: 0 14px 14px 0; box-shadow: 0 16px 40px rgba(58,42,34,.08); }
.sci-quote p { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; font-weight: 700; color: var(--cfe-ink); }
/* the two-point "correct side of the law" list */
.sci-points { list-style: none; margin: 6px 0 22px; padding: 0; display: grid; gap: 14px; }
.sci-points li { background: #fff; border: 1px solid var(--cfe-line); border-radius: 14px; padding: 16px 20px; font-size: 15.5px; line-height: 1.7; color: var(--cfe-ink-soft); font-weight: 500; }
/* the numbered refrigeration cycle */
.sci-cycle { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 14px; counter-reset: sci; }
.sci-cycle li { position: relative; background: #fff; border: 1px solid var(--cfe-line); border-radius: 14px; padding: 18px 20px 18px 62px; font-size: 15.5px; line-height: 1.65; color: var(--cfe-ink-soft); font-weight: 500; }
.sci-cycle li::before { counter-increment: sci; content: counter(sci); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--cfe-ink); color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sci-figure { margin: 32px 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 46px rgba(58,42,34,.12); border: 1px solid var(--cfe-line); }
.sci-figure img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .sci-h2 { margin-top: 44px; }
  .sci-cycle li { padding: 16px 16px 16px 56px; }
}

/* Sticky mobile action bar - phone only. Keeps Call + Get a quote one tap away for mobile leads. */
.m-actionbar { display: none; }
@media (max-width: 760px) {
  .m-actionbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    background: var(--cfe-sand); border-top: 1px solid var(--cfe-line);
    box-shadow: 0 -10px 26px -18px rgba(58, 42, 34, .55);
  }
  .m-action {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 15px; padding: 13px 10px; border-radius: 10px;
  }
  .m-action-call { background: #fff; border: 1.5px solid var(--cfe-line); color: var(--cfe-ink); }
  .m-action-quote { background: var(--green); color: #fff; }
  footer { padding-bottom: 84px !important; }   /* clear the fixed bar */
}

/* ---- "I know the measurements" under the room-size cards (Components/RoomMeasureInput.razor) ---- */
.qmeasure { display: flex; justify-content: center; margin-top: 16px; }
.qmeasure-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 22px;
  background: #fff; border: 1.5px dashed #b7a996; color: #3f6210; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.qmeasure-toggle:hover { border-color: #4d770f; background: #f3f8ea; }
.qmeasure-panel {
  width: 100%; max-width: 560px; background: #faf6ef; border: 1px solid #e7ddcd; border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.qmeasure-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qmeasure-head strong { font-size: 16px; font-weight: 800; color: var(--cfe-ink); }
.qmeasure-units { display: inline-flex; background: #fff; border: 1px solid #e7ddcd; border-radius: 10px; padding: 3px; }
.qmeasure-units button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--cfe-ink-soft); cursor: pointer;
}
.qmeasure-units button.is-on { background: #4d770f; color: #fff; }
.qmeasure-fields { display: flex; align-items: flex-end; gap: 10px; }
.qmeasure-fields label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 0; min-width: 0; font-size: 13px; font-weight: 700; color: var(--cfe-ink-soft); }
.qmeasure-fields .qmeasure-height { margin-left: 8px; }
.qmeasure-x { padding-bottom: 12px; font-size: 18px; font-weight: 700; color: var(--cfe-ink-soft); }
.qmeasure-box { display: flex; align-items: center; background: #fff; border: 1px solid #dbd0bf; border-radius: 10px; padding: 0 10px 0 0; }
.qmeasure-box:focus-within { border-color: #4d770f; box-shadow: 0 0 0 3px rgba(77, 119, 15, .18); }
.qmeasure-box input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; border: 0; background: transparent; padding: 0 0 0 12px;
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--cfe-ink); outline: none;
}
.qmeasure-box em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--cfe-ink-soft); }
.qmeasure-result, .qmeasure-hint, .qmeasure-error { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.qmeasure-result { color: #3f5710; }
.qmeasure-hint { color: var(--cfe-ink-soft); }
.qmeasure-error { color: #b3261e; }
.qmeasure-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qmeasure-use {
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: #4d770f; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.qmeasure-cancel { background: none; border: 0; padding: 8px 4px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--cfe-ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qmeasure-toggle:focus-visible, .qmeasure-units button:focus-visible, .qmeasure-use:focus-visible, .qmeasure-cancel:focus-visible { outline: 3px solid #4d770f; outline-offset: 2px; }
@media (max-width: 640px) {
  .qmeasure-fields { flex-wrap: wrap; }
  .qmeasure-fields label { flex: 1 1 calc(50% - 24px); }
  .qmeasure-fields .qmeasure-height { flex: 1 1 100%; margin-left: 0; }
}
/* The size card their typed measurements make, lit up as they type (before they press "Use"). */
.q-card.is-preview, .qm-opt.is-preview { border-color: #4d770f; background: #f3f8ea; box-shadow: 0 0 0 4px rgba(77, 119, 15, .22); }
.q-card.is-preview::before, .qm-opt.is-preview::before {
  content: "Your room"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: #4d770f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 640px) {
  .q-card.is-preview::before, .qm-opt.is-preview::before { left: auto; right: 12px; transform: none; }
}
/* Measurements too big for the online quote: a warm note, not an error (it goes to a person). */
.qmeasure-big { display: flex; flex-direction: column; gap: 6px; background: #fff7ea; border: 1px solid #f0d9b5; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: var(--cfe-ink); }
.qmeasure-big strong { font-weight: 800; }
.qmeasure-big span { font-weight: 600; color: var(--cfe-ink-soft); }
.qmeasure-big .qmeasure-check { color: #9a4a0a; font-weight: 700; }
