/* ═══════════════════════════════════════════════════════════════════
   ROYAL LAYER — the million-dollar polish pass.
   One signature moment (candlelit gold dust + logo light sweep),
   quiet discipline everywhere else. Homepage only.
═══════════════════════════════════════════════════════════════════ */

/* ── Gold scroll progress hairline ── */
#royal-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, #8a6420, #dba136 40%, #f3dd9a 70%, #dba136);
    z-index: 12000; pointer-events: none;
    box-shadow: 0 0 8px rgba(219,161,54,0.55);
    transition: width 80ms linear;
}

/* ── Signature: gold dust canvas sits behind hero content ── */
#royal-dust {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}
.hero { position: relative; }
.hero .hero-content { position: relative; z-index: 2; }

/* ── Signature: one-time light sweep across the gold logo on load ── */
.hero .logo { position: relative; overflow: hidden; }
.hero .logo::after {
    content: ''; position: absolute; top: -20%; bottom: -20%; left: -75%;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, rgba(255,244,205,0.0) 35%, rgba(255,244,205,0.38) 50%, rgba(255,244,205,0.0) 65%, transparent 100%);
    transform: skewX(-18deg);
    animation: royalSheen 2.2s cubic-bezier(.65,.05,.35,1) 1.1s 1 both;
    pointer-events: none;
}
@keyframes royalSheen {
    0%   { left: -75%; opacity: 0; }
    12%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* ── Hero tagline: words rise like place cards ── */
.hero-tagline .word {
    display: inline-block;
    opacity: 0; transform: translateY(0.55em);
    animation: royalWord 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-tagline .word:nth-child(1) { animation-delay: 1.15s; }
.hero-tagline .word:nth-child(2) { animation-delay: 1.25s; }
.hero-tagline .word:nth-child(3) { animation-delay: 1.35s; }
.hero-tagline .word:nth-child(4) { animation-delay: 1.45s; }
.hero-tagline .word:nth-child(5) { animation-delay: 1.55s; }
.hero-tagline .word:nth-child(6) { animation-delay: 1.65s; }
.hero-tagline .word:nth-child(7) { animation-delay: 1.75s; }
.hero-tagline .word:nth-child(8) { animation-delay: 1.85s; }
.hero-tagline .word:nth-child(9) { animation-delay: 1.95s; }
@keyframes royalWord { to { opacity: 1; transform: translateY(0); } }

/* ── Buttons: a gilded sheen passes on hover ── */
.button, .button-ghost, .form-submit {
    position: relative; overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}
.button::after, .button-ghost::after, .form-submit::after {
    content: ''; position: absolute; top: -30%; bottom: -30%; left: -60%;
    width: 35%; transform: skewX(-20deg);
    background: linear-gradient(105deg, transparent, rgba(255,248,220,0.35), transparent);
    transition: left 0.6s cubic-bezier(.5,.1,.3,1);
    pointer-events: none;
}
.button:hover::after, .button-ghost:hover::after, .form-submit:hover::after { left: 125%; }
.button:hover, .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(219,161,54,0.28);
}
.button-ghost:hover { transform: translateY(-2px); }

/* ── Cards: candlelit lift ── */
.service, .review-box, .gallery-item {
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
/* Give the card room to breathe inside its frame — content was hugging the outline. */
.service-card {
    padding: 1.4rem 1.6rem 1.8rem;
    border-radius: 4px;
}
/* Numbers removed per request */
.service-card .service-number {
    display: none;
}
/* Scale the whole card down a touch so the section feels less heavy */
.service-card .service-img { height: 27dvh; margin-bottom: 2rem; }
.service-card h4.service-name { font-size: 2.05rem; margin-bottom: 1.2rem; }
.service-card p.service-desc { font-size: 1.25rem; line-height: 1.8; }
.service-card .service-meta { margin-top: 2rem; padding-top: 1.5rem; }
.service-card .service-price { font-size: 1.15rem; }
.service-card .service-price strong { font-size: 1.55rem; }
.service-card .service-link { font-size: 1rem; }
.service-card .service-img-caption { font-size: 1.55rem; }
.service:hover, .review-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.18), 0 0 0 1px rgba(219,161,54,0.35);
}
.gallery-item { overflow: hidden; }
.gallery-item img { transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.8s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.06) saturate(1.05); }

/* ── Section headings: a gold rule draws itself in on reveal ── */
section > h2.display-serif { position: relative; padding-bottom: 0.45em; }
section > h2.display-serif::after {
    content: ''; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    height: 1px; width: 0;
    background: linear-gradient(90deg, transparent, #dba136, transparent);
    transition: width 1.1s cubic-bezier(.2,.7,.2,1) 0.25s;
}
section > h2.display-serif.visible::after { width: min(220px, 60%); }

/* ── Stats: numbers get a soft gold glow once counted ── */
.stat-num.counted { text-shadow: 0 0 18px rgba(232,201,106,0.35); }

/* ── Thin gilded scrollbar ── */
html { scrollbar-width: thin; scrollbar-color: #8a6420 #0a0a0a; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a6420, #dba136);
    border-radius: 4px; border: 2px solid #0a0a0a;
}

/* ── Smooth anchors ── */
html { scroll-behavior: smooth; }

/* ── Respect reduced motion: stillness is also luxury ── */
@media (prefers-reduced-motion: reduce) {
    #royal-dust { display: none; }
    .hero .logo::after { animation: none; opacity: 0; }
    .hero-tagline .word { opacity: 1; transform: none; animation: none; }
    .button::after, .button-ghost::after, .form-submit::after { display: none; }
    html { scroll-behavior: auto; }
    section > h2.display-serif::after { transition: none; }
}

/* ── Mobile: lighter hand ── */
@media (max-width: 760px) {
    .service:hover, .review-box:hover { transform: none; }
}

/* ── Image grace: gallery photos fade and settle in as they load (no pop-in) ── */
.gallery img.royal-img-wait { opacity: 0; transform: scale(1.015); }
.gallery img { transition: opacity 0.7s var(--ease-luxury, ease), transform 0.9s var(--ease-luxury, ease); }

/* ── Hero parallax: content drifts slower than the scroll for quiet depth ── */
.hero .hero-content { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
    .gallery img.royal-img-wait { opacity: 1; transform: none; }
}

/* ══ THIS WEEK'S MENU ══ */
#week-menu { text-align: center; padding: 8rem 6vw; background: #0c0c0c; }
.week-menu-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: 900px; margin: 3rem auto 0; }
.week-menu-dish {
    border: 1px solid rgba(219,161,54,0.35); border-radius: 8px;
    padding: 1.4rem 2.2rem; background: rgba(219,161,54,0.05);
    font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: #f0e6d2;
    letter-spacing: 0.02em; position: relative; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.week-menu-dish:hover { transform: translateY(-3px); border-color: rgba(219,161,54,0.7); box-shadow: 0 12px 32px rgba(219,161,54,0.12); }
.week-menu-dish .wm-cat { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; letter-spacing: 0.14em; color: #dba136; text-transform: uppercase; margin-bottom: 0.3rem; }

/* ══ FAQ ══ */
#faq { padding: 8rem 6vw; max-width: 880px; margin: 0 auto; text-align: center; }
.faq-list { text-align: left; margin-top: 3rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-item summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    padding: 1.8rem 0.4rem; font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: #fff;
    transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #dba136; font-size: 2.4rem; font-weight: 300; transition: transform 0.35s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: #dba136; }
.faq-item p { padding: 0 0.4rem 1.8rem; color: rgba(255,255,255,0.6); font-size: 1.35rem; line-height: 1.7; max-width: 90%; }
.faq-item p a { color: #dba136; }

/* ══ NEWSLETTER ══ */
#newsletter { padding: 0 6vw 8rem; }
.newsletter-band {
    max-width: 880px; margin: 0 auto; text-align: center;
    border: 1px solid rgba(219,161,54,0.3); border-radius: 12px;
    padding: 4rem 3rem; background: linear-gradient(160deg, rgba(219,161,54,0.07), rgba(219,161,54,0.02));
}
.newsletter-copy h3 { font-size: 2.6rem; color: #fff; margin-bottom: 0.8rem; }
.newsletter-copy p { color: rgba(255,255,255,0.55); font-size: 1.3rem; margin-bottom: 2.2rem; }
.newsletter-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
    color: #fff; font-size: 1.3rem; padding: 1.1rem 1.6rem; min-width: 280px; font-family: inherit; outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input:focus { border-color: rgba(219,161,54,0.6); }

/* ══ TRUST STRIP ══ */
.trust-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 4rem;
    padding: 2.6rem 6vw; border-top: 1px solid rgba(255,255,255,0.07);
    background: #0a0a0a; color: rgba(255,255,255,0.5); font-size: 1.15rem; letter-spacing: 0.04em;
}
.trust-strip i { color: #dba136; margin-right: 0.6rem; }

/* ══ STICKY MOBILE CTA ══ */
#cfr-sticky-cta {
    display: none; position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 140%); z-index: 800;
    background: linear-gradient(135deg, #e8c96a, #dba136); color: #111;
    font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-decoration: none;
    padding: 1.15rem 2.6rem; border-radius: 40px; box-shadow: 0 10px 32px rgba(219,161,54,0.4);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}
#cfr-sticky-cta i { margin-right: 0.6rem; }
@media (max-width: 768px) {
    #cfr-sticky-cta { display: block; }
    #cfr-sticky-cta.show { transform: translate(-50%, 0); }
    .newsletter-form input { min-width: 0; flex: 1; }
}

/* review container crossfade */
#review-container { transition: opacity 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
    .week-menu-dish, #cfr-sticky-cta { transition: none; }
}

/* ── 3D tilt + gold sheen on service cards (added by royal tilt module) ── */
.service-card.royal-tilt {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.service-card.royal-tilt.royal-tilt-on {
    transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease;
    will-change: transform;
}
.service-card .royal-sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity .45s ease;
    background: radial-gradient(420px circle at var(--shx, 50%) var(--shy, 50%),
        rgba(232, 197, 116, 0.10),
        rgba(232, 197, 116, 0.035) 38%,
        transparent 62%);
}
.service-card.royal-tilt-on .royal-sheen { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .service-card .royal-sheen { display: none; }
}
