/* ============================================================
   HENCA GROUPS — PUBLIC SITE DESIGN SYSTEM
   Matches the supplied editorial design: navy/orange, serif headings
   with orange italic accents, small-scale refined typography.
   ============================================================ */

:root {
  --ink: #18222e;
  --muted: #6e7680;
  --paper: #fffdf9;
  --line: #e8e5df;
  --orange: #ff4d16;
  --orange-dark: #db3d0d;
  --navy: #101a24;
  --navy-2: #172433;
  --success: #299b66;
  --surface: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --container: 1180px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--paper); line-height: 1.5; padding-top: 70px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
em { color: var(--orange); font-family: var(--serif); font-weight: 400; font-style: normal; }
.container { width: min(var(--container), calc(100% - 72px)); margin-inline: auto; position: relative; }

/* ---------- Public navigation ---------- */
.site-header { height: 70px; background: var(--surface); border-bottom: 1px solid var(--line); position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 3px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand small { margin-top: 4px; color: #7d8187; font-size: 7px; letter-spacing: 4px; font-weight: 500; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.brand-mark i { background: var(--orange); border-radius: 1px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: transparent; border: 2px solid var(--orange); }
.brand-mark i:nth-child(3) { border-top: 0; }
.site-header .logo-badge { position: relative; z-index: 3; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.site-logo-img { height: 38px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.mobile-menu-header .site-logo-img { height: 30px; }
footer .site-logo-img { height: 34px; }
.site-header .logo-badge .brand-mark { display: none; }
.site-header .logo-badge > span:last-child { font-size: 22px; letter-spacing: 4px; align-items: center; }
.site-header .logo-badge small { font-size: 9px; letter-spacing: 5px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { position: relative; padding: 26px 0 22px; color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.site-header nav a:hover, .site-header nav a.active { color: var(--orange); }
.site-header nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { color: var(--ink); font-size: 19px; background: transparent; border: 0; display: inline-flex; align-items: center; position: relative; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.menu-button { display: none; border: 0; background: none; font-size: 22px; color: var(--ink); }

/* Mobile menu drawer */
.mobile-menu { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--surface); z-index: 200; transition: right .3s ease; box-shadow: -4px 0 30px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu-header .brand { font-size: 16px; }
.menu-close { font-size: 20px; background: none; border: 0; color: var(--ink); }
.mobile-nav { display: flex; flex-direction: column; padding: 16px 20px; flex: 1; overflow-y: auto; }
.mobile-nav a { padding: 13px 0; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { color: var(--orange); }
.mobile-menu-footer { padding: 20px; }
.mobile-menu-footer .button { width: 100%; justify-content: center; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile-menu-overlay.visible { opacity: 1; pointer-events: auto; }

/* ---------- Shared buttons and type ---------- */
.button { display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: white; padding: 12px 22px; border: 0; border-radius: 3px; font-size: 11px; font-weight: 700; transition: .2s ease; }
.button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button-outline { background: transparent; border: 1px solid var(--orange); color: var(--orange); }
.button-outline:hover { background: var(--orange); color: #fff; }
.button-small { padding: 9px 18px; border-radius: 4px; font-size: 10px; }
.button.full-button { width: 100%; justify-content: center; }
.text-link { color: var(--orange); font-size: 11px; font-weight: 700; }
.text-link.light { color: rgba(255,255,255,.85); }
.eyebrow { color: var(--orange); font-size: 8px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.section { padding: 66px 0; }
.section h2, .section-title-row h2 { color: var(--ink); font: 400 clamp(28px, 3vw, 39px)/1.1 var(--serif); }
.section p, .section-title-row p { color: var(--muted); font-size: 12px; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-title-row h2 { margin: 6px 0 10px; }
.muted { color: var(--muted); font-size: 11px; }
.alert { padding: 12px 16px; border-radius: 4px; font-size: 11px; margin-bottom: 16px; }
.alert-error { background: #fdeae5; color: #b23a12; }
.alert-success { background: #e4f6ec; color: var(--success); }
.empty-state { color: var(--muted); font-size: 12px; padding: 30px 0; text-align: center; }

/* ---------- Home hero ---------- */
.hero { min-height: 490px; position: relative; color: #fff; display: flex; align-items: center; overflow: hidden; background: #13212d; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,29,.86), rgba(10,20,29,.18)); }
.hero-content { position: relative; z-index: 1; padding-left: 7px; max-width: 520px; margin-left: 0; margin-right: auto; }
.hero .eyebrow { color: #fff; margin-bottom: 12px; opacity: .8; }
.hero h1 { font: 700 clamp(37px, 5vw, 62px)/.98 var(--sans); letter-spacing: -2px; margin-bottom: 17px; }
.hero-copy { max-width: 385px; color: rgba(255,255,255,.83); font-size: 11px; line-height: 1.55; margin-bottom: 22px; }
.hero-buttons { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-side-label { position: absolute; right: 7%; top: 45%; z-index: 2; color: #fff; font-size: 9px; line-height: 2.4; text-align: right; }
.hero-index { position: absolute; right: 7%; bottom: 28px; color: #fff; font-size: 9px; z-index: 2; }
.hero-index span { opacity: .65; }

/* ---------- Sections / grids ---------- */
.section-heading { display: grid; grid-template-columns: 1.55fr 1fr; gap: 70px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 7px 0 10px; }
.section-heading > div:first-child p:last-child { max-width: 460px; }
.stat-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.stat-list div { padding-left: 22px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 10px; color: #64707a; }
.stat-list .icon-badge { width: 30px; height: 30px; flex-shrink: 0; }
.division-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-grid.five { grid-template-columns: repeat(5, 1fr); }
.division-card { border: 1px solid var(--line); background: var(--surface); display: block; transition: .2s; }
.division-card:hover, .product-card:hover { box-shadow: 0 8px 22px rgba(22,32,41,.1); transform: translateY(-3px); }
.division-card img { width: 100%; height: 157px; object-fit: cover; }
.division-card > div { padding: 15px 17px 18px; }
.division-card .icon-badge { margin-bottom: 6px; }
.division-card h3, .product-info h3 { font: 700 15px var(--serif); color: var(--ink); margin: 8px 0; }
.division-card p { font-size: 10px; line-height: 1.5; min-height: 31px; margin-bottom: 13px; color: var(--muted); }
.division-card span { color: var(--orange); font-size: 10px; font-weight: 700; }
.section-soft { background: #faf8f3; }
.product-card { background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.product-image { position: relative; }
.product-image img { width: 100%; height: 175px; object-fit: cover; }
.product-image span { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; padding: 4px 7px; font-size: 8px; text-transform: uppercase; font-weight: 700; }
.product-info { padding: 13px 15px 16px; }
.product-info small { color: var(--orange); font-size: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: .6px; }
.product-info h3 { margin: 6px 0; }
.product-info strong { display: block; color: var(--muted); font-size: 10px; margin-bottom: 14px; font-weight: 400; }
.outline-button { width: 100%; border: 1px solid var(--orange); background: var(--orange); color: #fff; border-radius: 3px; padding: 9px; font-size: 10px; font-weight: 700; }
.outline-button.added { background: var(--surface); color: var(--orange); }
.outline-button.out-of-stock-btn, .out-of-stock-btn { background: var(--surface); color: var(--muted); border-color: var(--border, #ddd); cursor: not-allowed; }
.low-stock-badge { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #b5460f; background: #fff1e8; border-radius: 3px; padding: 2px 6px; margin-bottom: 6px; }

.sale-banner, .dark-callout { position: relative; overflow: hidden; color: #fff; padding: 58px 0; background-size: cover; background-position: center; }
.sale-banner::before, .dark-callout::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,24,.94), rgba(9,17,24,.3)); }
.sale-content, .dark-callout .container { position: relative; z-index: 1; }
.sale-content h2, .dark-callout h2 { font: 400 38px var(--serif); margin: 6px 0 8px; color: #fff; }
.sale-content p, .dark-callout p { color: rgba(255,255,255,.82); font-size: 11px; margin-bottom: 18px; }
.sale-badge { position: absolute; z-index: 2; right: 10%; top: 50%; transform: translateY(-50%); display: grid; place-content: center; text-align: center; background: var(--orange); border-radius: 50%; width: 88px; height: 88px; font-size: 8px; line-height: 1.1; color: #fff; }
.sale-badge strong { font-size: 22px; display: block; }
.trust-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 55px; align-items: center; }
.trust-grid h2 { margin: 6px 0 10px; }
.trust-grid > div > p { max-width: 500px; margin-bottom: 32px; }
.trust-image { width: 100%; height: 205px; object-fit: cover; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-items div { text-align: center; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; padding: 0 6px; }
.trust-items div:last-child { border: 0; }
.trust-items .icon-badge { margin: 0 auto 8px; }
.numbers { padding: 42px 0; color: #fff; background: linear-gradient(rgba(10,20,29,.92),rgba(10,20,29,.92)); background-size: cover; background-position: center; }
.number-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.number-grid strong { display: block; font: 400 30px var(--serif); }
.number-grid span { display: block; color: rgba(255,255,255,.75); font-size: 10px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 25px; }
.testimonial-grid blockquote { border: 1px solid var(--line); padding: 19px; color: var(--muted); font-size: 10px; min-height: 145px; }
.testimonial-grid footer { margin-top: 18px; color: var(--ink); font-size: 10px; }
.testimonial-grid footer small { color: var(--orange); font-size: 10px; }

/* ---------- Completed buildings gallery (construction page) ---------- */
.building-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 10px; margin-top: 6px; }
.building-gallery-item { position: relative; display: block; overflow: hidden; border-radius: 4px; background: #101a24; }
.building-gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.building-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.building-gallery-item:hover img { transform: scale(1.06); }
.building-gallery-caption { position: absolute; inset: auto 0 0 0; padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(10,20,29,.9)); color: #fff; font-size: 10px; opacity: 0; transform: translateY(6px); transition: .25s; }
.building-gallery-item:hover .building-gallery-caption { opacity: 1; transform: translateY(0); }
.building-gallery-caption strong { display: block; font-size: 11px; margin-bottom: 2px; }
@media (max-width: 900px) {
  .building-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .building-gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Partners strip ---------- */
.partners-strip { padding: 46px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-strip .eyebrow { display: block; text-align: center; margin-bottom: 6px; }
.partners-strip h2 { text-align: center; margin-bottom: 28px; }
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 60px; border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.partner-logo img { max-height: 32px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo-text { font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; letter-spacing: .3px; }
.partner-logo:hover .partner-logo-text { color: var(--orange); }

/* ---------- Inner pages ---------- */
.inner-hero { min-height: 320px; position: relative; display: flex; align-items: center; color: #fff; overflow: hidden; background-size: cover; background-position: center; }
.inner-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,29,.87), rgba(10,20,29,.28)); }
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 { font: 400 clamp(38px, 5vw, 58px)/1.02 var(--serif); max-width: 550px; margin: 9px 0 14px; color: #fff; }
.inner-hero p { color: rgba(255,255,255,.8); max-width: 430px; font-size: 12px; margin-bottom: 20px; }
.inner-hero .eyebrow { color: var(--orange); }
.benefits { padding: 48px 0; background: var(--surface); }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.benefit-grid > div { padding: 0 26px; border-right: 1px solid var(--line); }
.benefit-grid > div:first-child { padding-left: 0; }
.benefit-grid > div:last-child { border: 0; }
.benefit-grid .icon-badge { margin-bottom: 8px; }
.benefit-grid h3 { font: 700 14px var(--serif); margin-bottom: 5px; }
.benefit-grid p { color: var(--muted); font-size: 10px; }
.filter-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tabs a, .filter-tabs button { padding: 8px 15px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10px; display: inline-block; }
.filter-tabs a.active, .filter-tabs button.active, .filter-tabs a:hover, .filter-tabs button:hover { color: #fff; border-color: var(--orange); background: var(--orange); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.estimate-callout { background: #faf8f3; padding: 65px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.measurement-visual { height: 240px; border: 1px solid var(--line); display: grid; place-content: center; text-align: center; color: var(--orange); background: var(--surface); }
.measurement-visual span { color: var(--muted); font-size: 9px; letter-spacing: 2px; }
.measurement-visual b { font: 400 30px var(--serif); }
.measurement-visual i { display: block; height: 30px; border-left: 1px solid var(--orange); margin: 5px auto; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.category-card { border: 1px solid var(--line); background: var(--surface); display: block; }
.category-card img { width: 100%; height: 120px; object-fit: cover; }
.category-card > div { padding: 13px; }
.category-card h3 { font: 700 14px var(--serif); margin-bottom: 4px; }
.category-card p { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.category-card a, .category-card span.cta { color: var(--orange); font-size: 10px; font-weight: 700; }
.simple-heading { padding: 100px 0 26px; background: #faf8f3; }
.simple-heading h1 { font: 400 44px var(--serif); margin: 7px 0; }
.simple-heading p { color: var(--muted); font-size: 12px; max-width: 480px; }

/* ---------- Estimator and quote ---------- */
.estimator-layout, .quote-layout, .cart-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: start; }
.estimator-section { padding-top: 25px; }
.estimate-form { display: flex; flex-direction: column; gap: 28px; }
.form-step { display: flex; gap: 15px; }
.form-step > span { color: var(--orange); font-size: 12px; font-weight: 700; }
.form-step h3 { font: 700 18px var(--serif); margin-bottom: 5px; }
.measure-diagram { width: 100%; max-width: 350px; height: auto; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--line); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.choice, .material-option { position: relative; display: flex; flex-direction: column; padding: 13px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.choice input, .material-option input { position: absolute; opacity: 0; }
.choice.active, .choice:hover, .material-option.selected, .material-option:hover { border-color: var(--orange); background: #fff8f5; }
.choice b, .material-option b { font-size: 11px; }
.choice small, .material-option small { color: var(--muted); font-size: 9px; }
.field-row { display: flex; gap: 12px; margin-top: 13px; }
.field-row label, .quote-form label, .estimator-settings label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; flex: 1; }
input, select, textarea { color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; border-radius: 2px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--orange); }
.input-suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.input-suffix input { border: 0; flex: 1; }
.input-suffix span { padding: 0 10px; color: var(--muted); font-size: 10px; }
.material-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.material-option { flex-direction: row; justify-content: space-between; align-items: center; }
.material-option > .material-swatch-sm { width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0; margin-right: 10px; border: 1px solid var(--line); }
.material-option > span { display: flex; flex-direction: column; flex: 1; }
.material-option i { color: var(--orange); font-style: normal; }
.estimate-card { position: sticky; top: 90px; border: 1px solid var(--line); padding: 24px; background: var(--surface); box-shadow: 0 7px 25px rgba(22,32,41,.07); }
.estimate-card-top { display: flex; justify-content: space-between; }
.estimate-card-top span { color: var(--success); font-size: 10px; }
.estimate-type { font: 700 18px var(--serif); margin: 20px 0; }
.estimate-total { border-block: 1px solid var(--line); padding: 18px 0; }
.estimate-total small, .estimate-total p { display: block; color: var(--muted); font-size: 10px; }
.estimate-total strong { display: block; color: var(--orange); font: 400 36px var(--serif); margin: 7px 0; }
.estimate-total strong span { color: var(--muted); font: 400 13px var(--sans); }
.calculation { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; }
.calculation div { display: flex; justify-content: space-between; font-size: 11px; }
.calculation span { color: var(--muted); }
.estimate-note { color: var(--muted); font-size: 10px; margin-top: 18px; }
.quote-form { display: flex; flex-direction: column; gap: 15px; }
.payment-method-options { display: flex; flex-direction: column; gap: 8px; }
.payment-method-option { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink); font-weight: 500; cursor: pointer; }
.payment-method-option input { margin: 0; }
.contact-card { border: 1px solid var(--line); padding: 28px; background: #faf8f3; }
.contact-card h2 { font: 400 32px var(--serif); margin: 7px 0 12px; }
.contact-card > p, .contact-line { color: var(--muted); font-size: 11px; }
.contact-line { display: flex; gap: 12px; margin-top: 18px; align-items: flex-start; }
.contact-line .icon-badge { flex-shrink: 0; }
.form-success { color: var(--success); opacity: 0; font-size: 11px; transition: opacity .2s; }
.form-success.visible { opacity: 1; }

/* ---------- Cart ---------- */
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 12px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.cart-item-type { color: var(--orange); font-size: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: .5px; }
.cart-item-info h3 { font: 700 13px var(--serif); margin: 3px 0; }
.cart-item-price { color: var(--muted); font-size: 10px; }
.cart-qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty-btn { width: 28px; height: 28px; background: none; border: 0; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { color: var(--orange); }
.qty-input { width: 36px; border: 0; text-align: center; padding: 0; font-size: 12px; }
.cart-item-total { font-weight: 700; font-size: 12px; color: var(--ink); white-space: nowrap; }
.cart-item-remove { background: none; border: 0; color: var(--muted); }
.cart-item-remove:hover { color: #c4351c; }

/* ---------- Cart checkout actions ---------- */
.checkout-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.checkout-actions .button.chapa-pay { background: #00a86b; }
.checkout-actions .button.chapa-pay:hover { background: #00925d; }
.bank-transfer-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--surface); }
.bank-transfer-details summary { cursor: pointer; font-size: 11px; font-weight: 700; color: var(--ink); list-style: none; }
.bank-transfer-details summary::-webkit-details-marker { display: none; }
.bank-transfer-details summary::before { content: '+  '; color: var(--orange); }
.bank-transfer-details[open] summary::before { content: '–  '; }
.bank-transfer-details-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.checkout-quote-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 10px; text-align: center; width: 100%; margin-top: 10px; padding: 4px 0; }
.checkout-quote-link:hover { color: var(--orange); }

/* ---------- Furniture / product detail gallery ---------- */
.product-detail-main-image { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.product-detail-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-detail-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.product-detail-thumbs img:hover { border-color: var(--orange); }
.product-detail-3d model-viewer { width: 100%; aspect-ratio: 4 / 3; height: auto !important; }
@media (max-width: 800px) {
  .product-detail-thumbs img { width: 52px; height: 52px; }
}

/* ---------- Icon utilities ---------- */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: #fff4ef; color: var(--orange); flex-shrink: 0; }
.icon-badge.on-dark { background: rgba(255,77,22,.18); color: #ff8a5c; }
.inline-icon { display: inline-flex; vertical-align: -3px; margin-right: 4px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #fff; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 38px; }
footer .brand { color: #fff; }
footer .brand small { color: #aeb8c2; }
.footer-grid > div:first-child p, footer > .container > .footer-grid p { color: #c3ccd4; font-size: 13.5px; line-height: 1.6; margin-top: 16px; max-width: 32ch; }
footer h3, footer h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 16px; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
footer a.footer-link { display: block; color: #c3ccd4; font-size: 13.5px; margin-bottom: 11px; transition: color .15s ease; }
footer a.footer-link:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
footer .contact-line { display: flex; align-items: flex-start; gap: 10px; color: #c3ccd4; font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }
footer .contact-line svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
footer .contact-line a { color: #c3ccd4; }
footer .contact-line a:hover { color: var(--orange); }
.subscribe { display: flex; gap: 8px; margin-top: 12px; }
.subscribe input { flex: 1; background: #1b2b38; border: 1px solid #324351; color: #fff; font-size: 13px; padding: 11px 12px; border-radius: 6px; }
.subscribe button { border: 0; background: var(--orange); color: #fff; padding: 11px 16px; font-size: 12.5px; font-weight: 700; border-radius: 6px; white-space: nowrap; }
.subscribe button:hover { background: var(--orange-dark); }
.newsletter-msg { font-size: 12px; margin-top: 9px; color: #9ad8ae; min-height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; color: #9aa5af; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--orange); }
.footer-credit { color: #9aa5af; }
.footer-credit a { color: #d8dee3; font-weight: 700; text-decoration: none; }
.footer-credit a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 9px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .site-header nav { display: none; }
  .nav-actions .button { display: none; }
  .nav-actions { gap: 10px; }
  .menu-button { display: block; }
  .section-heading, .trust-grid, .two-col, .estimator-layout, .quote-layout, .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .division-grid, .catalog-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .benefit-grid > div { border: 0; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 50px 1fr; grid-template-areas: "img info" "img qty" "img total"; }
  .product-layout-detail { grid-template-columns: 1fr !important; gap: 26px !important; }
}
@media (max-width: 420px) {
  .nav-actions { gap: 7px; }
  .site-header .logo-badge > span:last-child { font-size: 15px; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .site-header .logo-badge > span:last-child { font-size: 17px; }
  .hero { min-height: 570px; }
  .hero h1 { font-size: 39px; }
  .hero-side-label { display: none; }
  .division-grid, .catalog-grid, .product-grid, .category-grid, .benefit-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .product-grid.five { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-list { grid-template-columns: 1fr; gap: 12px; }
  .number-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .trust-items { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .field-row { flex-direction: column; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Header search bar ---------- */
.header-search-bar { display: none; background: var(--surface); border-bottom: 1px solid var(--line); position: fixed; top: 70px; left: 0; right: 0; z-index: 49; }
.header-search-bar.open { display: block; }
.header-search-bar input { flex: 1; border: none; background: none; font-size: 13px; outline: none; }
.search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: 60vh; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 24px; max-width: 1180px; margin: 0 auto; font-size: 11px; }
.search-result-item:hover { background: #fff8f5; }
.search-result-item img { width: 36px; height: 36px; border-radius: 2px; object-fit: cover; }
.search-result-item small { display: block; color: var(--muted); }
.search-empty { padding: 16px 24px; color: var(--muted); font-size: 11px; }

/* ---------- Viewer tabs (3D/AR toggle on product page) ---------- */
.viewer-tab { padding: 8px 15px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10px; margin-right: 8px; display: inline-flex; align-items: center; }
.viewer-tab.active { color: #fff; border-color: var(--orange); background: var(--orange); }

/* ---------- Floating site-wide actions ----------
   Telegram + WhatsApp sit bottom-LEFT (stacked); back-to-top + the AI assistant
   sit bottom-RIGHT, so the chat entry points never overlap each other. */
.floating-stack { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.floating-stack-left { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.telegram-float-btn, .whatsapp-float-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s, box-shadow .2s; }
.telegram-float-btn { background: #29a9eb; box-shadow: 0 6px 18px rgba(41,169,235,.45); }
.whatsapp-float-btn { background: #25d366; box-shadow: 0 6px 18px rgba(37,211,102,.45); }
.telegram-float-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(41,169,235,.55); }
.whatsapp-float-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37,211,102,.55); }
.telegram-float-btn:focus-visible, .whatsapp-float-btn:focus-visible, .ai-assistant-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }

.back-to-top-btn { width: 40px; height: 40px; border-radius: 50%; background: #101a24; color: #fff; border: none; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .2s, opacity .2s; opacity: 0; }
.back-to-top-btn.visible { display: flex; opacity: 1; }
.back-to-top-btn:hover { transform: translateY(-3px); }

@media (max-width: 640px) {
  .floating-stack { right: 14px; bottom: 14px; gap: 10px; }
  .floating-stack-left { left: 14px; bottom: 14px; gap: 10px; }
  .telegram-float-btn, .whatsapp-float-btn { width: 52px; height: 52px; }
}

/* ============================================================
   DARK MODE
   Toggled via [data-theme="dark"] on <html>, set from
   assets/js/theme-lang.js and persisted in localStorage.
   Most of the site already reads color from CSS variables
   (--ink, --paper, --surface, --line) so re-pointing those
   here re-themes the whole site automatically.
   ============================================================ */
[data-theme="dark"] {
  --ink: #e9edf2;
  --muted: #98a4b0;
  --paper: #0b131d;
  --surface: #121b28;
  --line: rgba(255,255,255,.1);
}
[data-theme="dark"] body { background: var(--paper); }
[data-theme="dark"] .site-header { box-shadow: 0 1px 0 rgba(255,255,255,.06); }
[data-theme="dark"] .choice.active, [data-theme="dark"] .choice:hover,
[data-theme="dark"] .material-option.selected, [data-theme="dark"] .material-option:hover { background: rgba(255,77,22,.1); }
[data-theme="dark"] .search-result-item:hover { background: rgba(255,77,22,.1); }
[data-theme="dark"] .icon-badge { background: rgba(255,77,22,.18); }
[data-theme="dark"] .mobile-menu { box-shadow: -4px 0 30px rgba(0,0,0,.5); }
[data-theme="dark"] img:not(.site-logo-img) { filter: brightness(.92); }

html, body, .site-header, .mobile-menu, .product-card, .division-card, .category-card,
.cart-item, .estimate-card, input, select, textarea, .filter-tabs a, .filter-tabs button,
.header-search-bar, .search-results, .choice, .material-option, .viewer-tab {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

/* ---------- Theme switch button ---------- */
.theme-toggle-btn { color: var(--ink); font-size: 11px; font-weight: 700; background: transparent; border: 0; display: inline-flex; align-items: center; gap: 5px; letter-spacing: .5px; }
.theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: inline-flex; }
.mobile-menu-footer { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 22px; }
.mobile-menu-footer .utility-row { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   SCROLL-REVEAL MICRO-ANIMATIONS
   Applied automatically (no template edits) via IntersectionObserver
   in assets/js/reveal.js to the selectors it targets.
   ============================================================ */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal-visible { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; transition: none; }
}
.button, .outline-button, .icon-button, .add-to-cart-btn { transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
.button:active, .outline-button:active { transform: scale(.97); }

/* ============================================================
   AI SHOPPING ASSISTANT WIDGET
   ============================================================ */
.ai-assistant-btn { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #ff8a4d); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(255,77,22,.4); position: relative; }
.ai-assistant-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,77,22,.35); animation: ai-pulse 2.4s ease-out infinite; }
@keyframes ai-pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.ai-assistant-panel { position: fixed; right: 24px; bottom: 96px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 140px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); z-index: 210; display: none; flex-direction: column; overflow: hidden; }
.ai-assistant-panel.open { display: flex; }
.ai-assistant-head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.ai-assistant-head .icon-badge { background: rgba(255,77,22,.25); color: #ff8a5c; }
.ai-assistant-head strong { display: block; font-size: 13px; letter-spacing: .3px; }
.ai-assistant-head small { color: rgba(255,255,255,.7); font-size: 10px; }
.ai-assistant-close { margin-left: auto; background: transparent; border: 0; color: #fff; opacity: .8; }
.ai-assistant-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.ai-msg { max-width: 88%; font-size: 12px; line-height: 1.5; padding: 10px 13px; border-radius: 10px; }
.ai-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 2px; }
.ai-msg.user { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.ai-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-quick-replies button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 10px; padding: 6px 10px; border-radius: 20px; }
.ai-quick-replies button:hover { border-color: var(--orange); color: var(--orange); }
.ai-product-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--surface); align-self: stretch; }
.ai-product-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ai-product-card strong { display: block; font-size: 11px; color: var(--ink); }
.ai-product-card span { display: block; font-size: 10px; color: var(--orange); font-weight: 700; margin-top: 2px; }
.ai-typing { display: inline-flex; gap: 3px; align-self: flex-start; padding: 10px 13px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ai-typing 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-assistant-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-assistant-input input { flex: 1; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 12px; padding: 9px 11px; border-radius: 20px; }
.ai-assistant-input button { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 520px) {
  .ai-assistant-panel { right: 16px; left: 16px; width: auto; bottom: 84px; }
}

/* ============================================================
   AI TOOLS — widget tabs, instant quote, room visualizer, quote page
   ============================================================ */
.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; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* widget: tabs + views */
.ai-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
.ai-tab { flex: 1; padding: 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; }
.ai-tab:hover { color: var(--ink); }
.ai-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.ai-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.ai-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ai-view-scroll { overflow-y: auto; padding: 16px; background: var(--paper); gap: 12px; }
.ai-view-intro { font-size: 11px; color: var(--muted); line-height: 1.55; }
#aiQuoteForm { display: flex; flex-direction: column; gap: 10px; }
#aiQuoteForm textarea { width: 100%; resize: vertical; min-height: 84px; font-size: 12px; border-radius: 6px; }
.ai-room-pitch { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px; }
.ai-room-pitch h4 { font: 700 17px var(--serif); }
.ai-room-pitch p { font-size: 11px; color: var(--muted); line-height: 1.55; }
.ai-room-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,77,22,.12); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-action { font-size: 10px; font-weight: 700; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--orange); color: var(--orange); background: transparent; cursor: pointer; }
.ai-action:hover { background: var(--orange); color: #fff; }
.ai-assistant-input input:disabled, .ai-assistant-input button:disabled { opacity: .6; cursor: progress; }
.ai-msg { white-space: pre-line; overflow-wrap: anywhere; }

/* quote estimate (shared by widget + /ai-quote.php) */
.aq { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.aq-summary { font-size: 11px; color: var(--muted); font-style: italic; }
.aq-line { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.aq-line-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.aq-line-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aq-line-title strong { font-size: 12px; color: var(--ink); }
.aq-line-title span { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.aq-line-price { text-align: right; display: flex; flex-direction: column; flex-shrink: 0; }
.aq-line-price b { font-size: 13px; color: var(--orange); }
.aq-line-price b.aq-muted { color: var(--muted); font-size: 11px; }
.aq-line-price small { font-size: 9px; color: var(--muted); }
.aq-badge { align-self: flex-start; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #fff3d6; color: #8a5a00; }
.aq-needs_info .aq-badge, .aq-manual .aq-badge { background: #e8eef5; color: #3b566e; }
[data-theme="dark"] .aq-badge { background: rgba(255,200,80,.15); color: #ffd27a; }
[data-theme="dark"] .aq-needs_info .aq-badge, [data-theme="dark"] .aq-manual .aq-badge { background: rgba(120,170,220,.15); color: #a9c6e6; }
.aq-note { font-size: 10px; color: var(--muted); line-height: 1.5; }
.aq-total { display: flex; flex-direction: column; gap: 4px; border-block: 1px solid var(--line); padding: 12px 0; }
.aq-total small { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.aq-total strong { font: 400 26px var(--serif); color: var(--orange); }
.aq-compact .aq-total strong { font-size: 22px; }
.aq-questions { font-size: 11px; background: rgba(255,77,22,.07); border-radius: 6px; padding: 10px 12px; }
.aq-questions ul { margin: 6px 0 0 16px; }
.aq-foot { font-size: 10px; color: var(--muted); }
.aq-error, .aiq-error { color: #b23a12; font-size: 11px; margin-top: 8px; }
[data-theme="dark"] .aq-error, [data-theme="dark"] .aiq-error { color: #ff9a78; }
#aiQuoteResult .button { margin-top: 12px; }

/* /ai-quote.php */
.aiq-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.aiq-input h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); margin-bottom: 8px; }
.aiq-input form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.aiq-input textarea { width: 100%; min-height: 150px; resize: vertical; font-size: 13px; line-height: 1.6; padding: 14px; }
.aiq-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 10px; color: var(--muted); }
.aiq-examples button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 10px; padding: 6px 12px; border-radius: 20px; }
.aiq-examples button:hover { border-color: var(--orange); color: var(--orange); }
.aiq-input .button { align-self: flex-start; }
.aiq-devnote { margin-top: 18px; font-size: 10px; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 10px; }
.aiq-devnote code, .alert code { background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 3px; }
.aiq-result .estimate-card { position: sticky; top: 90px; }
.aiq-empty { padding: 26px 0 6px; font-size: 12px; }
.aiq-empty p + p { margin-top: 8px; }
.aiq-empty a { color: var(--orange); text-decoration: underline; }
.aiq-send { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.aiq-send h3 { font: 700 16px var(--serif); }
.aiq-send label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; }
#aiqDone { margin-top: 18px; margin-bottom: 0; }

/* /room-visualizer.php */
.viz-layout { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.viz-controls { display: flex; flex-direction: column; gap: 22px; }
.viz-step { border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.viz-step legend { font: 700 17px var(--serif); margin-bottom: 8px; padding: 0; }
.viz-step legend small { font: 400 11px var(--sans); color: var(--muted); }
.viz-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; border: 2px dashed var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .2s, background-color .2s; }
.viz-drop:hover, .viz-drop.drag, .viz-drop:focus-within { border-color: var(--orange); background: rgba(255,77,22,.05); }
.viz-drop img { width: 100%; max-height: 300px; object-fit: cover; }
.viz-drop-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.viz-drop-hint svg { color: var(--orange); margin-bottom: 4px; }
.viz-drop-hint strong { color: var(--ink); }
.viz-drop-hint small { font-size: 10px; }
.viz-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; }
.viz-item { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--surface); cursor: pointer; font-size: 10px; line-height: 1.3; }
.viz-item input { position: absolute; opacity: 0; }
.viz-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.viz-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.viz-item:hover { border-color: var(--orange); }
.viz-item:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange) inset; background: rgba(255,77,22,.07); }
.viz-item:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.viz-privacy { font-size: 10px; }
.viz-stage { position: sticky; top: 90px; min-height: 360px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.viz-empty { text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; padding: 40px 10px; }
.viz-loading { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 40px 10px; font-size: 13px; }
.viz-bar { width: min(320px, 80%); height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.viz-bar i { display: block; height: 100%; width: 40%; background: var(--orange); border-radius: 3px; animation: viz-slide 1.4s ease-in-out infinite; }
@keyframes viz-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.viz-compare { --pos: 100%; position: relative; border-radius: 6px; overflow: hidden; background: #000; line-height: 0; user-select: none; }
.viz-compare img { width: 100%; height: auto; display: block; }
.viz-compare #vizAfter { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.viz-compare input[type=range] { position: absolute; left: 0; right: 0; bottom: 12px; width: calc(100% - 32px); margin: 0 16px; background: transparent; padding: 0; accent-color: var(--orange); cursor: ew-resize; }
.viz-compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); pointer-events: none; }
.viz-tag { position: absolute; top: 10px; font-size: 9px; font-weight: 700; padding: 4px 9px; border-radius: 20px; background: rgba(16,26,36,.75); color: #fff; line-height: 1.3; }
.viz-tag-before { right: 10px; }
.viz-tag-after { left: 10px; }
.viz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; align-items: center; }
#vizLinks { display: contents; }

@media (max-width: 900px) {
  .aiq-layout, .viz-layout { grid-template-columns: 1fr; gap: 30px; }
  .aiq-result .estimate-card, .viz-stage { position: static; }
  .viz-items { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .viz-bar i { animation: none; width: 100%; } }

/* ---- Product CTA links behave like the cart button ---- */
a.outline-button { display: block; text-align: center; text-decoration: none; box-sizing: border-box; line-height: 1.4; }
a.outline-button:hover { filter: brightness(.94); }

/* ---- Locations (office + workshop maps) ---- */
.locations-intro { max-width: 620px; margin: 8px 0 26px; }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.location-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.location-map { aspect-ratio: 16 / 10; background: #e9e5dd; }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.location-body h3 { font: 700 18px var(--serif); margin: 0 0 4px; }
.location-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; }
.location-line a { color: inherit; }
.location-body .button { align-self: flex-start; margin-top: 8px; }

/* ---------- Accessibility: text contrast (PageSpeed / WCAG AA) ----------
   The brand orange (#ff4d16) is only ~3.3:1 against white, below the 4.5:1 needed
   for small text. On LIGHT backgrounds, small orange text and orange buttons use a
   slightly deeper orange; dark sections and dark mode keep the original bright one. */
:root { --orange-a11y: #c2370a; --orange-btn: #d13a0b; --orange-btn-hover: #b53209; }
[data-theme="dark"] { --orange-a11y: #ff4d16; }
.eyebrow, .text-link, .division-card span, .product-info small, .category-card a,
.category-card span.cta, .cart-item-type, .button-outline, .testimonial-grid footer small { color: var(--orange-a11y); }
.text-link.light { color: rgba(255,255,255,.85); }
.dark-callout .eyebrow, .sale-banner .eyebrow, .inner-hero .eyebrow, footer .eyebrow,
.dark-callout .text-link, .sale-banner .text-link, .hero .button-outline, .dark-callout .button-outline, footer .button-outline { color: var(--orange); }
.button { background: var(--orange-btn); }
.button:hover { background: var(--orange-btn-hover); }
.button-outline { background: transparent; }
.button-outline:hover { background: var(--orange-btn-hover); color: #fff; }

/* ============================================================
   CMS pages (Our Services, Privacy Policy, Terms, ...)
   ============================================================ */
.page-hero { min-height: 280px; background-color: #13212d; }
.page-hero .container { padding-block: 44px; }
.page-hero h1 { margin: 6px 0 12px; }
.page-hero .page-hero-lead { font-size: 15px; line-height: 1.6; max-width: 580px; color: rgba(255,255,255,.85); margin-bottom: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }

.page-section { background: var(--paper); padding: 56px 0 80px; }
.cms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }

.cms-article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 46px 52px; box-shadow: 0 10px 30px rgba(16,26,36,.05); }
.cms-article .cms-content { font-size: 16px; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.cms-article .cms-content > *:first-child { margin-top: 0; }
.cms-article .cms-content > *:last-child { margin-bottom: 0; }
.cms-article .cms-content p { font-size: 16px; line-height: 1.8; color: var(--ink); margin: 0 0 1.15em; }
.cms-article .cms-content h2 { font: 400 clamp(24px, 2.6vw, 31px)/1.2 var(--serif); color: var(--ink); margin: 2.1em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 96px; }
.cms-article .cms-content h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--orange); border-radius: 2px; }
.cms-article .cms-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cms-article .cms-content > h2:first-child::before { display: none; }
.cms-article .cms-content h3 { font: 700 19px/1.35 var(--sans); color: var(--ink); margin: 1.7em 0 .5em; scroll-margin-top: 96px; }
.cms-article .cms-content h4 { font: 700 16px/1.4 var(--sans); color: var(--ink); margin: 1.4em 0 .4em; }
.cms-article .cms-content a { color: var(--orange-a11y); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.cms-article .cms-content a:hover { text-decoration-thickness: 2px; }
.cms-article .cms-content strong, .cms-article .cms-content b { font-weight: 700; color: var(--ink); }
.cms-article .cms-content em { color: var(--muted); font-family: inherit; font-style: italic; }
.cms-article .cms-content ul, .cms-article .cms-content ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.cms-article .cms-content ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.cms-article .cms-content ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.cms-article .cms-content ol { counter-reset: cmsol; }
.cms-article .cms-content ol li { position: relative; padding-left: 40px; margin-bottom: .7em; counter-increment: cmsol; }
.cms-article .cms-content ol li::before { content: counter(cmsol); position: absolute; left: 0; top: .12em; width: 26px; height: 26px; border-radius: 50%; background: #fff4ef; color: var(--orange-a11y); font: 700 13px/26px var(--sans); text-align: center; }
[data-theme="dark"] .cms-article .cms-content ol li::before { background: rgba(255,77,22,.16); }
.cms-article .cms-content li > ul, .cms-article .cms-content li > ol { margin-top: .6em; margin-bottom: 0; }
.cms-article .cms-content blockquote { margin: 1.6em 0; padding: 18px 22px; background: #faf8f3; border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; color: var(--ink); }
[data-theme="dark"] .cms-article .cms-content blockquote { background: rgba(255,255,255,.05); }
.cms-article .cms-content blockquote p:last-child { margin-bottom: 0; }
.cms-article .cms-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.cms-article .cms-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.4em 0; }
.cms-article .cms-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.cms-article .cms-content th, .cms-article .cms-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cms-article .cms-content th { background: #faf8f3; font-weight: 700; }
[data-theme="dark"] .cms-article .cms-content th { background: rgba(255,255,255,.05); }

.cms-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.cms-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; }
.cms-card-title { font: 700 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.cms-toc ol { list-style: none; counter-reset: cmstoc; margin: 0; padding: 0; }
.cms-toc li { counter-increment: cmstoc; margin: 0; }
.cms-toc li a { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.4; color: var(--ink); border-bottom: 1px solid var(--line); }
.cms-toc li:last-child a { border-bottom: 0; }
.cms-toc li a::before { content: counter(cmstoc, decimal-leading-zero); color: var(--orange-a11y); font-weight: 700; font-size: 12px; padding-top: 2px; }
.cms-toc li a:hover { color: var(--orange-a11y); }
.cms-links { list-style: none; margin: 0; padding: 0; }
.cms-links li a { display: block; padding: 9px 0; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.cms-links li:last-child a { border-bottom: 0; }
.cms-links li a::after { content: ' →'; color: var(--orange-a11y); }
.cms-links li a:hover { color: var(--orange-a11y); }
.cms-cta { background: var(--navy); border-color: var(--navy); }
.cms-cta .cms-card-title { color: rgba(255,255,255,.7); }
.cms-cta p { color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.cms-cta .cms-card-title { margin-bottom: 10px; }

@media (max-width: 960px) {
    .cms-layout { grid-template-columns: 1fr; gap: 28px; }
    .cms-aside { position: static; }
}
@media (max-width: 640px) {
    .page-hero { min-height: 220px; }
    .page-section { padding: 28px 0 56px; }
    .cms-article { padding: 26px 20px; border-radius: 12px; }
    .cms-article .cms-content, .cms-article .cms-content p { font-size: 15px; }
}
