/* SG Interiors — site styles */
:root {
  color-scheme: only light;
  --white: #FFFFFF;
  --ink: #2B2219;
  --body: #5A4A3B;
  --brown: #7D654C;
  --brown-dark: #5E4B38;
  --caramel: #B38B6D;
  --sand: #B3906D;
  --cream: #FFF3E6;
  --peach: #FFE6CD;
  --line: #EADBCB;
  --wa: #25D366;
  --serif: "Gilda Display", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #FFFFFF; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-dark); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 2rem + 3.4vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); line-height: 1.1; }
h3 { font-size: 1.55rem; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--body); }
.muted { color: var(--body); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  background: var(--brown); color: var(--white);
  border: 1px solid var(--brown); border-radius: 2px;
  font: 500 1rem/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 500; }

/* ---------- slat motif (from their slatted walls) ---------- */
.slats { height: 14px; background: repeating-linear-gradient(90deg, var(--caramel) 0 3px, transparent 3px 11px); opacity: .55; }
.slats-light { background: repeating-linear-gradient(90deg, rgba(255, 230, 205, .5) 0 3px, transparent 3px 11px); opacity: 1; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.brand { display: block; line-height: 0; }
.brand img { height: 76px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 8px 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--caramel); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .header-inner { min-height: 80px; }
  .brand img { height: 54px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px;
    background: none; border: 0; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav li .btn { margin-top: 18px; width: 100%; }
}
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; }

.crumbs { padding-top: 22px; font-size: .9rem; color: var(--body); }
.crumbs a { color: var(--body); }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--caramel); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-cream { background: var(--cream); }
.section-peach { background: var(--peach); }
.section-brown { background: var(--brown); color: var(--white); }
.section-brown h2, .section-brown h3 { color: var(--white); }
.section-brown p, .section-brown li { color: #FFF3E6; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head > div { max-width: 680px; }
.section-head h2 + p { margin-top: 18px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 1.8rem + 2.8vw, 4rem); }
.hero .lead { margin: 28px 0 36px; max-width: 46ch; }
.hero-areas { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--body); max-width: 46ch; }
.hero-media { position: relative; padding: 0 0 28px 28px; }
.hero-media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 70%; background: repeating-linear-gradient(90deg, var(--caramel) 0 4px, var(--peach) 4px 14px); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 65% 50%; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; padding: 0 0 18px 18px; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; max-width: 58ch; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- intro statement ---------- */
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.35; color: var(--ink); max-width: 30ch; }
.statement-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 880px) { .statement-wrap { grid-template-columns: 1fr; } }

/* ---------- before/after compare ---------- */
.compare { margin: 0; }
.compare-frame { position: relative; overflow: hidden; background: var(--cream); touch-action: pan-y; }
.compare-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(43, 34, 25, .25);
  background-image: linear-gradient(90deg, transparent 13px, var(--brown) 13px 15px, transparent 15px 22px, var(--brown) 22px 24px, transparent 24px 31px, var(--brown) 31px 33px, transparent 33px);
  background-size: 100% 16px; background-position: center; background-repeat: no-repeat;
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + * , .compare-frame:focus-within { outline: 2px solid var(--brown); outline-offset: 3px; }
.compare-tag { position: absolute; bottom: 16px; padding: 6px 12px; background: rgba(255, 255, 255, .92); font-size: .85rem; font-weight: 500; color: var(--ink); pointer-events: none; }
.compare-tag-before { left: 16px; } .compare-tag-after { right: 16px; }
.compare figcaption { margin-top: 14px; font-size: .95rem; color: var(--body); }

/* ---------- service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 56px 32px; }
.service-card { display: block; color: var(--ink); text-decoration: none; }
.service-card img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: opacity .25s; }
.service-card:hover img { opacity: .9; }
.service-card h3 { margin: 22px 0 8px; }
.service-card p { color: var(--body); margin: 0 0 12px; }
.service-card .text-link { color: var(--brown); text-decoration: underline; }
.service-card:hover h3 { color: var(--brown-dark); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--caramel); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--caramel); margin-bottom: 18px; }
.section-brown .steps li { border-top-color: rgba(255, 230, 205, .5); }
.section-brown .steps li::before { color: var(--peach); }
.steps h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.steps p { color: var(--body); }
.section-brown .steps p { color: #FFF3E6; }
.steps-detailed li { padding-bottom: 8px; }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 28px; }
.project-card { display: block; color: var(--ink); text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.project-card h3 { margin: 18px 0 6px; font-size: 1.45rem; }
.project-card p { color: var(--body); font-size: .98rem; margin: 0; }
.project-card:hover h3 { color: var(--brown-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.gallery figcaption { margin-top: 10px; font-size: .95rem; color: var(--body); }
.gallery [hidden] { display: none; }
.gallery-wide img { aspect-ratio: 4 / 3; }

/* ---------- figures & media ---------- */
.figure { margin: 0; }
.figure img, .figure video { width: 100%; object-fit: cover; }
.figure figcaption { margin-top: 12px; font-size: .95rem; color: var(--body); }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-11 { aspect-ratio: 1 / 1; } .ratio-169 { aspect-ratio: 16 / 9; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.pair-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-media .span-2 { grid-column: 1 / -1; }
.video-frame { max-width: 380px; }
.video-frame video { aspect-ratio: 9 / 16; width: 100%; background: var(--cream); }

/* ---------- lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--caramel); border-bottom: 2px solid var(--caramel); transform: rotate(-45deg); }
.section-brown .tick-list li::before { border-color: var(--peach); }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.offer-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.offer-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.offer-list span { color: var(--body); }

/* ---------- prose (case studies, legal) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose p, .prose li { color: var(--body); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--body); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a { padding: 0 0 24px; color: var(--body); max-width: 68ch; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.areas li { padding: 8px 16px; border: 1px solid var(--caramel); border-radius: 999px; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--peach); padding: var(--section) 0; text-align: center; }
.cta-inner { max-width: 820px; }
.cta-band h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }
.cta-band p { margin: 22px auto 36px; max-width: 52ch; font-size: 1.15rem; color: var(--body); }
.cta-band .btn-row { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form legend { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 20px; padding: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .98rem; }
.field .hint { font-weight: 400; color: var(--body); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid #CDB59C; border-radius: 2px; background: var(--white);
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; border-color: var(--brown); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: .95rem; color: var(--body); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brown); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 16px 20px; margin-bottom: 28px; border-left: 4px solid #A33A2B; background: #FBEDEA; color: #6E2117; }
.form-alert[hidden] { display: none; }
.cf-turnstile { margin-bottom: 24px; }
.contact-card { background: var(--cream); padding: clamp(28px, 4vw, 44px); }
.contact-card h2 { font-size: 1.8rem; margin-bottom: 18px; }
.contact-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 24px 0 6px; }
.contact-card address { font-style: normal; color: var(--body); }

/* ---------- footer ---------- */
.site-footer { background: var(--brown); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px 40px; padding-top: 72px; padding-bottom: 56px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 190px; height: auto; margin-bottom: 20px; }
.footer-brand p { color: #FFF3E6; max-width: 34ch; }
.footer-h { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--peach); margin-bottom: 16px; }
.footer-list, .social { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer :focus-visible { outline-color: var(--peach); }
.footer-address { font-style: normal; color: var(--white); margin-bottom: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 230, 205, .3); font-size: .9rem; color: var(--peach); }
.footer-base p { margin: 0; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px 0 15px;
  background: var(--wa); color: #0B3D1E; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 20px rgba(43, 34, 25, .22); transition: transform .2s;
}
.wa-float:hover { color: #0B3D1E; transform: translateY(-2px); }
.wa-float svg { color: #0B3D1E; }
@media (max-width: 600px) { .wa-float { padding: 0; width: 58px; justify-content: center; } .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-l { margin-top: 48px; } .mb-l { margin-bottom: 48px; }
.center { text-align: center; }
.note { font-size: .95rem; color: var(--body); }
.notfound { padding: var(--section) 0; text-align: center; }
.notfound h1 { margin-bottom: 20px; }
.notfound .btn-row { justify-content: center; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
