:root {
  /* Premium neutral design system */
  --bg: #f5efe8;
  --bg-alt: #ede2d5;
  --card: #fffaf4;
  --text: #3a2c24;
  --muted: #6f5a4e;
  --accent: #8b6a55;
  --accent-dark: #6c4f3d;
  --border: #d9c9bc;
  --shadow: 0 10px 28px rgba(80, 55, 40, 0.1);
  --radius: 14px;
  --speed: 260ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top right, #f7f1ea, #f4ece2 45%, #efe3d6 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(135deg, #f1e7dc, #ebdece);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.section-heading p {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  /* Sticky navigation with translucent backdrop */
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(244, 236, 226, 0.85);
  border-bottom: 1px solid rgba(139, 106, 85, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent-dark);
  transition: width var(--speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 3px;
  transition: transform var(--speed), opacity var(--speed);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  /* Home hero with layered image and gradient */
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to right, rgba(54, 38, 30, 0.52), rgba(54, 38, 30, 0.15)),
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff8f2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(44, 31, 25, 0.45), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 0.8rem;
}

.hero p {
  max-width: 55ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed);
}

.btn:focus-visible,
.filter-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #c9986c;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--accent-dark);
}

.btn-secondary {
  background: #f8efe6;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #ead8c7;
}

.pulse {
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 238, 220, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(255, 238, 220, 0); }
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

.collection-card,
.product-card,
.testimonial,
.contact-form,
.story-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.collection-card,
.product-card {
  overflow: hidden;
  transition: transform var(--speed), box-shadow var(--speed);
}

.collection-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(75, 50, 33, 0.16);
}

.collection-card img,
.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 450ms ease;
}

.collection-card:hover img,
.product-card:hover img {
  transform: scale(1.08);
}

.card-content,
.product-info {
  padding: 1rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.price {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.img-wrap {
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  min-height: 180px;
}

.testimonial {
  position: absolute;
  inset: 0;
  padding: 1.4rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

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

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

input,
textarea {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  background: #fffdf9;
  color: var(--text);
}

.newsletter-form input {
  min-width: 240px;
}

.form-feedback {
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--accent-dark);
}

.page-hero {
  background: linear-gradient(120deg, #efe1d4, #f7efe7);
}

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

.story-grid article {
  padding: 1.2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--text);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--speed);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

.contact-form {
  padding: 1rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.error-msg {
  color: #8e2c2c;
  font-size: 0.85rem;
  min-height: 1em;
  display: block;
}

.site-footer {
  background: #3f2f25;
  color: #f5e9dc;
  padding-top: 2.4rem;
}

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.social-links {
  display: grid;
  gap: 0.35rem;
}

.copyright {
  text-align: center;
  padding: 0.9rem;
  border-top: 1px solid rgba(245, 233, 220, 0.18);
  margin-top: 1.6rem;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--speed);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  /* Reusable scroll-reveal animation */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .newsletter-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: #f8f0e7;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
  }

  .nav-menu.open {
    max-height: 320px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
  }

  .hero {
    min-height: 66vh;
  }

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