/* ============================================================
   DESIGN TOKENS: change colours and fonts here
   ============================================================ */
:root {
  --ink: #10263a;
  --ink-soft: #46596a;
  --teal: #0b7a83;
  --teal-dark: #075a61;
  --mist: #edf4f4;
  --line: #d3e0e1;
  --signal: #f0a030;
  --signal-dark: #d88b1c;
  --green: #1c8a4a;
  --white: #ffffff;

  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --max: 1120px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--mist); }
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--ink-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ============================================================
   BUTTONS AND LINKS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--ink);
  font: 700 1rem var(--font-body);
  text-decoration: none;
  border: 2px solid var(--signal);
  cursor: pointer;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: transparent; border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.95rem; }

.text-link { font-weight: 600; font-size: 0.95rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.text-link.danger { color: #a3261c; }

.badge {
  display: inline-grid; place-items: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem;
  border-radius: 999px; background: var(--signal); color: var(--ink);
  font-size: 0.8rem; font-weight: 800; line-height: 1;
}

/* ============================================================
   HEADER AND NAV
   ============================================================ */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }

.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 8px; background: var(--teal); color: var(--white); display: grid; place-items: center; }
.brand-mark svg { width: 1.2rem; height: 1.2rem; }
.brand-logo { height: 2.5rem; width: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); border-bottom: 3px solid var(--teal); padding-bottom: 2px; }
.nav-quote { display: inline-flex; align-items: center; gap: 0.4rem; }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 0.4rem 0.8rem; font: 700 0.95rem var(--font-body); color: var(--ink); cursor: pointer;
  align-items: center; gap: 0.3rem;
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav .nav-quote { display: inline-flex; }
}

/* ============================================================
   HOME: HERO
   ============================================================ */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0; background: radial-gradient(circle at 82% 38%, rgba(11, 122, 131, 0.10), transparent 34%), linear-gradient(180deg, var(--mist), var(--white)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: center; }
.hero h1 { width: 100%; max-width: none; font-size: clamp(2.35rem, 3.15vw, 3.35rem); line-height: 1.06; letter-spacing: -0.04em; }
.hero-tagline { max-width: 36rem; margin: 1rem 0 0.45rem; color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 700; line-height: 1.3; }
.hero .lead { max-width: 36rem; margin-bottom: 0; }
.hero h1 .headline-line { display: inline; }
@media (min-width: 1100px) {
  .hero h1 .headline-line { display: block; white-space: nowrap; }
}

.hero .lead { max-width: 36rem; margin-bottom: 0; }
.eyebrow { font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 0.8rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.hero-consult { padding: 0.6rem 0.2rem; }

.search-row { display: flex; gap: 0.5rem; margin: 1.5rem 0 0; max-width: 28rem; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 3; min-height: 300px; border: 1px solid rgba(11, 122, 131, 0.14);
  border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--ink));
  box-shadow: 0 24px 60px rgba(16, 38, 58, 0.17);
}
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-fallback {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr;
  place-items: center; padding: 2rem 2rem 4rem; gap: 1rem; color: rgba(255, 255, 255, 0.85);
}
.hero-fallback svg { width: 4.5rem; height: 4.5rem; }
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--white); border-radius: 12px;
  padding: 0.6rem 0.9rem; display: flex; gap: 0.6rem; align-items: center;
  box-shadow: 0 6px 20px rgba(16, 38, 58, 0.2); line-height: 1.25;
}
.hero-badge svg { width: 1.8rem; height: 1.8rem; color: var(--green); flex: none; }
.hero-badge span { font-size: 0.85rem; color: var(--ink-soft); display: block; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { max-width: none; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-about-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ============================================================
   HOME: TRUST STRIP
   ============================================================ */
.trust-strip { border-block: 1px solid var(--line); background: #fbfdfd; }
.trust-strip ul { list-style: none; margin: 0; padding: 1.15rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.trust-item { display: flex; align-items: center; gap: 0.7rem; }
.trust-item svg { width: 2.1rem; height: 2.1rem; flex: none; color: var(--teal); }
.trust-item strong { display: block; line-height: 1.2; }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }
.trust-kra svg { color: var(--green); }

/* ============================================================
   HOME: CATEGORY TILES
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tile {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tile:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(16, 38, 58, 0.08);
  transform: translateY(-2px);
}
.tile-fallback {
  display: none;
  position: absolute;
  inset: 0 0 3.8rem;
  place-items: center;
  background: #f7fafb;
  color: var(--teal);
}
.tile-fallback svg {
  width: 3.6rem;
  height: 3.6rem;
  opacity: 0.85;
}
.tile img {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: contain;
  background: #fff;
  transition: transform 0.3s;
}
.tile:hover img { transform: scale(1.025); }
.tile-label {
  position: static;
  display: block;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--ink);
  background: var(--white);
  font: 700 1rem/1.35 var(--font-head);
}

/* ============================================================
   PRODUCT CARDS (photo first)
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.25rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-media, .quote-thumb {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--mist), #d8e9ea); color: var(--teal);
}
.card-media { aspect-ratio: 4 / 3; }
.card-media img, .quote-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Featured catalogue products use clean manufacturer packshots: show the complete item on white. */
.card-media-featured { background: #fff; }
.card-media-featured img { object-fit: contain; padding: 0.85rem; background: #fff; }
.media-fallback svg { width: 3.2rem; height: 3.2rem; opacity: 0.8; }

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.8rem; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.card-desc {
  font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.page-title { padding: 2.5rem 0 1.8rem; background: var(--mist); }
.page-title h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.3rem; }
.page-title p { color: var(--ink-soft); margin: 0; }

.toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { padding: 0.45rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font: 600 0.95rem var(--font-body); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--teal); }
.filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.result-count { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
input[type="search"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 2px solid var(--line);
  border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--white);
}
input:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 8rem; resize: vertical; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.hint { font-size: 0.9rem; color: var(--ink-soft); margin: 0.3rem 0 0; }

.form-status { padding: 0.7rem 1rem; border-radius: 8px; margin: 1rem 0 0; font-weight: 600; }
.form-status.ok { background: #e4f5ea; color: #13552e; }
.form-status.error { background: #fdecea; color: #8a1f17; }

/* ============================================================
   QUOTE PAGE
   ============================================================ */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.quote-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.8rem; }
.quote-row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem; }
.quote-row h3 { margin: 0; font-size: 1rem; }
.quote-row .card-cat { margin: 0.1rem 0 0; }
.quote-thumb { width: 4.5rem; aspect-ratio: 1; border-radius: 8px; }
.quote-thumb .media-fallback svg { width: 2rem; height: 2rem; }
.quote-controls { display: grid; justify-items: end; gap: 0.4rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; }
.qty button { width: 2.2rem; height: 2.2rem; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 2rem; text-align: center; font-weight: 700; }
.quote-tools { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.quote-actions { display: grid; gap: 0.7rem; margin-top: 1rem; }
.quote-actions .btn { text-align: center; }

.btn-whatsapp { background: #1fa855; border-color: #1fa855; color: var(--white); }
.btn-whatsapp:hover { background: #178a45; border-color: #178a45; }

.success-box { text-align: center; padding: 3rem 1rem; }
.success-box p { margin-inline: auto; }

@media (max-width: 860px) {
  .quote-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .quote-row { grid-template-columns: 4rem 1fr; }
  .quote-thumb { width: 4rem; }
  .quote-controls { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; }
}

/* ============================================================
   CONTACT, MAP, RATING
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--mist); border-radius: 14px; padding: 1.5rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.1rem 0 0; }
[data-address] { white-space: pre-line; }

.notice { border-left: 4px solid var(--signal); background: var(--white); padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--ink-soft); margin-top: 1rem; }

.map-frame { border: 0; width: 100%; height: 22rem; border-radius: 16px; background: var(--mist); }
.map-actions { margin-top: 0.8rem; }

.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .rate-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.rate-form textarea { min-height: 5rem; }
.rate-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.rate-form legend { font-weight: 700; margin-bottom: 0.2rem; padding: 0; }

/* Star rating: radios in reverse order so "this star and all before it" light up */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.2rem; line-height: 1; color: #c3d2d3; cursor: pointer; }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--signal); }
.stars input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }

/* ============================================================
   CTA BAND AND SOCIAL
   ============================================================ */
.cta-band { background: var(--ink); color: var(--white); padding: 3rem 0; }
.cta-band p { color: #c8d5de; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-inner h2 { margin: 0 0 0.3rem; }
.cta-inner p { margin: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.social { display: flex; gap: 0.6rem; margin: 0.4rem 0 0.8rem; }
.social a { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.social a:hover { background: var(--teal); }
.social svg { width: 1.2rem; height: 1.2rem; }
.cta-band .social a { background: var(--white); color: var(--ink); }

/* ============================================================
   TRUST LIST (about page)
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.trust-grid h3 { color: var(--teal-dark); }
.trust-grid p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ============================================================
   FOOTER, FLOATING WHATSAPP, TOAST
   ============================================================ */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.site-footer h3 { font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.footer-kra { color: var(--green); font-size: 0.93rem; margin-bottom: 0.6rem; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-soft); font-size: 0.9rem; margin: 0; max-width: none; }

.whatsapp-float { position: fixed; right: 1rem; bottom: 1rem; background: #1fa855; color: var(--white); padding: 0.75rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; z-index: 60; }
.whatsapp-float:hover { background: #178a45; color: var(--white); }

.toast {
  position: fixed; left: 50%; bottom: 5rem; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); padding: 0.7rem 1.2rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  z-index: 70; display: flex; gap: 0.9rem; max-width: 92vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--signal); font-weight: 700; white-space: nowrap; }

@media (max-width: 520px) {
  .hero { padding: 2.25rem 0 2.75rem; }
  .hero h1 { max-width: none; font-size: clamp(2.25rem, 8.5vw, 3.1rem); }
  .hero-visual { min-height: 230px; aspect-ratio: 4 / 3; border-radius: 18px; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; gap: 0.9rem 0.6rem; }
  .trust-item { align-items: flex-start; gap: 0.5rem; }
  .trust-item svg { width: 1.7rem; height: 1.7rem; }
  .trust-item span { font-size: 0.78rem; }
  .home-about { padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .toast { transition: none; }
}

#quote-summary { margin-bottom: 1rem; }


/* ============================================================
   SERVICES (full-cycle)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.3rem 1.4rem; }
.service-card h3 { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.service-num { width: 2rem; height: 2rem; border-radius: 8px; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 800 1rem var(--font-head); }
.journey { list-style: none; counter-reset: step; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; }
.journey li { counter-increment: step; position: relative; padding-top: 2.6rem; }
.journey li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; font: 800 1rem var(--font-head); }
.journey strong { display: block; font-family: var(--font-head); margin-bottom: 0.25rem; }
.journey span { color: var(--ink-soft); font-size: 0.95rem; }

/* HOME: clearer company introduction and navigation CTA */
.site-nav .nav-quote { padding: 0.55rem 1rem; border-radius: 9px; color: var(--white); border: 2px solid var(--teal); background: var(--teal); }
.site-nav .nav-quote:hover { color: var(--white); background: var(--teal-dark); border-color: var(--teal-dark); }
.home-about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; }
.home-about-grid h2 { max-width: 15ch; margin-bottom: 0; }
.home-about-grid p { color: var(--ink-soft); }
.home-about-grid .eyebrow { margin-bottom: 0.5rem; }


/* FullShelf multi-category positioning refresh */
.catalogue-note { margin-top: .8rem; max-width: 70rem; }
.section-head p { max-width: 70ch; }
.tile { aspect-ratio: 1.12 / 1; }
.tile-fallback { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), transparent 58%); padding-bottom: 2.5rem; }
.tile-fallback svg { width: 4.1rem; height: 4.1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.tile-label { font-size: 1rem; min-height: 4.1rem; display: flex; align-items: flex-end; }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .tile { aspect-ratio: 1 / 1.05; } .tile-label { font-size: .9rem; padding-inline: .7rem; } }


/* ============================================================
   HOMEPAGE HERO: CLEARANCE AND HEADLINE WRAPPING
   Keeps the approved layout while preventing the headline from
   running into the hero image.
   ============================================================ */
@media (min-width: 861px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(3rem, 5vw, 5rem);
  }

  .hero-grid > :first-child {
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 3vw, 3.15rem);
    overflow-wrap: normal;
  }

  .hero h1 .headline-line {
    display: block;
    white-space: normal;
  }
}
