/* =========================================
   MERIDIAN — Premium Home Goods Store
   Design: Editorial luxury, forest & ivory
   ========================================= */

:root {
  --bg: #f5f0e8;
  --bg-alt: #ede7da;
  --bg-dark: #1a3328;
  --fg: #1a3328;
  --fg-light: #3d5e4d;
  --fg-muted: #6b8f7a;
  --accent: #c9a84c;
  --accent-dark: #9e7d30;
  --white: #ffffff;
  --off-white: #fdfaf4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4vw;
  background: var(--bg);
  border-bottom: 1px solid rgba(26, 51, 40, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  padding: var(--space-2xl) 4vw var(--space-xl);
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.75rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-dark);
}

.hero-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg-light);
  max-width: 480px;
}

/* Hero visual — abstract geometric */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
}

.hero-image-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-image-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Abstract geometric shapes representing curated objects */
.hero-gradient-a {
  position: absolute;
  width: 65%;
  height: 70%;
  top: 15%;
  right: -10%;
  background: radial-gradient(ellipse at center, #2d5442 0%, transparent 70%);
  border-radius: 50%;
}

.hero-gradient-b {
  position: absolute;
  width: 45%;
  height: 40%;
  bottom: 10%;
  left: 5%;
  background: radial-gradient(ellipse at center, #3d6b54 0%, transparent 70%);
  border-radius: 50%;
}

.hero-texture-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(201, 168, 76, 0.04) 40px,
    rgba(201, 168, 76, 0.04) 41px
  );
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.badge-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-xl);
  padding: 2rem 4vw;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---- PHILOSOPHY ---- */
.philosophy {
  padding: var(--space-2xl) 4vw;
  background: var(--off-white);
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.philosophy-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.mark-line {
  width: 2px;
  height: 80px;
  background: var(--accent);
}

.mark-text {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 500;
}

.philosophy-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 2rem;
}

.philosophy-detail {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--fg-light);
  margin-bottom: 1rem;
}

/* ---- COLLECTION ---- */
.collection {
  padding: var(--space-2xl) 4vw;
  background: var(--bg);
}

.collection-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.collection-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--fg);
}

.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.cat-1 { background: #e8ede6; }
.cat-2 { background: #e6e9ea; }
.cat-3 { background: #ece6df; }
.cat-4 { background: #e5e9ea; }

.cat-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Geometric shapes for each category */
.cat-geo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.cat-geo-1 {
  background: radial-gradient(ellipse at 40% 40%, #3d6b54 0%, transparent 70%);
  width: 100px;
  height: 100px;
  border-radius: 0;
  border: 3px solid #c9a84c;
  transform: rotate(45deg);
  opacity: 0.6;
}

.cat-geo-2 {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--fg);
  opacity: 0.15;
  position: relative;
}

.cat-geo-2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.7;
}

.cat-geo-3 {
  width: 60px;
  height: 90px;
  border-radius: 30px 30px 10px 10px;
  background: var(--accent);
  opacity: 0.4;
  transform: rotate(-10deg);
}

.cat-geo-4 {
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: transparent;
  border: 3px solid var(--accent-dark);
  opacity: 0.5;
  transform: rotate(15deg);
}

.cat-content {
  padding: 1.5rem 1.75rem 1.75rem;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.cat-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-light);
  margin-bottom: 1rem;
}

.cat-range {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.collection-note {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26, 51, 40, 0.08);
}

.note-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: var(--space-2xl) 4vw;
  background: var(--bg-dark);
}

.manifesto-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.manifesto-item {
  padding: 0;
}

.manifesto-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: rgba(201, 168, 76, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.manifesto-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--space-2xl) 4vw;
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--fg-light);
  max-width: 550px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--fg);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 4vw var(--space-md);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
  gap: var(--space-lg);
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 340px;
}

.footer-location,
.footer-email {
  font-size: 0.8rem;
  font-weight: 300;
  text-align: right;
  line-height: 1.8;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.footer-made {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  font-family: var(--font-display);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    order: -1;
    aspect-ratio: 16/9;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
  }

  .philosophy-mark {
    flex-direction: row;
    align-items: center;
  }

  .mark-line {
    width: 40px;
    height: 2px;
  }

  .mark-text {
    writing-mode: horizontal-tb;
    transform: none;
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-location,
  .footer-email {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.4rem;
  }

  .closing-headline {
    font-size: 1.8rem;
  }
}