/* ==================================================================
   OnlineKabadi — style.css
   Mobile-first, dependency-free. Eco-green palette to signal recycling
   + trust, with a warm accent for CTAs. No web fonts (speed / Core Web
   Vitals): uses a fast native system stack.
   ================================================================== */

:root {
    --green-900: #12432a;
    --green-700: #1f7a4d;
    --green-600: #23895a;
    --green-100: #e7f4ec;
    --green-50:  #f3faf6;
    --amber-500: #f5a524;
    --amber-600: #e0940f;
    --ink:       #1c2b23;
    --body:      #37453d;
    --muted:     #6a786f;
    --line:      #e2e8e4;
    --white:     #ffffff;
    --bg:        #ffffff;
    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 6px 24px rgba(18, 67, 42, 0.08);
    --shadow-lg: 0 18px 48px rgba(18, 67, 42, 0.14);
    --wrap:      1120px;
    color-scheme: light;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.content-narrow { max-width: 780px; }
.text-center { text-align: center; }

/* Accessibility skip link */
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--green-700);
    color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    background: var(--green-100); color: var(--green-700); border-radius: 10px; font-size: 1.15rem;
}
.brand-text { font-size: 1.2rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--body); font-weight: 600; font-size: .96rem; }
.nav-cta {
    background: var(--green-700); color: #fff !important; padding: .5rem .9rem;
    border-radius: 999px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green-600); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
    display: inline-block; cursor: pointer; border: 0; font-weight: 700;
    padding: .8rem 1.4rem; border-radius: 999px; font-size: 1rem;
    transition: transform .05s ease, background .2s ease, box-shadow .2s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber-500); color: #3a2a06; box-shadow: 0 6px 16px rgba(245,165,36,.35); }
.btn-primary:hover { background: var(--amber-600); }
.btn-outline { background: transparent; color: var(--green-700); box-shadow: inset 0 0 0 2px var(--green-600); }
.btn-outline:hover { background: var(--green-50); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; margin: .3rem; }
.btn-block { display: block; width: 100%; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--green-50), #fff 78%); border-bottom: 1px solid var(--line); }
.hero-inner {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
    padding-block: clamp(2rem, 5vw, 3.75rem);
}
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--green-700); margin: 0 0 .6rem; }
.hero-sub { font-size: 1.1rem; color: var(--body); max-width: 46ch; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
/* Graceful gradient placeholder if the WebP image is missing */
.hero-media.img-fallback {
    min-height: 300px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    box-shadow: var(--shadow-lg);
}

/* ---- Lead form card (transactional-first) ---- */
.form-anchor { margin-top: -2.5rem; position: relative; z-index: 5; }
.lead-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 2rem); max-width: 620px; margin-inline: auto;
}
.lead-title { margin-bottom: .2rem; }
.lead-sub { color: var(--muted); margin-bottom: 1.1rem; }
.lead-form .field { margin-bottom: 1rem; }
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.lead-form input, .lead-form select {
    width: 100%; padding: .8rem .9rem; font-size: 1rem; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus {
    outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100);
}
.lead-fineprint { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Feature list / why-choose-us ---- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.feature-list li { position: relative; padding-left: 1.9rem; }
.feature-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
    background: var(--green-100); color: var(--green-700); border-radius: 50%; font-size: .8rem; font-weight: 800;
}
.prose { color: var(--body); }

/* ---- Hub cards (homepage) ---- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.hub-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; color: var(--body); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.hub-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--green-100); color: var(--green-700); border-radius: 12px; font-size: 1.5rem; margin-bottom: .8rem; }
.hub-card h3 { color: var(--green-900); }
.hub-link { color: var(--green-700); font-weight: 700; display: inline-block; margin-top: .5rem; }

/* ---- Steps ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem auto 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3.2rem; }
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem;
    display: grid; place-items: center; background: var(--green-700); color: #fff;
    border-radius: 50%; font-weight: 800;
}

/* ---- FAQ accordion (no JS) ---- */
.faq { display: grid; gap: .7rem; margin-top: 1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; color: var(--ink); list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-700); font-size: 1.4rem; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--body); }
.faq-answer p { margin: 0; }

/* ---- States grid (visual pan-India, names only) ---- */
.states-grid {
    list-style: none; padding: 0; margin: 1.5rem 0 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem;
}
.state-chip {
    background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900);
    padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; text-align: center;
}

/* ---- CTA band ---- */
.cta-band { background: var(--green-900); color: #fff; border-radius: var(--radius); margin-block: 2rem; padding: clamp(2rem,4vw,3rem); }
.cta-band h2 { color: #fff; }
.cta-band .lead-sub { color: #cfe4d7; }

/* ---- Thank-you ---- */
.thankyou-tick {
    display: inline-grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem;
    background: var(--green-100); color: var(--green-700); border-radius: 50%; font-size: 2rem; font-weight: 800;
}

/* ---- Footer ---- */
.site-footer { background: var(--green-900); color: #d7e6dd; margin-top: 2.5rem; padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; }
.footer-brand { color: #fff; margin-bottom: .8rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); color: #fff; }
.footer-about { font-size: .92rem; color: #bcd4c6; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: #d7e6dd; font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.footer-address { font-style: normal; font-size: .92rem; color: #bcd4c6; line-height: 1.7; }
.footer-address a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.8rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #a9c4b4; }
.footer-note { max-width: 46ch; }

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }               /* image above copy on mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-nav { gap: .7rem; }
    .site-nav a:not(.nav-cta) { display: none; }  /* keep only Home + CTA tidy on small screens */
    .brand-text { font-size: 1.05rem; }
    .form-anchor { margin-top: -1.25rem; }
    .btn-lg { width: 100%; }
}

/* ---- Areas We Serve (crawlable details/summary) ---- */
.areas-section { padding-top: 1rem; }
.areas { border: 1px solid var(--line); border-radius: var(--radius); background: var(--green-50); overflow: hidden; }
.areas > summary {
    cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; display: flex;
    align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.areas > summary::-webkit-details-marker { display: none; }
.areas-title { font-size: 1.2rem; font-weight: 800; color: var(--green-900); }
.areas-hint { font-size: .88rem; color: var(--green-700); font-weight: 600; }
.areas > summary::after { content: "▸"; color: var(--green-700); font-weight: 700; margin-left: auto; }
.areas[open] > summary::after { content: "▾"; }
.areas-body { padding: 0 1.3rem 1.4rem; }
.areas-intro { color: var(--body); max-width: 70ch; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem 1.6rem; }
.areas-state-name { font-size: 1rem; color: var(--green-900); margin-bottom: .2rem; }
.areas-cities { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---- Related services links ---- */
.related-links { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .7rem; }
.related-links a {
    display: inline-block; padding: .5rem .9rem; background: var(--green-50);
    border: 1px solid var(--green-100); border-radius: 999px; font-weight: 600; font-size: .92rem;
}
.related-links a:hover { background: var(--green-100); text-decoration: none; }

/* ---- Scrap-rate table ---- */
.rate-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rate-table { width: 100%; border-collapse: collapse; min-width: 420px; background: #fff; }
.rate-table caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--green-900); background: var(--green-50); }
.rate-table th, .rate-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.rate-table thead th { background: var(--green-700); color: #fff; font-size: .92rem; }
.rate-table tbody tr:nth-child(even) { background: var(--green-50); }
.rate-table td:last-child { font-weight: 700; color: var(--green-900); white-space: nowrap; }
.rate-updated { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }
.rate-disclaimer {
    margin-top: 1rem; padding: 1rem 1.1rem; border-left: 4px solid var(--amber-500);
    background: #fff8ec; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #6b5418; font-size: .95rem;
}
.rate-citynote { margin-top: 1rem; color: var(--body); font-size: .95rem; }

/* ---- Upgraded lead-form fields (categories, textarea, file) ---- */
.field textarea {
    width: 100%; padding: .8rem .9rem; font-size: 1rem; color: var(--ink); font-family: inherit;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-height: 84px; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-check span {
    display: inline-block; padding: .45rem .85rem; border: 1.5px solid var(--line);
    border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--body); cursor: pointer; user-select: none;
}
.chip-check input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--green-100); }
.file-field input[type="file"] { width: 100%; font-size: .95rem; padding: .5rem 0; }
.file-hint { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
.form-legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); font-size: .85em; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
