/* ===========================================================
   Berger Paints Kenya — Landing Page Styles
   =========================================================== */

:root {
  --navy:      #011D49;   /* deepest brand blue   */
  --navy-700:  #045C9C;   /* mid blend blue       */
  --red:       #D37B43;   /* PRIMARY (buttons/links) */
  --red-dark:  #b9622e;   /* primary hover        */
  --gold:      #D37B43;   /* warm accent = primary */
  --whatsapp:  #25d366;
  --ink:       #011D49;
  --grey:      #5b6573;
  --line:      #e6e9ef;
  --bg:        #ffffff;
  --bg-soft:   #f4f7fa;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(14,47,90,.10);
  --shadow-lg: 0 20px 50px rgba(14,47,90,.18);
  --maxw:      1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.55vw + 13.2px, 17px);
  scroll-padding-top: var(--header-h, 130px);
}
/* fallback offset so anchored sections clear the sticky header */
section[id], [id] { scroll-margin-top: var(--header-h, 130px); }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Roboto', sans-serif; font-weight: 600; }
.brand-mark { font-family: 'Roboto', sans-serif; }
p, li, input, textarea, .btn, .nav-links a { font-weight: 400; }

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

a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}

/* image placeholder fallback (shown when real asset is missing) */
.img-fallback {
  width: 100% !important; height: 100% !important;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--red) 160%);
  position: relative;
}
.img-fallback::after {
  content: "Image placeholder";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font: 600 .8rem 'Roboto', sans-serif; letter-spacing: .05em;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1da851; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-blue { background: var(--navy-700); color: #fff; }
.btn-blue:hover { background: var(--navy); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 12px rgba(14,47,90,.07);
}

.top-strip { height: 14px; overflow: hidden; background: var(--navy); }
.top-strip img { width: 100%; height: 100%; object-fit: cover; }
/* default colour bands if footer-strip.png missing */
.top-strip .img-fallback {
  background: linear-gradient(90deg,
    var(--red) 0 20%, var(--gold) 20% 40%, #2e8b57 40% 60%,
    var(--navy) 60% 80%, #6a1b9a 80% 100%) !important;
}
.top-strip .img-fallback::after { content: ""; }

.navbar {
  background: transparent;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
  position: relative;
}
.brand { display: flex; align-items: flex-end; gap: 8px; line-height: 1; }
.brand-logo { height: 48px; width: auto; }
.brand-mark { font-size: 1.7rem; font-weight: 800; color: var(--red); letter-spacing: -.01em; }
.brand-mark.light { color: #fff; }
.brand-sub {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-700); padding-bottom: 4px;
}
.footer-logo-chip { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 10px; }
.footer-logo-chip img { height: 46px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .25s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

/* nav dropdown */
.has-dropdown { position: relative; }
.caret { font-size: .7em; transition: transform .2s; }
.dropdown {
  list-style: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px);
}
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown li { border: 0; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 7px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--bg-soft); color: var(--red); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  margin-left: auto; padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 75-YEAR ANIMATED BADGE ---------- */
.badge-75 {
  width: 96px; height: 96px; flex: 0 0 96px; position: relative;
  display: grid; place-items: center;
  animation: badgeFloat 3s ease-in-out infinite;
}
.badge-75 img { width: 100%; height: 100%; object-fit: contain;
  animation: badgeSpinIn 1s ease both, badgePulse 2.6s ease-in-out 1s infinite; }
.badge-75 .badge-css-inner { display: none; }

/* CSS fallback badge (used if 75-year.png is absent) */
.badge-75.badge-css { border-radius: 50%; }
.badge-75.badge-css .badge-css-inner {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--gold), #d99a00);
  color: var(--navy); box-shadow: 0 6px 16px rgba(244,180,26,.45);
  border: 3px solid #fff; line-height: 1; text-align: center;
  animation: badgePulse 2.6s ease-in-out infinite;
}
.badge-75.badge-css::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed var(--gold); animation: badgeRing 8s linear infinite;
}
.badge-num { font: 800 1.25rem 'Roboto', sans-serif; }
.badge-text { font: 700 .5rem 'Roboto', sans-serif; letter-spacing: .12em; }

@keyframes badgeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes badgeSpinIn { from { transform: rotate(-180deg) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes badgeRing { to { transform: rotate(360deg); } }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh;            /* fallback */
  min-height: 88svh;          /* avoids mobile address-bar jump */
}
@supports (height: 100dvh) { .hero { min-height: 88dvh; } }
/* short / landscape screens: keep content visible, allow it to breathe */
@media (max-height: 640px) {
  .hero { min-height: 460px; }
  .hero-slide { align-items: flex-start; }
  .hero-content { padding-top: 48px; padding-bottom: 64px; }
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  display: flex; align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 6s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-bg--contain {
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: #fff; transform: none;
}

/* light slide (dark text over a light photo) */
.hero-overlay--light {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.hero-slide--light .hero-content { color: var(--navy); }
.hero-slide--light .hero-content h1 { color: var(--navy); }
.hero-slide--light .hero-sub { color: var(--ink); }
.hero-slide--light .hero-badge { filter: drop-shadow(0 4px 10px rgba(1,29,73,.18)); }
/* 75-years slide badge — crisp white rounded card so the emblem pops on the dark overlay */
.hero-slide--75 .hero-badge {
  display: inline-block; background: #fff;
  padding: 14px 18px; border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}
.hero-badge { width: clamp(110px, 12vw, 150px); height: auto; margin-bottom: 22px; }
.hero-slide.active .hero-bg--contain { transform: none; }

/* slider dots */
.hero-dots {
  position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50px; border: 0;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
  transition: width .3s ease, background .3s ease;
}
.hero-dots button:hover { background: rgba(255,255,255,.85); }
.hero-dots button.active { width: 32px; background: var(--red); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(1,29,73,.92) 0%, rgba(1,29,73,.66) 42%, rgba(4,92,156,.30) 78%, rgba(4,92,156,.12) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 90px 24px; color: #fff; width: 100%;
}
.hero-eyebrow {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  color: var(--gold); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 600; line-height: 1.05; max-width: 14ch; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 46ch; margin: 20px 0 34px; color: #e8eef7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-content > * { opacity: 0; transform: translateY(24px); animation: heroIn .8s ease forwards; }
.hero-eyebrow { animation-delay: .1s; }
.hero h1 { animation-delay: .25s; }
.hero-sub { animation-delay: .4s; }
.hero-cta { animation-delay: .55s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ===================== TRUST BAR ===================== */
.trust-bar { background: var(--navy-700); color: #fff; padding: 26px 24px; text-align: center; }
.trust-line {
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  max-width: 920px; margin: 0 auto;
}
.trust-line strong { color: var(--red); font-weight: 700; }
.trust-deco {
  flex: 1; max-width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
  border-radius: 2px;
}
.trust-deco:last-child { background: linear-gradient(90deg, var(--red), transparent); }

/* ===================== SECTIONS ===================== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; color: var(--navy); line-height: 1.15; }

/* ABOUT */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-text p { color: var(--grey); margin: 16px 0; }
.about-text .btn { margin-top: 12px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow);
  border-top: 4px solid var(--red); text-align: center;
}
.stat-card strong { display: block; font-family: 'Roboto', sans-serif; font-size: 1.9rem; color: var(--navy); }
.stat-card span { font-size: .85rem; color: var(--grey); }

/* BRANDS (under About) */
.brands { margin-top: 64px; }
.brands-head { text-align: center; margin-bottom: 32px; }
.brands-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--navy); margin-top: 4px; }
.brands-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  aspect-ratio: 3/2; display: grid; place-items: center; padding: 18px;
}
.brand-card img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}

/* CATEGORIES */
.section-intro { color: var(--grey); margin-top: 14px; font-size: 1.05rem; }
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.cat-card { flex: 0 1 calc(33.333% - 19px); }
.cat-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .88rem; color: var(--red); }
.cat-card:hover .cat-link { color: var(--red-dark); }
.cat-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-img { aspect-ratio: 4/3; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-body { padding: 20px; }
.cat-body h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.cat-body p { font-size: .9rem; color: var(--grey); }

/* ===================== PRODUCT RANGE (tabbed) ===================== */
.range { background: var(--bg-soft); }

/* dedicated product range page */
.range-page { padding-top: 48px; }
.range-head { margin-bottom: 30px; }
.range-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--navy); font-weight: 600; margin-top: 4px; }
.range-head p { color: var(--grey); margin-top: 8px; }
.range-link { color: var(--red); font-weight: 600; white-space: nowrap; }
.range-link:hover { color: var(--red-dark); }
.range-back { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.range-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.range-tab {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font: 600 .95rem 'Roboto', sans-serif; cursor: pointer;
  padding: 14px 22px; border-radius: 8px; transition: background .2s, color .2s, border-color .2s;
}
.range-tab:hover { border-color: var(--red); color: var(--red); }
.range-tab.active { background: var(--red); color: #fff; border-color: var(--red); }

.range-panel { display: none; }
.range-panel.active { display: block; animation: panelFade .45s ease both; }
@keyframes panelFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.range-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); font-weight: 600; }
.range-desc { color: var(--grey); max-width: 980px; margin: 12px 0 40px; font-size: 1.02rem; line-height: 1.7; }

.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.pr-card { display: flex; flex-direction: column; animation: cardRise .5s ease both; }
.range-panel.active .pr-card:nth-child(2) { animation-delay: .08s; }
.range-panel.active .pr-card:nth-child(3) { animation-delay: .16s; }
.range-panel.active .pr-card:nth-child(4) { animation-delay: .24s; }
.range-panel.active .pr-card:nth-child(5) { animation-delay: .32s; }
@keyframes cardRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.pr-img { height: 290px; display: grid; place-items: end center; padding: 6px; position: relative; overflow: hidden; }
/* uniform tin height across all products */
.pr-img img { height: 250px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 14px 16px rgba(1,29,73,.16));
  transition: transform .45s ease; transform-origin: bottom center; }
/* zoom on hover */
.pr-card:hover .pr-img img { transform: scale(1.12); }
/* photos & logos scale to fit instead of fixed height */
.pr-card--wide .pr-img img, .pr-img--logo img { height: auto; max-height: 100%; }
/* product photos that keep their own (white) background: clean framed tile */
.pr-img img.has-bg {
  height: 250px; width: 250px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; filter: none;
}

/* TexturZ: product left, texture swatches right (PDF layout) */
.texturz-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }
.texturz-product { max-width: 340px; }
.tz-sw-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .02em; }
.pr-img::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 2px; height: 14px;
  background: radial-gradient(ellipse at center, rgba(14,47,90,.18) 0%, rgba(14,47,90,0) 72%); border-radius: 50%;
}
.pr-img--logo img { filter: none; }
.pr-card--dark .pr-img { background: #000; border-radius: 14px 14px 0 0; }

.pr-info {
  background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(1,29,73,.10);
  padding: 24px 24px 26px; margin-top: 6px; flex: 1;
}
.pr-info h4 { font-size: 1.15rem; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .01em; }
.pr-info ul { list-style: none; }
.pr-info li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--navy-700); font-size: .92rem; line-height: 1.5; }
.pr-info li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.pr-card--wide { grid-column: span 2; }
.pr-card--wide .pr-img { height: 320px; }

/* PROJECTS */
.projects {
  position: relative;
  background-image: url('../images/map-3.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.proj-card {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/3.6;
  box-shadow: 0 12px 30px rgba(1,29,73,.10);
  transition: transform .35s ease, box-shadow .35s ease;
}
.proj-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(1,29,73,.22); }
.proj-media { position: absolute; inset: 0; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-media img { transform: scale(1.1); }

/* gradient veil — deepens on hover */
.proj-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(1,29,73,.88) 0%, rgba(1,29,73,.30) 45%, rgba(1,29,73,0) 70%);
  transition: background .35s ease;
}
.proj-card:hover::after {
  background: linear-gradient(to top, rgba(1,29,73,.92) 0%, rgba(1,29,73,.45) 55%, rgba(4,92,156,.18) 100%);
}

.proj-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 50px;
}

.proj-caption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 26px 22px 24px; color: #fff;
  transform: translateY(8px); transition: transform .35s ease;
}
.proj-card:hover .proj-caption { transform: translateY(0); }
.proj-caption h3 { font-size: 1.25rem; margin-bottom: 6px; }
.proj-caption p {
  font-size: .9rem; color: #d6e3f0;
  position: relative; padding-top: 12px;
}
.proj-caption p::before {
  content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px;
  background: var(--red); border-radius: 2px;
}

/* SECTION CTA (e.g. View Projects) */
.section-cta { text-align: center; margin-top: 44px; }

/* WHY BERGER */
.why { background: var(--bg-soft); }
.why-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.why-text p { color: var(--grey); font-size: 1.08rem; margin: 18px 0; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact-cta .btn { flex: 1 1 160px; justify-content: center; }
.contact-info p { color: var(--grey); margin: 14px 0 22px; }
.contact-list { list-style: none; margin-bottom: 26px; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--grey); }
.contact-list strong { color: var(--ink); margin-right: 6px; }
.contact-list a:hover { color: var(--red); }
.contact-form { background: var(--bg-soft); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field-hint { font-weight: 400; color: var(--grey); font-size: .82rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; transition: border .2s, box-shadow .2s;
}
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.25em, calc(100% - 13px) 1.25em; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,35,26,.12); }

/* product enquire link on the products page */
.pr-enquire { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--red); }
.pr-enquire:hover { color: var(--red-dark); }
.form-note { color: #1da851; font-weight: 600; margin-top: 14px; text-align: center; }
.form-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--grey); font-size: .85rem; }
.form-or::before, .form-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#formWhatsApp { margin-bottom: 4px; }

/* ===================== MODAL (product popup) ===================== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,29,73,.62); backdrop-filter: blur(2px); }
.modal-dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 16px;
  width: 100%; max-width: 720px; overflow: hidden;
  max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(1,29,73,.4);
  animation: modalIn .35s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(1,29,73,.06); color: var(--navy); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--red); color: #fff; }
.modal-head { padding: 30px 30px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); margin-top: 2px; }
.modal-head p { color: var(--grey); margin-top: 8px; }
.modal-body { padding: 8px 30px; overflow-y: auto; }

/* tab navigation */
.modal-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 30px 0;
  position: sticky; top: 0; background: #fff; z-index: 3;
}
.modal-tab {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font: 600 .86rem 'Roboto', sans-serif; cursor: pointer;
  padding: 9px 16px; border-radius: 50px; transition: background .2s, color .2s, border-color .2s;
}
.modal-tab:hover { border-color: var(--navy-700); }
.modal-tab.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.prod-group { padding: 22px 0; display: none; }
.prod-group.active { display: block; animation: tabFade .3s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.prod-pair { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.prod-pair figure {
  flex: 1 1 0; min-width: 170px; text-align: center; margin: 0;
  background: radial-gradient(circle at 50% 32%, #ffffff 0%, #eef2f7 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.prod-pair figure:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1,29,73,.14); }
.prod-pair img {
  height: 200px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px;
  filter: drop-shadow(0 12px 16px rgba(1,29,73,.18));
}
/* images that keep their own (non-transparent) background: frame instead of float */
.prod-pair img.has-bg {
  filter: none; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  object-fit: contain;
}
.prod-pair figcaption { font-weight: 600; font-size: .95rem; color: var(--navy); }

/* single, centered product card */
.prod-pair.single { justify-content: center; }
.prod-pair.single figure { flex: 0 1 380px; max-width: 380px; }

/* dark product card (e.g. black-pack products) — matches the image's black background */
.prod-pair--dark figure {
  background: #000; border: 1px solid #23262d; padding: 18px 14px 14px;
}
.prod-pair--dark img { filter: none; }
.prod-pair--dark figcaption { color: #fff; margin-top: 4px; }

.prod-sub {
  font-size: 1.05rem; color: var(--red); margin: 18px 0 4px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.prod-group .prod-sub:first-of-type { border-top: 0; padding-top: 0; }

.prod-specs { margin: 6px 0 2px; }
.prod-specs dt {
  font-weight: 600; color: var(--navy-700); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .03em; margin-top: 12px;
}
.prod-specs dd { margin: 3px 0 0; color: var(--grey); font-size: .94rem; line-height: 1.55; }
.modal-foot { padding: 18px 30px 26px; border-top: 1px solid var(--line); text-align: center; }
body.modal-locked { overflow: hidden; }

/* ---- Tartaruga (catalogue-style) popup ---- */
.modal-dialog--tart { max-width: 880px; }
.tart-banner {
  background: linear-gradient(90deg, #0a0c10 0%, #1c212b 70%, #2a3140 100%);
  padding: 22px 30px; border-radius: 16px 16px 0 0;
}
.tart-banner h2 {
  color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}
.modal-dialog--tart .modal-close { background: rgba(255,255,255,.16); color: #fff; }
.modal-dialog--tart .modal-close:hover { background: var(--red); }
.tart-body { padding: 26px 30px; }

.tart-top { display: flex; gap: 30px; align-items: center; margin-bottom: 26px; }
.tart-product { flex: 0 0 42%; text-align: center; }
.tart-product img { height: 250px; width: auto; max-width: 100%; object-fit: contain; }
.tart-product::after {
  content: ""; display: block; width: 72%; height: 22px; margin: -4px auto 0;
  background: radial-gradient(ellipse at center, rgba(14,47,90,.18) 0%, rgba(14,47,90,0) 70%);
  border-radius: 50%;
}
.tart-info { flex: 1; }
.tart-title {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 20px; border-radius: 6px; margin-bottom: 16px; font-size: 1.05rem;
}
.tart-list { list-style: none; }
.tart-list li {
  position: relative; padding-left: 26px; margin: 10px 0; color: var(--ink); font-size: .98rem;
}
.tart-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(211,123,67,.22);
}

.tart-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tart-swatches figure { margin: 0; text-align: center; }
.tart-swatches img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: 0 4px 10px rgba(1,29,73,.08);
}
.tart-swatches figcaption {
  margin-top: 6px; font-size: .72rem; font-weight: 600; color: var(--navy); letter-spacing: .02em;
}

/* ---- Woodcare (3-column catalogue-style) popup ---- */
.modal-dialog--wood { max-width: 920px; }
.modal-dialog--wood .modal-close { background: rgba(255,255,255,.16); color: #fff; }
.modal-dialog--wood .modal-close:hover { background: var(--red); }
.wood-body { padding: 26px 30px; }
.wood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wood-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
.wood-img {
  position: relative; width: 100%; height: 210px; display: grid; place-items: end center;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #eef2f7 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px 22px; margin-bottom: 14px;
}
.wood-img img {
  position: relative; z-index: 1;
  max-height: 100%; max-width: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 10px 14px rgba(1,29,73,.16));
}
/* shared pedestal baseline so all tins sit at the same position */
.wood-img::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 14px; height: 16px;
  background: radial-gradient(ellipse at center, rgba(14,47,90,.2) 0%, rgba(14,47,90,0) 72%);
  border-radius: 50%;
}
.wood-name {
  display: block; width: 100%; background: var(--red); color: #fff;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .92rem;
  padding: 9px 10px; border-radius: 6px; margin-bottom: 14px;
}
.wood-list { list-style: none; text-align: left; width: 100%; }
.wood-list li {
  position: relative; padding-left: 22px; margin: 9px 0; font-size: .9rem; color: var(--ink); line-height: 1.5;
}
.wood-list li::before {
  content: ""; position: absolute; left: 0; top: .4em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(211,123,67,.2);
}
.wood-spec {
  margin-top: 24px; text-align: center; color: var(--navy); font-size: .95rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.wood-spec strong { color: var(--navy-700); }

/* ===================== FINAL CTA ===================== */
.final-cta {
  background: var(--navy-700);
  color: #fff; text-align: center; padding: 72px 24px;
}
.final-cta-inner { max-width: 760px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; line-height: 1.2; }
.final-cta p { color: #d6e3f0; font-size: 1.1rem; margin: 16px 0 30px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-700); color: #e4edf6; }
.footer-strip { height: 8px; overflow: hidden; background: var(--red); }
.footer-strip img { width: 100%; height: 100%; object-fit: cover; }
.footer-strip .img-fallback {
  background: linear-gradient(90deg, var(--red) 0 20%, #f0c419 20% 40%, #2e8b57 40% 60%, #1b56a0 60% 80%, #6a1b9a 80% 100%) !important;
}
.footer-strip .img-fallback::after { content: ""; }

.footer-main {
  display: grid; grid-template-columns: 1.05fr 1.15fr 1.25fr; gap: 36px;
  align-items: start; padding: 0 24px 44px;
}

/* Col 1: white logo card (raised) */
.footer-card {
  background: #fff; color: var(--ink); border-radius: 2px;
  border-top: 5px solid var(--red);
  padding: 20px 20px; margin-top: -56px; align-self: start;
}
.footer-card-logo { width: 80%; max-width: 350px; height: auto; margin-bottom: 18px; }
.footer-card p { color: var(--grey); font-size: .95rem; margin-bottom: 22px; }
.footer-card .btn { margin-top: 4px; }

/* Col 2: connect with us */
.footer-connect { padding-top: 18px; }
.footer-title {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 22px;
}
.title-tick { width: 5px; height: 26px; background: var(--red); border-radius: 2px; display: inline-block; }
.newsletter { display: flex; gap: 10px; max-width: 460px; }
.newsletter input {
  flex: 1; padding: 13px 16px; border: 0; border-radius: 4px; font: inherit; background: #fff; color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--red); }
.newsletter .btn { border-radius: 4px; padding: 13px 26px; }
.news-note { color: #cdeacd; font-weight: 600; margin-top: 10px; font-size: .9rem; }

.social { display: flex; gap: 12px; margin-top: 20px; }
.social a {
  width: 40px; height: 40px; border-radius: 6px; background: var(--red); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--red-dark); transform: translateY(-2px); }

.footer-offices { margin-top: 26px; }
.footer-offices p { font-size: .9rem; margin: 8px 0; color: #d6e3f0; max-width: 46ch; }
.footer-offices strong { color: #fff; }
.footer-offices a { color: #fff; }
.footer-offices a:hover { color: var(--red); }

/* Col 3: maps — aligned with the "CONNECT WITH US" heading */
.footer-maps { display: grid; gap: 10px; align-self: start; padding-top: 18px; }
.map-box { position: relative; border-radius: 4px; overflow: hidden; background: #cfd8e2; }
.map-box iframe { width: 100%; height: clamp(200px, 26vw, 380px); border: 0; display: block; }
.map-label {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 4px; letter-spacing: .04em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; max-width: var(--maxw); margin: 0 auto;
}
.footer-legal { list-style: none; display: flex; gap: 26px; }
.footer-legal a { color: #fff; font-weight: 500; }
.footer-legal a:hover { color: var(--red); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: badgePulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { background: #1da851; }

/* back-to-top button */
.to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(1,29,73,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* spam honeypot — hidden from real users */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-card { margin-top: -40px; }
  .footer-maps { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .cat-card { flex-basis: calc(50% - 14px); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 38px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .navbar { gap: 14px; }
  .brand-logo { height: 42px; }
  .badge-75 { order: 1; width: 70px; height: 70px; flex-basis: 70px; }
  .badge-75.badge-css .badge-css-inner { width: 70px; height: 70px; }
  .nav-toggle { order: 2; }
  .nav-links {
    order: 3; position: absolute; top: 100%; left: 0; right: 0; flex: none;
    flex-direction: column; gap: 0;
    background: #fff; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 24px; }
  .nav-links a::after { display: none; }
  /* dropdown becomes inline list in mobile menu */
  .caret { display: none; }
  .has-dropdown .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border-radius: 0; padding: 0; min-width: 0; background: var(--bg-soft);
  }
  .has-dropdown .dropdown a { padding: 12px 24px 12px 40px; font-size: .9rem; }

  /* product range */
  .pr-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .pr-card--wide { grid-column: span 2; }

  .hero { min-height: 74vh; }
  .hero-content { padding: 60px 24px; }
  /* darken the whole image on small screens so text reads over any part of it */
  .hero-overlay {
    background: linear-gradient(180deg, rgba(1,29,73,.55) 0%, rgba(1,29,73,.78) 100%);
  }
  .hero-overlay--light { background: rgba(1,29,73,.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-slide--light .hero-content, .hero-slide--light .hero-content h1, .hero-slide--light .hero-sub { color: #fff; }
  .hero-badge { margin-bottom: 14px; }
  .footer-maps { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large phones */
@media (max-width: 680px) {
  .cat-card { flex-basis: calc(50% - 14px); }
  .pr-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pr-card--wide { grid-column: span 1; }
  .texturz-layout { grid-template-columns: 1fr; gap: 30px; }
  .texturz-product { max-width: 360px; margin: 0 auto; }
  .range-tab { padding: 11px 16px; font-size: .88rem; }
  .proj-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding-top: 52px; }
  .footer-card { margin-top: 0; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
  .contact-cta .btn { flex: 1 1 100%; }
  .container { padding: 0 18px; }

  /* Modal on phones */
  .modal { padding: 12px; }
  .modal-dialog { max-height: 92dvh; border-radius: 12px; }
  .modal-head { padding: 26px 20px 16px; }
  .modal-foot { padding: 16px 20px 22px; }
  .modal-tabs { padding: 14px 20px 0; gap: 6px; }
  .prod-pair { gap: 12px; }
  .prod-pair figure { min-width: 0; padding: 14px 10px; }
  .prod-pair img { height: 150px; }

  .tart-banner { padding: 18px 20px; }
  .tart-body { padding: 22px 20px; }
  .tart-top { flex-direction: column; gap: 18px; text-align: center; }
  .tart-product { flex-basis: auto; }
  .tart-product img { height: 200px; }
  .tart-swatches { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .wood-body { padding: 22px 20px; }
  .wood-grid { grid-template-columns: 1fr; gap: 26px; max-width: 420px; margin: 0 auto; }
}

/* Small phones */
@media (max-width: 460px) {
  .section { padding: 52px 0; }
  .trust-items { grid-template-columns: 1fr; }
  .cat-card { flex-basis: 100%; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .badge-75 { width: 60px; height: 60px; flex-basis: 60px; }
  .badge-75.badge-css .badge-css-inner { width: 60px; height: 60px; }
  .brand-logo { height: 38px; }
  .brand-sub { display: none; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; justify-content: center; }
  .footer-card { padding: 26px 22px; }
  .footer-card-logo { width: 70%; }
  .trust-bar { padding: 26px 18px; }
  .modal-head, .modal-body, .modal-foot, .modal-tabs { padding-left: 18px; padding-right: 18px; }
  .modal-tab { padding: 8px 12px; font-size: .78rem; }
  .prod-pair { flex-direction: column; }
  .prod-pair img { height: 170px; }
  .prod-specs dd { font-size: .9rem; }
  .tart-swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
