/* Meridian Vintage — Shared design system
   -------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #F3EEE6;
  --bg-warm: #EDE8E0;
  --ink: #2B2520;
  --muted: #857A6C;
  --white: #FFFFFF;
  --line: rgba(43, 37, 32, 0.12);
  --line-strong: rgba(43, 37, 32, 0.20);
  --shadow: rgba(43, 37, 32, 0.06);
  --radius: 12px;
  --radius-sm: 8px;

  --color-forest: #6E7D64;
  --color-clay: #A96A4C;
  --color-charcoal: #4A4642;
  --color-sand: #B08A54;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* Typography
   -------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.body-small {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Buttons
   -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #3a322b;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(43, 37, 32, 0.04);
}

.btn-text {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.btn-text:hover {
  border-bottom-color: var(--ink);
}

/* Announcement bar
   -------------------------------------------------- */
.announcement {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation
   -------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s var(--ease-out);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-cart {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 28px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 238, 230, 0.92) 0%, rgba(243, 238, 230, 0.5) 50%, rgba(243, 238, 230, 0.2) 100%);
  z-index: 1;
}

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

.hero p {
  max-width: 420px;
  margin: 1.5rem 0 2.5rem;
}

/* Sections
   -------------------------------------------------- */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Page head (inner pages)
   -------------------------------------------------- */
.page-head {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 1.25rem;
}

.page-head .body-large {
  max-width: 720px;
}

/* Comparison / guide cards
   -------------------------------------------------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .comparison-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-card {
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
}

.compare-card h3 {
  margin-bottom: 0.75rem;
}

.compare-card .body-large {
  margin: 0 0 1rem;
}

.compare-card .body-small {
  margin: 0;
  color: var(--muted);
}

/* Product card
   -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(43, 37, 32, 0.1);
}

.product-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.product-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.product-card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.product-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

/* Feature list / bullets
   -------------------------------------------------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-forest);
}

/* Two-column layouts
   -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split.reverse > *:first-child {
    order: 2;
  }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.split-content .btn,
.split-content .btn-text {
  align-self: flex-start;
}

/* Story / editorial quote
   -------------------------------------------------- */
.quote-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-block {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Newsletter
   -------------------------------------------------- */
.newsletter {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-xl) 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .newsletter-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.newsletter h2 {
  color: var(--bg);
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: var(--muted);
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bg);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

.newsletter-form .btn {
  background: var(--bg);
  color: var(--ink);
}

.newsletter-form .btn:hover {
  background: #fff;
}

.form-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: var(--color-forest);
}

/* Product detail page
   -------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: var(--space-lg);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .current {
  color: var(--ink);
}

.product-hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.swatch-group {
  margin-top: 0.5rem;
}

.swatch-label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.swatch-label span {
  color: var(--ink);
}

.specs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .specs-split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.product-gallery {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-detail .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.product-detail .capacity {
  font-size: 0.9375rem;
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.specs-table th {
  font-weight: 500;
  color: var(--muted);
  width: 45%;
}

.specs-table td {
  color: var(--ink);
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line-strong);
}

/* FAQ
   -------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Footer
   -------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 300px;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Reveal animation
   -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility
   -------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
