/* ==========================================================================
   National Chemical Corporation — nccpolystyrene.com
   Palette is taken from the company badge: NCC red with a bronze ring,
   set against a deep navy and a warm off-white.
   ========================================================================== */

:root {
  /* Reds sampled from the company poster */
  --brand:        #C70011;
  --brand-dark:   #9C0010;
  --brand-bright: #E10C1E;
  --brand-tint:   #FDEBED;
  --gold:         #C19A4B;
  --gold-light:   #E8CE8C;

  /* Charcoals, also from the poster */
  --ink:          #17181B;
  --navy:         #24272E;
  --navy-deep:    #16181C;
  --charcoal:     #1B1D22;

  /* Accent colours for icons and tiles */
  --green:        #1E8E53;
  --blue:         #1573BE;
  --teal:         #0E8F8C;
  --amber:        #E08A00;
  --violet:       #6A4A9C;

  --text:         #44474E;
  --text-muted:   #717680;
  --cream:        #F8F5EF;
  --cream-2:      #F0ECE3;
  --line:         #E3DED3;
  --white:        #FFFFFF;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(16, 29, 48, .06);
  --shadow:    0 10px 30px rgba(16, 29, 48, .09);
  --shadow-lg: 0 24px 60px rgba(16, 29, 48, .16);

  --wrap: 1180px;
  --font-display: 'Archivo', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: 104px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--cream { background: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy-deep); color: #C9D3E0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
@media (max-width: 480px) { .grid--2 { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

.lead { font-size: 1.14rem; color: var(--text); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 70ch; }
.measure-sm { max-width: 56ch; }

/* ─── Section heading ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold-light); }
.head { margin-bottom: 40px; }
.head.center .eyebrow::before { display: none; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .11em; text-transform: uppercase;
  padding: 15px 30px; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .2s ease; text-decoration: none;
  white-space: nowrap; text-align: center;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 420px) {
  .btn { white-space: normal; }
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #C8CEd6; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.topbar { background: var(--navy-deep); color: #B9C4D2; font-size: .83rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 9px; }
.topbar a { color: #D6DEE8; }
.topbar a:hover { color: var(--gold-light); }
.topbar__list { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 720px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 54px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.04rem; color: var(--ink); letter-spacing: .005em; }
.brand__sub { font-size: .63rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink); padding: 10px 15px; border-radius: var(--radius);
  position: relative; text-decoration: none;
}
.nav__link:hover { color: var(--brand); text-decoration: none; }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px; background: var(--gold);
}
.header-cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; min-width: 48px; flex-shrink: 0;
  background: var(--brand); border: 0;
  border-radius: var(--radius); cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; inset: 100% 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active::after { display: none; }
  .header-cta { margin: 14px 0 0; }
  .site-header__inner { position: relative; min-height: 72px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--navy-deep); color: #D4DCE6; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,29,48,.95) 0%, rgba(16,29,48,.86) 45%, rgba(16,29,48,.6) 100%);
}
.hero__inner { position: relative; padding-block: clamp(64px, 10vw, 118px); }
.hero__content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__kicker {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: .76rem;
  letter-spacing: .15em; text-transform: uppercase; padding: 8px 15px; margin-bottom: 20px;
  border-radius: 3px;
}
.hero__sub { font-size: 1.16rem; color: #C3CEDC; margin-bottom: 30px; max-width: 58ch; }
.hero .btn-row { margin-bottom: 8px; }
.hero__strap {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .17em;
  text-transform: uppercase; color: #9FB0C4;
}
.hero--sm .hero__inner { padding-block: clamp(50px, 7vw, 82px); }
.hero--sm h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

/* Highlighted word, like the brochure's underlined phrase */
.mark-gold { color: var(--gold); position: relative; white-space: nowrap; }
.mark-gold::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--gold);
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.crumbs { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #93A3B6; margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; }
.crumbs a { color: #93A3B6; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { color: var(--gold-light); }

/* ─── Stat strip ─────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 26px 22px; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--brand); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); height: 100%; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #D2C9B6; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.ico {
  width: 54px; height: 54px; border-radius: var(--radius); display: grid; place-items: center;
  margin-bottom: 18px; background: var(--brand-tint); color: var(--brand); flex-shrink: 0;
}
.ico svg { width: 27px; height: 27px; }
.ico--gold   { background: #FCF2DE; color: #9B7420; }
.ico--blue   { background: #E7F1FB; color: var(--blue); }
.ico--green  { background: #E6F5EC; color: var(--green); }
.ico--teal   { background: #E2F4F3; color: var(--teal); }
.ico--amber  { background: #FDF0DB; color: #B36D00; }
.ico--violet { background: #F0EBF9; color: var(--violet); }
.ico--navy   { background: #ECEDEF; color: var(--navy); }

/* Benefit tiles, like the brochure's icon row */
.benefit { text-align: center; padding: 28px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.benefit .ico { margin-inline: auto; border-radius: 50%; width: 60px; height: 60px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: .35em; }
.benefit p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ─── Application cards with photos ──────────────────────────────────────── */
.appcard { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 290px; display: flex; align-items: flex-end; color: #fff; background: var(--navy); }
.appcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.appcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,34,.92) 0%, rgba(10,20,34,.55) 45%, rgba(10,20,34,.12) 100%); }
.appcard:hover img { transform: scale(1.05); }
.appcard__body { position: relative; z-index: 2; padding: 26px; }
.appcard__tag { display: inline-block; font-family: var(--font-display); font-size: .67rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 5px 11px; border-radius: 3px; margin-bottom: 12px; }
.appcard h3 { color: #fff; font-size: 1.3rem; margin-bottom: .3em; }
.appcard p { color: #CAD5E2; font-size: .92rem; margin: 0; }

/* ─── Check list ─────────────────────────────────────────────────────────── */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.checks svg { width: 21px; height: 21px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.checks--gold svg { color: var(--gold); }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

/* ─── Split (text + image) ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__badge {
  position: absolute; right: -14px; bottom: -14px; background: var(--brand); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--font-display); max-width: 210px;
}
.split__badge strong { display: block; font-size: 1.85rem; line-height: 1; margin-bottom: 4px; }
.split__badge span { font-size: .76rem; line-height: 1.4; letter-spacing: .02em; opacity: .92; display: block; }
@media (max-width: 560px) { .split__badge { right: 0; bottom: -10px; padding: 14px 16px; max-width: 170px; } }

/* ─── Table ──────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
caption { text-align: left; padding: 16px 18px; font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--cream); font-family: var(--font-display); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FCFAF6; }
td strong { color: var(--ink); }

/* ─── Red feature strip, after the poster ────────────────────────────────── */
.featstrip { background: var(--brand); color: #fff; }
/* Explicit column counts, so the hairline dividers can be placed exactly. */
.featstrip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.feat { padding: 30px 24px; text-align: center; }
.feat + .feat { border-left: 1px solid rgba(255,255,255,.22); }
@media (max-width: 880px) {
  .featstrip__inner { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3) { border-left: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}
@media (max-width: 540px) {
  .featstrip__inner { grid-template-columns: 1fr; }
  .feat + .feat { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
}
.feat svg { width: 36px; height: 36px; color: #fff; margin-bottom: 12px; }
.feat h3 {
  color: #fff; font-size: .9rem; letter-spacing: .13em; text-transform: uppercase;
  margin: 0 0 6px; font-weight: 700;
}
.feat p { margin: 0; font-size: .87rem; color: rgba(255,255,255,.82); line-height: 1.55; }

/* ─── Nationwide supply bar ──────────────────────────────────────────────── */
.supplybar { background: var(--ink); color: #fff; }
.supplybar__inner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding-block: 16px; text-align: center;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
}
.supplybar svg { width: 20px; height: 20px; color: var(--brand-bright); }

/* ─── CTA band ───────────────────────────────────────────────────────────── */
.ctaband { background: var(--brand-dark); color: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.ctaband::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px;
  border: 44px solid rgba(255,255,255,.08); border-radius: 50%;
}
.ctaband .btn--on-dark:hover { color: var(--brand-dark); }
.ctaband__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; padding-block: clamp(42px, 6vw, 66px); }
.ctaband h2 { color: #fff; margin-bottom: .35em; }
.ctaband p { margin: 0; max-width: 54ch; }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.25fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.infolist { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.infolist li { display: flex; gap: 15px; margin: 0; }
.infolist .ico { width: 44px; height: 44px; margin: 0; }
.infolist .ico svg { width: 20px; height: 20px; }
.infolist__label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.infolist__value { display: block; color: var(--ink); font-weight: 500; line-height: 1.6; }
.infolist__value a { color: var(--ink); }
.infolist__value a:hover { color: var(--brand); }
.dirlink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand) !important;
}
.dirlink svg { width: 15px; height: 15px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--brand); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid #D5CFC2; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(175,30,45,.12); }
.textarea { resize: vertical; min-height: 128px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Skip link — off screen until focused by keyboard */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 11px 18px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; transition: top .15s;
}
.skip:focus { top: 12px; text-decoration: none; }

/* Stand-in block shown when a photo file is not present */
.photo-ph {
  display: grid; place-items: center; min-height: 240px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #E9E4D8 0 14px, #F2EEE4 14px 28px);
  border: 1px solid var(--line); color: var(--text-muted);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.appcard .photo-ph { position: absolute; inset: 0; border: 0; border-radius: 0; min-height: 0; }

.alert { padding: 15px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .95rem; border: 1px solid; }
.alert--ok { background: #ECF7F1; border-color: #BCE0CE; color: #1C6244; }
.alert--err { background: #FDEEEF; border-color: #F0C4C8; color: #96212D; }
.alert ul { margin: .5em 0 0; padding-left: 1.1em; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: #96A5B8; font-size: .94rem; padding-top: clamp(48px, 6vw, 72px); }
.site-footer h4 { font-family: var(--font-display); color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a { color: #B4C1D1; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; padding-bottom: 42px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; } }
.footer-brand__mark { width: 92px; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-note { background: rgba(0,0,0,.26); }
.footer-note__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: .86rem; color: #7E8EA2; }
.made-by { color: #7E8EA2; }

/* ─── Floating buttons: email bottom-right, back-to-top bottom-left ──────── */
.mail-float, .to-top {
  position: fixed; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow);
  border: 0; cursor: pointer; padding: 0;
  transition: transform .2s, background .2s;
}
.mail-float { right: 20px; background: var(--brand); color: #fff; }
.mail-float:hover { transform: scale(1.07); background: var(--brand-dark); text-decoration: none; }
.mail-float svg { width: 26px; height: 26px; }

.to-top { left: 20px; background: var(--ink); color: #fff; }
.to-top:hover { transform: scale(1.07); background: var(--brand); }
.to-top svg { width: 24px; height: 24px; }
.to-top[hidden] { display: none; }

/* ─── Reveal on scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .appcard img, .btn, .card { transition: none; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .mail-float, .topbar, .ctaband { display: none; }
  body { color: #000; }
}

/* ─── Savings calculator ─────────────────────────────────────────────────── */
.calc { background: var(--ink); color: #C9CDD4; position: relative; overflow: hidden; }
.calc::before {
  content: ""; position: absolute; left: -120px; bottom: -140px;
  width: 420px; height: 420px; border: 56px solid rgba(199,0,17,.16); border-radius: 50%;
}
.calc h2 { color: #fff; }
.calc .lead.muted { color: #9BA2AC; }

.calc__grid {
  position: relative; display: grid; gap: 22px; align-items: start;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 920px) { .calc__grid { grid-template-columns: 1fr; } }

.calc__panel {
  background: #22242A; border: 1px solid #32353D; border-radius: 6px;
  padding: clamp(22px, 3vw, 32px);
}
.calc__panel--result {
  background: linear-gradient(160deg, #C70011 0%, #8E000F 100%);
  border-color: rgba(255,255,255,.18); color: #fff;
}

.calc__field { margin-bottom: 26px; border: 0; padding: 0; }
.calc__field:last-child { margin-bottom: 0; }
.calc__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: #fff; margin-bottom: 12px; padding: 0; width: 100%;
}
.calc__out {
  font-weight: 800; color: var(--gold-light); font-size: 1rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Building type picker */
.calc__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 520px) { .calc__types { grid-template-columns: repeat(2, 1fr); } }
.calc__type input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc__type-box {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 15px 8px; min-height: 86px; justify-content: center;
  border: 2px solid #3A3D46; border-radius: 5px; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: #B8BDC6; text-align: center;
  transition: border-color .18s, background .18s, color .18s;
}
.calc__type-box svg { width: 24px; height: 24px; }
.calc__type:hover .calc__type-box { border-color: #5A5E69; color: #fff; }
.calc__type input:checked + .calc__type-box {
  border-color: var(--brand); background: rgba(199,0,17,.18); color: #fff;
}
.calc__type input:focus-visible + .calc__type-box { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Sliders */
.calc__range { width: 100%; height: 34px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #3A3D46; }
.calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: #3A3D46; }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--gold); border: 3px solid #fff; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.calc__range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  border: 3px solid #fff; cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.calc__range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.calc__scale { display: flex; justify-content: space-between; font-size: .73rem; color: #868C96; margin-top: -2px; }
.calc .select { background: #2B2E35; border-color: #3A3D46; color: #fff; }

/* Result side */
.calc__reslabel {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 0 0 8px;
}
.calc__big {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); color: #fff; margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.calc__per { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 8px; }

.calc__bars { margin: 24px 0 22px; display: grid; gap: 11px; }
.calc__bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 11px; font-size: .82rem; }
.calc__bar-label { color: rgba(255,255,255,.85); font-weight: 600; }
.calc__bar-track { height: 11px; border-radius: 6px; background: rgba(0,0,0,.28); overflow: hidden; }
.calc__bar-fill { display: block; height: 100%; border-radius: 6px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.calc__bar-fill--before { background: rgba(255,255,255,.4); }
.calc__bar-fill--after { background: var(--gold); }
.calc__bar-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
@media (max-width: 420px) { .calc__bar { grid-template-columns: 76px 1fr; } .calc__bar-val { grid-column: 2; text-align: right; } }

.calc__facts { margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.22); display: grid; gap: 11px; }
.calc__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.calc__facts dt { color: rgba(255,255,255,.82); font-size: .86rem; }
.calc__facts dd { margin: 0; font-weight: 700; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.calc__note { display: block; font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 400; }

.calc__cta { width: 100%; }
.calc__disclaimer { margin: 16px 0 0; font-size: .76rem; line-height: 1.6; color: rgba(255,255,255,.72); }

@media (prefers-reduced-motion: reduce) { .calc__bar-fill { transition: none; } }

/* ==========================================================================
   Phone optimisation
   Larger tap targets, readable label sizes, and layouts that stay compact
   instead of turning into one very long column.
   ========================================================================== */

@media (max-width: 900px) {
  /* Mobile drawer links need a proper tap height */
  .nav__link { padding: 15px 4px; min-height: 48px; display: flex; align-items: center; }
  .header-cta { min-height: 50px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Four stacked figures made the page very tall — show them two-up */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 14px; }
  .stat__num { font-size: 1.85rem; }
  .stat__label { font-size: .78rem; }

  /* Small uppercase labels were dipping under 12px */
  .eyebrow { font-size: .78rem; letter-spacing: .15em; }
  .hero__kicker { font-size: .8rem; }
  .hero__strap { font-size: .78rem; letter-spacing: .13em; }
  .crumbs { font-size: .8rem; }
  .crumbs a { display: inline-block; padding: 6px 0; }
  .brand__sub { font-size: .66rem; letter-spacing: .13em; }
  .appcard__tag, .feat h3 { font-size: .74rem; }

  /* Comfortable hit areas in the footer */
  .footer-list li { margin-bottom: 2px; }
  .footer-list a { display: inline-block; padding: 11px 0; min-height: 44px; }
  .site-footer h4 { margin-bottom: 10px; }
  .footer-grid { gap: 26px; padding-bottom: 32px; }

  /* Phone and email on the contact page are the main things people tap */
  .infolist__value a { display: inline-block; padding: 7px 0; }
  .infolist li { gap: 13px; }

  .section { padding-block: 48px; }
  .hero__inner { padding-block: 54px; }
  .hero__sub { font-size: 1.05rem; }
  .split { gap: 30px; }
  .card, .benefit { padding: 24px 20px; }
}

@media (max-width: 560px) {
  /* Full-width buttons read better than two half-width ones that wrap */
  .hero .btn-row .btn,
  .ctaband .btn-row .btn { width: 100%; }
  .btn { padding: 15px 22px; }

  .brand__mark { width: 46px; }
  .brand__name { font-size: .95rem; }

  /* Keep the floating buttons clear of the home indicator on notched phones */
  .mail-float, .to-top {
    width: 50px; height: 50px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .mail-float { right: 14px; }
  .to-top { left: 14px; }
  .mail-float svg { width: 23px; height: 23px; }
  .to-top svg { width: 21px; height: 21px; }

  /* Stop the last section sitting underneath the floating buttons */
  .site-footer { padding-bottom: 74px; }

  .split__badge { position: static; max-width: none; margin-top: 12px; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}

/* Final phone touch-ups: comfortable drag and tap areas */
@media (max-width: 760px) {
  .calc__range { height: 44px; }
  .crumbs a { padding: 10px 0; display: inline-block; }
  .dirlink { padding: 14px 0; }
  .calc__type-box { min-height: 92px; }
}
@media (max-width: 420px) {
  /* Decorative strapline under the logo — the name alone is clearer here */
  .brand__sub { display: none; }
}
