/* Color palette chosen/checked for WCAG AA contrast (4.5:1+ for body text) */
:root {
  --brown-dark: #3a2a1d;   /* text on light bg: contrast ~11:1 against --cream */
  --brown-mid: #6b4a30;
  --terracotta: #a85a2a;   /* accent - used on large text / buttons only */
  --cream: #faf3ea;
  --white: #ffffff;
  --black: #171310;
  --focus-ring: #1a56db;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif, system-ui;
  color: var(--brown-dark);
  background: var(--cream);
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Accessibility: visible focus states everywhere (never remove outline) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--brown-dark);
  padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--black); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; flex-wrap: wrap; gap: .75rem; }
.logo { color: var(--white); font-weight: bold; font-size: 1.4rem; text-decoration: none; letter-spacing: .1em; }
.main-nav a { color: var(--white); text-decoration: none; margin-right: 1rem; }
.main-nav a:hover, .main-nav a:focus { text-decoration: underline; }
.social-links a { color: var(--white); margin-left: .75rem; text-decoration: none; border: 1px solid var(--white); padding: .25rem .5rem; border-radius: 4px; font-size: .85rem; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; background: #0f7a6e; color: var(--white);
  padding: .75rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: bold; z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Hero */
.hero { background: var(--brown-dark); color: var(--white); padding: 4rem 0; text-align: center; }
.hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.hero p { max-width: 640px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: bold; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #9a4f24; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-small { padding: .4rem .8rem; font-size: .85rem; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; padding: 3rem 1.25rem; }
.service-card { background: var(--white); border: 1px solid #e4d9c8; border-radius: 10px; padding: 1.5rem; text-decoration: none; color: var(--brown-dark); }
.service-card h2 { color: var(--brown-mid); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; padding: 2rem 1.25rem; }
.product-card { background: var(--white); border: 1px solid #e4d9c8; border-radius: 10px; padding: 1rem; }
.product-image-placeholder { background: #e4d9c8; height: 140px; border-radius: 8px; margin-bottom: .75rem; }
.price { font-weight: bold; color: var(--brown-mid); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 2rem 1.25rem; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* Catalogue table */
.catalogue-table { width: 100%; border-collapse: collapse; background: var(--white); margin: 1.5rem 0; }
.catalogue-table th, .catalogue-table td { border: 1px solid #e4d9c8; padding: .6rem .75rem; text-align: left; }
.catalogue-table th { background: var(--brown-dark); color: var(--white); }

/* Forms */
.form-section, .prose, .page-header { padding: 2rem 1.25rem; }
form label { display: block; margin-top: 1rem; font-weight: bold; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=password], form select, form textarea {
  width: 100%; padding: .6rem; border: 1px solid #c9b79c; border-radius: 6px; margin-top: .3rem; font-size: 1rem;
}
.consent-checkbox { display: flex; gap: .5rem; align-items: flex-start; font-weight: normal; }
.consent-checkbox input { width: auto; margin-top: .2rem; }
.form-errors { background: #fce8e6; border: 1px solid #c5221f; color: #611a15; padding: 1rem; border-radius: 6px; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); margin-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem 1.25rem; }
.footer-links a { color: var(--white); margin-right: 1rem; }

/* Cookie consent banner */
.cookie-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--brown-mid); border-radius: 10px; padding: 1rem 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 1000;
}
.cookie-consent-actions { display: flex; gap: .75rem; margin-top: .75rem; }

/* Admin */
.admin-body { background: #f2ede4; }
.admin-header { background: var(--black); color: var(--white); }
.admin-header .header-inner form { display: inline; }
.admin-login-wrap { max-width: 420px; margin: 4rem auto; background: var(--white); padding: 2rem; border-radius: 10px; }
.admin-login-form h1 { margin-top: 0; }
.admin-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-card { background: var(--white); border-radius: 10px; padding: 1.5rem 2rem; text-align: center; }
.stat-card strong { display: block; font-size: 2rem; color: var(--brown-mid); }
.admin-form { background: var(--white); padding: 1.5rem; border-radius: 10px; margin-bottom: 2rem; }
.debug-stack { white-space: pre-wrap; background: #eee; padding: 1rem; overflow-x: auto; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}


/* =====================================================================
   LANDING PAGE (home.ejs) - everything scoped under .landing / .lp-*
   so other pages are untouched. No external fonts/scripts (CSP-safe).
   ===================================================================== */
:root {
  --ember: #e8a06a;     /* accent for use on DARK backgrounds (AA contrast) */
  --rust: #8f4a21;      /* accent text on LIGHT backgrounds (AA contrast) */
  --sand: #ead9bf;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sticky, slightly refined header (applies site-wide) */
.site-header { position: sticky; top: 0; z-index: 800; border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.main-nav a { margin-right: 0; }

.landing h1, .landing h2, .landing h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.15; margin: 0; }
.landing p { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-dark { background: var(--brown-dark); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn { transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(232,160,106,.12), transparent 60%),
    linear-gradient(90deg, rgba(23,19,16,.82) 0%, rgba(23,19,16,.66) 40%, rgba(23,19,16,.26) 58%, rgba(23,19,16,.06) 100%),
    url("/img/hero-bg.jpg") center 55% / cover no-repeat,
    var(--black);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.lp-hero::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .04; mix-blend-mode: overlay; pointer-events: none; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.lp-eyebrow { color: var(--ember); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; font-weight: 700; margin: 0 0 1rem; }
.lp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.01em; }
.lp-hero h1 em { color: var(--ember); font-style: italic; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; color: #eadfce; margin: 1.25rem 0 2rem; }
.lp-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.lp-actions-center { justify-content: center; }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 2rem 0 0; color: var(--sand); font-size: .95rem; }
.lp-trust li::before { content: "\2713"; color: var(--ember); margin-right: .5rem; font-weight: 700; }

/* Stone wall mosaic (pure CSS, decorative) */
.lp-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 64px; gap: 8px; transform: rotate(-2deg); }
.tile { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06); }
.tile::after, .swatch-stone::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .35; mix-blend-mode: multiply; }
.tile.w2 { grid-column: span 2; } .tile.h2 { grid-row: span 2; }
.t-blue     { background: linear-gradient(135deg, #4a5c70, #2f3b49); }
.t-blue2    { background: linear-gradient(135deg, #566a80, #364352); }
.t-coral    { background: linear-gradient(135deg, #f3ead9, #dccfb8); }
.t-coral2   { background: linear-gradient(135deg, #ecd0b4, #d9ae88); }
.t-mazeras  { background: linear-gradient(135deg, #eadfc2, #d4c39a); }
.t-black    { background: linear-gradient(135deg, #3a3532, #1d1a18); }
.t-baringo  { background: linear-gradient(135deg, #dcc79d, #b8975f); }
.t-rubi     { background: linear-gradient(160deg, #a64a37, #6f2a1e); }
.t-tanga    { background: linear-gradient(135deg, #c79869, #9c6c42); }
.t-terrazzo { background:
    radial-gradient(circle at 20% 30%, #b5622f 0 3px, transparent 4px),
    radial-gradient(circle at 70% 25%, #3a2a1d 0 3px, transparent 4px),
    radial-gradient(circle at 45% 70%, #6b4a30 0 4px, transparent 5px),
    radial-gradient(circle at 85% 75%, #9aa7b5 0 3px, transparent 4px),
    #ebe5da; }

/* ---------- Strip ---------- */
.lp-strip { background: var(--terracotta); color: var(--white); padding: .8rem 0; overflow: hidden; }
.lp-strip p { margin: 0; text-align: center; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; line-height: 1.9; }
.lp-strip span { margin: 0 .6rem; opacity: .7; }

/* ---------- Generic section bits ---------- */
.lp-section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.lp-heading { max-width: 40rem; margin-bottom: 2.5rem; }
.lp-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--brown-dark); }
.lp-heading p:not(.lp-kicker) { margin: .75rem 0 0; color: var(--brown-mid); font-size: 1.05rem; }
.lp-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; max-width: none; }
.lp-kicker { color: var(--rust); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem; }
.lp-center { text-align: center; margin-top: 2.5rem; }
.lp-link { color: var(--rust); font-weight: 700; text-decoration: none; }
.lp-link:hover, .lp-link:focus-visible { text-decoration: underline; }
.lp-link b, .lp-more b { display: inline-block; transition: transform .2s ease; }
.lp-link:hover b, .lp-service:hover .lp-more b { transform: translateX(4px); }

/* ---------- Services ---------- */
.lp-services { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-service { display: block; background: var(--white); border: 1px solid #e4d9c8; border-radius: 14px; padding: 2rem 1.75rem; text-decoration: none; color: var(--brown-dark); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-service:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(58,42,29,.14); border-color: var(--terracotta); }
.lp-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: var(--brown-dark); color: var(--ember); margin-bottom: 1.25rem; }
.lp-icon svg { width: 32px; height: 32px; }
.lp-service h3 { font-size: 1.5rem; margin-bottom: .6rem; color: var(--brown-dark); }
.lp-service p { margin: 0 0 1.25rem; color: #54402f; }
.lp-more { color: var(--rust); font-weight: 700; }

/* ---------- Palette ---------- */
.lp-palette-wrap { background: var(--sand); }
.lp-palette { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.swatch { text-decoration: none; color: var(--brown-dark); display: block; }
.swatch-stone { position: relative; display: block; height: 170px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(58,42,29,.2); margin-bottom: 1rem; transition: transform .3s ease, box-shadow .3s ease; }
.swatch:hover .swatch-stone { transform: translateY(-5px) scale(1.02); box-shadow: 0 16px 28px rgba(58,42,29,.3); }
.swatch h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.swatch p { margin: 0; font-size: .95rem; color: #54402f; }
.s-blue    { background: linear-gradient(135deg, #4d6075, #2c3846); }
.s-coral   { background: linear-gradient(135deg, #f4ecdc, #d9ccb4); }
.s-mazeras { background: linear-gradient(135deg, #ece1c5, #cfbe93); }
.s-baringo { background: linear-gradient(135deg, #e0cc9f, #b08e56); }
.s-rubi    { background: linear-gradient(160deg, #ad4e3a, #6a281c); }
.s-black   { background: linear-gradient(135deg, #3d3835, #1b1816); }

/* ---------- Steps ---------- */
.lp-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.lp-steps li { position: relative; padding-top: 1rem; border-top: 3px solid var(--terracotta); }
.lp-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brown-dark); color: var(--white); font-weight: 700; margin-bottom: .75rem; font-family: Georgia, serif; }
.lp-steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.lp-steps p { margin: 0; color: #54402f; }

/* ---------- Featured products ---------- */
.lp-featured-wrap { background: var(--white); border-top: 1px solid #eee3d2; border-bottom: 1px solid #eee3d2; }
.lp-products { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-product { background: var(--cream); border: 1px solid #e4d9c8; border-radius: 14px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.lp-product:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(58,42,29,.14); }
.lp-product-img { position: relative; height: 150px; background: linear-gradient(135deg, #d6c4a6, #b79d78); }
.lp-product-img::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .3; mix-blend-mode: multiply; }
.lp-cat-furniture { background: linear-gradient(135deg, #cdb690, #8a6a45); }
.lp-product-body { padding: 1.1rem 1.25rem 1.4rem; }
.lp-tag { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); font-weight: 700; }
.lp-product h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.lp-price { margin: 0 0 .8rem; font-weight: 700; color: var(--brown-mid); }

/* ---------- FAQ ---------- */
.lp-faq-wrap .lp-heading { margin-bottom: 1.5rem; }
.lp-faq { max-width: 48rem; }
.lp-faq details { background: var(--white); border: 1px solid #e4d9c8; border-radius: 10px; margin-bottom: .75rem; }
.lp-faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rust); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0; padding: 0 1.25rem 1.1rem; color: #54402f; }
.lp-faq a { color: var(--rust); }

/* ---------- Final CTA ---------- */
.lp-cta { position: relative; overflow: hidden; color: var(--white); text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: radial-gradient(700px 400px at 50% 0%, rgba(232,160,106,.28), transparent 65%), var(--brown-dark); }
.lp-cta::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.lp-cta-inner { position: relative; z-index: 1; }
.lp-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lp-cta p { max-width: 34rem; margin: 1rem auto 2rem; color: #eadfce; font-size: 1.1rem; }

/* The landing page ends with its own CTA, so drop the footer's top gap here */
.landing + .site-footer, .landing ~ .site-footer { margin-top: 0; }

/* ---------- Scroll reveal (only when JS runs + motion is OK) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .lp-wall .tile { animation: tile-in .8s ease both; }
  .lp-wall .tile:nth-child(odd) { animation-delay: .08s; }
  .lp-wall .tile:nth-child(3n) { animation-delay: .18s; }
  @keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .lp-service, .swatch-stone, .lp-product { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-wall { grid-auto-rows: 52px; transform: none; max-width: 480px; }
}
@media (max-width: 480px) {
  .lp-actions .btn { width: 100%; text-align: center; }
}


/* =====================================================================
   CATALOGUE: product cards, section jump links and photo viewer
   ===================================================================== */
.cat-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.cat-jump a { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid #d9c9b0; color: var(--brown-dark); text-decoration: none; font-weight: 700; font-size: .95rem; }
.cat-jump a span { background: var(--brown-dark); color: var(--white); border-radius: 999px; font-size: .75rem; padding: .1rem .5rem; }
.cat-jump a:hover, .cat-jump a:focus-visible { border-color: var(--terracotta); }
.cat-section { padding-top: 1rem; scroll-margin-top: 80px; }
.cat-section h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--brown-dark); font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.5rem 1.25rem 0; padding-bottom: .5rem; border-bottom: 3px solid var(--terracotta); display: inline-block; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.pc { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; scroll-margin-top: 90px; }
.pc:hover, .pc:target { box-shadow: 0 14px 28px rgba(58,42,29,.15); }
.pc:target { outline: 3px solid var(--terracotta); }
.pc-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e4d9c8; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pc:hover .pc-media img { transform: scale(1.05); }
.pc-media:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -3px; }
.pc-count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(23,19,16,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.pc-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pc-body h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; color: var(--brown-dark); }
.pc-desc { margin: 0; color: #54402f; font-size: .95rem; }
.pc-body .price { margin: .25rem 0 0; }
.pc-quote { margin-top: auto; padding-top: .6rem; color: var(--rust); font-weight: 700; text-decoration: none; }
.pc-quote:hover, .pc-quote:focus-visible { text-decoration: underline; }

/* Photo viewer (lightbox) */
.lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(15,12,10,.92); padding: 3.5rem 3.5rem 4.5rem; }
.lb.is-open { display: flex; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #222; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: #eadfce; font-size: .95rem; padding: 0 1rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--terracotta); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); } .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb.is-single .lb-prev, .lb.is-single .lb-next { display: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 600px) { .lb { padding: 3.5rem .5rem 4.5rem; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; } .lb-btn { width: 40px; height: 40px; } }

/* Landing page: real photos for the stone range + featured products */
.swatch-photo { display: block; height: 190px; border-radius: 12px; overflow: hidden; background: #d9c9b0; box-shadow: 0 6px 16px rgba(58,42,29,.2); margin-bottom: 1rem; transition: transform .3s ease, box-shadow .3s ease; }
.swatch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch:hover .swatch-photo { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(58,42,29,.3); }
.swatch p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-product-img.lp-has-photo { display: block; padding: 0; }
.lp-product-img.lp-has-photo::after { display: none; }
.lp-product-img.lp-has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* =====================================================================
   HEADER LOGO + HERO SLIDESHOW + MOBILE HERO PHOTO
   ===================================================================== */
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo-img { height: 40px; width: auto; display: block; }

.lp-show { width: 100%; max-width: 520px; justify-self: end; }
.lp-show-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #1c1713; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.lp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.lp-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.lp-slide-link { position: absolute; inset: 0; display: block; color: var(--white); text-decoration: none; }
.lp-slide-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-slide-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(to top, rgba(10,8,6,.88), transparent); pointer-events: none; }
.lp-slide-link:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.lp-slide-cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; display: flex; flex-direction: column; gap: .15rem; }
.lp-slide-cap small { color: var(--ember); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.lp-slide-cap strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; line-height: 1.2; }
.lp-show-bar { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; }
.lp-show-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: var(--white); font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lp-show-btn[data-show-toggle] { font-size: .7rem; letter-spacing: -1px; }
.lp-show-btn:hover, .lp-show-btn:focus-visible { background: var(--terracotta); border-color: var(--terracotta); }
.lp-show-count { margin-left: auto; color: var(--sand); font-size: .85rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .lp-slide, .lp-slide.is-active { transition: none; } }

@media (max-width: 860px) {
  .lp-hero {
    background:
      radial-gradient(900px 500px at 85% 10%, rgba(232,160,106,.12), transparent 60%),
      linear-gradient(180deg, rgba(23,19,16,.76) 0%, rgba(23,19,16,.66) 42%, rgba(23,19,16,.34) 70%, rgba(23,19,16,.16) 100%),
      url("/img/hero-bg-mobile.jpg") center / cover no-repeat,
      var(--black);
  }
  .lp-show { justify-self: stretch; max-width: 520px; }
}


/* =====================================================================
   ARCHITECTURAL PORTFOLIO (gallery page): boards shown uncropped, click to enlarge
   ===================================================================== */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.gallery-open:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.gallery-item img { height: auto; aspect-ratio: 2048 / 1448; box-shadow: 0 6px 16px rgba(58,42,29,.2); transition: transform .25s ease; }
.gallery-open:hover img { transform: translateY(-3px); }
.gallery-item figcaption { margin-top: .6rem; font-weight: 700; color: var(--brown-dark); font-size: .95rem; }


/* =====================================================================
   PUBLISHING FIXES + LOCATIONS + CATALOGUE DOWNLOADS
   ===================================================================== */
/* Text for screen readers only (used to give icon-style links a full name) */
.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; }

/* Keeps the white hero text easy to read over the clearer photo */
.lp-hero h1, .lp-lead, .lp-eyebrow, .lp-trust { text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* Footer: Our Locations column */
.footer-locations { display: flex; flex-direction: column; gap: .35rem; }
.footer-heading { margin: 0 0 .15rem; font-weight: 700; }
.footer-locations a { color: var(--white); }

/* Contact page: Our Locations */
.locations { padding-top: 0; padding-bottom: 1rem; }
.locations h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--brown-dark); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--terracotta); display: inline-block; }
.locations-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; }
.location-card { display: flex; flex-direction: column; gap: .3rem; background: var(--white); border: 1px solid #e4d9c8; border-radius: 10px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--brown-dark); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.location-card strong { font-size: 1.1rem; }
.location-card span { color: var(--rust); font-weight: 700; }
.location-card:hover, .location-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(58, 42, 29, .14); border-color: var(--terracotta); }

/* Catalogue page: download buttons */
.cat-downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.cat-dl-size { font-weight: 400; opacity: .85; }
@media (max-width: 480px) { .cat-downloads .btn { width: 100%; text-align: center; } }
