/* ═══════════════════════════════════════════
   SANTA JUANA — style.css
   ═══════════════════════════════════════════ */

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

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

:root {
  --milk:      #fdfbf7;
  --ivory:     #f4ede0;
  --parchment: #ede3d2;
  --smoke:     #e2d8c8;
  --gold:      #c8a96e;
  --gold-lt:   #ddc08a;
  --gold-dk:   #a08040;
  --cinnamon:  #a06840;
  --cinn-lt:   #c08860;
  --text:      #1e1a16;
  --text-lt:   #7a6e5e;
  --text-xs:   #a09080;

  --f-logo:    'Cinzel', serif;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Jost', sans-serif;

  --ease:      cubic-bezier(.22,.68,0,1.2);
  --ease-s:    cubic-bezier(.4,0,.2,1);
  --ease-slow: cubic-bezier(.25,.1,.25,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--milk);
  color: var(--text);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── KEYFRAMES ── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes marquee  { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes shimmer  { 0%,100%{opacity:.3} 50%{opacity:1} }
@keyframes goldPulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   SHARED ELEMENTS
══════════════════════════════════════════ */

.gold-rule { display:flex; align-items:center; gap:16px; margin:0 auto; }
.gold-rule-line { flex:1; max-width:80px; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.gold-rule-diamond { width:5px; height:5px; background:var(--gold); transform:rotate(45deg); animation:goldPulse 2.8s ease-in-out infinite; }

.section-label {
  display: block;
  font-family: var(--f-logo);
  font-size: 8px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.ornament { display:flex; align-items:center; justify-content:center; gap:16px; margin:40px auto; }
.ornament-line { width:72px; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.ornament-dot  { width:5px; height:5px; background:var(--gold); transform:rotate(45deg); animation:shimmer 2.4s ease-in-out infinite; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-logo);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: all .4s var(--ease-s);
  cursor: pointer;
  border: none;
}
.btn::after { content: '→'; font-family: var(--f-body); font-size: 13px; transition: transform .35s var(--ease-s); }
.btn:hover::after { transform: translateX(5px); }
.btn-filled { background: var(--text); color: var(--milk); }
.btn-filled:hover { background: var(--cinnamon); }
.btn-ghost { background:transparent; color:var(--text); border:1px solid var(--smoke); }
.btn-ghost:hover { border-color:var(--gold); color:var(--cinnamon); }
.btn-outline { background:transparent; color:var(--milk); border:1px solid rgba(253,251,247,.4); backdrop-filter:blur(8px); }
.btn-outline:hover { background:rgba(253,251,247,.1); border-color:rgba(253,251,247,.7); }
.btn-gold { background:transparent; color:var(--gold); border:1px solid var(--gold); }
.btn-gold:hover { background:var(--gold); color:var(--milk); }

/* ── HEADER ── */
#mainHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  transition: background .4s ease, box-shadow .4s ease;
  background: transparent;
}
#mainHeader.scrolled {
  background: rgba(244, 241, 238, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(44,40,35,.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,5vw,60px);
  height: 72px;
}
.header-left,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-left  { justify-content: flex-start; }
.header-right { justify-content: flex-end; gap: 12px; }

/* Logo centré, deux polices */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
  font-size: unset !important;
  letter-spacing: unset !important;
}
.logo-main {
  font-family: var(--f-logo);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  transition: color .3s;
}
.logo-sub {
  font-family: var(--f-display);
  font-size: 9px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: .22em;
  color: var(--gold);
  white-space: nowrap;
  line-height: 1;
  transition: color .3s;
}

/* Nav desktop */
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  font-family: var(--f-logo);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-lt);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.header-nav a:hover,
.header-nav a.active { color: var(--text); }
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Icon buttons */
.icon-btn {
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 8px; position: relative; transition: color .2s; display: flex; align-items: center;
}
.icon-btn:hover { color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s, background .3s;
}
/* Burger ouvert : toujours noir */
.burger.open span { background: var(--text) !important; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sur hero (index) : burger blanc quand header transparent */
#mainHeader:not(.scrolled) .burger span { background: rgba(253,251,247,.9); }
#mainHeader:not(.scrolled) .logo-main   { color: rgba(253,251,247,.92); }
#mainHeader:not(.scrolled) .logo-sub    { color: rgba(200,169,110,.7); }
#mainHeader:not(.scrolled) .header-nav a { color: var(--text-lt); }

/* Mobile nav — grande typo éditoriale, texte NOIR */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--milk);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: clamp(36px, 10vw, 56px);
  font-style: italic;
  font-weight: 300;
  color: var(--text);   /* NOIR — pas blanc */
  transition: color .25s;
  position: relative;
}
.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .35s;
}
.mobile-nav a:hover { color: var(--cinnamon); }
.mobile-nav a:hover::after { transform: scaleX(1); }

/* Pages intérieures : header toujours visible (pas de hero transparent) */
.header-interior #mainHeader:not(.scrolled) .logo-main { color: var(--text); }
.header-interior #mainHeader:not(.scrolled) .logo-sub  { color: var(--gold); }
.header-interior #mainHeader:not(.scrolled) .header-nav a { color: var(--text-lt); }
.header-interior #mainHeader:not(.scrolled) .burger span { background: var(--text); }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  background-color: rgb(245, 234, 219);
  padding: 13px 0;
  border-top: 1px solid rgba(200,169,110,.15);
  border-bottom: 1px solid rgba(200,169,110,.15);
}
.marquee-track { display:flex; width:max-content; animation:marquee 32s linear infinite; }
.marquee-item  {
  font-family: var(--f-logo);
  font-size: 8px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(30,26,22,.55);
  padding: 0 40px;
  white-space: nowrap;
}
.marquee-dot { color: var(--gold); margin-left: 40px; }

/* ── QUOTE ── */
.quote { background:var(--milk); padding:clamp(88px,14vw,140px) clamp(24px,10vw,80px); text-align:center; }
.quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(24px,4vw,52px);
  font-weight: 300; font-style: italic;
  color: var(--text); line-height: 1.4;
  max-width: 800px; margin: 0 auto 24px;
  letter-spacing: -.01em;
}
.quote cite { font-family:var(--f-logo); font-size:8px; letter-spacing:.32em; text-transform:uppercase; color:var(--gold); font-style:normal; }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(253,251,247,.45); }
.footer-gold-bar { height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.footer-top { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; padding:clamp(56px,8vw,88px) clamp(20px,7vw,80px); }
.footer-logo { font-family:var(--f-logo); font-size:13px; letter-spacing:.45em; text-transform:uppercase; color:rgba(253,251,247,.9); margin-bottom:16px; }
.footer-tagline { font-family:var(--f-display); font-size:13px; font-style:italic; line-height:1.9; max-width:220px; margin-bottom:28px; color:rgba(253,251,247,.35); }
.footer-social { display:flex; gap:16px; }
.footer-social a { font-family:var(--f-logo); font-size:8px; letter-spacing:.2em; text-transform:uppercase; color:rgba(253,251,247,.3); transition:color .25s; }
.footer-social a:hover { color:var(--gold-lt); }
.footer-col h4 { font-family:var(--f-logo); font-size:8px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold); margin-bottom:22px; }
.footer-col a { display:block; font-size:12px; color:rgba(253,251,247,.35); margin-bottom:12px; transition:color .25s; letter-spacing:.03em; }
.footer-col a:hover { color:rgba(253,251,247,.7); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; padding:20px clamp(20px,7vw,80px); border-top:1px solid rgba(253,251,247,.06); font-family:var(--f-logo); font-size:7px; letter-spacing:.16em; gap:12px; flex-wrap:wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .header-nav { display: none !important; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .header-top { height: 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-title { font-size: clamp(28px, 9vw, 48px); }
}
