:root {
  --ink: #171512;
  --charcoal: #25211d;
  --cream: #f7f0df;
  --paper: #fffaf0;
  --parchment: #e9dcc2;
  --brass: #b98632;
  --brass-light: #ddb76d;
  --brown: #6c4933;
  --burgundy: #682f35;
  --sage: #64715b;
  --muted: #6f675e;
  --line: #d6c7ad;
  --white: #fff;
  --shadow: 0 18px 48px rgba(35, 26, 18, .14);
  --shadow-soft: 0 8px 24px rgba(35, 26, 18, .10);
  --radius: 1.1rem;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-underline-offset: .2em; }
a:hover { color: #431b20; }
button, input, select, textarea { font: inherit; }
button, [type='button'], [type='submit'] { cursor: pointer; }
:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: -6rem; padding: .8rem 1rem; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 6.5rem) 0; }
.section-sm { padding: 2.5rem 0; }
.cream { background: var(--cream); }
.dark { color: var(--cream); background: var(--charcoal); }
.dark a:not(.button) { color: var(--brass-light); }
.eyebrow { margin: 0 0 .7rem; color: var(--burgundy); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dark .eyebrow { color: var(--brass-light); }
h1, h2, h3, h4 { margin: 0 0 .75rem; font-family: var(--serif); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 5.9rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
p { margin: 0 0 1rem; }
.lead { color: #51493f; font-size: clamp(1.08rem, 2.2vw, 1.3rem); }
.dark .lead { color: #e9dec9; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2, .prose h3 { margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.15rem; border: 2px solid var(--burgundy); border-radius: 999px; background: var(--burgundy); color: var(--white); font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { color: var(--white); background: #4e2227; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.button-secondary { border-color: var(--brass); background: var(--brass); color: var(--ink); }
.button-secondary:hover { background: var(--brass-light); color: var(--ink); }
.button-ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.dark .button-ghost { color: var(--cream); }
.button-small { min-height: 42px; padding: .55rem .85rem; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--brown); font-size: .82rem; font-weight: 750; }
.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--brass); border-radius: 0 .7rem .7rem 0; background: #fff5d8; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Header */
.topbar { padding: .45rem 0; background: #11100e; color: #efe2c8; font-size: .82rem; }
.topbar .container { display: flex; justify-content: center; gap: 1rem; text-align: center; }
.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(185, 134, 50, .28); background: rgba(255, 250, 240, .96); backdrop-filter: blur(14px); }
.nav-shell { display: grid; grid-template-columns: auto 1fr auto; min-height: 76px; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: none; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 800; line-height: 1.05; }
.brand-tagline { display: block; margin-top: .2rem; color: var(--muted); font-size: .65rem; line-height: 1.2; }
.menu-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); }
.nav-links { position: fixed; inset: 122px 1rem auto; display: none; max-height: calc(100vh - 140px); overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.nav-links.open { display: block; }
.nav-links ul { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-links button { display: flex; width: 100%; min-height: 44px; align-items: center; padding: .6rem .7rem; border: 0; border-radius: .55rem; background: transparent; color: var(--ink); font-weight: 750; text-align: left; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current='page'] { background: var(--cream); color: var(--burgundy); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.icon-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
.icon-link:hover { color: var(--burgundy); background: var(--cream); }
.count-badge { position: absolute; top: 0; right: 0; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 .25rem; border-radius: 999px; background: var(--burgundy); color: #fff; font-size: .68rem; font-weight: 800; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--cream); }
.hero::before { position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(185,134,50,.28), transparent 32%), linear-gradient(120deg, rgba(0,0,0,.1), rgba(0,0,0,.55)); content: ''; }
.hero-grid { position: relative; display: grid; min-height: min(820px, calc(100vh - 90px)); align-items: center; gap: 2rem; padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero-copy { z-index: 1; max-width: 760px; }
.hero h1 em { color: var(--brass-light); font-style: normal; }
.hero-logo { position: relative; justify-self: center; }
.hero-logo::before { position: absolute; inset: 10%; border-radius: 50%; background: rgba(221,183,109,.22); filter: blur(40px); content: ''; }
.hero-logo img { position: relative; width: min(78vw, 510px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.15rem; margin: 1.7rem 0 0; padding: 0; color: #e9dec9; list-style: none; font-size: .92rem; }
.trust-row li::before { color: var(--brass-light); content: '◆'; margin-right: .45rem; font-size: .7rem; }
.page-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7.5rem) 0; background: var(--charcoal); color: var(--cream); }
.page-hero.with-image { min-height: 500px; display: grid; align-items: end; }
.page-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; }
.page-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,21,18,.95) 0%, rgba(23,21,18,.67) 55%, rgba(23,21,18,.35)); content: ''; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 710px; color: #f0e6d2; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; color: #dfd2ba; font-size: .86rem; }
.breadcrumbs a { color: var(--brass-light); }

/* Cards and grids */
.section-heading { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-heading > :last-child { max-width: 650px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.card-body { padding: 1.25rem; }
.card-media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.service-card { position: relative; display: flex; min-height: 310px; align-items: end; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; box-shadow: var(--shadow-soft); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(15,12,10,.88) 100%); content: ''; }
.service-card-content { position: relative; z-index: 1; padding: 1.25rem; }
.service-card h3 { color: #fff; }
.service-card p { color: #eee1cc; }
.service-card:hover { color: #fff; }
.service-card:hover img { transform: scale(1.04); }
.process-step { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.5rem; border-top: 1px solid var(--line); }
.process-number { position: absolute; top: 1.05rem; left: .75rem; display: grid; width: 2.9rem; height: 2.9rem; place-items: center; border-radius: 50%; background: var(--charcoal); color: var(--brass-light); font-family: var(--serif); font-weight: 800; }
.quote { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--brass); border-radius: var(--radius); background: linear-gradient(140deg, #fffaf0, #efe1c7); font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; }
.stat { padding: 1.25rem; border-left: 3px solid var(--brass); background: rgba(255,255,255,.05); }
.stat strong { display: block; color: var(--brass-light); font: 700 1.55rem var(--serif); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photo-grid img { width: 100%; height: 230px; object-fit: cover; border-radius: .75rem; }
.photo-grid img:first-child { grid-column: 1 / -1; height: 320px; }

/* Forms */
.form-card { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { color: var(--charcoal); font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid #9f9382; border-radius: .55rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; }
.form-status { min-height: 1.5rem; margin-top: .8rem; font-weight: 700; }
.form-status.success { color: #1f6b35; }
.form-status.error { color: #a12626; }

/* FAQs */
.faq-list { display: grid; gap: .75rem; }
details { border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
summary { min-height: 54px; padding: .95rem 3rem .95rem 1rem; font-weight: 850; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { float: right; margin-right: -2rem; color: var(--burgundy); content: '+'; font-size: 1.35rem; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 1rem 1rem; color: #4f473e; }

/* Store */
.store-toolbar { display: grid; gap: .75rem; margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.search-field { position: relative; }
.search-field input { width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.7rem; border: 1px solid #9f9382; border-radius: 999px; }
.search-field span { position: absolute; left: 1rem; top: .75rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { min-height: 40px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 750; }
.filter-chip.active { border-color: var(--burgundy); background: var(--burgundy); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.product-image-link { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover img { transform: scale(1.03); }
.product-card-body { padding: .85rem; }
.product-card h3 { font-family: var(--sans); font-size: 1rem; line-height: 1.35; }
.product-price { font: 800 1.15rem var(--serif); }
.product-meta { color: var(--muted); font-size: .82rem; }
.wishlist-button { position: absolute; z-index: 2; top: .55rem; right: .55rem; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--burgundy); font-size: 1.25rem; }
.wishlist-button[aria-pressed='true'] { background: var(--burgundy); color: #fff; }
.empty-state { grid-column: 1 / -1; padding: clamp(2rem, 8vw, 5rem); border: 1px dashed var(--brass); border-radius: var(--radius); background: var(--cream); text-align: center; }
.product-layout { display: grid; gap: 2rem; }
.product-gallery { display: grid; gap: .75rem; }
.product-main-image { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.thumbnail-row { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .35rem; }
.thumbnail-row button { width: 78px; min-width: 78px; height: 78px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .55rem; background: var(--cream); }
.thumbnail-row button.active { border-color: var(--burgundy); }
.thumbnail-row img { width: 100%; height: 100%; object-fit: cover; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cart-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.cart-qty { width: 5rem; }
.cart-summary { margin-top: 1.5rem; padding: 1.25rem; border-radius: .85rem; background: var(--cream); }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.price-row.total { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .8rem; font-size: 1.2rem; font-weight: 850; }

/* Blog / contact / admin */
.article-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; color: var(--muted); font-size: .9rem; }
.article-hero { margin: 2rem auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contact-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 1rem; border-left: 3px solid var(--brass); background: var(--cream); }
.map-card { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 25% 35%, rgba(185,134,50,.25) 0 3%, transparent 3.5%), radial-gradient(circle at 70% 60%, rgba(104,47,53,.22) 0 2.5%, transparent 3%), repeating-linear-gradient(35deg, rgba(108,73,51,.09) 0 2px, transparent 2px 42px), var(--cream); }
.map-pin { position: absolute; top: 44%; left: 52%; width: 28px; height: 28px; border: 7px solid var(--burgundy); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.map-label { position: absolute; left: 50%; bottom: 1.2rem; width: min(90%, 420px); padding: 1rem; border-radius: .7rem; background: rgba(255,255,255,.94); box-shadow: var(--shadow-soft); transform: translateX(-50%); text-align: center; }
.admin-shell { display: grid; gap: 1rem; }
.drop-zone { display: grid; min-height: 180px; place-items: center; padding: 1rem; border: 2px dashed var(--brass); border-radius: .8rem; background: var(--cream); text-align: center; }
.drop-zone.dragover { background: #ffe7ae; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.preview-grid img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: .5rem; }
.code-output { max-height: 380px; overflow: auto; padding: 1rem; border-radius: .7rem; background: #171512; color: #f4e6cd; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

/* Footer */
.site-footer { padding: 4rem 0 1.5rem; background: #11100e; color: #e9dec9; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 132px; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #e9dec9; text-decoration: none; }
.footer-links a:hover { color: var(--brass-light); text-decoration: underline; }
.footer-title { color: var(--brass-light); font: 800 1.05rem var(--serif); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); color: #bdb09d; font-size: .82rem; }
.cookie-banner { position: fixed; z-index: 1500; right: 1rem; bottom: 1rem; left: 1rem; display: none; max-width: 680px; margin-inline: auto; padding: 1rem; border: 1px solid var(--brass); border-radius: .9rem; background: #fffaf0; box-shadow: var(--shadow); }
.cookie-banner.show { display: block; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

@media (min-width: 640px) {
  .brand-text { display: block; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .store-toolbar { grid-template-columns: minmax(260px, 1fr) auto; align-items: center; }
}

@media (min-width: 820px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-heading { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); }
  .hero-copy { align-self: center; }
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
  .admin-shell { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1080px) {
  .menu-toggle { display: none; }
  .nav-links { position: static; display: block; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav-links ul { display: flex; justify-content: center; gap: .1rem; }
  .nav-links a { min-height: 42px; padding: .5rem .62rem; font-size: .88rem; white-space: nowrap; }
  .nav-actions .button { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1079px) { .nav-actions .button { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .cookie-banner, .button, form { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .section, .page-hero { padding: 1.5rem 0; }
}
