/* ==========================================================================
   Windows4You — Flush Casement Windows LP · v2 premium visual system
   Palette is derived from the Windows4You logo:
     deep navy #12213A · royal blue #315BDB · trust gold #E9A13B
   Edit the variables below to fine-tune brand colours site-wide.
   ========================================================================== */

:root {
  --ink: #172235;          /* near-navy text */
  --navy: #12213A;         /* premium brand navy */
  --navy-deep: #07152A;
  --royal: #315BDB;        /* logo royal blue */
  --royal-soft: #EAF0FF;
  --orange: #315BDB;       /* legacy accent token, now brand blue */
  --orange-dark: #213F9E;
  --green: #1FAA53;        /* WhatsApp */
  --green-dark: #178A43;
  --gold: #E9A13B;         /* stars / rating accents */

  --text: #263142;
  --text-soft: #5F6B7A;
  --line: #E3E8EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;      /* cool grey section */
  --bg-warm: #F4F7FB;      /* cool premium section */
  --bg-navy-tint: #EEF3FB;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(35, 46, 63, 0.06), 0 8px 24px -8px rgba(35, 46, 63, 0.12);
  --shadow-float: 0 2px 6px rgba(35, 46, 63, 0.08), 0 18px 44px -12px rgba(35, 46, 63, 0.25);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.55em;
  letter-spacing: 0;
  font-weight: 800;
}
h1 { font-size: clamp(1.85rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--royal); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.15rem; }

.section { padding: 3.4rem 0; }
section, footer { scroll-margin-top: 78px; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section__intro { max-width: 700px; color: var(--text-soft); font-size: 1.03rem; }

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}

.small, small { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(180deg, #3F6AEE, var(--royal) 55%, var(--orange-dark));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(49, 91, 219, 0.48);
}
.btn--primary:hover { background: linear-gradient(180deg, #365ED4, #2448B3); }

.btn--whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(31, 170, 83, 0.5);
}
.btn--whatsapp:hover { background: var(--green-dark); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #C4CEDA;
}
.btn--ghost:hover { border-color: var(--navy); background: var(--bg-navy-tint); }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 46px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 0.7rem; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  font-size: 0.95rem;
}
.site-header__phone svg { width: 16px; height: 16px; }
.site-header__phone span { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 64px);
  color: #fff;
  background: #101A28;
  padding: 4.4rem 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/residence/hero-residence-9-heritage.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 17, 30, 0.88) 0%, rgba(13, 25, 42, 0.74) 42%, rgba(13, 25, 42, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.2), rgba(5, 10, 18, 0.34));
}
.hero h1 { color: #fff; }
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 700px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9D6E8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}
.hero__sub { font-size: 1.06rem; color: #C8D4E3; max-width: 620px; }

.hero__points {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  color: #EFF6FF;
  font-size: 0.94rem;
  font-weight: 650;
}
.hero__points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.55rem;
  align-items: start;
}
.hero__points li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: #1FC16B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 2.5 2.5L12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: 0 4px 12px rgba(31, 193, 107, 0.35);
}

.hero__price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.05rem;
  margin: 1.25rem 0 1.4rem;
  max-width: 560px;
}
.hero__price strong { font-size: 1.12rem; color: #fff; }
.hero__price span { font-size: 0.8rem; color: #A9BACF; line-height: 1.5; }

.hero__ctas { display: flex; flex-direction: column; gap: 0.75rem; }
/* rating chips under the CTAs */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #DEE7F2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  text-decoration: none;
}
.chip--trust {
  gap: 0.55rem;
}
.chip__logo {
  flex: 0 0 auto;
  width: auto;
  object-fit: contain;
}
.chip__logo--boxed {
  height: 20px;
  max-width: 78px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 5px;
}
.chip__logo--google {
  height: 16px;
  max-width: 54px;
}
.chip__logo--certass {
  height: 15px;
  max-width: 76px;
}
.chip strong { color: #fff; }
.chip .stars { color: var(--gold); letter-spacing: 0.1em; font-size: 0.8rem; }

/* ---------- Trust logo bar ---------- */
.logo-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -22px rgba(7, 21, 42, 0.4);
}
.logo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
}
.logo-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.logo-bar__item img { height: 34px; width: auto; object-fit: contain; }
.logo-bar__item .stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; }
.logo-bar__item--dark {
  background: var(--navy);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
}
.logo-bar__item--dark img { height: 20px; }
.logo-bar__trust,
.logo-bar__brand,
.logo-bar__radius {
  min-height: 46px;
  border: 1px solid #E0E6EF;
  border-radius: 12px;
  background: #fff;
  padding: 0.42rem 0.65rem;
}
.logo-bar__brand {
  width: 114px;
  justify-content: center;
}
.logo-bar__brand--wide { width: 154px; }
.logo-bar__brand--text {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.logo-bar__brand--veka {
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-bar__brand img {
  max-height: 28px;
  max-width: 128px;
}
.logo-bar__brand--veka img { max-height: 20px; }
.logo-bar__brand--wide img { max-width: 144px; }
.logo-bar__google img { height: 20px; }
.logo-bar__google span { white-space: nowrap; }
.logo-bar__item--dark.logo-bar__trust {
  background: var(--navy);
  border-color: var(--navy);
}
.logo-bar__divider {
  width: 1px;
  height: 34px;
  background: #D8E0EA;
  margin: 0 0.25rem;
}
.logo-bar__radius {
  color: #425064;
  white-space: nowrap;
  background: var(--bg-soft);
}

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 1.1rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }

/* ---------- Benefits band (icon list, not cards) ---------- */
.benefits {
  display: grid;
  gap: 1.4rem;
}
.benefit {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
.benefit__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--royal-soft);
  color: var(--royal);
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.benefit p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Diagram panel ---------- */
.diagram-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
}
.diagram-panel figcaption { font-size: 0.85rem; color: var(--text-soft); text-align: center; padding-top: 0.6rem; }

.flush-explainer {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
.flush-explainer__photo,
.flush-explainer__profile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.flush-explainer__photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.flush-explainer__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.flush-explainer__copy p { color: var(--text-soft); }
.flush-explainer__profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}
.flush-explainer__profile img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.flush-explainer__profile figcaption {
  padding-top: 0.7rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- System comparison ---------- */
.tier-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.1rem 0 1rem;
}
.tier-label:first-of-type { margin-top: 1.6rem; }
.tier-label__pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
}
.tier-label__pill--good { background: #5C7A99; }
.tier-label__pill--better { background: var(--royal); }
.tier-label__pill--best { background: linear-gradient(135deg, var(--navy), var(--royal)); }
.tier-label__text { font-size: 0.9rem; color: var(--text-soft); }
.tier-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  overflow: hidden;
}
.system-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--navy));
}
.system-card__bestfor {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.35rem;
}
.system-card__media {
  margin: -0.35rem -0.35rem 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.system-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.system-card__media figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}
.system-card h3 { font-size: 1.12rem; }
.system-card > p { font-size: 0.93rem; color: var(--text-soft); }
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.spec-chips li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-navy-tint);
  border: 1px solid #DCE4EF;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.system-card .btn { margin-top: auto; align-self: flex-start; }

/* feature panels for the premium tiers */
.system-feature {
  display: grid;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}
.system-feature + .system-feature {
  margin-top: 1.2rem;
}
.system-feature--best {
  background: linear-gradient(150deg, #FDFEFF 0%, #F3F6FC 100%);
  border: 1px solid #CBD7EC;
}
.system-feature--textonly {
  display: block;
  border-left: 4px solid var(--royal);
}
.system-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.system-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.system-photo figcaption,
.image-banner figcaption,
.gallery-item figcaption {
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 0.55rem 0.75rem;
}
.system-feature h3 { font-size: 1.3rem; }
.system-feature__facts {
  margin: 0.2rem 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.system-feature__facts li { padding-left: 1.5rem; position: relative; }
.system-feature__facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--royal);
}

/* ---------- Pricing ---------- */
.price-cards { display: grid; gap: 1.1rem; }
.price-card {
  padding: 1.25rem 1.4rem;
  background:
    radial-gradient(240px 130px at 100% 0%, rgba(58, 81, 176, 0.08), transparent 62%),
    #fff;
}
.price-card--premium {
  border-color: rgba(58, 81, 176, 0.28);
  box-shadow: 0 18px 42px -30px rgba(18, 33, 58, 0.45);
}
.price-card__system { font-size: 1.05rem; margin-bottom: 0.15rem; }
.price-card__bestfor { font-size: 0.8rem; color: var(--orange); font-weight: 700; margin: 0 0 0.7rem; }
.price-card__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  color: #DCE5F0;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: 12px;
  padding: 0.75rem 0.88rem;
  margin: 0.85rem 0 0.35rem;
}
.price-card__total span {
  color: #AEBED4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card__total strong {
  color: #fff;
  font-size: 1.12rem;
  white-space: nowrap;
}
.price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.price-card__value { font-weight: 800; color: var(--navy); white-space: nowrap; font-size: 0.95rem; }

.price-table-wrap { display: none; }

.disclaimer {
  font-size: 0.82rem;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
  margin-top: 1.4rem;
}

/* ---------- Brochure downloads ---------- */
.brochure-grid {
  display: grid;
  gap: 1rem;
}
.brochure-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brochure-card__logo {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #E8EDF4;
}
.brochure-card__logo img {
  max-width: 178px;
  max-height: 36px;
  width: auto;
  object-fit: contain;
}
.brochure-card__logo--square {
  min-height: 58px;
}
.brochure-card__logo--square img {
  max-height: 54px;
  max-width: 112px;
}
.brochure-card__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.65rem;
}
.brochure-card h3 { font-size: 1.05rem; }
.brochure-card p { color: var(--text-soft); font-size: 0.92rem; }
.brochure-card .btn { margin-top: auto; }
.brochure-card__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}
.brochure-card__actions .btn { margin-top: 0; }
.brochure-card small {
  display: block;
  margin-top: 0.7rem;
  color: #7C8794;
}
.brochure-card--ready {
  border-color: #C9D6F2;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(58, 81, 176, 0.08), transparent 55%),
    #fff;
}
.brochure-cta {
  margin-top: 1.4rem;
  background:
    radial-gradient(420px 190px at 100% 0%, rgba(49, 91, 219, 0.28), transparent 62%),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #DCE5F0;
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}
.brochure-cta h3 { color: #fff; margin-bottom: 0.2rem; }
.brochure-cta p { margin: 0; color: #C8D4E3; }

/* ---------- Size diagrams row ---------- */
.size-pair { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.size-pair .diagram-panel { display: flex; flex-direction: column; align-items: center; }
.size-pair svg { max-height: 280px; width: auto; }

/* ---------- Chooser ---------- */
.chooser { display: grid; gap: 0.9rem; }
.chooser-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-card);
}
.chooser-item__marker {
  flex: 0 0 auto;
  width: 10px;
  align-self: stretch;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--royal), var(--navy));
}
.chooser-item strong { color: var(--navy); display: block; margin-bottom: 0.15rem; }
.chooser-item span { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Colours & swatches ---------- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin: 1.1rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.image-banner {
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.image-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 68px;
  text-align: center;
  line-height: 1.2;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.swatch i {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(35, 46, 63, 0.18);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.4), 0 3px 8px rgba(35,46,63,0.14);
}
.swatch--white i { background: linear-gradient(145deg, #FFFFFF, #EFF1F3); }
.swatch--anthracite i {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(145deg, #4F5659 0%, #343B3F 48%, #20262A 100%);
}
.swatch--cream i {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.5), transparent 36%),
    linear-gradient(145deg, #F2E7CF 0%, #E4D6B7 55%, #CDBF9F 100%);
}
.swatch--agate i {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.34), transparent 36%),
    linear-gradient(145deg, #B8BEB3 0%, #9FA79D 52%, #818A82 100%);
}
.swatch--golden-oak i {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.14), transparent 30%, rgba(58,30,10,0.16) 70%, transparent),
    repeating-linear-gradient(82deg, rgba(96,48,16,0.24) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #D9953C 0%, #B86E22 48%, #7D4216 100%);
}
.swatch--irish-oak i {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.18), transparent 32%, rgba(109,67,28,0.16) 72%, transparent),
    repeating-linear-gradient(82deg, rgba(121,77,33,0.18) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #E8C589 0%, #C99654 50%, #9A6832 100%);
}
.swatch--rosewood i {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.12), transparent 28%, rgba(15,6,7,0.22) 74%, transparent),
    repeating-linear-gradient(82deg, rgba(18,6,8,0.28) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #5B2D2C 0%, #341A22 52%, #170F14 100%);
}
.swatch--black i {
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(145deg, #202326 0%, #0E1114 100%);
}
.swatch--sage i {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.34), transparent 36%),
    linear-gradient(145deg, #B7B29E 0%, #9D9984 55%, #7E7B67 100%);
}
.swatch--painswick i {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.38), transparent 36%),
    linear-gradient(145deg, #D9E3D4 0%, #B9C8B5 54%, #8FA08B 100%);
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.7rem; position: relative; font-size: 0.96rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--royal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%233A51B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Certified Competent trust band ---------- */
.trust-band {
  background:
    radial-gradient(700px 360px at 110% 0%, rgba(58, 81, 176, 0.4), transparent 60%),
    linear-gradient(155deg, #3A4A63, var(--navy) 55%, var(--navy-deep));
  color: #fff;
}
.trust-band h2, .trust-band h3 { color: #fff; }
.trust-band .section__intro { color: #C8D4E3; }
.trust-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1.3rem;
}
.trust-card__logo {
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.trust-card__logo img { height: 40px; width: auto; }
.trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.trust-stat strong { display: block; font-size: 1.7rem; line-height: 1.1; color: #fff; letter-spacing: 0; }
.trust-stat span { font-size: 0.8rem; color: #A9BACF; }
.trust-card .small { color: #8FA2B8; }
.trust-card a { color: #C9D6F2; }

/* ---------- Steps / process ---------- */
.process { display: grid; gap: 1.6rem; align-items: center; }
.process__media img { border-radius: var(--radius); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.3rem; height: 2.3rem;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--royal), var(--navy));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(58, 81, 176, 0.5);
}
.steps li strong { display: block; color: var(--navy); }
.steps li span { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(18, 33, 58, 0.12);
  box-shadow: var(--shadow-card);
  min-height: 270px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
}
.gallery-item--feature img,
.gallery-item--wide img {
  aspect-ratio: 16 / 10;
}
.gallery-item figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #EAF0FF;
  background:
    linear-gradient(135deg, rgba(7, 21, 42, 0.86), rgba(18, 33, 58, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gallery-item figcaption strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-item figcaption span {
  color: #D6E0EE;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 2.6rem 1rem 1.2rem;
  list-style: none;
  position: relative;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  background: var(--royal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%233A51B0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item div { padding: 0 1.2rem 1.05rem; font-size: 0.94rem; color: var(--text-soft); }

/* ---------- Lead form ---------- */
.lead-form-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: #fff;
}
.lead-form-section::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image: url("../img/residence/residence-9-lakeside.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.04);
  opacity: 0.42;
}
.lead-form-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(780px 360px at 76% 24%, rgba(49, 91, 219, 0.28), transparent 62%),
    linear-gradient(100deg, rgba(7, 21, 42, 0.94) 0%, rgba(18, 33, 58, 0.86) 46%, rgba(7, 21, 42, 0.9) 100%);
}
.lead-form-section .lead-wrap {
  position: relative;
  z-index: 2;
}
.lead-form-section h2 { color: #fff; }
.lead-form-section .section__intro { color: #C8D4E3; }

.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
  color: var(--text);
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.32rem;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid #D4DCE5;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #FBFCFD;
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.form-field input[type="file"] {
  padding: 0.68rem 0.75rem;
  cursor: pointer;
}
.form-field input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  border: 0;
  border-radius: 9px;
  background: #EAF0FF;
  color: var(--royal);
  font: inherit;
  font-weight: 800;
  padding: 0.58rem 0.82rem;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(58, 81, 176, 0.35);
  outline-offset: 1px;
  border-color: var(--royal);
  background: #fff;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #C0392B;
  background: #FFF8F7;
}
.form-help {
  display: block;
  margin-top: 0.36rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}
.form-note {
  border: 1px solid #DDE6F4;
  border-radius: var(--radius-sm);
  background: #F6F9FE;
  padding: 0.85rem 0.95rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-note strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.18rem;
}
.form-note span { display: block; }
.field-error {
  display: block;
  color: #C0392B;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.1em;
  margin-top: 0.22rem;
}
.form-consent { font-size: 0.78rem; color: var(--text-soft); margin: 0.9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(620px 300px at 82% 0%, rgba(58, 81, 176, 0.22), transparent 70%),
    var(--navy-deep);
  color: #9EB0C7;
  font-size: 0.88rem;
  padding: 2.6rem 0 6.2rem; /* bottom space for sticky CTA on mobile */
}
.site-footer a { color: #C3D0DF; }
.site-footer__logo img { height: 52px; width: auto; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; }
.site-footer__tagline {
  margin: 0.4rem 0 0;
  color: #E8F0FB;
  font-weight: 750;
}
.site-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.site-footer__badges img { height: 30px; width: auto; }
.site-footer__panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 28, 54, 0.94) 0%, rgba(18, 36, 76, 0.9) 100%);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.45);
}
.site-footer__panel p { margin-bottom: 0; }
.site-footer__actions {
  display: grid;
  gap: 0.55rem;
}
.footer-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(157, 180, 215, 0.42);
  border-radius: 7px;
  color: #fff !important;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-action--primary {
  background: #315BDB;
  border-color: #315BDB;
}
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  font-size: 0.78rem;
  color: #7F91A9;
}
.site-footer__legal--muted {
  border-top: 0;
  margin-top: 0.45rem;
  padding-top: 0;
  color: #647890;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(35, 46, 63, 0.16);
}
.sticky-cta .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: 0.93rem; }
.sticky-cta .btn { min-width: 0; }

/* ---------- Thank-you page ---------- */
.thanks-page {
  min-height: 68vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(58, 81, 176, 0.12), transparent 60%),
    var(--bg-soft);
}
.thanks-page .container { max-width: 620px; }
.thanks-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 2.4rem 1.6rem;
  margin: 2.5rem 0;
}
.thanks-card__tick {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(150deg, #2BBE63, var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(31, 170, 83, 0.55);
}
.thanks-card__tick svg { width: 30px; height: 30px; }

/* ==========================================================================
   Tablet & desktop
   ========================================================================== */
@media (max-width: 639px) {
  .site-header__phone { display: none; }
  .site-header__actions { gap: 0.45rem; }
  .site-header__actions .btn--sm {
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
  }
  .hero__content,
  .hero__sub,
  .hero__price,
  .hero__badges,
  .chip {
    max-width: 100%;
  }
  .hero__content {
    width: 100%;
    max-width: min(330px, calc(100vw - 2.3rem));
  }
  .hero h1 {
    font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  }
  .hero__sub {
    font-size: 0.93rem;
  }
  .hero__price {
    padding: 0.75rem 0.9rem;
  }
  .hero__price strong {
    font-size: 1rem;
  }
  .hero h1,
  .hero__sub,
  .hero__points,
  .hero__price,
  .chip {
    overflow-wrap: anywhere;
  }
  .hero__kicker {
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.35;
    border-radius: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }
  .hero__ctas .btn,
  .sticky-cta .btn {
    min-width: 0;
  }

  .logo-bar__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.8rem 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .logo-bar__inner::-webkit-scrollbar { display: none; }
  .logo-bar__item { flex: 0 0 auto; scroll-snap-align: start; }
  .logo-bar__brand { width: 122px; }
  .logo-bar__brand--wide { width: 156px; }
  .logo-bar__radius { display: none; }
  .logo-bar__divider { display: none; }
}

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
  .hero__ctas .btn { min-width: 230px; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .size-pair { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--feature { grid-column: span 2; }
  .gallery-item--wide { grid-column: span 2; }
  .price-cards { grid-template-columns: 1fr 1fr; }
  .chooser { grid-template-columns: 1fr 1fr; }
  .site-header__phone span { display: inline; }
  .trust-stats { grid-template-columns: repeat(3, 1fr); }
  .system-feature { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .brochure-grid { grid-template-columns: repeat(2, 1fr); }
  .brochure-cta { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  .section { padding: 4.6rem 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2.2rem; }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
  }
  .gallery-item {
    min-height: 0;
  }
  .gallery-item img {
    min-height: 0;
    aspect-ratio: auto;
  }
  .gallery-item--feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .hero { padding: 4.2rem 0 4.6rem; }
  .hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
  .flush-explainer { grid-template-columns: 0.9fr 1fr; align-items: stretch; }
  .flush-explainer__photo { grid-row: span 2; }
  .flush-explainer__profile { min-height: 260px; }

  .process { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }

  .trust-card { grid-template-columns: auto 1fr; align-items: center; gap: 2.2rem; padding: 2rem; }
  .brochure-grid { grid-template-columns: repeat(3, 1fr); }

  /* Pricing: table on desktop */
  .price-cards { display: none; }
  .price-table-wrap { display: block; overflow-x: auto; }
  .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .price-table th, .price-table td {
    padding: 0.95rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .price-table thead th {
    background: var(--navy);
    color: #DCE5F0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .price-table tbody tr:nth-child(even) { background: #FAFBFD; }
  .price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 0; }
  .price-table tbody th { color: var(--navy); font-size: 0.95rem; }
  .price-table td.price { font-weight: 800; color: var(--navy); white-space: nowrap; }
  .price-table td.price--total {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--royal));
    border-bottom-color: rgba(255,255,255,0.12);
  }

  .lead-form { padding: 2.2rem; }
  .lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; }
  .lead-form__grid .form-field--full { grid-column: 1 / -1; }
  .lead-form-section .lead-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }

  .site-footer__panel { grid-template-columns: 1.1fr 1.25fr 0.75fr 0.9fr; align-items: start; gap: 2rem; }

  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-item summary::after { transition: none; }
}
