/* =========================================================
   Russian Memories — one-page site styles
   Palette pulled from the hero banner: midnight navy + gold
   ========================================================= */

:root {
  --navy-900: #0f1a2e;
  --navy-800: #16233d;
  --navy-700: #1e2f50;
  --gold-300: #f5d98b;
  --gold-400: #f2b84b;   /* matches the banner title */
  --gold-500: #d4a03a;
  --gold-600: #a67c2e;
  --cream:    #f8f1e1;
  --cream-dim:#d9cfbb;
  --red:      #9e2a2b;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;

  --max-width: 1180px;
  --gold-gradient: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-300) 45%, var(--gold-500) 70%, var(--gold-600) 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------- NAV ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 26, 46, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 2px 0 var(--navy-900), 0 4px 0 var(--gold-600);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  text-decoration: none;
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 28px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  width: 100%;
  background: url("../images/hero.png") center / cover no-repeat;
  border-bottom: 4px solid var(--gold-500);
  overflow: hidden;
}
/* opacity overlay — darkens the lower-left so the text reads, keeps the banner title bright */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,26,46,0.85) 0%, rgba(15,26,46,0.25) 40%, rgba(15,26,46,0) 60%),
    rgba(15,26,46,0.15);
}
.hero-content {
  position: absolute;
  left: 5%; bottom: 7%;
  max-width: 44%;
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  color: var(--gold-400);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-900);
  background: var(--gold-gradient);
  padding: 10px 18px;
  border: 1px solid var(--gold-300);
  box-shadow: 0 0 0 3px rgba(15,26,46,0.6), 0 0 0 4px var(--gold-500);
  transition: transform .2s, filter .2s;
}
.hero-links a:hover, .hero-links a:focus-visible { transform: translateY(-2px); filter: brightness(1.1); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 88px 0; position: relative; }
.section + .section::before {
  /* gold double rule between sections, like the sketch's dividing lines */
  content: ""; position: absolute; top: 0; left: 50%;
  width: min(var(--max-width), 90%); transform: translateX(-50%);
  height: 6px;
  border-top: 2px solid var(--gold-500);
  border-bottom: 1px solid var(--gold-600);
}
.section-dolls   { background: var(--navy-900); }
.section-folk    { background: var(--navy-800); }
.section-holiday { background: var(--navy-900); }
.section-about   { background: var(--navy-800); }

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-title.left { text-align: left; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 14px auto 44px; max-width: 320px;
  color: var(--gold-400); font-size: 1.1rem;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold-400));
}
.ornament::after { --dir: left; }

.rule { width: 90px; height: 3px; background: var(--gold-gradient); margin: 14px 0 22px; }

/* gold picture frame used on image slots */
.frame {
  padding: 8px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 2px solid var(--navy-900);
}

/* ---------------- NESTING DOLLS ---------------- */
.doll-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.doll-grid .frame { aspect-ratio: 1 / 1; transition: transform .25s; }
.doll-grid .frame:hover { transform: translateY(-4px); }
.text-row {
  margin: 44px auto 0;
  max-width: 860px;
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--cream-dim);
}

/* ---------------- FOLK ART ---------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.frame-wide { aspect-ratio: 3 / 2; }

.text-block {
  border: 1px solid var(--gold-500);
  outline: 1px solid var(--gold-600);
  outline-offset: 6px;
  padding: 34px 36px;
  background: rgba(30,47,80,0.55);
}
.text-block p { margin: 0 0 14px; }
.text-block p:last-child { margin-bottom: 0; }
.text-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--gold-400);
}
.text-block.plain { border: 0; outline: 0; background: none; padding: 0; }

/* ---------------- HOLIDAY GIFTS ---------------- */
.holiday-layout {
  display: grid;
  grid-template-columns: 1.6fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.circle-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;            /* the circle mask */
  border: 4px solid var(--gold-400);
  box-shadow: 0 0 0 4px var(--navy-900), 0 0 0 6px var(--gold-600), 0 10px 24px rgba(0,0,0,0.45);
  transition: transform .25s;
}
.circle:hover { transform: scale(1.05); }
.divider-vertical {
  width: 2px; align-self: stretch; min-height: 180px;
  background: linear-gradient(to bottom, transparent, var(--gold-400), transparent);
}

/* ---------------- ABOUT US ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;   /* left block larger, per sketch */
  gap: 48px;
  align-items: start;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--navy-900);
  border-top: 4px double var(--gold-500);
  padding: 28px 0;
  font-size: 1.05rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.site-footer p { margin: 0; color: var(--cream-dim); }
.site-footer a { color: var(--gold-400); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .doll-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .about-grid { grid-template-columns: 1fr; }
  .holiday-layout { grid-template-columns: 1fr; }
  .divider-vertical {
    width: 60%; height: 2px; min-height: 0; justify-self: center;
    background: linear-gradient(to right, transparent, var(--gold-400), transparent);
  }
  .section-title.left { text-align: center; }
  .rule { margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  /* hero text moves below the banner on small screens so it never covers the sleigh */
  .hero { aspect-ratio: auto; max-height: none; background: none; overflow: visible; }
  .hero::before {
    content: ""; display: block; aspect-ratio: 16 / 9;
    background: url("../images/hero.png") center / cover no-repeat;
  }
  .hero-overlay { display: none; }
  .hero-content {
    position: static; max-width: none;
    padding: 28px 16px 32px; text-align: center;
    background: var(--navy-800);
  }
  .hero-links { justify-content: center; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 4px 18px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
}

@media (max-width: 560px) {
  .doll-grid, .circle-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .text-block { padding: 24px 22px; }
}
