/* =========================================================
   Arun Cricket Academy — base stylesheet
   Clean, responsive, no framework. Easy to extend.
   ========================================================= */

:root {
    --green: #0b6e3b;
    --green-dark: #084d29;
    --green-light: #e8f5ee;
    --accent: #f4a300;
    --ink: #1c2620;
    --muted: #5b6b62;
    --line: #e2e8e4;
    --bg: #ffffff;
    --bg-alt: #f6faf7;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(11, 110, 59, 0.08);
    --max: 1140px;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 800px; }
.center { text-align: center; }

/* Accessibility skip link */
.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- Header / nav ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--green); color: #fff; font-weight: 800; font-size: .95rem;
}
.brand-text { font-size: 1.15rem; letter-spacing: .2px; }

.site-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .25rem;
}
.site-nav a {
    display: block; padding: .55rem .8rem; border-radius: 8px;
    color: var(--ink); font-weight: 500;
}
.site-nav a:hover { background: var(--green-light); text-decoration: none; }
.site-nav a.active { color: var(--green); font-weight: 700; }
.nav-cta {
    background: var(--green); color: #fff !important; margin-left: .4rem;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle-btn { display: none; cursor: pointer; padding: .4rem; }
.nav-toggle-btn span {
    display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0;
    transition: .2s;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block; cursor: pointer;
    padding: .75rem 1.4rem; border-radius: 999px;
    font-weight: 600; border: 2px solid transparent; font-size: 1rem;
    transition: transform .08s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-light); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-light); }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-inner {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center;
}
.hero h1 { color: #fff; max-width: 20ch; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem;
    font-weight: 700; opacity: .9; margin-bottom: .75rem;
}
.hero-sub { max-width: 60ch; font-size: 1.05rem; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-media img {
    width: 100%; height: auto; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------------- Page hero (inner) ---------------- */
.page-hero {
    background: var(--green-light);
    padding: clamp(2.2rem, 5vw, 3.5rem) 0;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .35rem; }
.page-hero p { color: var(--muted); margin: 0; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------------- Buttons (small) ---------------- */
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* ---------------- Grid + cards ---------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow);
}
.feature-card h3 { color: var(--green); }

.course-card { display: flex; flex-direction: column; }
.badge {
    align-self: flex-start; background: var(--accent); color: #2a1d00;
    font-weight: 700; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
    margin-bottom: .6rem;
}
.course-level { color: var(--muted); font-weight: 600; margin-bottom: .4rem; }
.link-arrow { font-weight: 600; margin-top: auto; }
.link-arrow::after { content: " \2192"; }

.shift-card .shift-time { color: var(--green); font-weight: 700; }

/* ---------------- Store: category tiles ---------------- */
.category-card { display: flex; flex-direction: column; color: var(--ink); overflow: hidden; padding-top: 0; }
.category-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.category-card h3 { color: var(--green); }
.category-card .link-arrow { margin-top: auto; }
.category-img {
    width: calc(100% + 3rem); margin: 0 -1.5rem 1rem; height: 200px;
    object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------------- Store: product cards ---------------- */
.product-card { display: flex; flex-direction: column; position: relative; }
.product-thumb {
    position: relative;
    height: 180px; margin: -1.5rem -1.5rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
    background: var(--green-light);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.origin-tag {
    position: absolute; top: .8rem; right: .8rem; z-index: 2;
    font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .5px;
}
.origin-imported { background: #fdebd0; color: #8a4b00; }
.origin-local { background: #d7eede; color: var(--green-dark); }
.product-cat { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.product-desc { color: var(--muted); font-size: .92rem; }
.product-price { color: var(--ink); font-weight: 800; font-size: 1.25rem; margin: .25rem 0 1rem; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------------- Store: category filter + blocks ---------------- */
.category-filter {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
    justify-content: center;
}
.category-filter a {
    padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff;
}
.category-filter a:hover { background: var(--green-light); border-color: var(--green); text-decoration: none; }
.category-block { padding-top: 1.5rem; margin-bottom: 1.5rem; scroll-margin-top: 90px; }
.category-head { margin-bottom: 1.25rem; }
.category-head h2 { margin-bottom: .25rem; }
.category-head p { color: var(--muted); margin: 0; }

/* ---------------- Branches ---------------- */
.branch-list {
    list-style: none; margin: 0 0 1.5rem; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.branch-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; display: flex; flex-direction: column;
}
.branch-item strong { font-size: 1.05rem; }
.branch-item span { color: var(--muted); font-size: .92rem; }
.branch-item.is-flagship, .branch-card.is-flagship {
    border-color: var(--green); box-shadow: 0 0 0 2px var(--green-light) inset;
}
.flag { color: var(--green); font-weight: 700; font-style: normal; margin-top: .35rem; font-size: .85rem; }
.note { color: var(--muted); }

/* ---------------- Lists ---------------- */
.check-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.check-list li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    color: var(--green); font-weight: 800;
}

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--green-dark); color: #fff; padding: clamp(2.5rem,6vw,4rem) 0; }
.cta-inner { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; margin-bottom: 1.5rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.contact-form label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
.contact-form input,
.contact-form textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--line);
    border-radius: 8px; font: inherit; color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.contact-form button { margin-top: 1.25rem; }

.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.25rem; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
.alert-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5b5b5; }

/* ---------------- Legal pages ---------------- */
.legal h2 { margin-top: 2rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0c1410; color: #cdd8d1; margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2rem;
    padding: 3rem 1.25rem 2rem;
}
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #cdd8d1; }
.footer-col a:hover { color: #fff; }
.footer-about .brand-text { color: #fff; font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: .6rem; }
.footer-about p { color: #9fb0a6; }
.site-footer address { font-style: normal; color: #9fb0a6; }
.site-footer address a { color: #cdd8d1; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom p { margin: 0; color: #9fb0a6; font-size: .9rem; }
.footer-mini-links a { color: #9fb0a6; }
.footer-mini-links a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .branch-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .hero-media { order: -1; }
    .hero h1 { max-width: none; }
}

@media (max-width: 720px) {
    .nav-toggle-btn { display: block; }
    .site-nav {
        position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
    .nav-toggle:checked ~ .site-nav { max-height: 480px; }
    .nav-cta { margin: .4rem 0 0; text-align: center; }
}

@media (max-width: 560px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .branch-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
