/* ============================================================
   ANNIE WILSON HOMECARE — "The Door"
   Full-screen scroll scenes. Walk up the path, door opens,
   step inside, hear the story, knock. Playfair + Lato.
   Warm photography. One fixed call button. WCAG AA.
   ============================================================ */

:root {
  --warm-dark: #12100D;
  --warm-mid:  #2A2018;
  --cream:     #F5EFE5;
  --rust:      #A85E42;
  --rust-lt:   #C4785A;
  --gold:      #B8924A;
  --white:     #FDFAF6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--warm-dark); color: var(--white);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.skip-link { position: fixed; top: -100%; left: 0; background: var(--warm-dark); color: var(--white); padding: 12px 18px; z-index: 999; font-size: 0.9rem; }
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── FIXED CALL BUBBLE ── */
.call-bubble {
  position: fixed; bottom: 32px; right: 32px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  background: var(--rust); color: var(--white);
  padding: 14px 22px; border-radius: 50px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.2s;
}
.call-bubble:hover { background: var(--warm-dark); transform: translateY(-2px); }

/* ── SCENES ── */
.scene {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}
.scene-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.scene-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 0 clamp(24px, 5vw, 60px);
}
.scene-content.story-content {
  margin: 0; max-width: none; padding-left: clamp(24px, 5vw, 60px); padding-right: 0;
}

/* ── SCENE 1: PATH ── */
.path-bg {
  background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1600&q=85&fit=crop');
  filter: brightness(0.45);
}
.path-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(18,16,13,0.3) 0%, rgba(18,16,13,0.5) 60%, rgba(18,16,13,0.8) 100%);
}
.path-content { text-align: center; }
.path-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 24px; display: block;
}
.path-headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white); margin-bottom: 32px;
}
.path-sub {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.scroll-indicator span {
  display: block; width: 2px; height: 8px;
  background: rgba(255,255,255,0.4); border-radius: 1px;
  animation: scrollpulse 1.5s ease-in-out infinite;
}
.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scrollpulse { 0%,100%{opacity:0.2} 50%{opacity:1} }

/* ── SCENE 2: DOOR ── */
.door-bg {
  background-image: url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=1600&q=85&fit=crop');
  filter: brightness(0.25);
  transform: scale(1.1);
}
.door-frame {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  pointer-events: none;
}
.door-panel {
  position: absolute; top: 10%; bottom: 5%;
  width: 46%; background: rgba(30,22,14,0.65);
  border: 1px solid rgba(184,146,74,0.2);
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.door-panel.left { left: 2%; transform-origin: left center; }
.door-panel.right { right: 2%; transform-origin: right center; }
.door-transom {
  position: absolute; top: 6%; left: 2%; right: 2%; height: 6%;
  background: rgba(30,22,14,0.4); border: 1px solid rgba(184,146,74,0.15);
}
.scene-door.open .door-panel.left { transform: perspective(800px) rotateY(-75deg); }
.scene-door.open .door-panel.right { transform: perspective(800px) rotateY(75deg); }

.door-content { text-align: center; max-width: 560px; margin: 0 auto; }
.door-text {
  font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--white); line-height: 1.55; margin-bottom: 20px;
  font-style: italic;
}

/* ── SCENE 3: INSIDE ── */
.inside-bg {
  background-image: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=1600&q=85&fit=crop');
  filter: brightness(0.35);
}
.inside-content { }
.inside-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.1);
}
.care-block {
  padding: 44px 36px;
  background: rgba(18,16,13,0.6);
  backdrop-filter: blur(4px);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.care-block:last-child { border-right: none; }
.care-label {
  display: block; font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.care-block p { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; font-weight: 300; }

.inside-trust {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-family: 'Lato', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── SCENE 4: STORY ── */
.story-bg {
  background-image: url('/img/annie-wilson.jpg');
  filter: brightness(0.22);
  background-position: right top;
}
.story-content { display: flex; justify-content: flex-start; padding-left: 0; }
.story-card {
  max-width: 500px;
  margin-left: 0;
  background: rgba(18,16,13,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(184,146,74,0.2);
  padding: clamp(36px, 5vw, 56px);
}
.annie-portrait {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); margin-bottom: 20px; flex-shrink: 0;
}
.annie-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(20%); }

.story-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; display: block;
}
.story-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 20px; }
.story-card p { font-size: 0.97rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 16px; font-weight: 300; }
.story-card p em { font-style: italic; color: var(--white); }
.story-card blockquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1rem; color: rgba(255,255,255,0.85);
  border-left: 2px solid var(--gold); padding-left: 20px;
  margin-top: 24px; line-height: 1.65;
}
.story-card blockquote cite {
  display: block; font-size: 0.75rem; font-style: normal;
  color: rgba(255,255,255,0.45); margin-top: 8px;
  font-family: 'Lato', sans-serif; letter-spacing: 0.06em;
}

/* ── SCENE 5: KNOCK ── */
.knock-bg {
  background-image: url('https://images.unsplash.com/photo-1559839734-2b71ea197ec2?w=1600&q=85&fit=crop');
  filter: brightness(0.25);
}
.knock-content { text-align: center; max-width: 640px; margin: 0 auto; }
.knock-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.knock-headline { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--white); margin-bottom: 28px; }
.knock-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 40px; font-weight: 300; }
.knock-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.knock-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 15px 28px; border-radius: 2px; min-height: 52px;
  transition: background 0.2s, transform 0.2s;
}
.knock-btn.primary { background: var(--rust); color: var(--white); }
.knock-btn.primary:hover { background: var(--white); color: var(--warm-dark); transform: translateY(-2px); }
.knock-btn.secondary { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.25); }
.knock-btn.secondary:hover { border-color: var(--white); color: var(--white); }
.knock-details p { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.7; }

/* ── FOOTER ── */
.site-footer {
  text-align: center; padding: 28px;
  background: var(--warm-dark);
  font-family: 'Lato', sans-serif; font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .inside-grid { grid-template-columns: 1fr; }
  .care-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .story-content { justify-content: flex-start; }
  html { scroll-snap-type: none; }
}
@media (max-width: 500px) {
  .call-bubble span { display: none; }
  .call-bubble { padding: 16px; border-radius: 50%; }
  .knock-actions { flex-direction: column; align-items: center; }
}
