/* =====================================================================
   Demi Dog Engraving — rustic / barnwood theme
   Palette: barnwood brown #6B4F3A, walnut #3E2C1C, cream #F5E8D0,
            saddle #A0522D, forest #3F5E3A, deep navy (logo blue) #1E3A5F,
            pink accent (logo) #C7387A
   ===================================================================== */

:root {
  --barnwood-dark: #3E2C1C;
  --barnwood: #6B4F3A;
  --barnwood-mid: #8A6A4B;
  --saddle: #A0522D;
  --cream: #F5E8D0;
  --cream-light: #FBF3E2;
  --paper: #FFF8EB;
  --forest: #3F5E3A;
  --navy: #1E3A5F;
  --pink: #C7387A;
  --ink: #2A1F12;
  --ink-soft: #4A3B2A;
  --shadow-soft: 0 2px 6px rgba(62, 44, 28, 0.12);
  --shadow-card: 0 6px 18px rgba(62, 44, 28, 0.18);
  --shadow-deep: 0 12px 32px rgba(62, 44, 28, 0.28);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--saddle); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--barnwood-dark);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
h2.section-title.light { color: var(--cream); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================== HEADER ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0 2px,
      transparent 2px 6px
    ),
    linear-gradient(180deg, var(--barnwood-dark) 0%, var(--barnwood) 100%);
  color: var(--cream);
  border-bottom: 4px double var(--cream);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d9d4cc;
  object-fit: cover;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--barnwood-dark);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 232, 208, 0.72);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.primary-nav a {
  color: var(--cream);
  font-family: "Lora", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.primary-nav a:hover {
  color: #fff;
  border-bottom-color: var(--pink);
  text-decoration: none;
}
.primary-nav .nav-cta {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
}
.primary-nav .nav-cta:hover {
  background: #a82c69;
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ================================ HERO ================================ */

.hero {
  position: relative;
  padding: 5rem 0 5rem;
  overflow: hidden;
  color: var(--cream);
}
.hero-wood {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0 2px,
      transparent 2px 7px,
      rgba(255, 255, 255, 0.04) 7px 10px
    ),
    radial-gradient(ellipse at 30% 20%, rgba(160, 82, 45, 0.4), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(62, 44, 28, 0.6), transparent 65%),
    linear-gradient(180deg, #5D4533 0%, #3E2C1C 100%);
  z-index: 0;
}
.hero-wood::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-mark {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #d9d4cc;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--barnwood-dark), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 232, 208, 0.85);
  margin: 0 0 0.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--cream);
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-accent {
  color: var(--pink);
  font-style: italic;
}
.hero-tag {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: rgba(245, 232, 208, 0.92);
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================ BUTTONS ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-family: "Lora", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--barnwood-dark);
  color: var(--cream);
  border-color: var(--barnwood-dark);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--saddle);
  border-color: var(--saddle);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover { background: var(--cream); color: var(--barnwood-dark); }

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost-light:hover { background: var(--cream); color: var(--barnwood-dark); }

.btn-order {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #8a2658;
  border-radius: 6px;
}
.btn-order:hover {
  background: #a82c69;
  border-color: #a82c69;
  color: #fff;
}
.btn-secondary {
  background: var(--forest);
  box-shadow: 0 4px 0 #2a3f26;
  border-color: var(--forest);
}
.btn-secondary:hover { background: #2f4a2b; border-color: #2f4a2b; color: #fff; }

.btn-large {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

/* ================================ ABOUT ================================ */

.about {
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--cream-light) 0%, var(--paper) 100%);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text .lead {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--barnwood-dark);
  margin-bottom: 1.2rem;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.about-points li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--saddle);
}
.about-figure {
  margin: 0;
  text-align: center;
}
.about-figure img {
  border: 6px solid #fff;
  box-shadow: var(--shadow-deep);
  border-radius: 4px;
  transform: rotate(-1.5deg);
  max-width: 100%;
}
.about-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.7rem;
}

/* ================================ PRODUCTS ================================ */

.products {
  padding: 5rem 0;
  background:
    repeating-linear-gradient(45deg, rgba(107, 79, 58, 0.04) 0 12px, transparent 12px 24px),
    var(--paper);
  border-top: 1px solid rgba(107, 79, 58, 0.18);
  border-bottom: 1px solid rgba(107, 79, 58, 0.18);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 79, 58, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.product-img {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 4px solid var(--saddle);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.product-tagline {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  border-top: 1px dashed rgba(107, 79, 58, 0.3);
}
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(107, 79, 58, 0.3);
  font-size: 0.95rem;
}
.price-list li > span:last-child {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--saddle);
}
.price-list-single li {
  border-bottom: none;
  padding: 0.7rem 0;
  font-weight: 500;
}
.custom-blurb {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.product-card-custom {
  background:
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  border: 2px dashed var(--barnwood);
}
.product-card-custom .product-body { padding-top: 1.6rem; }

.products-list { display: contents; }
.products-loading,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  padding: 2rem 1rem;
  margin: 0;
}
.products-error {
  color: #8a3a1f;
  font-style: normal;
}
.product-card-empty {
  border-style: dashed;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}

/* ================================ GALLERY ================================ */

.gallery {
  padding: 5rem 0;
  background: var(--cream-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ================================ CONTACT ================================ */

.contact {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(199, 56, 122, 0.08), transparent 60%),
    linear-gradient(180deg, var(--barnwood-dark) 0%, #2a1f12 100%);
  color: var(--cream);
  text-align: center;
  border-top: 4px double var(--cream);
}
.contact-lead {
  font-size: 1.15rem;
  color: rgba(245, 232, 208, 0.85);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-note {
  font-size: 0.9rem;
  color: rgba(245, 232, 208, 0.6);
  font-style: italic;
}

/* ================================ FOOTER ================================ */

.site-footer {
  background: #1a1208;
  color: rgba(245, 232, 208, 0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-tag {
  margin: 0.3rem 0 0;
  font-style: italic;
  color: rgba(245, 232, 208, 0.5);
}

/* ================================ LIGHTBOX ================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#lightbox-caption {
  color: var(--cream);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: inherit;
  line-height: 1;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }

/* ================================ RESPONSIVE ================================ */

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-figure { order: -1; max-width: 380px; margin: 0 auto; }
  .gallery-item.wide { grid-column: span 1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 3.5rem 0 3.5rem; }
  .hero-mark { width: 100px; height: 100px; }
  .about, .products, .gallery, .contact { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--barnwood-dark);
    border-bottom: 4px double var(--cream);
    padding: 0.5rem 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 420px; }
  .primary-nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid rgba(245, 232, 208, 0.15);
  }
  .primary-nav a:last-child { border-bottom: none; }
  .primary-nav .nav-cta { margin-top: 0.6rem; text-align: center; }

  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

@media (max-width: 420px) {
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.7rem; }
}