/* =============================================================
   Gate Prop Blox — style.css
   Pure CSS, no frameworks. Brand: green #3CB043, white, charcoal.
   ============================================================= */

:root {
    --green:        #3CB043;
    --green-dark:   #2e8a35;
    --green-light:  #eaf7ec;
    --charcoal:     #23272b;
    --charcoal-2:   #2f353b;
    --gray:         #6b7280;
    --gray-light:   #f4f6f5;
    --border:       #e3e7e4;
    --white:        #ffffff;
    --wood:         #a9743f;
    --radius:       14px;
    --radius-sm:    8px;
    --shadow:       0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:    0 20px 50px rgba(0,0,0,.15);
    --max:          1160px;
    --font:         'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--charcoal);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
p { color: #3d4349; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 700;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(60,176,67,.35); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; background: var(--green-light); color: var(--green-dark); }
.btn-nav { padding: .55rem 1.3rem; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.25rem; color: var(--charcoal); }
.brand:hover { color: var(--charcoal); }
.brand-mark { color: var(--green); font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--charcoal); font-weight: 600; }
.nav-links a.active, .nav-links a:hover { color: var(--green); }
.nav-links a.btn-nav.active, .nav-links a.btn-nav { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--charcoal); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex; align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(60,176,67,.35), transparent 55%),
        linear-gradient(135deg, #1c2b1e 0%, #23402a 45%, #2e8a35 120%);
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 80px 24px; margin: 0 auto; max-width: 900px; }
.badge {
    display: inline-block; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: .4rem 1rem; border-radius: 50px; font-weight: 700; font-size: .85rem;
    letter-spacing: .04em; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 680px; margin: 0 auto 1.5rem; }
.hero-sub strong { color: #fff; }
.hero-steps { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2.2rem; font-weight: 900; }
.hero-steps span {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: #bff5c4;
    text-transform: uppercase; letter-spacing: .05em;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-size: 1.2rem; animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.eyebrow { display: inline-block; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .6rem; }
.eyebrow-light { color: #bff5c4; }

/* Problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-text h2 { margin-bottom: 1rem; }
.x-list { list-style: none; margin-top: 1.2rem; }
.x-list li { padding-left: 2rem; position: relative; margin-bottom: .7rem; color: #444; }
.x-list li::before { content: "✕"; position: absolute; left: 0; color: #e04b4b; font-weight: 900; }
.split-visual {
    background: var(--gray-light); border: 1px solid var(--border);
    border-radius: var(--radius); min-height: 320px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.visual-emoji { font-size: 5rem; }
.visual-caption { color: var(--gray); font-weight: 600; }

/* Solution band */
.section-solution {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff; padding: 70px 0;
}
.section-solution h2, .section-solution p { color: #fff; }
.solution-title { max-width: 780px; margin: 0 auto .8rem; }
.solution-lead { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.92); font-size: 1.1rem; }

/* How it works */
.section-how { background: var(--gray-light); }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.step {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2.2rem 1.5rem; text-align: center; flex: 1 1 240px; max-width: 300px;
    box-shadow: var(--shadow); position: relative;
}
.step-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; background: var(--green); color: #fff;
    border-radius: 50%; display: grid; place-items: center; font-weight: 900;
}
.step-icon { font-size: 3rem; margin: .6rem 0 1rem; }
.step h3 { color: var(--green-dark); margin-bottom: .5rem; }
.step-arrow { display: flex; align-items: center; font-size: 2rem; color: var(--green); font-weight: 900; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1.6rem; transition: transform .2s, box-shadow .2s; text-align: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.feature-icon {
    width: 62px; height: 62px; border-radius: 16px; background: var(--green-light);
    display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.feature-card p { color: var(--gray); }

/* CTA band */
.section-cta {
    background:
        radial-gradient(circle at 80% 20%, rgba(60,176,67,.25), transparent 50%),
        linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
    color: #fff; text-align: center;
}
.cta-title { color: #fff; margin-bottom: .8rem; }
.cta-sub { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 2rem; font-size: 1.15rem; }
.cta-fine { color: rgba(255,255,255,.55); margin-top: 1.2rem; font-size: .95rem; }
.badge-hero { }

/* ---------- Page head (inner pages) ---------- */
.page-head {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--green-dark) 130%);
    color: #fff; padding: 70px 0 60px; text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: .4rem; }
.page-head p { color: rgba(255,255,255,.85); }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.product-image {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #d9c3a5, var(--wood));
    aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.product-image-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.product-emoji { font-size: 5.5rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.product-tag {
    position: absolute; top: 14px; right: 14px; background: var(--charcoal);
    color: #fff; padding: .3rem .8rem; border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.product-price { font-size: 2.2rem; font-weight: 900; color: var(--green); margin: .3rem 0; }
.product-desc { color: var(--gray); margin-bottom: 1rem; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.order-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.order-panel h2 { margin-bottom: 1.2rem; }

/* ---------- Forms ---------- */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .92rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(60,176,67,.15);
}
.form-group input.invalid, .form-group textarea.invalid { border-color: #e04b4b; }
.form-row-order { align-items: flex-end; justify-content: space-between; }
.form-total { text-align: right; }
.form-total span { display: block; color: var(--gray); font-size: .85rem; }
.form-total strong { font-size: 1.6rem; color: var(--green); }
.form-fine { color: var(--gray); font-size: .85rem; margin-top: .8rem; text-align: center; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.alert-success { background: var(--green-light); border: 1px solid var(--green); color: var(--green-dark); }
.alert-success h2 { color: var(--green-dark); margin-bottom: .4rem; }
.alert-error { background: #fdecec; border: 1px solid #e04b4b; color: #a12626; }
.alert-error ul { margin-left: 1.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; margin-top: 1.4rem; }
.contact-list li { margin-bottom: .8rem; font-size: 1.05rem; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }

/* ---------- About ---------- */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.value-card { background: var(--gray-light); border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center; }
.value-card .feature-icon { margin: 0 auto 1rem; }
.value-card h3 { margin-bottom: .4rem; }
.value-card p { color: var(--gray); }
.narrow p { margin-bottom: 1.1rem; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cbd2d8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; padding: 60px 24px 40px; }
.brand-footer { color: #fff; margin-bottom: .6rem; }
.brand-footer:hover { color: #fff; }
.footer-tag { color: #9aa4ac; }
.footer-patent { margin-top: .6rem; font-weight: 700; color: #bff5c4; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col a { display: block; color: #cbd2d8; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; }
.footer-bottom p { color: #8a9299; font-size: .9rem; }

/* =============================================================
   ADMIN
   ============================================================= */
.admin-body { background: var(--gray-light); }
.admin-login-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.admin-login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 400px; }
.admin-login-brand { display: flex; align-items: center; gap: .5rem; justify-content: center; font-weight: 900; font-size: 1.3rem; margin-bottom: 1.5rem; }
.admin-login-brand .brand-mark { color: var(--green); }
.admin-login-hint { text-align: center; color: var(--gray); font-size: .85rem; margin-top: 1rem; }
.admin-login-hint code { background: var(--gray-light); padding: .1rem .4rem; border-radius: 4px; }

.admin-topbar { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-topbar-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.admin-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 900; }
.admin-brand .brand-mark { color: var(--green); }
.admin-nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: #cbd2d8; font-weight: 600; }
.admin-nav a.active, .admin-nav a:hover { color: #fff; }
.admin-logout { color: #ff9b9b !important; }
.admin-main { padding: 32px 0 60px; }
.admin-container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.admin-container h1 { margin-bottom: 1.5rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--green); }
.stat-icon { font-size: 1.8rem; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--charcoal); margin-top: .3rem; }
.stat-label { color: var(--gray); font-size: .9rem; }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-card-head h2 { font-size: 1.2rem; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--gray-light); font-weight: 800; color: var(--charcoal); white-space: nowrap; }
.data-table tr:hover td { background: #fafbfa; }
.msg-cell { max-width: 320px; }
.muted { color: var(--gray); }
.pill { padding: .25rem .7rem; border-radius: 50px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.pill-pending { background: #fff4d6; color: #9a7400; }
.pill-shipped { background: #dcefff; color: #1364b0; }
.pill-completed { background: var(--green-light); color: var(--green-dark); }
.pill-cancelled { background: #fdecec; color: #a12626; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values { grid-template-columns: 1fr; }
    .split, .shop-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 70px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .5rem 0; box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .nav-links.open { max-height: 400px; }
    .nav-links a { padding: .9rem 24px; }
    .nav-links a.btn-nav { margin: .5rem 24px; border-radius: 50px; }
    .section { padding: 60px 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .hero-steps { gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* Hero video mobile optimization */
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Use dynamic viewport height for better mobile support */
    }
    .hero-video {
        /* On mobile, ensure video fills the entire screen */
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .hero-overlay {
        /* Lighter overlay on mobile so video is more visible */
        background: rgba(0, 0, 0, 0.25);
    }
    .hero-inner {
        padding: 100px 20px 60px;
        /* Ensure content doesn't get hidden under navbar */
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 40px rgba(0,0,0,.4);
    }
    .hero-sub {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,.5);
    }
    .hero-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-steps span {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,.5);
    }
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        background: rgba(255,255,255,.25);
        backdrop-filter: blur(4px);
    }
    .btn {
        text-shadow: none; /* Remove text shadow from buttons */
    }
}
