/* ═══════════════════════════════════════════════════════════
   El Couzina — Hero section
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(244, 201, 93, 0.35), transparent 60%),
        radial-gradient(ellipse 70% 70% at 80% 70%, rgba(62, 107, 138, 0.55), transparent 60%),
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(212, 163, 55, 0.30), transparent 65%),
        linear-gradient(135deg, #0F2C44 0%, #1B4965 50%, #2C5F85 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: meshShift 22s ease-in-out infinite alternate;
    will-change: background-position;
}

@keyframes meshShift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 100%, 0 0; }
    50%  { background-position: 30% 40%, 70% 60%, 60% 70%, 0 0; }
    100% { background-position: 15% 20%, 90% 80%, 40% 90%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background { animation: none; }
}

/* Noise texture overlay */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, transparent 0%, rgba(15, 44, 68, 0.18) 60%, rgba(15, 44, 68, 0.5) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: auto, 200px 200px;
    mix-blend-mode: overlay;
    opacity: 0.6;
    pointer-events: none;
}

/* Decorative light orb */
.hero-background::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle, rgba(244, 201, 93, 0.18) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8vw, 6vh) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background::after { animation: none; }
}

/* Scroll-driven parallax on hero (progressive enhancement) */
@supports (animation-timeline: scroll()) {
    .hero-background {
        animation: meshShift 22s ease-in-out infinite alternate,
                   heroParallax linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0 100vh;
    }
    @keyframes heroParallax {
        to { transform: translateY(10%) scale(1.1); }
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--space-10) var(--space-6);
    text-align: center;
    animation: heroFadeIn 1s var(--ease-out) both;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-6);
    color: var(--accent-light);
}

.hero-eyebrow::before {
    content: '✓';
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: var(--space-6);
}

.hero-title-accent {
    font-family: var(--font-accent);
    font-weight: 400;
    color: var(--accent-light);
    font-size: 0.55em;
    display: block;
    margin-bottom: var(--space-2);
    letter-spacing: 0;
    line-height: 1.1;
}

.hero-title-main {
    display: block;
}

/* Kinetic text in hero */
.hero-title .kin-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotate(6deg);
    animation: heroCharIn 0.9s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i, 0) * 32ms + 200ms);
    will-change: transform, opacity;
}

.hero-title .hero-title-main .kin-char {
    animation-delay: calc(var(--i, 0) * 42ms + 700ms);
}

@keyframes heroCharIn {
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .kin-char { opacity: 1; transform: none; animation: none; }
}

.hero-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0 auto var(--space-10);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* Decorative scroll hint */
.hero-scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    animation: scrollHint 2.5s var(--ease) infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes scrollHint {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* Meta info bar */
.hero-meta {
    position: absolute;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: right;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-meta-line {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: flex-end;
}

.hero-meta-line svg {
    width: 14px;
    height: 14px;
    color: var(--accent-light);
}

@media (max-width: 767px) {
    .hero { min-height: 80vh; }
    .hero-content { padding: var(--space-8) var(--space-4); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-meta { display: none; }
    .hero-scroll { display: none; }
}
