/* ग्रामपंचायत टोकरे - website theme. Colours are taken from the logo. */
:root {
    --green: #14692f;
    --green-dark: #0c3f1e;
    --green-soft: #e9f4ea;
    --orange: #e8631a;
    --orange-dark: #b4480b;
    --orange-soft: #fdeee3;
    --yellow: #f9b208;
    --cream: #fbfaf3;
    --ink: #1f2a22;
    --muted: #56635a;
    --line: #dfe8dc;
    --shadow: 0 6px 22px rgba(12, 63, 30, .09);
    /* the old theme uses these names */
    --agriox-base: #f9b208;
    --agriox-primary: #14692f;
    --agriox-secondary: #e8631a;
    --agriox-font: "Noto Sans Devanagari", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Noto Sans Devanagari", Poppins, sans-serif; font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; }
a { text-decoration: none; }
/* the old theme colours bold text and indents lists; keep them neutral */
body strong, body b { color: inherit; }
body ul, body ol { margin: 0; padding: 0; }
body dd { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 100001; padding: 8px 16px; background: #fff; color: var(--green-dark); border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Top strip ---------- */
.top-strip { background: var(--green-dark); color: #fff; font-size: 14px; }
.top-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 6px; padding-bottom: 6px; }
.top-strip a { color: #fff; }
.top-strip a:hover { color: var(--yellow); }
.top-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.top-links i { color: var(--yellow); margin-right: 6px; }
.font-size { display: flex; align-items: center; gap: 5px; }
.font-size button { min-width: 32px; height: 28px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.font-size button.active { background: var(--yellow); border-color: var(--yellow); color: var(--green-dark); }
.tricolour { height: 4px; background: linear-gradient(90deg, var(--orange) 0 33%, var(--yellow) 33% 66%, var(--green) 66%); }

/* ---------- Header (stays on top while scrolling) ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 12px rgba(12, 63, 30, .1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1320px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-dark); }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand strong { display: block; font-size: 20px; line-height: 1.35; font-weight: 700; }
.brand small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--orange-dark); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu li { position: relative; }
.menu a, .menu .drop-btn { display: block; padding: 8px 13px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.menu a:hover, .menu .drop-btn:hover { background: var(--green-soft); color: var(--green); }
.menu a.active, .menu .drop-btn.active { background: var(--green); color: #fff; }
.menu .sub { position: absolute; left: 0; top: 100%; z-index: 20; min-width: 250px; padding: 8px; list-style: none; background: #fff; border-top: 3px solid var(--orange); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transition: opacity .15s; }
.menu li:hover > .sub, .menu li:focus-within > .sub, .menu li.open > .sub { visibility: visible; opacity: 1; }
.menu .sub a { color: var(--ink); background: none; }
.menu .sub a:hover { background: var(--green-soft); color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 18px; cursor: pointer; }
.btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 2px solid var(--orange-dark); border-radius: 10px; background: var(--orange-dark); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn-main:hover { background: #943a07; border-color: #943a07; color: #fff; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 2px solid var(--green); border-radius: 10px; color: var(--green); font-weight: 700; }
.btn-line:hover { background: var(--green); color: #fff; }
.menu-btn { display: none; }

/* Mobile menu */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000; width: min(320px, 88vw); padding: 16px; overflow-y: auto; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--orange); color: var(--green-dark); }
.drawer a { display: block; padding: 11px 14px; margin-bottom: 4px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.drawer a.active { background: var(--green); color: #fff; }
.drawer .drawer-group { margin: 12px 0 6px; padding: 0 14px; font-size: 13px; color: var(--orange-dark); font-weight: 700; }
.drawer-shade { display: none; position: fixed; inset: 0; z-index: 1999; background: rgba(0,0,0,.5); }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-shade { display: block; }

/* Search popup */
.search-pop { display: none; position: fixed; inset: 0; z-index: 10000; align-items: flex-start; justify-content: center; padding: 15vh 18px 0; background: rgba(8, 30, 15, .7); }
.search-pop.open { display: flex; }
.search-pop form { width: 100%; max-width: 520px; padding: 18px; background: #fff; border-radius: 14px; border-top: 5px solid var(--orange); }
.search-pop label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--green-dark); }
.search-pop input { width: 100%; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-size: 17px; }
.search-pop .row-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ---------- Inner page title banner ---------- */
body .page-header { padding: 30px 16px 26px; background: var(--green); }
body .page-header::before { background: linear-gradient(120deg, var(--green-dark), var(--green)); }
body .page-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
body .page-header .page-header__inner h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.4; letter-spacing: 0; }
body .page-header .page-header__inner .thm-breadcrumb { margin-bottom: 0; }

/* Older theme parts used on inner pages */
body .sec-title__title, body .contact-page__contact-info-title h2, body .gp-info-section h2 { color: var(--green-dark); }
body .thm-btn { background-color: var(--orange-dark); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #d7e6da; font-size: 15px; }
.footer-help { background: var(--orange-dark); color: #fff; }
.footer-help .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding-top: 14px; padding-bottom: 14px; }
.footer-help strong { margin-right: 6px; }
.footer-help a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 30px; color: #fff; font-weight: 600; }
.footer-help a:hover { background: #fff; color: var(--orange-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.site-footer h2 { position: relative; margin-bottom: 18px; padding-bottom: 8px; font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: 0; color: #fff; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 3px; background: var(--yellow); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d7e6da; }
.site-footer a:hover { color: var(--yellow); }
.footer-about .brand { margin-bottom: 14px; color: #fff; }
.footer-about .brand img { padding: 4px; background: #fff; border-radius: 50%; }
.footer-about .brand small { color: var(--yellow); }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { flex: none; width: 18px; margin-top: 6px; color: var(--yellow); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom img { vertical-align: middle; }
.visits { display: flex; align-items: center; gap: 8px; }
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 900; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; background: var(--orange-dark); color: #fff; font-size: 18px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 1180px) {
    .menu { display: none; }
    .header-actions .btn-main { display: none; }
    .menu-btn { display: flex; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .top-strip { font-size: 13px; }
    .top-strip .wrap { justify-content: center; }
    .top-email { display: none; }
    .brand img { width: 50px; height: 50px; }
    .brand strong { font-size: 17px; }
    .brand small { font-size: 11.5px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
    .footer-bottom .wrap { justify-content: center; text-align: center; }
    body .page-header { padding: 20px 12px 18px; }
    body .page-header .page-header__inner h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .drawer, .to-top, .menu .sub { transition: none; }
}

/* ---------- Phones: older theme parts and comfortable touch sizes ---------- */
#primary { overflow-x: clip; }
body .sec-title__title { line-height: 1.45; letter-spacing: 0; }
body .meet-farmers-one__single-title h2 { line-height: 1.55; letter-spacing: 0; }
@media (max-width: 767px) {
    body .sec-title__title { font-size: 27px; }
    body .meet-farmers-one__single-title h2 { font-size: 19px; }
    body .about-three__arrow, body .about-three__shape { display: none; }
    body .about-three { padding-top: 36px; padding-bottom: 36px; }
    body .contact-page { padding-top: 36px; padding-bottom: 36px; }
    body .contact-page__contact-info-wrapper { padding-top: 30px; padding-bottom: 30px; }
    body .sec-title { margin-bottom: 18px; }
    /* 16px stops phones from zooming in when a field is tapped */
    body input, body select, body textarea,
    body .comment-form__input-box input, body .comment-form__input-box textarea { font-size: 16px; }
    body .comment-form__btn { width: 100%; }
    table { max-width: 100%; }
    body .about-three, body .about-three p, body .about-three__content-box { text-align: left; }
    body .gp-info-section { padding: 32px 10px !important; }
    body .gp-info-section .container { padding: 0; }
    body .gp-info-section h2 { font-size: 22px; line-height: 1.5; margin-bottom: 18px !important; }
    body .gp-info-section th, body .gp-info-section td { padding: 9px 8px !important; border: 1px solid var(--line) !important; vertical-align: top; font-size: 14px; }
    body .gp-info-section th:first-child, body .gp-info-section td:first-child { width: 36px; white-space: nowrap; text-align: center; }
    body .elementor-custom-embed iframe { display: block; width: 100%; height: 300px; }
    td, th { overflow-wrap: break-word; }
    .font-size button { min-width: 40px; height: 36px; }
    .site-footer li { margin-bottom: 0; }
    .site-footer ul a { display: inline-block; padding: 6px 0; }
    .footer-help a { min-height: 42px; }
    .footer-bottom { padding-bottom: 62px; } /* space for the "back to top" button */
}
