/* landing.css — Layout específico da Landing Page (Jardim dos Arcanos).
   Tokens de cor, tipografia, .panel e .btn vêm de theme.css. */

body.mode-mystic {
    overflow-x: hidden;
}

/* Cursor trail — small star/sparkle glyphs spawned at the pointer by cursor-trail.js.
   Only opacity + transform animate (compositor-only, no blur/filter) — cheap even
   spawning ~20/sec, unlike the border-radius-animated blobs that caused real jank
   with Lenis earlier. */
.cursor-star {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    line-height: 1;
    user-select: none;
    text-shadow: 0 0 6px currentColor;
    animation: cursorStarFade 0.9s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes cursorStarFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rotate, 0deg)); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% - 26px)) scale(0.5) rotate(var(--rotate, 0deg)); }
}

/* Scroll-reveal: elements fade + rise into view as the page scrolls.
   Gated behind html.reveal-js (added by interactions.js) so pages with JS
   disabled show full content immediately instead of stuck at opacity: 0. */
html.reveal-js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-organic), transform 0.8s var(--ease-organic);
}

html.reveal-js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.services-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-list .reveal:nth-child(4) { transition-delay: 0.24s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    html.reveal-js .reveal { transition: none; }
}

/* Hero load-in: plays once on first paint, no scroll/JS needed */
.hero-text > * {
    opacity: 0;
    animation: heroRise 0.8s var(--ease-organic) forwards;
}

.hero-text h1 { animation-delay: 0.05s; }
.hero-text .subtitle { animation-delay: 0.2s; }
.hero-text .hero-actions { animation-delay: 0.35s; }

.hero-photo {
    opacity: 0;
    animation: heroRise 0.9s var(--ease-organic) 0.25s forwards;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text > *, .hero-photo { opacity: 1; animation: none; }
}

/* Navbar (.navbar, .nav-content, .logo, .nav-links, .nav-dropdown, ...)
   moved to navbar.css — shared by every page, not just the landing page. */

/* Primary CTA shimmer sweep — landing-only enhancement (scoped to body.mode-mystic
   so it never leaks into the shared .btn.primary used by Espaço Zen's "Iniciar" button) */
body.mode-mystic .btn.primary {
    position: relative;
    overflow: hidden;
}

body.mode-mystic .btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(0) skewX(-20deg);
    transition: transform 0.7s ease;
    pointer-events: none;
}

body.mode-mystic .btn.primary:hover::before {
    transform: translateX(450%) skewX(-20deg);
}

@media (prefers-reduced-motion: reduce) {
    body.mode-mystic .btn.primary::before { display: none; }
}

.landing-container { padding-top: 120px; max-width: 1200px; margin: 0 auto; }

/* Photos dissolve into the black canvas through a soft organic mask instead of
   sitting in a hard-edged rounded-rect box — the "card" look we're avoiding.
   A low-opacity wash of the brand gradient grades every photo into the same
   palette, so imagery reads as part of the identity, not a pasted-in asset. */
.photo-frame {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 45%, transparent 100%);
}

.photo-frame__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.88) contrast(1.05);
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-arcane);
    opacity: 0.2;
    mix-blend-mode: color;
    pointer-events: none;
}

.hero-photo { aspect-ratio: 4 / 3; flex: 1; }
.gallery-photo { aspect-ratio: 1 / 1; }
.about-photo {
    width: 220px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 100%);
}

/* Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1.5rem;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.hero-text { flex: 1.1; text-align: left; }

.hero-content h1 {
    /* Fluid, not just a fixed 3rem: on wide-but-short windows (common on laptops)
       a fixed size can make the heading wrap to enough lines that hero-content
       no longer fits the section's min-height — the section then grows past the
       viewport to fit it, and all the "centering" space collects at the top only
       (the fixed 120px navbar clearance), reading as top-heavy instead of centered.
       Scaling down with vh keeps the heading (and hero-content's total height)
       shorter on short viewports, without shrinking it on tall ones. */
    font-size: clamp(2.25rem, 1.4vw + 3.2vh, 3rem);
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-content .subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-photo { flex: 1; }

/* Human Differential */
.differential-section {
    max-width: 720px;
    margin: 5rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.differential-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Section titles */
.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    text-align: center;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.section-title.small { font-size: 1.6rem; }
.section-title.left { text-align: left; }

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

/* Sections spacing */
.gallery-section, .services-section, .about-section, .testimonials-section {
    margin: 6rem 0;
    padding: 0 2rem;
}

/* Gallery — same photo-frame treatment, but each shape and offset is varied
   so it reads as a loose collage rather than four identical tiles in a grid. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.gallery-photo:nth-child(odd) { margin-top: 2rem; }
.gallery-photo:nth-child(even) { margin-top: -1rem; }

.gallery-photo:nth-child(4n+1) {
    -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 78% at 50% 50%, #000 45%, transparent 100%);
}

.gallery-photo:nth-child(4n+2) {
    -webkit-mask-image: radial-gradient(ellipse 80% 68% at 50% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 68% at 50% 50%, #000 45%, transparent 100%);
}

.gallery-photo:nth-child(4n+3) {
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 45% 55%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 72% at 45% 55%, #000 45%, transparent 100%);
}

/* Services — an editorial list, not a grid of pricing cards */
.services-list {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.services-list .service-row:last-child { border-bottom: 1px solid var(--color-border); }

.service-row:hover { border-top-color: var(--color-border-strong); }

.service-icon { flex-shrink: 0; padding-top: 0.2rem; }
.service-icon svg { stroke: url(#icon-gradient); }

.service-body { flex: 1; }

.service-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.service-heading h3 { font-size: 1.3rem; }

.service-meta {
    color: var(--color-text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-body p { color: var(--color-text-muted); }

.service-aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.service-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    white-space: nowrap;
}

.service-btn { padding: 0.55rem 1.5rem; font-size: 0.88rem; }

/* About — text and photo live directly on the page, no card */
.about-panel {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-photo { margin: 0 auto; }
.about-text { flex: 1; }
.about-text p { color: var(--color-text-muted); line-height: 1.75; }

/* Testimonials — quotes separated by a rule, not boxed cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    border-top: 2px solid var(--color-border-strong);
    padding-top: 1.5rem;
}

.testimonial-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
    margin-bottom: 1.1rem;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-name { color: var(--color-text-muted); font-size: 0.9rem; }

/* Booking */
.booking-section { padding: 6rem 2rem; border-top: 1px solid var(--color-border); }

.booking-panel {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.booking-panel h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.booking-panel .subtitle { color: var(--color-text-muted); line-height: 1.75; text-align: center; margin-bottom: 2rem; }

.whatsapp-cta { display: inline-flex; justify-content: center; align-items: center; margin: 0 auto; }



/* Footer */
.mystic-footer {
    padding: 4rem 2rem 2rem;
    color: var(--color-text-dim);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    font-size: 0.88rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-block h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.footer-block ul { list-style: none; padding: 0; margin: 0; }
.footer-block li { margin-bottom: 0.75rem; }
.footer-block p, .footer-block span { margin-bottom: 0.75rem; font-style: normal; line-height: 1.6; display: block; }

.footer-block a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-block a:hover { color: var(--color-text); }

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icons a {
    color: var(--color-text-dim);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--color-text);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* WhatsApp floating button — kept in WhatsApp's own brand green for instant recognition */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.55);
    z-index: 200;
    transition: transform 0.3s var(--ease-organic);
}

.whatsapp-float:hover { transform: scale(1.08); }

/* Attention pulse — a soft ring expands and fades outward to draw the eye
   without being distracting; pauses on hover so it doesn't fight the hover scale. */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: whatsappPulse 2.6s ease-out infinite;
}

.whatsapp-float:hover::before { animation-play-state: paused; }

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { display: none; }
}

/* Background music control (.music-control, .music-toggle, .radial-menu, ...)
   moved to music-widget.css — shared with Espaço Zen. */

/* Navbar responsive rules (margin tightening + link hiding) moved to
   navbar.css, alongside the rest of the component. */

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-content { flex-direction: column; }
    .hero-text { text-align: center; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .service-row { flex-direction: column; gap: 1rem; }
    .service-aside { align-items: flex-start; flex-direction: row; align-items: center; gap: 1.25rem; }
    .about-panel { flex-direction: column; text-align: center; }
    .gallery-photo:nth-child(odd), .gallery-photo:nth-child(even) { margin-top: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .social-icons { justify-content: center; }
    .booking-section { padding: 4rem 1.5rem; }
    .booking-panel h2 { font-size: 2rem; }
}
