/**
 * VieOyo – Modern 2026 design
 * Reddish theme, Poppins, gradients, animations
 */

:root {
    --font: 'Poppins', sans-serif;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    --red-950: #450a0a;
    --rose-500: #f43f5e;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --white: #fafaf9;
    --gradient-hero: linear-gradient(135deg, #0c0a09 0%, #1c1917 40%, #291c1c 70%, #1c1917 100%);
    --gradient-card: linear-gradient(180deg, rgba(220,38,38,0.08) 0%, transparent 60%);
    --gradient-cta: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(220,38,38,0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--stone-950);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--red-400);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--red-300);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12,10,9,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}
.logo:hover { color: var(--white); }
.logo:hover .logo-icon { background: var(--gradient-cta); transform: scale(1.05); box-shadow: 0 4px 20px rgba(220,38,38,0.4); }
.logo-img {
    width: 40px;
    height: 40px;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-cta);
    color: var(--white);
    font-size: 1.15rem;
    box-shadow: 0 2px 12px rgba(220,38,38,0.35);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header .logo-icon { flex-shrink: 0; }
.footer-brand .logo-icon { flex-shrink: 0; }

.main-nav .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav .nav-list > li > a {
    color: rgba(250,250,249,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.main-nav .nav-list > li > a:hover,
.main-nav .nav-list > li.active > a {
    color: var(--white);
    background: rgba(220,38,38,0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mega menu */
.nav-mega {
    position: relative;
}
.nav-mega:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    padding-top: 0.5rem;
}

.mega-inner {
    background: var(--stone-900);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mega-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red-400);
    margin-bottom: 0.75rem;
}

.mega-col a {
    display: block;
    color: rgba(250,250,249,0.85);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-radius: 8px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}
.mega-col a:hover {
    color: var(--white);
    background: rgba(220,38,38,0.12);
}

/* ---- Main content ---- */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: rgba(250,250,249,0.6);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(220,38,38,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,38,38,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--red-400);
    border: 2px solid var(--red-600);
}
.btn-outline:hover {
    background: rgba(220,38,38,0.15);
    color: var(--red-300);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(220,38,38,0.2), transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(185,28,28,0.1), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s ease-out;
}

.hero .hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(250,250,249,0.75);
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-image-wrap {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-image-wrap img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--stone-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    animation: fadeUp 0.5s ease-out both;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(220,38,38,0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image .card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(12,10,9,0.8);
    color: var(--red-300);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.card-body {
    padding: 1.25rem;
    background: var(--gradient-card);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--white);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--red-400);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(250,250,249,0.7);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .btn {
    width: 100%;
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
}

.tab-btn {
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: rgba(250,250,249,0.7);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--white);
    background: rgba(220,38,38,0.2);
}

.tab-panel {
    display: none;
    animation: fadeUp 0.4s ease-out;
}
.tab-panel.active { display: block; }

/* ---- Newsletter block ---- */
.newsletter-block {
    background: linear-gradient(135deg, var(--stone-900) 0%, rgba(127,29,29,0.2) 100%);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.newsletter-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-block p {
    color: rgba(250,250,249,0.75);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto 1rem;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(12,10,9,0.6);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(250,250,249,0.5);
}

.newsletter-note {
    font-size: 0.8rem;
    color: rgba(250,250,249,0.5);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--stone-900);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: rgba(250,250,249,0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--red-600);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-legal h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(250,250,249,0.5);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: rgba(250,250,249,0.75);
    font-size: 0.9rem;
    padding: 0.35rem 0;
}
.footer-links a:hover,
.footer-legal a:hover {
    color: var(--red-300);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(250,250,249,0.5);
}

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--stone-900);
    border-top: 1px solid rgba(220,38,38,0.3);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    display: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    color: rgba(250,250,249,0.85);
}

.cookie-banner a {
    color: var(--red-400);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---- Legal pages ---- */
.legal-page {
    padding: 3rem 0 4rem;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-page .updated {
    color: rgba(250,250,249,0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--red-300);
}

.legal-page p,
.legal-page li {
    color: rgba(250,250,249,0.8);
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: rgba(250,250,249,0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(12,10,9,0.6);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(250,250,249,0.4);
}

/* ---- Page header ---- */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--gradient-hero);
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(250,250,249,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Filters ---- */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--stone-900);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.filters-bar .form-group {
    margin-bottom: 0;
}

.filters-bar label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.filters-bar select {
    min-width: 160px;
    padding: 0.6rem 1rem;
}

/* ---- Alerts ---- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.3);
    color: #fca5a5;
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.faq-item p {
    color: rgba(250,250,249,0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--stone-900);
        padding: 5rem 1.5rem 1.5rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
        border-left: 1px solid rgba(255,255,255,0.08);
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav .nav-list > li > a {
        padding: 0.85rem 1rem;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        padding-left: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        display: none;
    }

    .nav-mega.open .mega-menu {
        display: block;
    }

    .mega-inner {
        box-shadow: none;
        padding: 0.75rem 0;
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }
}

/* Stagger animation for cards */
.card-grid .card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .card:nth-child(2) { animation-delay: 0.1s; }
.card-grid .card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .card:nth-child(4) { animation-delay: 0.2s; }
.card-grid .card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .card:nth-child(6) { animation-delay: 0.3s; }
