/*
 * Theme Name: Mountain Drive
 * Theme URI: https://example.com
 * Author: Your Name
 * Description: Single-page sport car tour theme with smooth scrolling, mountains and nature vibes.
 * Version: 1.0
 * License: GPL2
 * Text Domain: mountain-drive
 */

:root {
    --accent: #da1717;
    --dark: #0b0d10;
    --light: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--light);
    scroll-behavior: smooth;
}

/* Navigation */
/*header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 13, 16, 0.9);
    z-index: 999;
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/
/* ==========================
 *  NAV BAR VISIBILITY CONTROL
 = *========================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(11, 13, 16, 0.9);

    /* Hidden by default */
/*    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;*/
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.8rem;
}

nav ul {
    margin: 1rem 0;
}

a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

a:hover {
    color: var(--light);
}

/* Visible state */
header.nav-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu a:hover {
    color: var(--accent);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 10vh 5%;
    background-size: cover;
    background-position: center;
}

section:nth-child(even) {
    background: rgba(11, 13, 16, 0.6);
}

/* ==========================
 *  PARALLAX HERO
 = *========================= */

/* Container */
.vertical-parallax {
    position: relative;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /*scrollbar-width: none;*/

    /* Enables parallax */
    perspective: 1px;
    min-width: 340px;
}

/* Common layer styles */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

/* BACK LAYER (moves slower) */
.back-layer {
    transform: translateZ(-1px) scale(2);
    z-index: 1;
    background-image: url("./assets/images/mountains-back.png");
    background-color: #d6cec7;
    background-repeat: no-repeat;
    background-position: 0 -110px;
    background-size: 100%;
}

/* FRONT LAYER (moves faster) */
.front-layer {
    transform: translateZ(-0.3px) scale(1.3);
    z-index: 2;
    background-image: url("./assets/images/car-front.png");
    background-repeat: no-repeat;
    background-position: 0 200px;
    background-size: 100%;
    height: 200vh;
}

.back-layer img {
    width: 100%;
}

/* FRONT LAYER (moves faster) */
.front-layer img {
    width: 100%;
}

/* CONTENT (fixed relative to viewer) */
.parallax-content {
    position: relative;
    z-index: 3;
    /*height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;*/

}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.0)
    );
    padding: 0 10%;
}

.logo-container .logo {
    width: 100%;
}

.info-container {
    display: flex;
    flex-direction: column;
    background-image: url("./assets/images/grass_silhouette.png");
    background-color: rgba(0, 0, 0, 0.7);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    padding: 10% 0;
}

.info-container p {
    margin: 0;
}

.info-container .data, .info-container .motto {
    text-align: center;
}

.info-container .data {
    color: var(--accent);
}

/* Typography */
.parallax-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.info-container p {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow:
        2px 2px 2px #111,
        -2px -2px 2px #111,
        2px -2px 2px #111,
        -2px 2px 2px #111;
    padding-top: 10vh;
}

.info-container p.data {
    font-weight: 700;
    font-size: 2.5rem;
}

.pages {
    background: var(--dark);
}

/* Content */
.content {
/*     max-width: 900px; */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
}

h3 {
    text-transform: uppercase;
    font-size: 1.4rem;
}

p, ul, ol {
    margin: 2rem 0;
    font-size: 1.2rem;
}

li {
    margin-left: 3rem;
}

li::marker {
    color: var(--accent);
}

article {
    margin-bottom: 40px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

footer {
    background: #060607;
    text-align: center;
    padding: 40px;
}

input.wpcf7-form-control {
    height: 2.2rem;
    font-size: 1.2rem;
    min-width: 30rem;
}

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu ul {
    display: inline-flex;
}

.menu li {
    list-style: none;
}

.menu a {
    position: relative;
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Sport underline effect */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--accent);
}

.menu a:hover::after {
    width: 100%;
}

.box-ail {
    display: table;
    justify-content: center;
    width: 100%;
    margin-top: 5vh;
}

.box-ail p, .box-ail a {
    display: table-row;
    text-align: center;
}

.box-ail p {
    padding: 2vh;
    font-size: 0.9rem;
}

.box-ail img {
    height: 14vh;
    background: var(--light);
    padding: 1rem;
    border-radius: 2rem;
}

/* ==========================
 *  SPONSOR ROW
 * ========================== */

.sponsor-row {
    padding: 60px 5%;
    background: linear-gradient(
        to right,
        #0b0d10,
        #111418,
        #0b0d10
    );
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sponsor-row h2 {
    display: block;
    position: relative;
    margin: 0 auto;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--light);
    background: var(--accent);
    border-radius: 2rem;
    top: -80px;
    width: fit-content;
}

.sponsor-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsor {
    flex: 1 1 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor img {
    max-height: 75px;
    max-width: 140px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.sponsor a {
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.sponsor p {
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
}

.sponsor img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ==========================
 *  SOCIAL ROW
 * ========================== */

.social-bar {
    background: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2vh;
}

.social-bar h2 {
    display: block;
    position: relative;
    margin: 0 auto;
    padding: 0.5rem;
    font-size: 1.2rem;
    background: var(--light);
    color: var(--accent);
    border-radius: 2rem;
    top: -4vh;
    width: fit-content;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bar a {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.icon-bar svg {
    width: 6vh;
    height: 5vh;
    fill: var(--dark);
}

.icon-bar svg:hover {
    fill: var(--light);
}

/* ==========================
 *  CONTACT FORM
 * ========================== */

form {
    background: #060607;
    padding: 5vh 10vh;
    margin: 10vh;
    border-radius: 5vh;
    width: fit-content;
}

form h3 {
    color: var(--accent);
    font-size: 1.6rem;
    text-align: center;
}

form h4 {
    font-size: 1.2rem;
    color: var(--accent);
}

input.wpcf7-submit {
    height: 3rem;
}

/* ==========================
 *  PRIVACY MODAL
 = *========================= */

.win-btn, .wpcf7-submit {
    background: var(--accent);
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0);
}

.win-btn:hover, .wpcf7-submit:hover {
    border: 3px solid var(--light);
}

.wpcf7-submit:disabled {
    background: #994a4a;
}

.win-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.win-modal.active {
    display: block;
}

.win-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}

.win-content {
    position: relative;
    max-width: 700px;
    margin: 10vh auto;
    background: #0b0d10;
    padding: 40px;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-height: 80vh;
}

.win-content h2 {
    margin-bottom: 20px;
}

.modal-container {
    overflow-y: scroll;
    height: 60vh;
    display: block;
}

.win-text {
    max-height: 50vh;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.win-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile */

/* High-resolution styles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    h2 {
        font-size: 5rem;
    }

    h3 {
        font-size: 2.8rem;
    }

    p, ul, ol {
        margin: 2rem 0;
        font-size: 2.4rem;
    }

    .back-layer {
        background-position: 0 100px;
    }

    .front-layer {
        background-position: 0 580px;
    }

    .logo-container {
        height: 40vh;
    }

    .info-container {
        height: auto;
    }

    .info-container p {

        padding-top: 3vh;
    }

    .info-container p.data {
        font-size: 4rem;
    }

    .info-container p.motto {
        font-size: 2.2rem;
    }

    .box-ail img {
        height: 9vh;
    }

    .box-ail p {
        font-size: 1.8rem;
    }

    .sponsor-row h2 {
        font-size: 2.4rem;
    }

    .sponsor img {
        max-height: 150px;
        max-width: 280px;
    }

    .sponsor p {
        font-size: 1.6rem;
    }

    article {
        border:none;
        padding: 10px;
    }

    form {
        padding: 40px;
        margin: 0;
        width: auto;
    }

    form h3 {
        font-size: 2.8rem;
    }

    form h4 {
        font-size: 2.4rem;
    }

    input.wpcf7-form-control {
        font-size: 1.8rem;
        height: 4.4rem;
    }

    input[type=checkbox]
    {
        /* Double-sized Checkboxes */
        -ms-transform: scale(3); /* IE */
        -moz-transform: scale(3); /* FF */
        -webkit-transform: scale(3); /* Safari and Chrome */
        -o-transform: scale(3); /* Opera */
        transform: scale(3);
        margin-right: 2rem;
    }

    input.wpcf7-submit {
        height: 6rem;
        margin: 0 20%;
        width: 60%;
    }

    .win-btn, .wpcf7-submit {
        font-size: 1.8rem;
    }

    .win-close {
        font-size: 4rem;
        background: var(--accent);
        position: absolute;
        top: -1rem;
        right: -1rem;
        width: 5rem;
        height: 5rem;
        border-radius: 2rem;
    }
}

@media (max-width: 500px) {

    .logo-container {
        height: 40vh;
    }

    .back-layer {
        background-position: -120px 120px;
        background-size: 140%;
    }

    .front-layer {
        background-position: -90px 350px;
        background-size: 140%;
    }

    .sponsor-row {
        padding: 40px 5%;
    }

    .sponsor-container {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .win-content {
        margin: 5vh 5%;
        padding: 25px;
    }

    article {
        border:none;
        padding: 10px;
    }

    form {
        padding: 10px;
        margin: 0;
        width: auto;
    }

    input.wpcf7-form-control {
        width: 100%;
        min-width: auto;
    }
}

@media (min-width: 500px) and (max-width: 768px) {

    .logo-container {
        height: 50vh;
    }

    .back-layer {
        background-position: 0 60px;
        background-size: 110%;
    }

    .front-layer {
        background-position: -90px 250px;
        background-size: 120%;
    }

    .sponsor-row {
        padding: 40px 5%;
    }

    .sponsor-container {
        justify-content: center;
        gap: 30px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {

    .logo-container {
        height: 80vh;
    }

    .back-layer {
        background-position: 0 -100px;
    }

    .front-layer {
        background-position: -80px 150px;
        background-size: 110%;
    }

    form {
        padding: 5vh;
        margin: 0;
        width: auto;
    }
}

@media (min-width: 1280px) {
    .back-layer {
        background-position: 0 -350px;
    }

    .front-layer {
        background-position: 0 -100px;
    }

    .logo-container .logo {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}


@media screen (orientation: portrait) {
    .logo-container {
        height: 50vh;
    }

    .info-container p {
        padding-top: 5vh;
    }
}
