/* ============================================================
   WOOD MASTER INTERNATIONAL — Public Website
   A family workshop's identity: deep walnut tones, brass/amber
   warmth, a carved-serif headline voice, clean sans everywhere
   else. Mobile-first, built for a product catalogue.
   ============================================================ */

:root {
  --ink:          #1c1108;
  --walnut-900:   #2a1c10;
  --walnut-700:   #5c3a1e;
  --walnut-600:   #6f4626;
  --amber-500:    #c07a2e;
  --amber-600:    #a2611f;
  --amber-100:    #f3ddb8;
  --cream:        #faf5ec;
  --surface:      #fffcf6;
  --surface-2:    #f4ead9;
  --line:         #e3d3ba;
  --line-soft:    #ece0cb;
  --ink-muted:    #7c6a54;
  --wa-green:     #25d366;
  --wa-green-dark:#1da851;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(28, 17, 8, .06);
  --shadow-2: 0 10px 30px -10px rgba(28, 17, 8, .22);
  --shadow-3: 0 24px 60px -16px rgba(28, 17, 8, .4);
  --header-h: 72px;
  --utility-h: 34px;   /* the thin dark info bar above the header */
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  scroll-padding-top: calc(var(--header-h) + 10px);   /* in-page links (#catalogue) don't hide under the fixed header */
}
@media (min-width: 900px) { html { scroll-padding-top: calc(var(--header-h) + var(--utility-h) + 10px); } }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  width: 100%;
}

/* Stop any stray wide element from causing a sideways scroll. "clip" does this
   WITHOUT turning <body> into a scroll box — "hidden" does, and that silently
   breaks position:sticky (the fixed top bar). Browsers without "clip" simply skip it. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--walnut-900);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 2px;
}

/* ---------------- Utility bar ---------------- */
.utility-bar {
  background: var(--ink);
  color: #cdbba1;
  font-size: 12.5px;
}
.utility-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.utility-est { display: none; margin-right: auto; }
.utility-contact { display: flex; gap: 14px; }
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #e9dcc7;
  font-weight: 500;
}
.utility-link svg { width: 13px; height: 13px; }
.utility-link-wa { color: #7fe3a4; }
@media (min-width: 760px) {
  .utility-est { display: block; }
}

/* ---------------- Top bar (info bar + header) ---------------- */
.site-top { display: contents; }   /* phones: no box — only .site-header below is sticky */
@media (min-width: 900px) {
  .site-top { display: block; position: sticky; top: 0; z-index: 50; }
  .site-top .site-header { position: static; }
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 246, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { text-decoration: none; line-height: 1.1; }
.brand-name { display: block; font-size: 19px; font-weight: 600; }
.brand-name-2 { display: block; font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--amber-600); margin-top: 1px; }

.menu-toggle {
  border: none;
  background: transparent;
  padding: 8px;
  color: var(--walnut-900);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

.site-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 5, .38);
  z-index: 99;
  opacity: 0;
  transition: opacity .2s ease;
}
.site-nav-backdrop.open { display: block; }
.site-nav-backdrop.open.show { opacity: 1; }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  max-height: calc(100dvh - var(--header-h));
  background: var(--surface);
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  z-index: 100;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: var(--shadow-3);
  border-top: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.site-nav.open { display: flex; }
.site-nav.open.show { opacity: 1; transform: translateY(0); }
.site-nav a {
  text-decoration: none;
  color: var(--walnut-900);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-cta {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #fff8ec !important;
  border-radius: var(--radius-sm);
  text-align: center;
  border-bottom: none !important;
}

/* Desktop-only inline nav (hidden on mobile — mobile uses the .site-nav
   full-screen overlay above instead) */
.site-nav-desktop { display: none; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  /* The phone-style menu is hidden on wide screens... unless the top menu has too many links to fit
     (site.js then adds .wm-nav-collapsed to <html> and the ☰ button takes over). */
  html:not(.wm-nav-collapsed) .site-nav { display: none !important; }
  html:not(.wm-nav-collapsed) .site-nav-backdrop { display: none !important; }
  html.wm-nav-collapsed .site-nav-desktop { display: none; }
  html.wm-nav-collapsed .menu-toggle { display: block; }
  .site-nav-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .site-nav-desktop a {
    text-decoration: none;
    color: var(--walnut-900);
    border-bottom: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
  }
  .site-nav-desktop a:not(.nav-cta):hover { background: var(--surface-2); }
  .site-nav-desktop .nav-cta {
    margin-top: 0;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: #fff8ec !important;
    border-radius: var(--radius-sm);
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(192,122,46,.35), transparent 60%),
    repeating-linear-gradient(100deg, rgba(255,255,255,.025) 0 2px, transparent 2px 60px),
    linear-gradient(160deg, var(--ink) 0%, var(--walnut-900) 55%, #3a2413 100%);
  color: #f3e9d8;
  padding: 52px 18px 56px;
  overflow: hidden;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #d9b98a;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fbf3e6;
}
.hero-copy {
  font-size: 15px;
  color: #d9cbb5;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn-hero-primary, .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  width: 100%;
  max-width: 280px;
}
.btn-hero-primary {
  background: linear-gradient(135deg, #2fbb63, var(--wa-green-dark));
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-hero-primary:hover { filter: brightness(1.06); }
.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: #f3e9d8;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); }

@media (min-width: 640px) {
  .hero { padding: 76px 24px 80px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .btn-hero-primary, .btn-hero-secondary { width: auto; }
}

/* ---------------- Shell / layout ---------------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  display: block;
}
.shell-narrow { max-width: 1040px; }

@media (min-width: 900px) {
  .shell:not(.shell-narrow) {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 24px 80px;
  }
}

/* Desktop category sidebar */
.category-sidebar { display: none; }
@media (min-width: 900px) {
  .category-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--utility-h) + 20px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .category-sidebar h2 { font-size: 15px; margin: 0 0 10px; padding: 0 6px; }
  .category-sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 62vh; overflow-y: auto; }
  .category-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--walnut-900);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 8px;
    border-radius: var(--radius-sm);
  }
  .category-sidebar a:hover { background: var(--surface-2); }
  .category-sidebar a.active { background: var(--amber-100); color: var(--amber-600); font-weight: 700; }
  .category-sidebar img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
  .cat-dot { width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); flex-shrink: 0; }
}

/* Mobile category scroller */
.category-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroller::-webkit-scrollbar { display: none; }
.category-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 74px;
}
.chip-thumb {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chip-thumb-all { background: var(--walnut-700); color: #fff8ec; font-weight: 700; font-size: 12px; }
.category-chip.active .chip-thumb { border-color: var(--amber-500); }
.category-chip span:last-child { font-size: 11px; font-weight: 600; text-align: center; color: var(--walnut-900); line-height: 1.2; }
.category-chip.active span:last-child { color: var(--amber-600); }

@media (min-width: 900px) {
  .category-scroller { display: none; }
}

.catalogue-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 16px;
}
.catalogue-heading h2 { font-size: 21px; margin: 0; }
.catalogue-count { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; }

.empty-catalogue {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ink-muted);
}
.empty-catalogue p { margin: 0; }

/* ---------------- Product grid & card ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 760px) and (max-width: 899px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: box-shadow .18s, transform .18s;
  min-width: 0;
}
.product-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }

.product-card-photo { display: block; aspect-ratio: 1 / 1; background: var(--surface-2); }
.product-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body { padding: 10px 12px 6px; flex: 1; }
.part-id {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-100);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.part-id-lg { font-size: 12px; padding: 4px 12px; margin-bottom: 12px; }
.product-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--walnut-900);
  line-height: 1.35;
}
.product-card-name:hover { color: var(--amber-600); }

.product-card-actions { display: flex; gap: 8px; padding: 10px 10px 12px; }
.pc-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 999px;
  min-height: 40px;
}
.pc-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.pc-btn-call { background: var(--surface-2); color: var(--walnut-700); border: 1px solid var(--line); }
.pc-btn-call:hover { background: var(--line-soft); }
.pc-btn-wa { background: var(--wa-green); color: #fff; }
.pc-btn-wa:hover { background: var(--wa-green-dark); }

/* ---------------- Product detail page ---------------- */
.breadcrumbs { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--amber-600); }

.product-detail { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }

.pd-image-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.pd-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.pd-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(28,17,8,.7);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-info-col h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 6px; line-height: 1.2; }
.pd-material { color: var(--ink-muted); font-size: 13.5px; margin: 0 0 14px; }
.price-chip {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--walnut-700);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pd-description { color: #4a3a28; font-size: 14.5px; line-height: 1.75; margin-bottom: 20px; }

.pd-times { border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 22px; }
.pd-times h3 { font-size: 13.5px; margin: 0 0 10px; color: var(--walnut-700); }
.pd-times-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 460px) { .pd-times-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .pd-times-grid { grid-template-columns: repeat(5, 1fr); } }
.pd-times-grid div { display: flex; flex-direction: column; gap: 2px; }
.pd-times-grid strong { font-size: 12px; color: var(--walnut-700); }
.pd-times-grid span { font-size: 12.5px; color: var(--ink-muted); }

.pd-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 460px) { .pd-actions { flex-direction: row; } }
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 22px;
  border-radius: 999px;
  flex: 1;
  min-width: 0;
}
.pd-btn-wa { background: var(--wa-green); color: #fff; box-shadow: var(--shadow-2); }
.pd-btn-wa:hover { background: var(--wa-green-dark); }
.pd-btn-call { background: var(--surface); color: var(--walnut-700); border: 1.5px solid var(--line); }
.pd-btn-call:hover { background: var(--surface-2); }

.related-section { margin-top: 56px; }
.related-section h2 { font-size: 19px; margin: 0 0 16px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 9, 4, .92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #cdbba1; margin-top: 40px; }
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 18px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .site-footer-inner { grid-template-columns: 1.3fr 1fr; gap: 40px; }
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 420px) {
  .footer-links { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #b6a488; max-width: 380px; }
.footer-col h4 { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .06em; color: #e9dcc7; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: #b6a488; font-size: 13.5px; }
.footer-col a:hover { color: #f3e6d2; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 12px;
  color: #8a7a63;
  padding: 16px;
}

/* Floating WhatsApp button */
.floating-wa {
  position: fixed;
  bottom: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-3);
  z-index: 60;
}
.floating-wa svg { width: 26px; height: 26px; }
.floating-wa:hover { background: var(--wa-green-dark); }

/* ---------------- Maintenance / Under Construction ---------------- */
.maintenance-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(192,122,46,.35), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--walnut-900) 55%, #3a2413 100%);
}
.maintenance-card {
  max-width: 480px;
  text-align: center;
  color: #f3e9d8;
}
.maintenance-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #d9b98a;
  margin-bottom: 18px;
}
.maintenance-card h1 {
  color: #fbf3e6;
  font-size: clamp(24px, 5vw, 34px);
  margin: 0 0 14px;
}
.maintenance-card p {
  color: #d9cbb5;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.maintenance-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.maintenance-call { color: #f3e9d8 !important; }
@media (min-width: 480px) {
  .maintenance-actions { flex-direction: row; justify-content: center; }
}

/* Scroll-to-top floating button (bottom-left, mirrors WhatsApp on bottom-right) */
.scroll-top {
  position: fixed;
  bottom: 18px;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--walnut-900);
  color: #f3e9d8;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-3);
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.scroll-top.visible { display: flex; }
.scroll-top.shown { opacity: 1; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top:hover { background: var(--amber-600); }

/* AJAX category swap — smooth fade instead of an abrupt content jump */
#catalogue-results { transition: opacity .15s ease; }

/* ---------------- Brand logo ---------------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 58px; width: 58px; flex: none; display: block; }
.brand-text { display: block; min-width: 0; text-align: center; }   /* "International" sits centred under "Wood Master" */
.brand-name-2 { padding-left: .12em; }   /* the letter-spacing adds a gap after the last letter; this cancels it so the word is truly centred */
@media (max-width: 899px) { .brand-logo { height: 54px; width: 54px; } }
@media (max-width: 380px) { .brand-logo { height: 46px; width: 46px; } .brand { gap: 9px; } }
/* The logo is a self-contained circle (white ring), so it sits directly on dark areas too. */
.logo-badge { display: inline-flex; border-radius: 50%; box-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.logo-badge img { display: block; height: auto; max-width: 100%; border-radius: 50%; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { width: 80px; height: 80px; }
.maintenance-logo { margin: 0 auto 20px; }
.maintenance-logo img { width: 112px; height: 112px; }

/* ---------------- Product card buttons: never clip "WhatsApp" ----------------
   Two labelled buttons fit side by side only when the card is wide enough. When
   the card is narrow (2-column phones, small laptops) they stack instead, so the
   full label always shows. Wide cards keep Call | WhatsApp side by side. */
.product-card { container-type: inline-size; }
@container (max-width: 209px) {
  .product-card-actions { flex-direction: column; gap: 6px; }
}
/* browsers too old for container queries: stack on every phone/tablet width */
@supports not (container-type: inline-size) {
  @media (max-width: 899px) { .product-card-actions { flex-direction: column; gap: 6px; } }
}

/* Scroll lock while a menu / photo viewer / dialog is open. It goes on <html>, never on <body>:
   overflow on <body> turns it into a scroll box and silently un-sticks the fixed top bar
   (the header used to vanish when the phone menu was opened on a scrolled page). */
html.wm-scroll-locked { overflow: hidden; }

/* =====================================================================
   Content pages (About Us, Contact Us, Terms & Conditions, Wood Quality ...)
   ===================================================================== */
.page-article { max-width: 800px; margin: 0 auto; padding: 6px 0 56px; container: pagebox / inline-size; }
@media (min-width: 900px) { .page-article { margin: 0; padding-top: 0; } }   /* next to the left menu: start at its edge */
.page-head h1 { font-size: clamp(28px, 5.2vw, 40px); line-height: 1.15; margin: 6px 0 22px; overflow-wrap: anywhere; }
.page-content { font-size: 16.5px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.page-content > *:first-child { margin-top: 0; }
.page-content p { margin: 0 0 1.1em; }
.page-content h2 { font-size: 24px; line-height: 1.25; margin: 1.8em 0 .55em; }
.page-content h3 { font-size: 19px; line-height: 1.3; margin: 1.5em 0 .45em; }
.page-content h4 { font-size: 16.5px; margin: 1.3em 0 .4em; }
.page-content ul, .page-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.page-content li { margin: .35em 0; }
.page-content a { color: var(--amber-600); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--walnut-700); }
.page-content blockquote { margin: 1.4em 0; padding: .8em 1.1em; border-left: 4px solid var(--amber-500); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.page-content blockquote p:last-child { margin-bottom: 0; }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0 8px; }
/* three across only when the page column itself is wide enough for the email address in each card */
@container pagebox (min-width: 750px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@supports not (container-type: inline-size) { @media (min-width: 1240px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } } }
.contact-card {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-1); text-decoration: none; color: var(--walnut-900); transition: box-shadow .18s, transform .18s;
}
.contact-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.contact-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--amber-100); color: var(--amber-600); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card-wa .contact-icon { background: #dff5e7; color: #128c4a; }
.contact-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.contact-text strong { font-size: 15px; }
.contact-text span { font-size: 13px; color: var(--ink-muted); overflow-wrap: break-word; }

.page-cta { margin-top: 40px; padding: 28px 22px; text-align: center; background: linear-gradient(160deg, var(--ink), var(--walnut-900)); color: #f3e9d8; border-radius: var(--radius-lg); }
.page-cta h2 { color: #f6ead6; font-size: 22px; margin: 0 0 6px; }
.page-cta p { margin: 0 0 16px; color: #d7c7ad; }
.page-404 h1 { font-size: 26px; margin: 0; }

/* current page in the menu */
.site-nav-desktop a[aria-current="page"] { color: var(--amber-600); background: var(--amber-100); }
.site-nav a[aria-current="page"] { color: var(--amber-600); }
/* a longer menu on smaller laptops: tighter links so everything still fits one row */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav-desktop { gap: 2px; }
  .site-nav-desktop a { padding-left: 10px; padding-right: 10px; }
  .site-nav-desktop .nav-cta { padding-left: 14px; padding-right: 14px; }
}

/* footer: Company + Categories + Get in touch */
.footer-links { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }   /* wide enough for the email address; if there is no room the third column drops to a new row */
.footer-col a { overflow-wrap: anywhere; }
@media (min-width: 700px) { .site-footer-inner { grid-template-columns: 1fr 1.7fr; } }
@media (max-width: 420px) { .footer-links { grid-template-columns: 1fr; gap: 28px; } }

/* top menu links never wrap onto a second line */
.site-nav-desktop { flex-wrap: nowrap; white-space: nowrap; }
