/* ===================================================================
   Green Machine — Food Truck Template Styles
   Palette: Dark #0A1A0A | Light #F0FFF0 | Accent #16A34A
   Fonts: Josefin Sans (headings), Work Sans (body)
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #0A1A0A;
    background-color: #F0FFF0;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Utility --- */
.gm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gm-section {
    padding: 100px 0;
}

.gm-section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
    color: #0A1A0A;
}

.gm-section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #4a6a4a;
    margin-bottom: 48px;
    font-weight: 300;
}

/* --- Buttons --- */
.gm-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.gm-btn-primary {
    background-color: #16A34A;
    color: #fff;
    border-color: #16A34A;
}

.gm-btn-primary:hover {
    background-color: #138a3e;
    border-color: #138a3e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.gm-btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.gm-btn-outline:hover {
    background-color: #fff;
    color: #0A1A0A;
    transform: translateY(-2px);
}

.gm-btn-nav {
    padding: 10px 24px;
    background-color: #16A34A;
    color: #fff;
    font-size: 0.875rem;
    border-color: #16A34A;
}

.gm-btn-nav:hover {
    background-color: #138a3e;
    border-color: #138a3e;
}

/* --- Reveal Animation --- */
.gm-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Demo Banner --- */
.gm-demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #0A1A0A;
    color: #F0FFF0;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gm-demo-back {
    color: #16A34A;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gm-demo-back:hover {
    color: #4ade80;
}

/* --- Navigation --- */
.gm-nav {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.gm-nav.gm-scrolled {
    background: rgba(10, 26, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gm-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gm-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.gm-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.gm-nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.gm-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #16A34A;
    transition: width 0.3s ease;
}

.gm-nav-links a:hover {
    color: #fff;
}

.gm-nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.gm-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
}

.gm-hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gm-hamburger.gm-active .gm-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gm-hamburger.gm-active .gm-hamburger-line:nth-child(2) {
    opacity: 0;
}

.gm-hamburger.gm-active .gm-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.gm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.gm-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 26, 10, 0.7) 0%,
        rgba(10, 26, 10, 0.5) 50%,
        rgba(10, 26, 10, 0.8) 100%
    );
}

.gm-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 800px;
}

.gm-hero-title {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.gm-hero-tagline {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.gm-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Menu Section --- */
.gm-menu-section {
    background-color: #F0FFF0;
}

.gm-menu-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gm-filter-btn {
    padding: 8px 20px;
    border: 2px solid #c8e6c8;
    background: transparent;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0A1A0A;
}

.gm-filter-btn:hover,
.gm-filter-btn.gm-filter-active {
    background-color: #16A34A;
    border-color: #16A34A;
    color: #fff;
}

.gm-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gm-menu-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(10, 26, 10, 0.06);
}

.gm-menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(10, 26, 10, 0.12);
}

.gm-menu-card.gm-hidden {
    display: none;
}

.gm-menu-img-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gm-menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gm-menu-card:hover .gm-menu-img {
    transform: scale(1.08);
}

.gm-menu-info {
    padding: 20px;
}

.gm-menu-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #16A34A;
    margin-bottom: 8px;
}

.gm-menu-name {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #0A1A0A;
}

.gm-menu-desc {
    font-size: 0.875rem;
    color: #5a7a5a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.gm-menu-price {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #16A34A;
}

/* --- Catering Section --- */
.gm-catering-section {
    background: #0A1A0A;
    color: #F0FFF0;
}

.gm-catering-section .gm-section-title {
    color: #F0FFF0;
    text-align: left;
}

.gm-catering-section .gm-section-subtitle {
    color: rgba(240, 255, 240, 0.7);
    text-align: left;
}

.gm-catering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.gm-catering-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: rgba(240, 255, 240, 0.85);
}

.gm-catering-list {
    margin-bottom: 32px;
}

.gm-catering-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(240, 255, 240, 0.85);
}

.gm-catering-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16A34A;
    font-weight: 700;
}

.gm-catering-image img {
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* --- About Section --- */
.gm-about-section {
    background: #F0FFF0;
}

.gm-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.gm-about-image img {
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gm-about-content .gm-section-title {
    text-align: left;
}

.gm-about-content .gm-section-subtitle {
    text-align: left;
}

.gm-about-content p {
    color: #3a5a3a;
    margin-bottom: 16px;
    line-height: 1.8;
}

.gm-about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.gm-stat {
    text-align: center;
}

.gm-stat-number {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #16A34A;
}

.gm-stat-label {
    font-size: 0.85rem;
    color: #5a7a5a;
    font-weight: 500;
}

/* --- Locations Section --- */
.gm-locations-section {
    background: #e8f5e8;
}

.gm-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gm-schedule-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(10, 26, 10, 0.06);
    transition: transform 0.3s ease;
}

.gm-schedule-card:hover {
    transform: translateY(-4px);
}

.gm-schedule-day {
    font-size: 1.1rem;
    color: #16A34A;
    margin-bottom: 10px;
}

.gm-schedule-location {
    font-weight: 500;
    color: #0A1A0A;
    margin-bottom: 6px;
}

.gm-schedule-time {
    font-size: 0.9rem;
    color: #5a7a5a;
}

/* --- Gallery Section --- */
.gm-gallery-section {
    background: #F0FFF0;
}

.gm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gm-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gm-gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Reviews Section --- */
.gm-reviews-section {
    background: #0A1A0A;
    color: #F0FFF0;
}

.gm-reviews-section .gm-section-title {
    color: #F0FFF0;
}

.gm-reviews-section .gm-section-subtitle {
    color: rgba(240, 255, 240, 0.7);
}

.gm-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gm-review-card {
    background: rgba(240, 255, 240, 0.06);
    border: 1px solid rgba(240, 255, 240, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease;
}

.gm-review-card:hover {
    transform: translateY(-4px);
}

.gm-review-stars {
    color: #16A34A;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.gm-review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(240, 255, 240, 0.85);
    margin-bottom: 20px;
    font-style: italic;
}

.gm-review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gm-review-name {
    font-weight: 600;
    color: #F0FFF0;
}

.gm-review-role {
    font-size: 0.85rem;
    color: rgba(240, 255, 240, 0.5);
}

/* --- FAQ Section --- */
.gm-faq-section {
    background: #F0FFF0;
}

.gm-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.gm-faq-item {
    border-bottom: 1px solid #c8e6c8;
}

.gm-faq-item:first-child {
    border-top: 1px solid #c8e6c8;
}

.gm-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A1A0A;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.3s ease;
}

.gm-faq-question:hover {
    color: #16A34A;
}

.gm-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #16A34A;
}

.gm-faq-item.gm-faq-open .gm-faq-icon {
    transform: rotate(45deg);
}

.gm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.gm-faq-item.gm-faq-open .gm-faq-answer {
    max-height: 300px;
}

.gm-faq-answer p {
    padding-bottom: 20px;
    color: #4a6a4a;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Footer --- */
.gm-footer {
    background: #0A1A0A;
    color: #F0FFF0;
    padding: 80px 0 0;
}

.gm-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(240, 255, 240, 0.1);
}

.gm-footer-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gm-footer-tagline {
    color: rgba(240, 255, 240, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.gm-footer-social {
    display: flex;
    gap: 12px;
}

.gm-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 255, 240, 0.08);
    color: #F0FFF0;
    transition: all 0.3s ease;
}

.gm-social-link:hover {
    background: #16A34A;
    transform: translateY(-2px);
}

.gm-footer-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    color: #F0FFF0;
}

.gm-footer-list li {
    padding: 4px 0;
    color: rgba(240, 255, 240, 0.6);
    font-size: 0.9rem;
}

.gm-footer-list a {
    color: rgba(240, 255, 240, 0.6);
    transition: color 0.3s ease;
}

.gm-footer-list a:hover {
    color: #16A34A;
}

.gm-footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(240, 255, 240, 0.4);
}

/* ===================================================================
   Responsive Breakpoints
   =================================================================== */

/* --- 1024px --- */
@media (max-width: 1024px) {
    .gm-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gm-hero-title {
        font-size: 3.5rem;
    }

    .gm-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .gm-hamburger {
        display: flex;
    }

    .gm-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0A1A0A;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .gm-nav-links.gm-nav-open {
        right: 0;
    }

    .gm-nav-links li {
        width: 100%;
    }

    .gm-nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(240, 255, 240, 0.08);
    }

    .gm-nav-links a::after {
        display: none;
    }

    .gm-btn-nav {
        display: none;
    }

    .gm-hero-title {
        font-size: 2.8rem;
    }

    .gm-hero-tagline {
        font-size: 1.1rem;
    }

    .gm-section {
        padding: 72px 0;
    }

    .gm-section-title {
        font-size: 2rem;
    }

    .gm-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-catering-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gm-catering-section .gm-section-title,
    .gm-catering-section .gm-section-subtitle {
        text-align: center;
    }

    .gm-catering-content {
        text-align: center;
    }

    .gm-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gm-about-content .gm-section-title,
    .gm-about-content .gm-section-subtitle {
        text-align: center;
    }

    .gm-about-stats {
        justify-content: center;
    }

    .gm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-reviews-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

    .gm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .gm-demo-banner {
        font-size: 0.75rem;
        padding: 8px 16px;
        flex-direction: column;
        gap: 4px;
    }

    .gm-hero-title {
        font-size: 2.2rem;
    }

    .gm-hero-tagline {
        font-size: 1rem;
    }

    .gm-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .gm-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .gm-section {
        padding: 56px 0;
    }

    .gm-section-title {
        font-size: 1.75rem;
    }

    .gm-section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .gm-menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .gm-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .gm-schedule-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .gm-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gm-about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .gm-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gm-footer-social {
        justify-content: center;
    }

    .gm-review-card {
        padding: 24px;
    }
}