/* ============================================================
   HOUSE OF MIRELLI — Master Stylesheet v2
   Multi-page | Shared across all HTML files
   Palette: Ivory · Charcoal · Muted Gold · Blush
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --ivory:         #FAF8F4;
  --ivory-deep:    #F3EFE8;
  --cream:         #EDE8DF;
  --cream-dark:    #DDD7CB;
  --charcoal:      #222222;
  --charcoal-mid:  #444444;
  --charcoal-soft: #6B6B6B;
  --gold:          #B8955A;
  --gold-light:    #D4B483;
  --gold-pale:     #F0E6D3;
  --blush:         #E8D5CF;
  --blush-deep:    #C9A9A1;
  --white:         #FFFFFF;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Jost', sans-serif;

  --max-w:         1160px;
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr:            0.32s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--tr); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Layout Helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; }
.section-pad { padding: 100px 0; }
.text-center { text-align: center; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-title em { font-style: italic; color: var(--gold); }

.section-title.light { color: var(--ivory); }
.section-title.light em { color: var(--gold-light); }

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal-soft);
  line-height: 1.85;
  max-width: 560px;
  margin-top: 16px;
}

.section-sub.light { color: rgba(250,248,244,0.55); }
.section-sub.center { margin: 16px auto 0; }

.divider {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 22px 0;
}
.divider.center { margin: 22px auto; }
.divider.light { background: linear-gradient(90deg, var(--gold-light), transparent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: none;
  transition: all var(--tr);
  position: relative;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,149,90,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(250,248,244,0.4);
}
.btn-outline-light:hover {
  background: rgba(250,248,244,0.08);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--charcoal);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44,44,44,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 28px;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,149,90,0.14);
  transition: box-shadow var(--tr);
}
.nav.scrolled { box-shadow: 0 2px 36px rgba(34,34,34,0.09); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-main {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  line-height: 1;
}
.nav-brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--tr);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: all var(--tr);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid var(--cream);
  padding: 20px 36px 28px;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal-mid);
  padding: 13px 0;
  border-bottom: 1px solid var(--cream);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); }

/* ── Page Header Banner (for inner pages) ───────────────────── */
.page-header {
  padding: 150px 0 80px;
  background: var(--charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 60% 40%, rgba(184,149,90,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}
.page-header .container { position: relative; z-index: 1; }
.page-header-ornament {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #181818;
  padding: 52px 0 36px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-nav a {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.28);
}
.footer-nav a:hover { color: var(--gold); }
.footer-line {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.35;
}
.footer-copy {
  font-size: 0.68rem;
  color: rgba(250,248,244,0.18);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ── Marquee Strip ──────────────────────────────────────────── */
.brand-strip {
  background: var(--charcoal);
  padding: 17px 0;
  overflow: hidden;
}
.brand-strip-track {
  display: flex;
  gap: 52px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  flex-shrink: 0;
}
.strip-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Fade-up animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Book Card (shared) ─────────────────────────────────────── */
.book-cover-art {
  flex-shrink: 0;
  width: 140px;
  height: 210px;
  position: relative;
  box-shadow: 6px 8px 24px rgba(34,34,34,0.22);
}
.book-cover-art .spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
}
.book-cover-art .face {
  position: absolute;
  left: 7px; top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
}
.book-cover-art .face .b-line {
  width: 28px; height: 1px;
  background: var(--gold);
  margin: 7px 0;
  flex-shrink: 0;
}
.book-cover-art .face .b-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--gold-light);
  line-height: 1.3;
  font-weight: 400;
}
.book-cover-art .face .b-author {
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* Book 1: deep charcoal */
.book-1 .spine  { background: linear-gradient(to right, #0e0e0e, #1c1c1c); }
.book-1 .face   { background: linear-gradient(155deg, #1c1c1c 0%, #2b2b2b 100%); }

/* Book 2: deep burgundy-brown */
.book-2 .spine  { background: linear-gradient(to right, #180d0b, #2e1a16); }
.book-2 .face   { background: linear-gradient(155deg, #2e1a16 0%, #3e2620 100%); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section-pad { padding: 72px 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 60px 0; }
  .page-header { padding: 130px 0 60px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ── Responsive images ──────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Footer legal link style ────────────────────────────────── */
.footer-copy a {
  color: rgba(184,149,90,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-copy a:hover { color: var(--gold); }
