/* ===========================================================
   Smartseal Flat Roofing: global styles
   Tone: confident construction-trade, editorial, navy + electric blue
   =========================================================== */

:root {
  --ink:        #0B1020;       /* deep navy ink */
  --ink-2:      #1A2240;
  --paper:      #F6F4EE;       /* warm off-white */
  --paper-2:    #EDEAE0;
  --line:       #1f2a4a14;
  --line-strong:#1f2a4a26;
  --accent:     #2E47FF;       /* electric blue from logo */
  --accent-2:   #1E2A5E;       /* navy from logo */
  --muted:      #5A607A;
  --grey-90:    #11162B;
  --grey-80:    #1d2541;
  --grey-50:    #5A607A;
  --grey-30:    #9097AC;
  --shadow-sm:  0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-md:  0 8px 24px -8px rgba(11, 16, 32, 0.12);
  --shadow-lg:  0 24px 48px -12px rgba(11, 16, 32, 0.18);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.topbar-inner .topbar-pill { grid-column: 2; justify-self: center; }
.topbar-inner .topbar-meta { grid-column: 3; justify-self: end; }
.topbar-inner.topbar-centered {
  justify-content: center;
}
.topbar-pill {
  display: inline-flex; align-items: center; gap: 8px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(74,222,128,0.04); }
}
.topbar-meta { display: flex; gap: 14px; align-items: center; }
.topbar-meta .sep { opacity: 0.4; }
.topbar-meta a:hover { color: #fff; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand { justify-self: start; }
.brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 12px; align-items: center; justify-self: end; }

/* hamburger toggle, hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--paper);
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, border-color 0.3s ease;
}
.mobile-menu.open {
  max-height: 460px;
  border-top-color: var(--line);
}
.mm-inner {
  padding: 12px 24px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-menu a.mm-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mm-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.mm-cta .btn-primary,
.mm-cta .btn-ghost {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
}
.mm-cta .btn-ghost {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
body.menu-open { overflow: hidden; }

/* ===================== BUTTONS ===================== */
.btn-primary, .btn-ghost, .btn-outline, .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { color: var(--accent); }
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--ink);
}
.lg {
  padding: 14px 24px;
  font-size: 15px;
}
.full { width: 100%; justify-content: center; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
  transform-origin: center;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14) translate(-1%, -1%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,32,0.6) 0%, rgba(11,16,32,0.45) 45%, rgba(11,16,32,0.88) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 110px 32px 120px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 26px;
}
.hero-eyebrow {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-num {
  color: var(--accent);
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: #fff;
  background: linear-gradient(180deg, transparent 60%, rgba(46,71,255,0.35) 60%);
  padding: 0 0.06em;
}
.hero-sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 12px 0 0;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 12px;
}
.hero-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.meta-item {
  display: flex; gap: 14px; align-items: center;
}
.meta-figure {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.meta-figure span {
  font-size: 18px;
  color: var(--accent);
  margin-left: 2px;
}
.meta-label {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.7);
}
.meta-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.16);
}

.hero-corner {
  position: absolute;
  bottom: 24px;
  left: 32px; right: 32px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.corner-line {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 12px;
}

/* ===================== MARQUEE ===================== */
.marquee {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
  animation: marquee 40s linear infinite;
}
.marquee-track .dot-sep { color: var(--accent); font-size: 12px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===================== SECTION HEADS ===================== */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.85); }
.section-eyebrow .bar {
  width: 28px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-head { margin-bottom: 56px; }
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===================== INTRO ===================== */
.intro {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro-right p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--ink-2);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin-top: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

/* ===================== SERVICES ===================== */
.services {
  padding: 120px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  display: grid;
  grid-template-rows: 280px 1fr;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img { transform: scale(1.04); }
.service-body {
  padding: 28px 32px 32px;
  position: relative;
}
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.service-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.service-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}
.service-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-body ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.service-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--accent);
}

/* ===================== STATS BAND ===================== */
.band {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.band-item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.band-num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.band-num span {
  font-size: 0.35em;
  color: var(--accent);
  margin-left: 4px;
  vertical-align: super;
}
.band-label {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  max-width: 24ch;
  line-height: 1.5;
  margin-top: 12px;
}

/* ===================== PROCESS ===================== */
.process {
  padding: 120px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.process-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-strong);
  align-items: baseline;
  transition: padding 0.3s, background 0.3s;
}
.process-list li:hover {
  padding-left: 16px;
}
.process-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.process-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: baseline;
}
.process-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.015em;
}
.process-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* ===================== REVIEWS ===================== */
.reviews {
  padding: 120px 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.reviews-rating { text-align: right; }
.rr-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rr-stars {
  color: #FBBF24;
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.rr-sub {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 6px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.review:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.review blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rev-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.rev-name { font-weight: 500; font-size: 14px; }
.rev-meta { font-size: 12px; color: var(--muted); }

/* ===================== AREAS ===================== */
.areas {
  padding: 120px 0;
  background: var(--paper);
}
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.areas-grid span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255,255,255,0.4);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.areas-grid span:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.areas-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.areas-note a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: var(--ink);
  color: #fff;
  padding: 100px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.cta-sub {
  color: rgba(255,255,255,0.7);
  max-width: 44ch;
  font-size: 17px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #06091A;
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 46px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin: 0;
}
.footer h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a:hover { color: #fff; }
.footer ul li, .footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.ft-meta li { line-height: 1.5; }
.footer-base {
  padding: 24px 0;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.footer-social svg { display: block; }

/* ===================== ACCREDITATIONS ===================== */
.accreds {
  background: var(--paper);
  padding: 64px 0;
  overflow: hidden;
}
.accreds-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin: 0 0 36px;
}
.accreds-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.accreds-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: accreds-scroll 40s linear infinite;
}
.accreds-viewport:hover .accreds-track { animation-play-state: paused; }
.accreds-track img {
  height: 80px;
  width: auto;
  margin: 0 52px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes accreds-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== FLOATING WHATSAPP ===================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(11,16,32,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px -8px rgba(46,71,255,0.55);
}
.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: wa-ping 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-ping {
  0%   { transform: scale(0.85); opacity: 0.5; }
  80%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}
@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; }
}

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .dot, .wa-pulse { animation: none; }
  .accreds-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 28px; }
  .accreds-track img[aria-hidden="true"] { display: none; }
  .hero-bg img, .page-hero::before { animation: none !important; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .intro-grid { gap: 56px; }
  .nav-links { gap: 22px; }
  .nav-inner { gap: 20px; }
}

@media (max-width: 960px) {
  /* nav -> hamburger */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .nav-inner { grid-template-columns: 1fr auto; padding: 12px 24px; }
  .brand img { height: 40px; }

  .topbar-meta span:first-child { display: none; }
  .intro { padding: 80px 0 64px; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-rows: 240px 1fr; }
  .band { padding: 64px 0; }
  .band-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .process { padding: 80px 0; }
  .process-body { grid-template-columns: 1fr; gap: 8px; }
  .process-list li { grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; }
  .process-list li:hover { padding-left: 0; }
  .reviews { padding: 80px 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-rating { text-align: left; }
  .areas { padding: 80px 0; }
  .cta-strip { padding: 72px 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .hero { min-height: 0; }
  .hero-grid { padding: 56px 24px 90px; gap: 24px; grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .hero-meta { gap: 22px 18px; flex-wrap: wrap; justify-content: center; }
  .meta-divider { display: none; }
  .meta-item { flex: 0 1 40%; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 24px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .topbar-inner { padding: 9px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
  .topbar-pill { font-size: 11px; }
  .nav-inner { padding: 10px 20px; }

  .hero-grid { padding: 44px 20px 76px; }
  .hero-eyebrow { font-size: 11px; gap: 10px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 16px; margin-top: 26px; padding-top: 22px; }
  .meta-figure { font-size: 36px; }
  .hero-corner { display: none; }

  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 24px; gap: 26px; }

  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 56px; }
  .footer-base-inner { flex-direction: column; gap: 8px; text-align: left; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline-white { width: 100%; justify-content: center; }

  .section-head.split { gap: 16px; }
  .reviews-rating { display: flex; align-items: baseline; gap: 12px; }
  .rr-num { font-size: 44px; }
  .rr-stars { margin-top: 0; }
  .rr-sub { margin-top: 0; align-self: center; }

  .service-body { padding: 24px 24px 28px; }
  .service-body h3 { font-size: 30px; }
  .review { padding: 26px 24px; }
  .review blockquote { font-size: 19px; }
}

@media (max-width: 380px) {
  .hero-meta { grid-template-columns: 1fr; }
  .meta-item { gap: 12px; }
}

/* ===================== CONTENT PAGES ===================== */
.page-head { padding: 72px 0 0; border-bottom: 1px solid var(--line); }
.page-head .container { padding-bottom: 56px; }
.page-head .section-title { max-width: 22ch; }
.lede { max-width: 64ch; font-size: clamp(17px,1.4vw,20px); line-height: 1.6; color: var(--ink-2); margin: 22px 0 0; }
.prose { padding: 72px 0; border-bottom: 1px solid var(--line); }
.prose .container > p { max-width: 70ch; font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 18px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4vw,48px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 24px; max-width: 20ch; }
.prose h2 em { font-style: italic; color: var(--accent); }
.feature-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 70ch; }
.feature-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 13px; height: 2px; background: var(--accent); }
.feature-list li b { color: var(--ink); font-weight: 600; }

/* ===================== PROSE SPLIT (text + media) ===================== */
.prose-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 4px; }
.prose-split .prose-copy { min-width: 0; }
.prose-split .prose-copy h2 { max-width: 16ch; }
.prose-split .prose-copy > p { max-width: none; font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 18px; }
.prose-split .feature-list { grid-template-columns: 1fr; max-width: none; }
.prose-media img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-md); display: block; object-fit: cover; }

/* before / after comparison slider */
.ba-slider { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); --pos: 50%; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(11,16,32,0.15); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(11,16,32,0.32); display: flex; align-items: center; justify-content: center; color: var(--ink); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(11,16,32,0.72); color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.ba-tag.before { left: 12px; }
.ba-tag.after { right: 12px; }
@media (max-width: 880px) {
  .prose-split { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; margin: 0 0 14px; }
.panel > p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel ul li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); margin-bottom: 9px; line-height: 1.45; }
.panel ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--accent); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; max-width: 920px; }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.swatch .chip { height: 96px; }
.swatch .sw-name { padding: 12px 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.swatch .sw-name span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
@media (max-width: 860px) {
  .cols-2 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .prose { padding: 56px 0; }
}

/* ===================== PAGE HERO (content pages) ===================== */
.page-hero { position: relative; background: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero); background-size: cover; background-position: center; transform: scale(1.02); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,.5) 0%, rgba(11,16,32,.55) 45%, rgba(11,16,32,.9) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 72px; }
.page-hero .section-title { color: #fff; max-width: 22ch; }
.page-hero .section-title em { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,.88); }
@media (max-width: 720px) {
  .page-hero .container { padding-top: 116px; padding-bottom: 52px; }
}

/* ===================== MEDIA SPLIT (image + text) ===================== */
.media-split { padding: 0; border-bottom: 1px solid var(--line); }
.media-split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; padding: 0; max-width: none; }
.media-split .ms-media { min-height: 420px; background-size: cover; background-position: center; }
.media-split .ms-body { padding: 72px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.media-split.flip .ms-media { order: 2; }
@media (max-width: 860px) {
  .media-split .container { grid-template-columns: 1fr; }
  .media-split .ms-media { min-height: 280px; }
  .media-split.flip .ms-media { order: 0; }
  .media-split .ms-body { padding: 48px 24px; }
}

/* ===================== MOTION (site-wide) ===================== */
html { scroll-behavior: smooth; }
.panel { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.panel:hover { transform: translateY(-4px); border-color: var(--ink-2); box-shadow: var(--shadow-lg); }
.prose .container > img, .colour-shots img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.prose .container > img:hover, .colour-shots img:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
@keyframes pageHeroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.page-hero::before { animation: pageHeroZoom 34s ease-in-out infinite alternate; }

/* ===================== BUILD-UP DIAGRAM ===================== */
.buildup { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: center; margin-top: 14px; }
.bu-stack { display: flex; flex-direction: column; gap: 7px; }
.bu-layer { position: relative; height: 62px; border-radius: 12px; border: 0; cursor: pointer; padding: 0 22px; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 15px; text-align: left; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px -10px rgba(11,16,32,.5), inset 0 1px 0 rgba(255,255,255,.18); text-shadow: 0 1px 2px rgba(11,16,32,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, outline-color .25s; outline: 2px solid transparent; outline-offset: 3px; }
.bu-layer .bu-n { font-family: var(--mono); font-size: 11px; opacity: .85; }
.bu-layer:hover { transform: translateX(10px); }
.bu-layer.active { transform: translateX(16px); outline-color: var(--accent); box-shadow: 0 14px 30px -10px rgba(46,71,255,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.bu-layer.light { color: var(--ink); text-shadow: none; }
.bu-layer.light .bu-plus { background: var(--ink); color: #fff; }
.bu-plus { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; box-shadow: 0 2px 6px rgba(11,16,32,.3); }
.bu-layer.active .bu-plus { background: var(--accent); color: #fff; }
.bu-info { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md); min-height: 230px; }
.bu-info .bu-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.bu-info h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; margin: 0 0 12px; }
.bu-info p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.bu-render-card { margin: 18px 0 36px; padding: clamp(12px, 2vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); }
.bu-render { display: block; width: 100%; height: auto; }

/* ===================== ROOF DIAGRAM (hotspots on render) ===================== */
.roofdiag { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 32px; align-items: center; margin-top: 14px; }
.rd-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(8px, 1.4vw, 18px); box-shadow: var(--shadow-md); }
.rd-stage { position: relative; line-height: 0; }
.rd-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.rd-dot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(11,16,32,.4); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1; padding: 0; z-index: 2; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s; }
.rd-dot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: rdPing 2.6s ease-out infinite; }
.rd-dot:hover, .rd-dot.active { transform: translate(-50%, -50%) scale(1.22); background: var(--ink); }
.rd-dot:hover::before, .rd-dot.active::before { animation: none; opacity: 0; }
@keyframes rdPing { 0% { transform: scale(.7); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.rd-info { order: -1; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); }
.rd-info .rd-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.rd-info h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 12px; }
.rd-info p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.rd-hint { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .roofdiag { grid-template-columns: 1fr; gap: 20px; } .rd-info { order: 0; } .rd-dot { width: 26px; height: 26px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .rd-dot::before { animation: none; } }
@media (max-width: 860px) { .buildup { grid-template-columns: 1fr; gap: 24px; } .bu-info { min-height: 0; } }


/* ===================== FAQ (service pages) ===================== */
.faqs { padding: 72px 0; border-bottom: 1px solid var(--line); }
.faqs > .container > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4vw,44px); letter-spacing: -0.02em; margin: 0 0 28px; max-width: 22ch; }
.faqs-list { border-top: 1px solid var(--line-strong); max-width: 840px; }
.faqs-item { border-bottom: 1px solid var(--line-strong); }
.faqs-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0; font-family: var(--serif); font-size: 21px; color: var(--ink); letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color 0.2s; }
.faqs-q:hover { color: var(--accent); }
.faqs-q span { color: var(--accent); font-size: 24px; line-height: 1; flex-shrink: 0; transition: transform 0.3s; }
.faqs-item.open .faqs-q span { transform: rotate(45deg); }
.faqs-a { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.faqs-item.open .faqs-a { max-height: 400px; }
.faqs-a p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; max-width: 72ch; }

/* ===================== COLOUR PALETTE ===================== */
.palette { display: flex; height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-top: 8px; }
.slat { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; cursor: pointer; position: relative; background: var(--c); transition: flex-grow .45s cubic-bezier(.2,.8,.2,1), flex-basis .45s cubic-bezier(.2,.8,.2,1); }
.slat:hover { filter: brightness(1.07); }
.slat-label { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); padding: 14px 16px; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.slat.open { flex: 0 0 clamp(180px, 38vw, 260px); }
.slat.open .slat-label { opacity: 1; transform: translateY(0); }
.slat-label b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.slat-label span { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.colour-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.colour-shots img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; display: block; }
@media (max-width: 720px) {
  .palette { height: 220px; overflow-x: auto; }
  .slat { flex: 0 0 20px; }
  .slat.open { flex: 0 0 180px; }
  .colour-shots { grid-template-columns: 1fr; }
  .colour-shots img { height: 240px; }
}

/* colour palette: hide native scrollbar, show custom mobile slider */
.palette { scrollbar-width: none; -ms-overflow-style: none; }
.palette::-webkit-scrollbar { display: none; }
.palette-scroll { display: none; }
@media (max-width: 720px) {
  .palette-scroll { display: block; height: 6px; margin-top: 14px; background: var(--paper-2); border-radius: 999px; position: relative; touch-action: none; cursor: grab; }
  .palette-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 30%; min-width: 40px; background: var(--accent); border-radius: 999px; }
}
