/*
Theme Name: Ravo Zenith
Theme URI: https://ravofilm.com
Author: Ravofilm Team
Author URI: https://ravofilm.com
Description: Editorial hypercar-grade theme for Ravofilm — light paper base, deep black bands, RAVO green accent. Same feature set as the Ravofilm theme (multi-country pages, mega menu, locations, reviews, customizer) with an entirely new design language.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ravozenith
Domain Path: /languages
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    /* Brand */
    --accent: #00ff88;
    --accent-soft: rgba(0, 255, 136, 0.12);
    --accent-line: rgba(0, 255, 136, 0.32);
    --on-accent: #0a0a0a;

    /* Ink (dark surfaces) */
    --ink: #0a0a0a;
    --ink-2: #121212;
    --ink-3: #1a1a1a;
    --ink-4: #242424;

    /* Paper (light surfaces) */
    --paper: #ffffff;
    --paper-2: #f4f4f2;
    --paper-3: #ebebe7;

    /* Text */
    --text: #0a0a0a;
    --text-muted: #6f6f6b;
    --text-faint: #9a9a95;
    --text-invert: #ffffff;
    --text-invert-muted: #8f8f8a;

    /* Hairlines */
    --line: rgba(10, 10, 10, 0.12);
    --line-strong: rgba(10, 10, 10, 0.24);
    --line-invert: rgba(255, 255, 255, 0.14);
    --line-invert-strong: rgba(255, 255, 255, 0.28);

    /* Type */
    --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Archivo's width axis. Set on body so it reaches the display font wherever
       it is used, including the many div/span consumers. Inter has no width
       axis, so body text is unaffected. */
    --display-stretch: 118%;
    --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-display-xl: clamp(2.5rem, 6.4vw, 5.75rem);
    --fs-display-lg: clamp(2rem, 4.2vw, 3.75rem);
    --fs-display-md: clamp(1.5rem, 2.5vw, 2.375rem);
    --fs-display-sm: clamp(1.25rem, 1.8vw, 1.625rem);
    --fs-stat: clamp(2.25rem, 4.4vw, 3.75rem);
    --fs-body-lg: clamp(0.9375rem, 1.05vw, 1.0625rem);
    --fs-body: 0.9375rem;
    --fs-small: 0.8125rem;
    --fs-label: 0.6875rem;
    --fs-micro: 0.625rem;

    /* Layout */
    --wrap: 1600px;
    --wrap-narrow: 1120px;
    --gutter: clamp(1.25rem, 3.2vw, 3.5rem);
    --section-y: clamp(3.75rem, 7.5vw, 8.25rem);
    --nav-h: 78px;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 0.55s;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    /* Reveal animations start a few pixels off-canvas; clip rather than scroll. */
    overflow-x: clip;
}

body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-text);
    font-stretch: var(--display-stretch);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ==========================================================================
   3. Typography primitives
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.z-display {
    font-family: var(--font-display);
    /* Light, matching the reference. Components that need more presence at
       small sizes set their own weight. */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    text-wrap: balance;
}

.z-display-xl {
    font-size: var(--fs-display-xl);
    line-height: 0.94;
    letter-spacing: 0.005em;
}

.z-display-lg {
    font-size: var(--fs-display-lg);
    line-height: 0.98;
    letter-spacing: 0.01em;
}

.z-display-md {
    font-size: var(--fs-display-md);
    line-height: 1.04;
    letter-spacing: 0.012em;
}

.z-display-sm {
    font-size: var(--fs-display-sm);
    line-height: 1.12;
    letter-spacing: 0.015em;
}

/* Eyebrow — tiny uppercase label with a leading accent rule */
.z-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-text);
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

.z-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    flex: none;
}

.z-eyebrow--accent {
    color: #1c8f5a;
}

.z-eyebrow--plain::before {
    display: none;
}

.z-band .z-eyebrow,
.z-eyebrow--invert {
    color: var(--accent);
}

/* Small caps label */
.z-label {
    font-family: var(--font-text);
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faint);
    line-height: 1.4;
}

.z-lede {
    font-size: var(--fs-body-lg);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 46ch;
}

.z-band .z-lede,
.z-lede--invert {
    color: var(--text-invert-muted);
}

.z-accent {
    color: #1c8f5a;
}

.z-band .z-accent {
    color: var(--accent);
}

.z-muted-title {
    color: var(--text-faint);
}

.z-band .z-muted-title {
    color: #4d4d4d;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */
.z-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.z-wrap--narrow {
    max-width: var(--wrap-narrow);
}

.z-section {
    padding-block: var(--section-y);
    position: relative;
}

.z-section--tight {
    padding-block: clamp(2.5rem, 4.5vw, 4.5rem);
}

.z-section--flush-top {
    padding-top: 0;
}

.z-section--flush-bottom {
    padding-bottom: 0;
}

/* Dark band */
.z-band {
    background: var(--ink);
    color: var(--text-invert);
}

.z-band--soft {
    background: var(--ink-2);
}

.z-paper-2 {
    background: var(--paper-2);
}

.z-paper-3 {
    background: var(--paper-3);
}

.z-rule {
    height: 1px;
    background: var(--line);
    border: 0;
}

.z-band .z-rule {
    background: var(--line-invert);
}

/* Section head: eyebrow + title + lede, optional action on the right */
.z-head {
    display: grid;
    gap: clamp(1.25rem, 2.4vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3.75rem);
}

.z-head__title {
    font-size: var(--fs-display-lg);
    line-height: 0.98;
    letter-spacing: 0.01em;
}

.z-head--split {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

@media (min-width: 900px) {
    .z-head--split {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 3rem;
    }
}

.z-stack {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

.z-stack--center {
    justify-items: center;
    text-align: center;
}

.z-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.z-btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--text-invert);
    --btn-bd: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 52px;
    padding: 0 1.75rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-bd);
    border-radius: 0;
    font-family: var(--font-text);
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), transform 0.3s var(--ease);
}

.z-btn:hover {
    transform: translateY(-2px);
}

.z-btn__arrow {
    width: 18px;
    height: 8px;
    flex: none;
    position: relative;
    transition: transform 0.4s var(--ease);
}

.z-btn__arrow::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1.5px;
    background: currentColor;
}

.z-btn__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.z-btn:hover .z-btn__arrow {
    transform: translateX(5px);
}

.z-btn--accent {
    --btn-bg: var(--accent);
    --btn-fg: var(--on-accent);
    --btn-bd: var(--accent);
}

.z-btn--accent:hover {
    --btn-bg: #0a0a0a;
    --btn-fg: var(--accent);
    --btn-bd: #0a0a0a;
}

.z-btn--dark:hover {
    --btn-bg: var(--accent);
    --btn-fg: var(--on-accent);
    --btn-bd: var(--accent);
}

.z-btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-bd: var(--line-strong);
}

.z-btn--outline:hover {
    --btn-bg: var(--ink);
    --btn-fg: var(--text-invert);
    --btn-bd: var(--ink);
}

.z-btn--outline-invert {
    --btn-bg: transparent;
    --btn-fg: var(--text-invert);
    --btn-bd: var(--line-invert-strong);
}

.z-btn--outline-invert:hover {
    --btn-bg: var(--text-invert);
    --btn-fg: var(--ink);
    --btn-bd: var(--text-invert);
}

.z-btn--light {
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    --btn-bd: var(--paper);
}

.z-btn--light:hover {
    --btn-bg: var(--accent);
    --btn-fg: var(--on-accent);
    --btn-bd: var(--accent);
}

.z-btn--lg {
    min-height: 62px;
    padding: 0 2.5rem;
    font-size: var(--fs-label);
}

.z-btn--block {
    width: 100%;
}

/* Text link with sliding underline */
.z-link {
    display: inline-flex;
    justify-self: start;
    align-self: start;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-bottom: 4px;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.3s var(--ease), background-size 0.4s var(--ease);
}

.z-link:hover {
    color: #1c8f5a;
    background-size: 40% 1px;
}

.z-band .z-link:hover {
    color: var(--accent);
}

/* Play button */
.z-play {
    width: 12px;
    height: 14px;
    flex: none;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: currentColor;
}

/* ==========================================================================
   6. Forms
   ========================================================================== */
.z-field {
    display: grid;
    gap: 0.5rem;
}

.z-field__label {
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.z-input,
.z-select,
.z-textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.75rem 0;
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.3s var(--ease);
}

.z-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
        linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position: calc(100% - 10px) calc(50% + 1px), calc(100% - 5px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 1.75rem;
    cursor: pointer;
}

.z-textarea {
    min-height: 108px;
    resize: vertical;
}

.z-input::placeholder,
.z-textarea::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

.z-input:focus,
.z-select:focus,
.z-textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.z-band .z-input,
.z-band .z-select,
.z-band .z-textarea {
    border-bottom-color: var(--line-invert);
    color: var(--text-invert);
}

.z-band .z-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-invert) 50%),
        linear-gradient(135deg, var(--text-invert) 50%, transparent 50%);
}

/* ==========================================================================
   7. Scroll reveal
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal="up"] {
    transform: translate3d(0, 34px, 0);
}

[data-reveal="down"] {
    transform: translate3d(0, -28px, 0);
}

[data-reveal="left"] {
    transform: translate3d(-38px, 0, 0);
}

[data-reveal="right"] {
    transform: translate3d(38px, 0, 0);
}

[data-reveal="scale"] {
    transform: scale(0.94);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal].reveal-active {
    opacity: 1;
    transform: none;
}

/* Wipe reveal for headline blocks */
[data-reveal-lines] > * {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal-lines].reveal-active > * {
    opacity: 1;
    transform: none;
}

[data-reveal-lines].reveal-active > *:nth-child(2) {
    transition-delay: 0.09s;
}

[data-reveal-lines].reveal-active > *:nth-child(3) {
    transition-delay: 0.18s;
}

[data-reveal-lines].reveal-active > *:nth-child(4) {
    transition-delay: 0.27s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal],
    [data-reveal-lines] > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   8. Utilities
   ========================================================================== */
.z-hide {
    display: none !important;
}

.z-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.z-skip {
    position: absolute;
    top: -60px;
    left: 1rem;
    z-index: 200;
    background: var(--ink);
    color: var(--text-invert);
    padding: 0.75rem 1.25rem;
    font-size: var(--fs-micro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: top 0.3s var(--ease);
}

.z-skip:focus {
    top: 1rem;
}

.z-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
