/* Approved Emerald Silk homepage layout and motion. */
:root { --cinema: #061d16; --ivory: #f4eedf; }
.site-header { background: rgba(6, 29, 22, .96); }
.nav { max-width: 1536px; }
.hero { min-height: 0; background: var(--cinema); }
.hero::before, .hero::after { display: none; }
.hero-inner {
  max-width: 1460px; min-height: 570px; padding: 20px 34px 12px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px;
}
.hero h1 { font-size: clamp(4rem, 6.5vw, 7rem); line-height: .94; letter-spacing: -.045em; max-width: 720px; text-wrap: balance; }
.hero-copy p { margin: 26px 0; max-width: 570px; color: var(--ivory-soft); }
.hero-kicker { font-size: .62rem; margin-bottom: 18px; }
.hero .primary-btn { border-radius: 8px; min-height: 52px; box-shadow: none; }
.hero .primary-btn:hover { box-shadow: 0 8px 24px rgba(255,116,85,.16); }
.hero-price { color: var(--antique-gold); margin-top: 20px; }
.hero-note { color: var(--ivory-soft); }
.hero .proof-row { display: none; }
.hero-product { min-height: 0; isolation: isolate; }
.hero-video-stage { min-height: 480px; }
.hero-video-stage .phone {
  animation: none; /* Continuous motion starts only after the pause control is ready. */
  display: block; width: 240px; padding: 5px; border-width: 5px;
  border-color: #28352b; background: #28352b; transform: rotate(0deg);
  box-shadow: 0 22px 50px rgba(0,0,0,.35), 0 0 0 1px var(--antique-gold);
}
.hero-video-stage .phone-screen { aspect-ratio: 9/17.5; border-radius: 27px; }
.hero-occasion-tags { display: none; }
.hero-product-caption { margin-top: 14px; color: var(--ivory-soft); font-size: .6rem; }
.motion-toggle {
  align-self: center; position: relative; z-index: 3; margin-top: 8px;
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--cinema-line);
  border-radius: 99px; background: var(--cinema); color: var(--ivory-soft);
  font: 500 .7rem 'DM Sans', sans-serif; cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--antique-gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--antique-gold); outline-offset: 5px; }
.gallery-section { order: 1; padding-top: 30px; background: var(--cinema); border-top: 0; }
.trust-strip { order: 2; margin: 0 auto; width: calc(100% - 48px); }
.occasions-section { order: 3; }
.gallery-section .section-inner { max-width: 1392px; }
.gallery-section .section-heading { max-width: none; margin-bottom: 10px; text-align: left; }
.gallery-section .section-heading h2 { font-size: 2rem; max-width: 800px; }
.gallery-section .section-heading p { max-width: none; margin: 10px 0 0; font-size: .86rem; }
.gallery-toolbar { margin-bottom: 16px; }
.gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 18px; }
.design-card { border: 1px solid var(--cinema-line); border-radius: 9px; overflow: hidden; background: #0d261f; transition: transform .25s ease; }
.design-preview { aspect-ratio: 16/9; border-radius: 0; box-shadow: none; }
.design-preview::after { display: none; }
.design-preview img, .design-preview video { object-position: center 32%; }
.design-copy { padding: 14px 16px 4px; }
.card-actions { padding: 0 16px 16px; }
.design-art-copy { display: none; }
.preview-link, .order-link { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.reveal-ready .hero-copy > * { animation-duration: .5s; }
.reveal-ready .reveal, .reveal-ready .reveal-group > * { transition-duration: .35s; transform: translateY(12px); }
.reveal-ready .reveal.in, .reveal-ready .reveal-group.in > * { transform: none; }
.promo-dialog, .promo-backdrop { animation-duration: .2s; }
@media (hover:hover) and (pointer:fine) {
  .design-card:hover { transform: translateY(-4px); }
  .design-card:hover .design-preview img, .design-card:hover .design-preview video { transform: scale(1.025); }
}
@keyframes bloomPhoneFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@media (prefers-reduced-motion:no-preference) {
  html[data-bloom-motion] .hero-video-stage .phone { animation: bloomPhoneFloat 9s ease-in-out infinite; }
}
html[data-bloom-motion="paused"] .phone { animation-play-state: paused; }
@media (max-width:1100px) and (min-width:621px) {
  .nav { gap: 16px; padding-inline: 24px; }
  .nav-links { gap: 14px; }
  .nav > .whatsapp-btn { display: none; }
  .hero-inner { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); padding-inline: 24px; gap: 20px; }
  .hero-copy { max-width: none; }
  .hero-product { width: 100%; margin: 0; }
  .hero h1 { font-size: clamp(3.5rem,7vw,5.5rem); }
  .hero-copy p { font-size: .94rem; }
}
@media (max-width:620px) {
  .nav { gap: 10px; }
  .menu-toggle { min-height: 44px; }
  .hero-inner { display: flex; padding: 40px 20px 20px; gap: 24px; }
  .hero h1 { font-size: clamp(3.4rem,15vw,5rem); max-width: 440px; }
  .hero-copy p { margin: 22px 0; line-height: 1.7; font-size: .92rem; }
  .hero .actions { gap: 12px; }
  .hero-product { width: 100%; margin: 0; min-height: 0; }
  .hero-video-stage { min-height: 445px; }
  .hero-video-stage .phone { width: 222px; }
  .hero-product-caption { margin-top: 12px; }
  .gallery-section { padding-top: 24px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-section .section-heading h2 { font-size: 2rem; }
  .design-copy { display:flex; font-size: .94rem; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .trust-strip { width: calc(100% - 36px); margin: 0 18px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .hero-video-stage .phone { animation: none !important; }
  .reveal-ready .reveal, .reveal-ready .reveal-group > * { opacity: 1; transform: none; }
}

/* Emerald Silk palette and approved phone arrangement. */
:root {
  --garden-paper: #0c261d;
  --garden-ink: #f3f0e7;
  --garden-muted: #ccd5c8;
  --garden-line: #698070;
}
.site-header { background: var(--garden-paper); border-color: #345043; }
.logo-name, .logo-name em, .nav-links, .menu-toggle { color: var(--garden-ink); }
.nav-links a:hover { color: #ffc6ae; }
.landing-language { border-color: var(--garden-line); background: transparent; }
.landing-language button { color: var(--garden-ink); min-height: 36px; }
.landing-language button.active { background: var(--garden-ink); color: var(--garden-paper); }
.nav > .whatsapp-btn, .nav-links .whatsapp-btn {
  color: var(--garden-ink); border-color: var(--garden-ink); min-height: 44px;
}
.nav > .whatsapp-btn:hover, .nav-links .whatsapp-btn:hover {
  color: var(--garden-paper); background: var(--garden-ink);
}
.hero { color: var(--garden-ink); background: var(--garden-paper); isolation: isolate; padding-bottom: 80px; }
.hero::after {
  content: ''; display: block; position: absolute; inset: auto 0 0;
  height: 112px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,29,22,0), rgba(6,29,22,.18) 26%, rgba(6,29,22,.66) 66%, var(--cinema));
}
.garden-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 78% 40%,#4f6a55,transparent 65%),#173c30;
}
.silk-canvas { display: block; width: 100%; height: 100%; }
.silk-canvas[data-silk-state="fallback"] { opacity: 0; }
.garden-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--garden-paper), transparent 170px),
    linear-gradient(90deg, rgba(6,29,22,.85), rgba(6,29,22,.65) 38%, rgba(6,29,22,.08) 80%);
}
.hero-inner { max-width: 1400px; min-height: 850px; padding: 18px 62px 36px; gap: 64px; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.hero-copy { padding-bottom: 60px; }
.hero h1 { color: var(--ivory); font-size: clamp(4rem,8vw,6.5rem); line-height: .94; letter-spacing: -.055em; max-width: 610px; }
.hero-kicker { color: var(--antique-gold); font-size: .67rem; letter-spacing: .22em; margin-bottom: 22px; }
.hero-copy p { color: var(--garden-muted); font-size: 1rem; line-height: 1.8; max-width: 515px; margin: 32px 0 36px; }
.hero .secondary-btn { color: var(--garden-ink); border-color: #94a78f; background: transparent; }
.hero .primary-btn { color: #091d18; border-radius: 999px; min-height: 50px; }
.hero-price, .hero-note { color: var(--garden-muted); font-size: .875rem; }
.hero-price { margin-top: 28px; }
.hero-price b, .hero-note span { color: var(--antique-gold); }
.hero-note { font-size: .75rem; }
.hero .proof-row { display: flex; margin-top: 42px; color: var(--garden-muted); }
.hero-video-stage { min-height: 750px; }
 .hero-video-stage .phone {
  width: 330px; padding: 8px; border: 7px solid #14261f; background: #14261f;
  transform: rotate(4deg);
  box-shadow: 0 34px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(201,166,92,.24);
}
.hero-video-stage .phone-screen { aspect-ratio: 9/18.8; border-radius: 28px; }
.hero-video-stage .hero-peek-card { width: 210px; transform: translate(-50%,-50%) translate(-145px,10px) rotate(-9deg); }
.hero-occasion-tags { display: flex; margin-top: 4px; }
.hero-product-caption { color: var(--garden-muted); font-size: .65rem; background: transparent; padding: 0; margin-top: 16px; }
.hero-product-caption::before { background: var(--garden-ink); }
.motion-toggle { color: var(--garden-ink); background: var(--garden-paper); border-color: var(--garden-line); font-size: .8rem; }
.motion-toggle:hover { border-color: var(--garden-ink); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--garden-ink); }
.gallery-section { padding-top: 42px; }
@media (prefers-reduced-motion:no-preference) {
  html[data-bloom-motion] .hero-video-stage .phone { animation: bob 5s ease-in-out infinite; animation-delay: 0s; }
  html[data-bloom-motion="paused"] .hero-video-stage .phone { animation-play-state: paused; }
}
@media (max-width:1100px) and (min-width:621px) {
  .hero-inner { gap: 28px; padding: 44px 24px; }
  .hero h1 { font-size: clamp(3.6rem,6.8vw,5.6rem); }
  .hero-copy { padding-bottom: 40px; }
  .hero-video-stage { min-height: 610px; }
  .hero-video-stage .phone { width: 270px; }
  .hero-video-stage .hero-peek-card { width: 170px; transform: translate(-50%,-50%) translate(-110px,10px) rotate(-9deg); }
  .hero .proof-row { gap: 16px; }
}
@media (max-width:620px) {
  .hero { padding-bottom: 64px; }
  .hero::after { height: 92px; }
    .site-header .nav-links { background: var(--garden-paper); }
  .site-header .nav-links a { border-color: #345043; }
  .hero-inner { min-height: 0; padding: 24px 20px 24px; gap: 20px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.5rem,10vw,3.6rem); line-height: 1; }
  .hero-copy p { font-size: 1rem; margin: 20px 0 24px; line-height: 1.7; }
  .hero-kicker { font-size: .67rem; line-height: 1.6; margin-bottom: 12px; padding-bottom: 0; }
  .hero .actions { display: flex; flex-direction: column; align-items: stretch; }
  .hero .secondary-btn { width: 100%; }
  .garden-backdrop::after { background: linear-gradient(180deg,#0c261d,rgba(6,29,22,.65) 40%,rgba(6,29,22,.12) 80%); }
  .hero-video-stage { min-height: 590px; }
  .hero-video-stage .phone { width: 250px; }
  .hero .proof-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
  .hero-price { margin-top: 20px; }
}
/* Reduced motion retains a still Silk frame; playback is governed by landing-motion.js. */
html.lazy-occasions .occasions-section:not(.media-ready) .occasion { --occasion-image: none; }

/* Keep the brand, menu and 44px language targets inside narrow viewports. */
@media (max-width:620px) {
  .nav { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; padding: 10px 12px; }
  .brand-logo { min-width: 0; gap: 6px; }
  .menu-toggle { min-width: 44px; min-height: 44px; padding-inline: 8px; }
  .landing-language { margin: 0; }
  .landing-language button { min-width: 44px; min-height: 44px; height: 44px; }
}
@media (max-width:360px) {
  .brand-logo { gap: 5px; }
  .logo { width: 28px; height: 28px; }
  .logo-name { font-size: 1rem; letter-spacing: 0; }
}

/* Native links retain the occasion artwork and work with keyboard navigation. */
.occasion-link { text-decoration: none; }
.occasion-link h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.occasion-link:hover h3 { text-decoration-thickness: 2px; }
.occasion-link:focus-visible { outline: 3px solid var(--ivory); outline-offset: -5px; }
