/* ============================================
   DAIVARA — Design System
   Ivory ground, indigo signature, brass detail.
   ============================================ */

:root {
  --ivory: #F7F3EC;
  --cream: #EFE8DC;
  --charcoal: #2A2420;
  --indigo: #1F3A4D;
  --indigo-deep: #16293650;
  --brass: #A8824F;
  --gray: #8C8479;
  --hairline: #DFD8C9;
  --terracotta: #B5502F; /* rare, tertiary use only */
  --sage: #6B7F5C;
  --dustyrose: #B08B87;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --max-width: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.lede {
  font-size: 18px;
  color: #55504A;
  max-width: 46ch;
}

.muted { color: var(--gray); }

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }

.text-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex;
    background: none; border: none; cursor: pointer;
    font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  }
}

/* ---------- Arch motif (signature element) ---------- */

.arch {
  --arch-w: 100%;
  width: var(--arch-w);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--indigo);
  border-bottom: none;
  border-radius: 46% 46% 0 0 / 30% 30% 0 0;
}

.arch-frame {
  position: relative;
  padding: 14px;
}
.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brass);
  border-bottom: none;
  border-radius: 46% 46% 0 0 / 30% 30% 0 0;
  pointer-events: none;
}

.divider-arch {
  width: 64px;
  height: 42px;
  margin: 0 auto;
  border: 1px solid var(--brass);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gutter);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  background: linear-gradient(180deg, var(--cream), var(--ivory));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
}

.hero-visual .arch-frame { width: 78%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero-visual .arch { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.hero-visual .arch-fill {
  width: 100%; height: 88%;
  background: linear-gradient(180deg, #E4DACB 0%, #C9BBA3 100%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
}

/* ---------- Section shell ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--cream); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head .eyebrow { margin-bottom: 12px; }

/* ---------- Collections grid ---------- */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.collection-card { text-align: left; }

.collection-thumb {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border: 1px solid var(--hairline);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.collection-thumb .arch { border-color: var(--brass); width: 46%; }
.collection-thumb .arch-fill { background: linear-gradient(180deg, #DED2BB, #B9A886); height: 84%; }

.collection-card h3 { margin-bottom: 8px; }
.collection-card p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }

@media (max-width: 980px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .collections-grid { grid-template-columns: 1fr; }
}

/* ---------- Story / split section ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--gutter);
  align-items: center;
}

.split-reverse { grid-template-columns: 1.1fr 0.9fr; }
.split-reverse .split-visual { order: 2; }

.split-visual {
  background: var(--indigo);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.split-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(168,130,79,0.35), transparent 60%);
}

.split-copy h2 { margin-bottom: 20px; }
.split-copy p { margin-bottom: 18px; color: #55504A; max-width: 52ch; }

@media (max-width: 900px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-visual { order: -1; }
}

/* ---------- Process steps ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step { padding-top: 24px; border-top: 1px solid var(--hairline); }
.process-step .step-label {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--gray); }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card { position: relative; }

.product-thumb {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 1px solid var(--hairline);
  margin-bottom: 16px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-thumb .arch { width: 54%; border-color: var(--indigo); }
.product-thumb .arch-fill { background: linear-gradient(180deg, #E4DACB, #C9BBA3); height: 90%; }

.badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px;
  background: var(--ivory);
  border: 1px solid var(--brass);
  color: var(--brass);
}

.badge-sold {
  border-color: var(--dustyrose);
  color: var(--dustyrose);
}

.product-card h3 { margin-bottom: 6px; font-size: 17px; }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; }
.product-price { font-size: 14px; color: var(--charcoal); }
.product-cat { font-size: 12px; color: var(--gray); letter-spacing: 0.03em; }

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

/* ---------- Newsletter band ---------- */

.newsletter {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 80px 0;
  text-align: center;
}
.newsletter h2 { color: var(--ivory); margin-bottom: 16px; }
.newsletter p { color: #C9C2B6; margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid #4A443C;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 18px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: #9A9184; }
.newsletter-form button {
  background: var(--brass);
  border: none;
  color: var(--charcoal);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 22px;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus states ---------- */

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
