/* 1. FONT IMPORT */
@font-face {
    font-family: 'THE BOLD';
    src: url('../src/fonts/THEBOLD.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
/* Note: Make sure the font file exists at ../src/assets/fonts/THEBOLD.otf relative to this CSS file */

/* 2. DESIGN TOKENS */
:root {
    --cream: #efdbbf;
    --red-bright: #ac3030;
    --red-dark: #68181f;
    --black: #121211;
    --line: 2px solid var(--black);
}

/* 3. GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--red-bright) var(--cream);
    scrollbar-width: auto;
}

body {
    background-color: var(--cream);
    color: var(--black);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    line-height: 1;
}

/* 4. TYPOGRAPHY HIERARCHY */
h1, h2, h3, .logo, .cta-text {
    font-family: 'THE BOLD', sans-serif;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

p, .nav-links a, label, input, textarea, button {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

/* 5. GRID SYSTEM */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background-color: var(--black);
    gap: 2px;
    border: var(--line);
    min-height: 100vh;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: top 0.3s, right 0.3s ease-in-out; /* Added right transition */
    grid-column: span 12;
    background-color: var(--red-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 0px;
}

nav:not(.scrolled) {
    top: -150px;
}

.nav-links { display: flex; list-style: none; gap: 3rem; }
.nav-links a { text-decoration: none; color: var(--black); font-weight: bold; }
.nav-links a.active { color: var(--cream); }
.nav-links a:hover { color: var(--red-bright); }


.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* HERO */
header.hero {
    grid-column: span 12;
    background-color: var(--cream);
    padding:11.8rem 2rem 0rem 2rem;
    height: 52rem;
    border-bottom: var(--line);
}

.hero h1 {
    font-size: clamp(4rem, 15vw, 12rem);
    color: var(--red-bright);
}

.indent { margin-left: 15vw; color: var(--black); }

.hero p {
    margin-top: 3rem;
    max-width: 500px;
    font-size: 1.4rem;
    font-family: 'THE BOLD', sans-serif;
}

/* FEATURE SECTION */
.feature-img {
    grid-column: span 7;
    background: var(--red-dark);
    min-height: 600px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    transition: 0.5s ease;
}

.feature-img:hover img { filter: grayscale(0); mix-blend-mode: normal; }

.feature-text {
    grid-column: span 5;
    background-color: var(--black);
    color: var(--cream);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: var(--red-bright);
}

/* CARDS */
.card {
    grid-column: span 6;
    background-color: var(--cream);
    padding: 3rem;
    transition: 0.3s;
}

.card:hover { background-color: var(--red-bright); color: white; }
.card.wide { grid-column: span 8; }
.card.narrow { grid-column: span 4; }

.img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--black);
    margin-bottom: 2rem;
}

.card h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

/* CONTACT FORM */
.contact-section {
    grid-column: span 12;
    background-color: var(--cream);
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.contact-info {
    grid-column: span 5;
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: var(--red-bright);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-form {
    grid-column: span 7;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--black);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: var(--line);
    background-color: var(--cream);
    color: var(--black);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    background-color: var(--black);
    color: var(--cream);
}

textarea {
    min-height: 200px;
    resize: vertical;
}

button {
    padding: 1rem 3rem;
    background-color: var(--black);
    color: var(--cream);
    border: var(--line);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

button:hover {
    background-color: var(--red-bright);
    color: white;
}

/* FOOTER */
footer {
    grid-column: span 12;
    background-color: var(--black);
    color: var(--cream);
    padding: 6rem 2rem;
}

.cta-text {
    font-size: clamp(3rem, 10vw, 10rem);
    color: var(--red-bright);
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--red-dark);
    padding-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .feature-img, .feature-text, .card, .card.wide, .card.narrow, .contact-info, .contact-form {
        grid-column: span 12;
    }
    .feature-img { min-height: 400px; }

    /* Mobile Navigation Specific Styles */
    .nav-links {
        display: none; /* Hide default horizontal nav links on small screens */
    }

    .menu-toggle {
        display: flex; /* Show hamburger icon */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 11; /* Ensure it's above other content */
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--cream);
        transition: all 0.3s ease-in-out;
    }

    /* Animate hamburger icon to 'X' */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-links-container {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%; /* Adjust as needed */
        height: 100%;
        background-color: var(--black); /* Mobile menu background */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 9; /* Below the toggle button */
    }

    .nav-links-container.active {
        right: 0; /* Slide in */
    }

    .nav-links-container .nav-links {
        display: flex; /* Show links in mobile menu */
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links-container .nav-links a {
        color: var(--cream); /* Link color in mobile menu */
        font-size: 1.5rem;
        padding: 1rem;
        display: block;
    }

    .nav-links-container .nav-links a:hover {
        color: var(--red-bright);
    }

    /* Adjust body content when mobile menu is active */
    body.mobile-menu-active {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    body.mobile-menu-active #main-nav {
        right: 70%; /* Shift main nav to the left */
        transition: right 0.3s ease-in-out;
    }

    nav {
        padding: 1rem 2rem; /* Adjust padding for smaller screens */
    }
}

.hero-with-video {
    position: relative;
    grid-column: span 12;
    height: 100vh;
}

.hero-with-video .hero {
    background: transparent;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 2rem;
}

.hero p {
    max-width: 500px;
    font-size: 1.4rem;
}

.hero-with-video .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 70%;
}

/* Custom Scrollbar */
html::-webkit-scrollbar {
  width: 16px;
}

html::-webkit-scrollbar-track {
  background: var(--cream);
}

html::-webkit-scrollbar-thumb {
  background-color: var(--red-bright);
  border-radius: 0;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: var(--red-dark);
}

html::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Status message */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.status-message.success {
    color: var(--red-bright);
}

.status-message.error {
    color: var(--red-dark);
}
