/* IN TamilNadu — v2. All text colours pass WCAG AA contrast on their backgrounds. */
:root {
    --brand: #0a5c43;          /* deep temple green — 7.9:1 on white */
    --brand-dark: #073f2e;
    --brand-soft: #e6f2ed;
    --accent: #f5a524;         /* marigold — used with dark text only */
    --accent-dark: #e0901a;
    --ink: #111827;            /* body text */
    --muted: #4b5563;          /* secondary text — 7.5:1 on white */
    --line: #e5e7eb;
    --bg: #f8faf9;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(17,24,39,.04), 0 4px 14px rgba(17,24,39,.05);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --bs-link-color: #0a5c43;
    --bs-link-color-rgb: 10, 92, 67;
    --bs-link-hover-color: #073f2e;
    --bs-secondary-color: #4b5563;
}
html { -webkit-text-size-adjust: 100%; }
body {
    color: var(--ink);
    background: var(--bg);
    font-family: var(--bs-body-font-family);
    font-size: 1rem;           /* 16px — Google mobile-friendly minimum */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
a { text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.text-secondary { color: var(--muted) !important; }
img { max-width: 100%; height: auto; }

/* Brand */
.brand-mark { background: var(--brand); color: #fff; border-radius: 7px; padding: 2px 8px; font-size: .85em; font-weight: 800; letter-spacing: .5px; }
.brand-text { color: var(--brand); font-weight: 800; letter-spacing: -.02em; }
.site-nav { box-shadow: 0 1px 0 var(--line); }
.site-nav .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .9rem !important; border-radius: 8px; }
.site-nav .nav-link:hover { background: var(--brand-soft); color: var(--brand); }

/* Buttons — min 44px tap target */
.btn { font-weight: 600; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { min-height: 36px; border-radius: 8px; }
.btn-lg { min-height: 50px; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1f1300; border: 0; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); color: #1f1300; }
.btn-outline-secondary { border-color: #cbd5d1; color: var(--ink); }
.btn-outline-secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft); }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: #d1d5db; min-height: 44px; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,92,67,.15); }
.input-group-text { border-radius: 10px 0 0 10px; background: #f3f4f6; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, #11815f 0%, transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .search-box { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.hero .search-box .form-control, .hero .search-box .form-select { border: 0; box-shadow: none; }
.stat-pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

/* Tiles & cards */
.section-title { font-weight: 800; margin-bottom: 1rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); height: 100%; font-weight: 500; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--brand); }
.tile i { color: var(--brand); font-size: 1.25rem; flex-shrink: 0; }
.tile .count { margin-left: auto; font-size: .78rem; color: var(--muted); background: #f3f4f6; border-radius: 999px; padding: 1px 8px; }

.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.biz-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.biz-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.biz-card h3 a { color: var(--ink); }
.biz-card h3 a:hover { color: var(--brand); }
.badge-verified { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.badge-featured { background: #fff4dc; color: #7a4d00; font-weight: 600; }
.chip { display: inline-block; border: 1px solid #d9dfdc; border-radius: 999px; padding: 5px 13px; font-size: .875rem; margin: 0 6px 8px 0; color: var(--ink); background: #fff; line-height: 1.4; }
.chip.active, .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Lead box */
.lead-box { background: #fff; border: 2px solid var(--brand); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(10,92,67,.10); }
.lead-box h2 { font-size: 1.2rem; font-weight: 800; }
.lead-sticky { position: sticky; top: 84px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.trust-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.trust-list li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 991.98px) {
    .mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
    .mobile-cta .btn { flex: 1; font-weight: 700; min-height: 48px; }
    body.has-mobile-cta { padding-bottom: 80px; }
    .lead-sticky { position: static; }
    .hero { padding: 36px 0 48px; }
    .page-head h1 { font-size: 1.4rem; }
}

/* Page head, FAQ, footer */
.breadcrumb { font-size: .85rem; margin-bottom: .5rem; --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb-item.active { color: var(--muted); }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.faq .accordion-item { border-color: var(--line); }
.faq .accordion-button { font-weight: 600; }
.faq .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.site-footer { background: #0c1f19; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .text-white-50 { color: rgba(255,255,255,.7) !important; }

/* Admin */
.admin-sidebar a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--brand-soft); color: var(--brand); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Answer-first summary block (featured snippets + AI answers) */
.quick-answer { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; font-size: .95rem; max-width: 900px; }

/* Logos & gallery */
.biz-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.page-head .biz-logo { width: 64px; height: 64px; }
.biz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.biz-gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); transition: transform .15s; }
.biz-gallery a:hover img { transform: scale(1.02); }

/* Lightbox */
.lb-content { background: rgba(8, 12, 10, .96); border: 0; border-radius: 0; }
.lb-stage { position: absolute; inset: 56px 64px 56px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s ease; user-select: none; }
.lb-img.zoomed { transform: scale(2.2); cursor: zoom-out; }
.lb-btn { position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-bar { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 575.98px) { .lb-stage { inset: 56px 8px 56px; } .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; } }

/* Justdial-style SEO link blocks */
.link-blocks { border-top: 1px solid var(--line); padding-top: 8px; }
.link-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.link-block h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.link-block p { margin: 0; line-height: 2; font-size: .9rem; display: flex; flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.link-blocks, .link-block { min-width: 0; overflow-wrap: anywhere; }
.link-block a { color: var(--ink); white-space: nowrap; }
.link-block a:not(:last-child)::after { content: "|"; color: #c4c9c7; margin: 0 10px; }
.link-block a:hover { color: var(--brand); text-decoration: underline; }
.link-block a.has { font-weight: 600; }

/* Working hours */
.hours-editor { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 12px; background: #fff; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 9px 0; border-bottom: 1px solid #f0f1f1; min-height: 52px; }
.hours-row:last-of-type { border-bottom: 0; }
.hours-day { width: 100px; font-weight: 600; font-size: .9rem; }
.hours-toggle { width: 90px; }
.hours-toggle .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.hours-toggle .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.hours-times { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hours-times input[type=time] { width: 120px; }
.open-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.open-badge.is-open { background: #e6f4ea; color: #137333; }
.open-badge.is-closed { background: #fce8e6; color: #b3261e; }
.hours-table td { padding: 6px 0; border-color: #f0f1f1; font-size: .9rem; }
.hours-table tr.today td { font-weight: 700; }
@media (max-width: 575.98px) { .hours-day { width: 100%; } .hours-times input[type=time] { width: 108px; } }

/* Cost guides / near me */
.price-table th { background: var(--brand-soft); color: var(--brand); font-size: .85rem; padding: 12px 18px; }
.price-table td { padding: 12px 18px; vertical-align: middle; }
.cost-link { display: flex; gap: 14px; align-items: center; background: #fff8e6; border: 1px solid #f5d999; border-radius: 12px; padding: 14px 18px; color: var(--ink); }
.cost-link i { font-size: 1.6rem; color: #a26400; }
.cost-link:hover { border-color: var(--accent); color: var(--ink); }
.distance-pill { position: absolute; bottom: 30px; right: 14px; z-index: 2; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Offers */
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.offer-img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-bottom: 1px solid var(--line); }
.offer-tag { display: inline-block; background: #fff1d6; color: #8a4b00; font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 6px; border: 1px dashed #f0b44c; }
.offer-badge { background: #fff1d6; color: #8a4b00; font-weight: 700; }

.gov-notice { display: flex; gap: 12px; background: #fff7e6; border: 1px solid #f5c26b; border-left: 5px solid #e8930c; border-radius: 10px; padding: 14px 16px; margin-bottom: 1.5rem; font-size: .95rem; line-height: 1.6; }
.gov-notice i { color: #e8930c; font-size: 1.3rem; }
.legal-side a { display: block; padding: 4px 0; }

/* Guides */
.guide-card{display:block;background:#fff;border:1px solid #e6e8ec;border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;transition:box-shadow .15s,transform .15s}
.guide-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-2px)}
.guide-card img{width:100%;height:auto;aspect-ratio:7/4;object-fit:cover;display:block}
.guide-cover-ph{aspect-ratio:7/4;display:flex;align-items:center;justify-content:center;background:#f3f4f6;font-size:2.5rem;color:#9aa1ab}
.article-cover{width:100%;height:auto;border-radius:12px}
.article-body{line-height:1.75;font-size:1.02rem}
.article-body h2{font-size:1.35rem;font-weight:700;margin-top:2rem}
.article-body h3{font-size:1.1rem;font-weight:700;margin-top:1.5rem}
.article-body img{max-width:100%;height:auto;border-radius:10px}
.article-body table{width:100%;border-collapse:collapse;margin:1rem 0}
.article-body th,.article-body td{border:1px solid #e6e8ec;padding:.5rem .75rem}
