/* ==========================================================================
   Koh Khsach Meas - Master Stylesheet
   Based on the Official Brand Identity System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors (Nature's Palette) */
    --primary: #12574A;
    /* Oasis Green */
    --secondary: #E3B04A;
    /* Golden Sand */
    --accent: #028FC3;
    /* River Flow */
    --bg-light: #F4F9F8;
    /* Nature Breeze */
    --bg-dark: #0a3830;
    /* Deep Forest */

    /* Typography */
    --font-head-en: 'Oswald', sans-serif;
    --font-head-kh: 'Koulen', serif;
    --font-body-en: 'Outfit', sans-serif;
    --font-body-kh: 'Kantumruy Pro', sans-serif;

    /* Utility Colors */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;

    /* Structural */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(18, 87, 74, 0.15);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body-en);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head-en);
    text-transform: uppercase;
    color: var(--primary);
    line-height: 1.2;
}

/* Khmer Support Classes */
.kh-text {
    font-family: var(--font-body-kh);
}

.kh-head {
    font-family: var(--font-head-kh);
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* --------------------------------------------------------------------------
   Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head-en);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(18, 87, 74, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-accent {
    background: var(--secondary);
    color: var(--primary);
}

.btn-accent:hover {
    box-shadow: 0 10px 20px rgba(227, 176, 74, 0.4);
    transform: translateY(-2px);
}

.btn-flow {
    background: var(--accent);
    color: var(--white);
}

.btn-flow:hover {
    box-shadow: 0 10px 20px rgba(2, 143, 195, 0.4);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5vw;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 0px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.nav-brand img {
    height: 65px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

/* Scrolled state for the brand block */
.navbar.scrolled .nav-brand {
    box-shadow: none;
    background: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-links a {
    color: var(--primary);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .nav-toggle {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 87, 74, 0.4), rgba(10, 56, 48, 0.8));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .badge {
    display: inline-block;
    background: rgba(227, 176, 74, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 5.5rem;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    display: block;
    color: var(--secondary);
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: inline-block;
    color: var(--secondary);
    font-family: var(--font-head-en);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Animations (Reveal)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    font-family: var(--font-head-en);
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-title {
    font-family: var(--font-head-en);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Responsive Layouts & Grids
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.booking-form {
    display: flex;
    gap: 10px;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero h1 span {
        font-size: 2rem;
    }

    .features-grid,
    .parks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h1 span {
        font-size: 1.5rem;
    }

    .about-grid,
    .features-grid,
    .parks-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        flex-direction: column;
    }

    .section-padding {
        padding: 60px 0;
    }
}