/* ==========================================================================
   LEO Memorial Concepts redesign system
   Future WordPress note: split this file into theme tokens, layout utilities,
   components, WooCommerce overrides, and page templates during theme build.
   ========================================================================== */

:root {
  --black: #070605;
  --charcoal: #17130f;
  --ink: #2b241d;
  --gold: #c8a45d;
  --gold-light: #e4c477;
  --gold-dark: #8e6b32;
  --cream: #f5efe5;
  --cream-2: #eadfcc;
  --white: #ffffff;
  --muted: #72695f;
  --line: rgba(142, 107, 50, 0.24);
  --dark-line: rgba(200, 164, 93, 0.28);
  --shadow-soft: 0 18px 55px rgba(7, 6, 5, 0.12);
  --shadow-strong: 0 30px 90px rgba(7, 6, 5, 0.24);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.62;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Accessibility utility */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--gold-light);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(850px, calc(100% - 40px));
}

/* ==========================================================================
   Header component
   WordPress: map .nav-links to wp_nav_menu; WooCommerce: replace .cart-link
   with cart fragments and item count.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(7, 6, 5, 0.95);
  border-bottom: 1px solid var(--dark-line);
  backdrop-filter: blur(18px);
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 0.55rem 1rem;
  color: var(--cream);
  background: #000;
  border-bottom: 1px solid rgba(200, 164, 93, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo .custom-logo {
  width: auto;
  max-height: 54px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
}

.cart-link {
  position: relative;
  padding-left: 1rem;
}

.cart-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: var(--gold);
}

.nav-cta {
  padding: 0.72rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

/* ==========================================================================
   Typography and actions
   ========================================================================== */

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 3.1vw, 3.1rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.24rem;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: var(--black);
  background: var(--gold);
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}

.button-ghost-dark {
  color: var(--charcoal);
  border-color: rgba(23, 19, 15, 0.28);
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-outline {
  color: var(--gold-light);
  border-color: var(--gold);
}

.button-small {
  min-height: 40px;
  padding: 0.68rem 0.9rem;
  font-size: 0.74rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ==========================================================================
   Home hero
   WordPress: hero media should become an ACF image field or core cover block.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 44%, rgba(200, 164, 93, 0.26), transparent 30%),
    linear-gradient(135deg, #050403, #17110a 72%, #080706);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.96) 0%, rgba(7, 6, 5, 0.8) 48%, rgba(7, 6, 5, 0.35) 100%),
    linear-gradient(0deg, rgba(7, 6, 5, 0.22), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 440px);
  justify-content: space-between;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  max-width: 1240px;
  padding: 5rem 0;
}

.hero-text {
  position: relative;
  z-index: 3;
  grid-column: 1;
  max-width: 560px;
}

.hero h1 {
  max-width: 520px;
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 500px;
  margin-top: 2rem;
}

.hero-proof span,
.option-list span {
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(200, 164, 93, 0.34);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-media-stack {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: min(100%, 420px);
  min-width: 0;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 93, 0.18);
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 164, 93, 0.12), transparent 58%),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.hero-media-stack img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 315px;
  object-fit: cover;
  filter: drop-shadow(0 36px 65px rgba(0, 0, 0, 0.58));
}

.hero-image-placeholder,
.large-placeholder,
.placeholder-product,
.placeholder-frame {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: rgba(200, 164, 93, 0.92);
  border: 1px dashed rgba(200, 164, 93, 0.55);
  background:
    linear-gradient(135deg, rgba(200, 164, 93, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 6, 5, 0.32);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-image-placeholder {
  position: absolute;
  inset: 8% -5% 14% 14%;
}

/* ==========================================================================
   Shared sections
   ========================================================================== */

.section {
  padding: clamp(4.8rem, 8vw, 8rem) 0;
}

.cream-section {
  background: var(--cream);
}

.dark-section {
  color: var(--white);
  background: var(--black);
}

.dark-section p,
.dark-section li {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(2.1rem, 3.3vw, 3.3rem);
}

.section-heading.centered {
  display: block;
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.proof-band {
  color: var(--white);
  background: #0d0a08;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid div {
  padding: 1.5rem;
  border-left: 1px solid rgba(200, 164, 93, 0.18);
}

.proof-grid div:last-child {
  border-right: 1px solid rgba(200, 164, 93, 0.18);
}

.proof-grid strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.story-layout,
.showcase-layout,
.custom-showcase-grid,
.faq-layout,
.shop-hero-grid,
.product-detail-grid,
.split-intro,
.story-grid,
.craftsmanship,
.gallery-section,
.custom-grid,
.form-shell,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story-body {
  padding-left: clamp(0rem, 4vw, 3rem);
  border-left: 1px solid var(--line);
}

/* ==========================================================================
   Collections and products
   WooCommerce: .product-card maps cleanly to li.product with template hooks.
   ========================================================================== */

.collection-grid,
.product-grid,
.testimonial-grid,
.values-grid,
.faq-grid,
.reason-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.collection-grid-large {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.collection-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  color: var(--white);
  background: linear-gradient(180deg, #1b1713, #080706);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.feature-card {
  min-height: 560px;
}

.card-image-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: radial-gradient(circle, rgba(200, 164, 93, 0.16), transparent 58%);
}

.feature-card .card-image-frame {
  min-height: 380px;
}

.card-image-frame img {
  max-height: 360px;
  object-fit: contain;
  transition: transform 240ms ease;
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-card span,
.product-info p,
.shop-toolbar p,
.contact-card p {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-card p {
  color: rgba(255, 255, 255, 0.7);
}

.premium-products {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.product-card-large {
  min-height: 100%;
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(200, 164, 93, 0.2), transparent 42%),
    linear-gradient(145deg, #fbf8f1, #e5d7c0);
}

.product-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.45rem 0.65rem;
  color: var(--black);
  background: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.product-info h3 {
  margin-bottom: 0.45rem;
}

.product-info span,
.product-info em,
.process-grid p,
.values-grid p,
.faq-grid p,
.reason-grid p,
.guide-grid p,
.contact-card span {
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.product-meta strong {
  color: var(--gold-dark);
}

.product-meta em {
  font-style: normal;
  font-size: 0.82rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.product-actions > a:not(.button) {
  color: var(--gold-dark);
  font-weight: 800;
}

.placeholder-product {
  min-height: 390px;
  color: var(--gold-dark);
  background:
    linear-gradient(145deg, rgba(200, 164, 93, 0.12), rgba(255, 255, 255, 0.5)),
    var(--cream-2);
}

.placeholder-product.light {
  color: var(--charcoal);
  background:
    linear-gradient(145deg, rgba(200, 164, 93, 0.1), rgba(255, 255, 255, 0.72)),
    #efe5d6;
}

/* ==========================================================================
   Conversion sections
   ========================================================================== */

.reason-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(200, 164, 93, 0.24);
}

.reason-grid article,
.process-grid article,
.values-grid article,
.faq-grid article,
.guide-grid article {
  padding: 1.65rem;
  background: var(--white);
}

.dark-section .reason-grid article {
  background: #100d0a;
}

.reason-grid span,
.process-grid span,
.values-grid span,
.guide-grid span {
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark-section .reason-grid span {
  color: var(--gold-light);
}

.showcase-section {
  background:
    linear-gradient(90deg, rgba(245, 239, 229, 0.96), rgba(255, 255, 255, 0.96)),
    var(--cream);
}

.story-cards {
  display: grid;
  gap: 1rem;
}

.story-cards article {
  padding: 1.35rem;
  color: var(--white);
  background: linear-gradient(135deg, #120f0c, #2a2118);
  border-left: 3px solid var(--gold);
}

.story-cards span {
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.personalization-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.personalization-grid article {
  min-height: 170px;
  padding: 1rem;
  background: var(--white);
}

.personalization-grid strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.05;
}

.personalization-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.custom-showcase-media {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.custom-showcase-media img {
  position: relative;
  z-index: 1;
  max-height: 490px;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.48));
}

.large-placeholder {
  position: absolute;
  inset: 7% 8% 10% 0;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.testimonial-section {
  color: var(--white);
  background: var(--black);
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 1.7rem;
  border: 1px solid rgba(200, 164, 93, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.testimonial-grid p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.22;
}

cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--line);
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list article {
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-list button {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.faq-list p {
  display: none;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

.faq-list article.open p {
  display: block;
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 6, 5, 0.94), rgba(28, 21, 14, 0.96)),
    var(--black);
}

.cta-panel {
  max-width: 920px;
  text-align: center;
}

.cta-panel .hero-actions {
  justify-content: center;
}

/* ==========================================================================
   Shop page
   WooCommerce: archive-product.php layout, filter widgets, and product loop.
   ========================================================================== */

.shop-hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background:
    linear-gradient(135deg, #f8f3eb, #eadfcc);
}

.shop-hero h1 {
  color: var(--charcoal);
  font-size: clamp(2.55rem, 4.1vw, 4.1rem);
}

.shop-hero p {
  max-width: 670px;
  font-size: 1.06rem;
}

.shop-hero-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(200, 164, 93, 0.16), transparent 55%),
    var(--black);
  box-shadow: var(--shadow-soft);
}

.shop-hero-card img {
  position: absolute;
  inset: 2rem;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  object-fit: contain;
}

.shop-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.shop-filter {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1.25rem;
  padding: 1.2rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-header h2,
.shop-filter h2 {
  font-size: 2rem;
}

.filter-header button {
  border: 0;
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.filter-group {
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 19, 15, 0.1);
}

.filter-group h3 {
  font-size: 1.35rem;
}

.filter-group button {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(23, 19, 15, 0.12);
  color: var(--charcoal);
  background: var(--cream);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.filter-group button.active,
.filter-group button:hover {
  color: var(--black);
  background: var(--gold-light);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.shop-toolbar strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
}

.product-grid-shop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card.is-hidden {
  display: none;
}

/* WooCommerce compatibility layer.
   WooCommerce connection: native ul.products output is restyled to match the
   premium product-grid system without rewriting plugin query behavior. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce ul.products li.product .product-image,
.woocommerce-page ul.products li.product .product-image {
  min-height: 390px;
}

.woocommerce ul.products li.product .product-image img,
.woocommerce-page ul.products li.product .product-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}

.filter-link {
  display: block;
  padding: 0.75rem;
  border: 1px solid rgba(23, 19, 15, 0.12);
  color: var(--charcoal);
  background: var(--cream);
  font-weight: 800;
}

.filter-link:hover {
  color: var(--black);
  background: var(--gold-light);
}

.woocommerce-ordering select {
  min-width: 220px;
}

.guide-grid article {
  min-height: 270px;
}

/* ==========================================================================
   Secondary page support retained from first pass
   ========================================================================== */

.page-hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 45%, rgba(200, 164, 93, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.96), rgba(7, 6, 5, 0.82)),
    var(--black);
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.1vw, 4.1rem);
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
}

.craft-panel,
.product-gallery,
.contact-card,
.assurance-box {
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.craft-panel {
  display: grid;
  place-items: center;
  min-height: 530px;
  background: linear-gradient(145deg, #f8f4ed, #d9cbb6);
}

.craft-panel img {
  max-height: 470px;
  object-fit: contain;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  padding: 1rem;
  object-fit: contain;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.product-detail {
  background: var(--cream);
}

.section.product-detail {
  padding-bottom: clamp(2.6rem, 4vw, 4rem);
}

.product-tabs-section {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.product-gallery {
  padding: 1.2rem;
}

.main-product-image {
  width: 100%;
  height: 560px;
  object-fit: contain;
  background: linear-gradient(145deg, #fbf8f1, #e5d7c0);
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
  float: none;
  width: 100%;
  margin: 0;
}

.woocommerce div.product div.images img {
  max-height: 560px;
  object-fit: contain;
}

.leo-personalization-field {
  margin: 1.1rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(150, 115, 58, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.leo-personalization-field label {
  margin-bottom: 0.5rem;
  color: var(--black);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.1;
}

.leo-personalization-field textarea {
  min-height: 116px;
  resize: vertical;
}

.leo-personalization-field p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.thumb-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.thumb-row button {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(150, 115, 58, 0.25);
  background: var(--white);
  cursor: pointer;
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-price {
  color: var(--gold-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.product-lede {
  font-size: 1.06rem;
  color: var(--muted);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 19, 15, 0.18);
  padding: 0.9rem 1rem;
  color: var(--charcoal);
  background: var(--white);
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  color: var(--charcoal);
  font-weight: 800;
}

.purchase-form .button,
.contact-form .button {
  width: 100%;
  margin-top: 1rem;
}

.notice-bar {
  padding: 0.9rem 1rem;
  text-align: center;
  font-weight: 800;
}

.notice-success {
  color: #12351f;
  background: #dcefe2;
}

.notice-error {
  color: #4b160f;
  background: #f5d9d2;
}

.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout,
.woocommerce-account .woocommerce {
  color: var(--charcoal);
  background: var(--white);
}

.woocommerce-cart table.cart,
.woocommerce table.shop_table {
  border-collapse: collapse;
  border-color: rgba(23, 19, 15, 0.14);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem;
}

.woocommerce-cart .coupon,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-input-wrapper select {
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid rgba(23, 19, 15, 0.18);
  background: var(--white);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 0;
  color: var(--black);
  background: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.assurance-box {
  padding: 1.2rem;
}

.assurance-box h2,
.tab-panel h2,
.contact-card h2 {
  font-size: 2rem;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-list button {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(150, 115, 58, 0.22);
  color: var(--charcoal);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.tab-list button.active {
  color: var(--black);
  background: var(--gold);
}

.tab-panel {
  display: none;
  padding: 1.6rem;
  background: var(--white);
}

.tab-panel.active {
  display: block;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.option-list span {
  color: var(--charcoal);
  background: var(--white);
}

.custom-grid img {
  max-height: 520px;
  margin-inline: auto;
  object-fit: contain;
}

.form-shell,
.contact-grid {
  align-items: start;
}

.contact-form {
  padding: 1.3rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.contact-card {
  padding: 1.6rem;
}

.contact-card a {
  display: block;
  color: var(--gold-dark);
  font-weight: 800;
}

/* ==========================================================================
   Footer component
   WordPress: footer menus, contact options, and policy links become widgets.
   ========================================================================== */

.site-footer {
  padding-top: 4rem;
  color: rgba(255, 255, 255, 0.76);
  background: #050403;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand {
  color: var(--white);
}

.site-footer h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1.3rem;
}

.site-footer a {
  display: block;
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(200, 164, 93, 0.18);
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive behavior
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-content {
    grid-template-columns: minmax(0, 520px) minmax(260px, 360px);
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1080px;
  }

  .hero h1 {
    max-width: 500px;
    font-size: clamp(2.2rem, 3.6vw, 3rem);
  }

  .hero-copy,
  .hero-proof {
    max-width: 500px;
  }

  .hero-media-stack {
    width: min(100%, 340px);
  }

  .personalization-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reason-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .trust-strip {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--black);
    border: 1px solid rgba(200, 164, 93, 0.24);
    box-shadow: var(--shadow-strong);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 760px;
  }

  .hero-text,
  .hero-media-stack {
    grid-column: 1;
  }

  .hero h1,
  .hero-copy,
  .hero-proof {
    max-width: 620px;
  }

  .hero-media-stack {
    width: min(78vw, 420px);
    justify-self: start;
  }

  .proof-grid,
  .collection-grid-large,
  .collection-grid,
  .product-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .testimonial-grid,
  .values-grid,
  .faq-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-layout,
  .showcase-layout,
  .custom-showcase-grid,
  .faq-layout,
  .shop-hero-grid,
  .product-detail-grid,
  .split-intro,
  .story-grid,
  .craftsmanship,
  .gallery-section,
  .custom-grid,
  .form-shell,
  .contact-grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .story-body {
    padding-left: 0;
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .shop-filter {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .brand-text {
    font-size: 1.05rem;
    max-width: 185px;
    line-height: 1.1;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .hero h1,
  .page-hero h1,
  .shop-hero h1,
  .section-heading h2 {
    font-size: clamp(2.05rem, 9vw, 2.85rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .hero {
    align-items: center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 6, 5, 0.86) 0%, rgba(7, 6, 5, 0.96) 100%);
  }

  .hero-media-stack {
    width: min(100%, 340px);
    justify-self: center;
  }

  .hero-content {
    padding: 4rem 0 3rem;
    max-width: 100%;
  }

  .hero-copy,
  .hero-proof {
    max-width: 100%;
  }

  .proof-grid,
  .collection-grid-large,
  .collection-grid,
  .product-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .testimonial-grid,
  .values-grid,
  .faq-grid,
  .guide-grid,
  .reason-grid,
  .process-grid,
  .product-grid-shop,
  .gallery-grid,
  .personalization-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 390px;
  }

  .card-image-frame,
  .feature-card .card-image-frame,
  .product-image,
  .placeholder-product {
    min-height: 300px;
  }

  .product-image img {
    height: 250px;
  }

  .woocommerce ul.products li.product .product-image img,
  .woocommerce-page ul.products li.product .product-image img {
    height: 250px;
  }

  .craft-panel,
  .main-product-image,
  .shop-hero-card {
    min-height: 0;
    height: 360px;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.75rem;
  }

  .custom-showcase-media {
    min-height: 410px;
  }

  .shop-toolbar,
  .footer-bottom,
  .tab-list,
  .product-actions,
  .product-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
