:root {
    --gafi-green-dark: #054F2E;
    --gafi-green-light: #132D21;
    --gafi-yellow: #FFFF00;
    --gafi-red: #FF0000;
    --gafi-dark-pill: #032D1B;
    --gafi-dark-text: #303403;
    --gafi-dark-footer: #2A2A10;
    --color-bg-dark: #003B20; /* Deep Forest Green */
    --color-bg-light: #009E38; /* Vibrant Green */
    --color-accent: #FFFF00; /* Golden Yellow */
    --color-accent-yellow: #FFFF00;
    --color-dark-green: #033621;
    --color-white: #FFFFFF;
    --color-black-transparent: rgba(0,0,0,0.5);
    --color-text-secondary: #e0e0e0;
    --icon-bg: #2b3d0a;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Condensed', sans-serif;
    
    --fs-h1: clamp(1.8rem, 4vw, 3.5rem);
    --fs-h2: clamp(1.2rem, 3vw, 2.5rem);
    --fs-body: clamp(0.9rem, 1.5vw, 1.1rem);
    --fs-small: clamp(0.7rem, 1vw, 0.9rem);
    --fs-title: clamp(2rem, 5vw, 4rem);

    /* Spacing */
    --spacing-container: clamp(1rem, 5vw, 8rem);
    --spacing-block: clamp(2rem, 4vw, 4rem);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --layout-padding: clamp(1.5rem, 5vw, 4rem);
    
    /* Layout */
    --radius-card: 20px;
    --shadow-text: 2px 2px 4px rgba(0,0,0,0.4);
    --container-padding: clamp(1rem, 5vw, 6rem);
    --nav-angle-width: 50px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

p {
    font-family: 'Montserrat', sans-serif;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
    HEADER & NAV
    ========================================= */
.top-bar {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #FFFF00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #003B20;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px; /* Ensure brand doesn't get squashed */
}

.brand-text h1 {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-accent-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-section {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    line-height: 1.4;
    color: #fff000;
    text-transform: uppercase;
}

.contact-section p {
    font-family: var(--font-main);
}

.logo-box-head img {
    width: 60px; /* Adjusted for better mobile fit */
    height: auto;
}

@media(min-width: 768px) {
    .logo-box-head img { width: 80px; }
}

/* NAVBAR */
.nav-area {
    display: flex;
    justify-content: flex-end; /* Mobile: Burger on right */
    align-items: center;
    background-color: var(--gafi-green-dark);
    height: 60px;
    position: relative;
    z-index: 100;
}

.main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 99;
}

.main-nav.active {
    height: auto;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 1rem;
}

.nav-item {
    padding: 1rem;
    text-align: center;
    /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

.nav-link {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent-yellow);
}

/* Burger Menu */
.burger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 1rem;
    z-index: 101;
}

.burger-icon {
    width: 30px;
    height: 3px;
    background-color: var(--color-white); /* Dark on white bg */
    position: relative;
    transition: all 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.burger-icon::before { transform: translateY(-8px); }
.burger-icon::after { transform: translateY(8px); }

.burger-menu.open .burger-icon { background-color: transparent; }
.burger-menu.open .burger-icon::before { transform: rotate(45deg); top: 0; }
.burger-menu.open .burger-icon::after { transform: rotate(-45deg); top: 0; }

/* Desktop Nav Styles (Override Mobile) */
@media (min-width: 1024px) {
    .nav-area {
        justify-content: flex-end; /* Nav on right */
        background-color: transparent;
    }

    .burger-menu { display: none; }

    .main-nav {
        position: relative;
        top: 0;
        height: 100%;
        width: auto;
        min-width: 50%;
        background-color: var(--color-bg-light);
        flex-direction: row;
        align-items: center;
        /* Angled Cut */
        clip-path: polygon(var(--nav-angle-width) 0, 100% 0, 100% 100%, 0% 100%);
        padding-left: calc(var(--nav-angle-width) + 20px);
        padding-right: 2rem;
        padding-bottom: 0;
        border-bottom: none;
        margin-left: auto;
    }
    
    .main-nav.active { height: 100%; padding-bottom: 0; border: none; }

    .nav-list {
        flex-direction: row;
        justify-content: space-around;
        /* padding-top: 0; */
    }

    .nav-item {
        border-bottom: none;
    }

    .nav-item:last-child { border-right: none; }
    .nav-link { font-size: clamp(0.9rem, 1.2vw, 1.1rem); }
}

/* Tablet & Mobile (Max width 992px) */
@media (max-width: 992px) {
    /* MENU SIDEBAR LOGIC */
    .mobile-menu-btn {
        display: block; /* Show hamburger */
        margin-top: 2%;
    }

    /* Main Content Adjustments */
    .hero-main-content {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text-area {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-description {
        text-align: center;
        margin: 20px auto;
    }

    .contact-info-top {
        display: none; 
    }
    
    .left-box {
        order: 1;
    }
    .right-box {
        order: 2;
    }

    .section-1-gafi {
        padding-top: 140px; 
    }
}

@media (max-width: 640px) {
    .hero-description {
        text-align: left;
        margin: 20px auto;
    }
}

/* Mobile Only (Max width 576px) */
@media (max-width: 576px) {
    .logo-box img {
        width: 60px;
    }
    .brand-title-top {
        font-size: 14px;
    }
    
    .header-content {
        justify-content: center;
        gap: 10px;
    }
    
    .item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .japanese-pill {
        font-size: 1.2rem;
        padding: 8px 20px;
    }

    .cta-button-hero {
        width: 100%;
        justify-content: center;
    }
    
    .footer-wrapper {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }

    html, body {
        overflow-x: hidden;
    }
}

@media (max-width: 640px) {

    html, body {
        overflow-x: hidden;
    }
}