/*
 * Media Sections CSS - Mas Vilarmau Front Page
 * Production-ready styles for all front-page sections
 * Luxury rural house aesthetic with elegant, refined styling
 */

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.55) 0%,
            rgba(26, 26, 26, 0.25) 40%,
            rgba(26, 26, 26, 0.75) 100%
        ),
        linear-gradient(
            135deg,
            rgba(92, 64, 51, 0.35) 0%,
            rgba(45, 90, 39, 0.20) 100%
        );
    z-index: 2;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 60px 30px;
    /* CWV-01 (2026-10-21): cap animació d'entrada. Abans: fadeInUp des d'opacity:0 (0,3 s + 1 s) multiplicat pel
       .fade-in de cada fill → l'h1 es pintava a un ~1 % d'opacitat al primer frame. El text del hero és contingut
       crític (L-IF): es pinta visible i quiet des del primer frame. */
}

/* Els fills porten .fade-in (subtítol, h1, descripció, meta, accions): dins del hero el revelat queda anul·lat.
   (0,2,0)/(0,3,0) i aquest fitxer carrega després de style.css, on viuen .fade-in i .fade-in.visible. */
.hero-content .fade-in,
.hero-content .fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Scrim local només sota el text del hero (no toca l'overlay global del slideshow).
   Garanteix contrast AA del títol/subtítol sobre slides clares (façana) sense apagar les fotos. */
.hero-content::before {
    content: '';
    position: absolute;
    inset: -14% -10%;
    z-index: -1;
    background: radial-gradient(
        ellipse at center,
        rgba(26, 26, 26, 0.60) 0%,
        rgba(26, 26, 26, 0.42) 48%,
        rgba(26, 26, 26, 0) 80%
    );
    pointer-events: none;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.015em;
}

/* ONP-01 (2026-10-21): l'eyebrow («Casa Rural · Parc Natural del Montseny») és DINS de l'h1, perquè l'h1 digui què és
   i on és, no només el nom. Abans era un <span> en línia germà de l'h1, i la seva línia la feia el puntal del
   .hero-content (Lato 16 px × 1,7 = 27,2 px) quan la lletra de l'eyebrow és més petita (fins a 1024 px). Aquí se'n
   reprodueix la geometria: bloc, cap marge propi (els margin-bottom de .hero-content/.hero-section .hero-subtitle
   no hi actuaven, perquè era en línia), pes 400 i un interlineat de com a mínim 27,2 px. (0,3,0): guanya els
   (0,2,0) dels fitxers responsive i de sprint64 sense dependre de l'ordre. */
.hero-content .hero-title .hero-subtitle {
    display: block;
    margin: 0;
    font-weight: 400;
    line-height: max(1.7em, 1.7rem);
}
.hero-content .hero-title .hero-title__main {
    display: block;
}
/* En línia, la lletra petita de l'eyebrow s'alineava per la base amb el puntal de Lato i quedava uns píxels més avall
   dins de la seva línia. Mesurat amb Range.getClientRects (2026-10-21): 3 px fins a 480 i 2 px fins a 768; d'aquí en
   amunt, 0. top relatiu: mou la lletra i no el flux (el títol i la resta no es mouen). */
@media (max-width: 768px) {
    .hero-content .hero-title .hero-subtitle { position: relative; top: 2px; }
}
@media (max-width: 480px) {
    .hero-content .hero-title .hero-subtitle { top: 3px; }
}

.hero-content .hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(0.95rem, 2vw, 1.4rem);
    color: var(--color-accent-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* @keyframes fadeInUp: retirat el 2026-10-21 (CWV-01). Només el feia servir .hero-content (grep a tot el tema). */

