/* ============================================================
   DOCLUX PAINTS — style.css  (matched to client design)
   cream #FAF6F1 · plum strip #3A2B3D · navy serif #2E3A66
   orange #F47B20 · text #3B3B3B · Poppins body / Lora display
   ============================================================ */

:root {
  --cream:  #FAF6F1;
  --white:  #FFFFFF;
  --plum:   #3A2B3D;
  --navy:   #2E3A66;
  --orange: #F47B20;
  --orange-d: #D96A15;
  --ink:    #3B3B3B;
  --muted:  #7A7671;
  --line:   #E9E3DA;
  --dark:   #131313;

  --font-body: 'Poppins', -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --container: 1120px;
  --radius: 8px;
  --shadow: 0 10px 34px rgba(46,32,50,.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--plum); color: #fff; padding: 10px 16px; z-index: 300; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(46,32,50,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand-logo { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: #6B6660;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--orange); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  width: 40px; height: 36px; border-radius: 7px;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.cart-btn:hover { background: var(--orange-d); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 100px; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: badgePop .35s ease; }
.cart-count[data-zero="1"] { display: none; }
@keyframes badgePop { 50% { transform: scale(1.35); } }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 6px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transition: left .55s ease;
}
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-primary:hover::after { left: 135%; }
.btn-outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-grey { background: #4A4A4A; color: #fff; }
.btn-grey:hover { background: #333; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-serif); color: var(--navy);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600;
  margin-bottom: 8px;
}
.section-title::after {
  content: ''; display: block; width: 56px; height: 3px;
  background: var(--orange); margin-top: 10px; border-radius: 2px;
}
.section-sub { color: var(--muted); max-width: 520px; margin-top: 14px; }
h3.block-title { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 22px; }

/* ── Hero ── */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700;
  line-height: 1.18; color: var(--dark); letter-spacing: -.01em;
}
.hero p { margin: 18px 0 26px; color: var(--muted); max-width: 440px; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: clamp(320px, 40vw, 480px);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Assure cards ── */
.assure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.assure-card {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; text-align: center;
  box-shadow: 0 4px 16px rgba(46,32,50,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.assure-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.assure-card { overflow: hidden; }
.assure-card .img-wrap, .line-card .img-wrap { overflow: hidden; border-radius: 6px; }
.assure-card img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; width: 100%;
  transition: transform .55s cubic-bezier(.16,1,.3,1); }
.assure-card:hover img { transform: scale(1.08); }
.assure-card span { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--orange); }

/* ── Product line cards ── */
.lines-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.product-search {
  flex: 1; min-width: 240px; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 100px; padding: 9px 18px;
}
.product-search input { border: 0; outline: 0; background: none; flex: 1; font-family: inherit; font-size: 14px; }
.product-search svg { flex-shrink: 0; color: var(--muted); }

.line-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.line-card {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; text-align: center; cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 16px rgba(46,32,50,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.line-card:hover, .line-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.line-card img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; width: 100%; background: #f2f2f2;
  transition: transform .55s cubic-bezier(.16,1,.3,1); }
.line-card:hover img { transform: scale(1.08); }
.line-card strong { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--orange); }
.line-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ── Interior design section ── */
.transform-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-bottom: 26px; }
.transform-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.transform-arrow { color: var(--orange); font-size: 26px; font-weight: 700; }
.interior-copy { max-width: 760px; }
.interior-copy p { margin-bottom: 12px; }
.interior-copy .lead-q { font-weight: 600; color: var(--ink); }

/* ── Feedback ── */
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feedback-card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 4px 16px rgba(46,32,50,.06);
  display: flex; flex-direction: column; gap: 18px;
}
.feedback-card p { font-size: 14px; color: var(--ink); flex: 1; }
.feedback-who { display: flex; align-items: center; gap: 12px; }
.feedback-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.feedback-who strong { display: block; font-size: 13.5px; }
.feedback-who small { color: var(--muted); font-size: 12.5px; }

/* ── Newsletter ── */
.newsletter { padding: 44px 0 56px; }
.newsletter h3 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.subscribe-form { display: flex; gap: 12px; max-width: 460px; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1; min-width: 220px; padding: 11px 16px;
  border: 1.5px solid #E4B98F; border-radius: 6px;
  font-family: inherit; font-size: 14.5px; background: var(--white);
}
.subscribe-form input:focus { outline: none; border-color: var(--orange); }
.subscribe-msg { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.subscribe-msg.ok { color: #1E6B24; }
.subscribe-msg.err { color: #A32419; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: #CFCFCF; }
.footer-inner {
  display: grid; grid-template-columns: 1.1fr .9fr .9fr .8fr;
  gap: 40px; padding: 52px 22px;
}
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-col .footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #232323; color: #BDBDBD; padding: 0; line-height: 0;
  transition: background .15s ease, color .15s ease;
}
.footer-social a svg { display: block; flex-shrink: 0; }
.footer-col .footer-social a:hover { background: var(--orange); color: #fff; }
.footer-logo { height: 38px; width: auto; }
.footer-copy { display: block; margin-top: 10px; font-size: 12.5px; color: #8B8B8B; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-addr { display: block; font-size: 14px; color: #BDBDBD; padding: 4px 0; }
.footer-col a:hover { color: #fff; }

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .16s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* ── Page hero (inner pages) ── */
.page-banner { position: relative; }
.page-banner .pb-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px;
  align-items: center; padding: 44px 0;
}
.page-banner h1 { font-family: var(--font-serif); color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
.page-banner h1::after { content: ''; display: block; width: 64px; height: 3px; background: #D9B98A; margin-top: 12px; }
.page-banner p { color: var(--muted); margin-top: 14px; max-width: 420px; }
.pb-badges { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.pb-badges span { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pb-badges b { color: var(--orange); }
.pb-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pb-img img { width: 100%; object-fit: cover; }

/* ══════════ PRODUCT MODAL ══════════ */
dialog.product-modal {
  border: 0; border-radius: 14px; padding: 0;
  width: min(880px, 94vw); max-height: 92vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow-y: auto;
}
dialog.product-modal::backdrop { background: rgba(20, 12, 22, .55); }

.pm-inner { padding: 30px 34px 34px; }
.pm-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 14px; }
.pm-head h3 { font-size: 20px; font-weight: 700; text-align: center; }
.pm-close {
  position: absolute; right: -10px; top: -6px;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--dark); color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pm-desc { font-size: 15px; margin-bottom: 20px; }

.finish-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.finish-tab {
  padding: 8px 20px; border-radius: 5px; border: 0; cursor: pointer;
  background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 500;
}
.finish-tab.active { background: var(--orange); }

.size-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.size-opt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.size-opt input { accent-color: var(--orange); width: 16px; height: 16px; }

.pm-body { display: grid; grid-template-columns: 250px 1fr; gap: 34px; }
.pm-order h4, .pm-colours-head h4 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.pm-field { margin-bottom: 16px; }
.pm-field label { display: block; font-size: 13.5px; margin-bottom: 6px; }
.pm-field input, .pm-field textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid #DDD;
  border-radius: 7px; font-family: inherit; font-size: 14px; background: #fff;
}
.pm-field input:focus, .pm-field textarea:focus { outline: none; border-color: var(--orange); }
.pm-field input[readonly] { background: #FAFAFA; color: var(--ink); }

.pm-colours-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.colour-search {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #EED9C8; border-radius: 100px;
  padding: 6px 14px; background: #fff; min-width: 210px;
}
.colour-search input { border: 0; outline: 0; flex: 1; font-family: inherit; font-size: 12.5px; }

.colour-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  border: 1px solid #EEE; border-radius: 8px; padding: 16px;
  margin-top: 14px; max-height: 340px; overflow-y: auto;
}
.colour-cell { border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 8px; text-align: center; }
.colour-cell .cc-chip {
  display: block; width: 100%; height: 62px;
  border-radius: 7px; border: 1px solid rgba(0,0,0,.10);
  position: relative; transition: transform .12s ease;
}
.colour-cell:hover .cc-chip { transform: scale(1.05); }
.colour-cell.selected { outline: 3px solid var(--orange); outline-offset: 2px; background: #FFF7EF; }
.colour-cell.selected .cc-chip::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.colour-cell .cc-name { display: block; font-size: 11px; line-height: 1.3; margin-top: 6px; color: var(--ink); font-weight: 500; }
.colour-cell .cc-code { display: block; font-size: 10px; color: var(--muted); }
.colour-cell.hidden { display: none; }

.pm-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* checkout step */
.pm-step { display: none; }
.pm-step.active { display: block; }
.pm-summary {
  background: #FBF4EC; border: 1px solid #F0DFC9; border-radius: 8px;
  padding: 16px 18px; font-size: 14px; margin-bottom: 20px;
}
.pm-summary b { color: var(--orange); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pm-alert { padding: 12px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; display: none; }
.pm-alert.show { display: block; }
.pm-alert.err { background: #FBEAE8; color: #A32419; }
.pm-alert.ok { background: #E7F5E8; color: #1E6B24; }

/* success step */
.pm-success { text-align: center; padding: 30px 10px; }
.pm-success .ok-ring {
  width: 66px; height: 66px; border-radius: 50%; background: #E7F5E8;
  color: #1E6B24; font-size: 30px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
}

/* visualize modal — colour is applied to the WALLS only via an alpha mask */
dialog.viz-modal {
  border: 0; border-radius: 14px; padding: 0;
  width: min(820px, 94vw);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
dialog.viz-modal::backdrop { background: rgba(20, 12, 22, .55); }
.viz-inner { padding: 24px 28px 28px; }
.viz-inner h3 { text-align: center; font-size: 18px; margin-bottom: 6px; }
.viz-inner .viz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; text-align: center; }
.viz-stage {
  max-height: 62vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.viz-frame { position: relative; border-radius: 8px; overflow: hidden; max-height: 62vh; line-height: 0; display: inline-block; }
.viz-frame img { max-width: 100%; max-height: 62vh; width: auto; height: auto; display: block; margin: 0 auto; }
.viz-layer {
  position: absolute; inset: 0;
  -webkit-mask-image: url('/assets/img/viz-mask-bedroom.png?v=1');
  mask-image: url('/assets/img/viz-mask-bedroom.png?v=1');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* layer 1: the true paint colour, full strength */
.viz-color { }
/* layer 2: the room's own light and shadow, neutralised and brightened,
   multiplied on top so the colour stays TRUE but the wall still looks real.
   1.563 = 255 / measured average wall luminance for this specific photo. */
.viz-shade {
  background-image: url('/assets/img/viz-room-bedroom.jpg');
  background-size: 100% 100%;
  filter: grayscale(1) brightness(1.563);
  mix-blend-mode: multiply;
}
.viz-swatch-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; font-size: 13px; color: var(--muted);
}
.viz-swatch-strip i {
  width: 26px; height: 26px; border-radius: 6px; display: inline-block;
  border: 1px solid rgba(0,0,0,.12);
}

/* full-width products banner (client asset) */
.products-banner { background: #F4EEE7; }
.products-banner img { width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Interior design page ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 16px rgba(46,32,50,.06); }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: 14px; color: var(--muted); }

.consult-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px; max-width: 640px;
}
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* generic form styles reuse pm-field */
.form-alert { padding: 13px 17px; border-radius: 7px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.form-alert.ok { background: #E7F5E8; color: #1E6B24; }
.form-alert.err { background: #FBEAE8; color: #A32419; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* products banner heading: hidden where the image carries the text */
.pb-mobile-head { display: none; padding-top: 34px; padding-bottom: 8px; }
.pb-mobile-head h1 { font-family: var(--font-serif); color: var(--navy); font-size: 1.9rem; font-weight: 600; }
.pb-mobile-head h1::after { content: ''; display: block; width: 56px; height: 3px; background: #D9B98A; margin-top: 10px; }
.pb-mobile-head p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* contact layout */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }

/* anchor targets clear the sticky header */
section[id], [id="consult"] { scroll-margin-top: 86px; }

/* guard against sideways scroll from any full-bleed element */
html, body { overflow-x: hidden; }


/* ══════════ ANIMATIONS ══════════ */
body { animation: pageIn .45s ease both; }
body.page-exit { opacity: 0; transition: opacity .22s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* hero entrance + slow Ken Burns drift */
.hero h1 { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .08s; }
.hero p { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .22s; }
.hero .btn-row { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .36s; }
.hero-img { animation: heroIn .9s cubic-bezier(.16,1,.3,1) both .18s; }
.hero-img img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes riseIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateX(44px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* section title underline grows in */
.section-title::after { transform-origin: left; animation: growIn .8s cubic-bezier(.16,1,.3,1) both .2s; }
@keyframes growIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* modals slide up + backdrop fade */
dialog.product-modal[open], dialog.viz-modal[open] { animation: modalIn .38s cubic-bezier(.16,1,.3,1); }
dialog.product-modal[open]::backdrop, dialog.viz-modal[open]::backdrop { animation: pageIn .3s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* WhatsApp gentle pulse */
.whatsapp-float { animation: waPulse 2.8s ease-out infinite; }
@keyframes waPulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}

/* feedback cards tilt subtly on hover */
.feedback-card { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.feedback-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  body, .hero h1, .hero p, .hero .btn-row, .hero-img, .hero-img img,
  .section-title::after, dialog[open], dialog[open]::backdrop,
  .whatsapp-float, .cart-count.bump, .living-slide.active { animation: none !important; }
  .feedback-card:hover, .assure-card:hover img, .line-card:hover img { transform: none; }
}

/* ══════════ CART PAGE ══════════ */
.cart-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px; }
.cart-row {
  display: grid; grid-template-columns: 44px 1.6fr 1fr auto auto 34px;
  gap: 16px; align-items: center; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-chip { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); }
.cart-row .ci-name { font-weight: 600; font-size: 14.5px; }
.cart-row .ci-meta { font-size: 12.5px; color: var(--muted); }
.qty-step { display: inline-flex; align-items: center; gap: 8px; }
.qty-step button {
  width: 28px; height: 28px; border-radius: 6px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 700; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.qty-step button:hover { border-color: var(--orange); background: #FFF4EA; }
.qty-step b { min-width: 26px; text-align: center; font-size: 14px; }
.cart-sub { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.cart-remove {
  border: 0; background: none; cursor: pointer; color: #B9B4AD; font-size: 17px;
  transition: color .15s, transform .15s;
}
.cart-remove:hover { color: var(--red, #E23A2E); transform: scale(1.15); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 17px; }
.cart-total-row b { font-size: 21px; color: var(--navy); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; }
  .cart-row .qty-step { grid-column: 2; }
  .cart-row .cart-sub { grid-column: 3; }
}


/* ══════════ FIGMA v3 SECTIONS ══════════ */
/* hero slider: full slides, each with its own text */
.hero-figma-frame { height: clamp(380px, 44vw, 620px); position: relative; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; animation: kenburns 16s ease-in-out infinite alternate;
}
.hero-slide.active h1 { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .15s; }
.hero-slide.active p { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .3s; }
.hero-slide.active .btn-row { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .45s; }

/* full-bleed hero variants */
.hero-figma.full { padding: 0; }
.hero-figma.full .hero-figma-frame { border-radius: 0; box-shadow: none; }
.hero-figma-overlay { padding: 0; }
.hero-figma-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.video-hero.full, .about-banner.full { border-radius: 0; box-shadow: none; }
.video-hero.full video { max-height: 640px; width: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero-figma-inner { padding-bottom: 34px; }
}

/* per-slide hero styling (matches designed slides) */
/* slide 2's text sits over a bright window — deepen its left gradient */
.hero-slide.s2 .hero-figma-overlay {
  background: linear-gradient(100deg, rgba(25,16,8,.72) 0%, rgba(25,16,8,.38) 42%, transparent 68%);
}
@media (max-width: 900px) {
  .hero-slide.s2 .hero-figma-overlay {
    background: linear-gradient(180deg, transparent 15%, rgba(25,16,8,.80) 100%);
  }
}
.hero-slide.s2 .hero-figma-inner p {
  background: #6B3512; color: #fff; display: inline-block;
  padding: 18px 22px; border-radius: 4px; max-width: 480px;
  text-shadow: none;
}
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: #FFE9D6; color: var(--orange-d); }
@media (max-width: 640px) {
  .hero-slide.s2 .hero-figma-inner p { padding: 12px 14px; font-size: 13.5px; }
}

/* slide 3: on desktop the wide frame comfortably covers the whole photo,
   buckets included, so it's left untouched (cover, same as slides 1 & 2).
   On tablet/mobile the frame is much taller relative to its width than this
   photo, so cover would crop one or both side buckets out of view — there we
   switch to contain (top-anchored) so all three buckets stay fully visible;
   the photo's own background is a matching orange, so any letterbox reads as
   a seamless continuation of the background rather than a visible bar. */
.hero-slide.s3 { background: #E66216; }
.hero-slide.s3 .hero-figma-overlay {
  background: linear-gradient(100deg, rgba(20,10,2,.5) 0%, rgba(20,10,2,.18) 46%, transparent 70%);
}
@media (max-width: 900px) {
  .hero-slide.s3 > img { object-fit: contain; object-position: center top; animation: none; }
  .hero-slide.s3 .hero-figma-overlay {
    background: linear-gradient(180deg, transparent 8%, rgba(20,10,2,.55) 38%, rgba(20,10,2,.88) 100%);
  }
}

/* visualize scene tabs */
.viz-scenes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.viz-scene {
  padding: 7px 16px; border-radius: 100px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.viz-scene:hover { border-color: var(--orange); }
.viz-scene.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* home hero: full-bleed image with overlay text */
.hero-figma { padding: 22px 0 10px; }
.hero-figma-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-figma-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 6% 5%; background: linear-gradient(100deg, rgba(20,14,8,.55) 0%, rgba(20,14,8,.18) 46%, transparent 70%);
}
.hero-figma-overlay h1 {
  color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.35); animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .1s;
}
.hero-figma-overlay h1 span { color: var(--orange); }
.hero-figma-overlay p {
  color: #F3EFEA; max-width: 400px; margin: 16px 0 26px; font-size: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4); animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .24s;
}
.hero-figma-overlay .btn-row { animation: riseIn .8s cubic-bezier(.16,1,.3,1) both .38s; }
.btn-ghostlight { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-ghostlight:hover { background: #fff; color: var(--orange); }

/* we assure you — 3 cards with overlay labels + captions */
.assure3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.assure3-card { background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(46,32,50,.07); transition: transform .25s ease, box-shadow .25s ease; }
.assure3-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.assure3-card .a3-img { position: relative; overflow: hidden; }
.assure3-card .a3-img img { width: 100%; aspect-ratio: 8/5; object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1); }
.assure3-card:hover .a3-img img { transform: scale(1.07); }
.a3-label {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; padding: 10px 0; color: #fff; font-weight: 600; font-size: 19px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.assure3-card p { padding: 16px 18px 18px; font-size: 14px; color: var(--ink); background: #E9ECF1; margin: 0; }

/* living rooms transformation */
.living-panel { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 18px rgba(46,32,50,.07); }
.living-carousel { position: relative; }
.living-slide { display: none; }
.living-slide.active { display: block; animation: livingFadeIn .55s ease; }
@keyframes livingFadeIn { from { opacity: 0; } to { opacity: 1; } }
.living-dots { display: flex; gap: 9px; justify-content: center; margin-top: 18px; }
.living-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.living-dots button:hover { background: #D9C9BC; }
.living-dots button.active { background: var(--orange); transform: scale(1.35); }
.living-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.living-grid > img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; }
.living-tag {
  position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%);
  background: rgba(233,236,241,.92); color: var(--navy); font-weight: 600; font-size: 17px;
  padding: 12px 44px; border-radius: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.15); white-space: nowrap;
}
.living-arrow { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); color: var(--orange); font-size: 30px; }

/* interior design page */
.video-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-hero video { width: 100%; display: block; max-height: 560px; }
.interior-intro p { margin-bottom: 16px; font-size: 15.5px; }
.portfolio-panel { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 18px rgba(46,32,50,.07); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio-card { margin: 0; }
.portfolio-card img { width: 100%; aspect-ratio: 1/1.02; object-fit: cover; border-radius: 6px;
  transition: transform .5s cubic-bezier(.16,1,.3,1); }
.portfolio-card:hover img { transform: scale(1.03); }
.portfolio-card figcaption { font-size: 13px; margin-top: 10px; color: var(--ink); }
.pf-loc { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.process-card h3 { color: var(--navy); text-align: center; font-size: 17px; }
.process-card { box-shadow: 0 6px 20px rgba(46,32,50,.10); }
.process-card p { font-size: 13.5px; }

/* about page */
.about-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-banner img { width: 100%; display: block; }
.about-copy h2 { color: var(--navy); font-size: 21px; font-weight: 700; margin: 30px 0 12px; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin-bottom: 14px; font-size: 15.5px; max-width: 860px; }
.about-copy .hl { color: var(--navy); font-weight: 600; }
.values-list { margin: 0 0 14px 20px; }
.values-list li { margin-bottom: 7px; font-size: 15.5px; }

.pay-note {
  background: #FFF6EC; border: 1.5px solid #F2D9BC; border-radius: 8px;
  padding: 13px 16px; font-size: 13.5px; margin: 14px 0 6px; line-height: 1.6;
}
.pay-note b { color: var(--orange-d); }

@media (max-width: 900px) {
  .assure3-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .living-grid { grid-template-columns: 1fr; }
  .living-grid > img { aspect-ratio: 4/3; }
  .living-tag { top: 50%; }
  .living-arrow { display: none; }
  .hero-figma-overlay { justify-content: flex-end; padding-bottom: 8%;
    background: linear-gradient(180deg, transparent 20%, rgba(20,14,8,.72) 100%); }
}

/* ============================================================
   RESPONSIVE SYSTEM
   Desktop  > 1024px  (default styles above)
   Tablet   641–1024px
   Mobile   ≤ 640px
   ============================================================ */

/* ── TABLET ── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  .hero { padding: 40px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { order: -1; max-height: 420px; }
  .hero-img img { max-height: 420px; }
  .hero p { max-width: 560px; }

  .pb-grid { grid-template-columns: 1fr; gap: 28px; }

  .assure-grid, .line-grid { grid-template-columns: repeat(2, 1fr); }
  .feedback-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }

  .pm-body { grid-template-columns: 1fr; gap: 26px; }
  .colour-grid { grid-template-columns: repeat(5, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
}

/* ── Hamburger nav kicks in before links cramp ── */
@media (max-width: 880px) {
  .main-nav {
    position: fixed; top: 68px; right: 0; bottom: 0;
    width: min(300px, 82vw); background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 30px 26px; gap: 22px;
    transform: translateX(100%); transition: transform .26s ease;
    box-shadow: -12px 0 40px rgba(0,0,0,.18); z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  body { font-size: 15px; }

  .header-inner { height: 62px; }
  .brand-logo { height: 32px; }

  .hero { padding: 26px 0 18px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 14.5px; margin: 14px 0 20px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; min-width: 150px; }

  /* home hero slider: the overlay text never got a mobile size cut before —
     at full desktop size it ran 255–290px tall inside a 380px frame, which is
     what caused slide 3's longer copy to overlap the product photo beneath it */
  .hero-figma-frame { height: 460px; }
  .hero-figma-overlay h1 { font-size: 1.5rem; line-height: 1.2; }
  .hero-figma-overlay p { font-size: 13.5px; margin: 10px 0 18px; max-width: none; }
  .hero-slide.s2 .hero-figma-inner p { max-width: none; }

  /* products banner: swap to heading + buckets image */
  .pb-mobile-head { display: block; }
  .products-banner picture img { width: 100%; }

  .assure-grid, .line-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .assure-card, .line-card { padding: 10px; }
  .assure-card span, .line-card strong { font-size: 13px; }
  .line-card small { font-size: 11.5px; }

  .transform-grid { grid-template-columns: 1fr; gap: 12px; }
  .transform-arrow { transform: rotate(90deg); text-align: center; }

  .feedback-grid, .services-grid { grid-template-columns: 1fr; }

  .lines-head { flex-direction: column; align-items: stretch; }
  .product-search { max-width: none; }

  .newsletter { padding: 34px 0 44px; }
  .subscribe-form input { min-width: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 16px; }

  .consult-box { padding: 24px 18px; }
  .form-row2, .checkout-grid { grid-template-columns: 1fr; }

  /* ── modal on phones ── */
  dialog.product-modal { width: 96vw; max-height: 92dvh; border-radius: 12px; }
  .pm-inner { padding: 20px 16px 24px; }
  .pm-head h3 { font-size: 17px; }
  .pm-close { right: -4px; }
  .pm-desc { font-size: 14px; }
  .finish-tabs { gap: 8px; }
  .finish-tab { padding: 8px 14px; font-size: 12.5px; flex: 1 1 auto; }
  .size-row { gap: 12px; margin-bottom: 18px; }
  .colour-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 260px; }
  .colour-cell .cc-chip { height: 54px; }
  .pm-actions { gap: 10px; }
  .pm-actions .btn { flex: 1 1 auto; min-width: 130px; }

  dialog.viz-modal { width: 96vw; }
  .viz-inner { padding: 18px 14px 20px; }

  .whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}

/* very small phones */
@media (max-width: 380px) {
  .assure-grid, .line-grid { grid-template-columns: 1fr; }
  .colour-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.65rem; }
}
