/* =========================================================
   SAMRIDDH KISAN SOCIAL WELFARE FOUNDATION
   Public Hindi Homepage — css/style.css
    Readability update: slightly larger, heavier text; slider crop preserved.
   ========================================================= */

:root {
    --green: #17612c;
    --green-dark: #10491f;
    --green-deep: #0b351a;
    --green-light: #edf6e9;
    --green-bright: #79b43e;
    --green-pale: #c3ec83;
    --purple: #752d91;
    --text: #25352a;
    --muted: #68776d;
    --white: #ffffff;
    --background: #f7f9f6;
    --border: #e2e9df;
    --shadow: 0 8px 28px rgba(24, 65, 32, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Noto Sans Devanagari", "Mangal", "Arial Unicode MS", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #e0b4ff;
    outline-offset: 4px;
}

/* =========================================================
   GREEN HEADER / NAVIGATION — LOGO INSIDE GREEN STRIP
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--green);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.main-nav {
    width: 100%;
    background: var(--green);
}

.nav-inner {
    max-width: 1320px;
    min-height: 82px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 18px;
}

.nav-brand img {
    width: 100px;
    height: 64px;
    object-fit: contain;
    object-position: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 13px;
    color: #ffffff;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.14);
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 9px 14px;
    color: #ffffff;
    background: #6fa934;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-login:hover {
    background: #8ac54d;
    transform: translateY(-1px);
}

/* =========================================================
   HERO SLIDER
   Images fill the entire slider width. Edges may be cropped slightly.
   ========================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: #124b28;
    color: #ffffff;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #124b28;
}

/* Dark gradient improves text contrast without changing the image file. */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(9, 53, 27, 0.92) 0%,
        rgba(17, 86, 39, 0.78) 43%,
        rgba(17, 86, 39, 0.25) 100%
    );
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 62px 72px;
}

.slide-content .eyebrow {
    display: inline-block;
    max-width: 100%;
    padding: 6px 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.slide-content h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(35px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.4;
    text-wrap: balance;
}

.slide-content h1 span {
    color: var(--green-pale);
}

.slide-content p {
    max-width: 650px;
    color: #f0f6f0;
    font-size: 19px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: #6fa934;
}

.button-primary:hover {
    background: #83b947;
    transform: translateY(-2px);
}

.button-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.08);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.slider-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.58);
}

.slider-arrow.prev {
    left: 16px;
}

.slider-arrow.next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.slider-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.active {
    width: 28px;
    border-color: var(--green-pale);
    border-radius: 10px;
    background: var(--green-pale);
}

/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */

.section {
    padding: 76px 24px;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.section-heading h2 {
    color: var(--green-dark);
    font-size: clamp(27px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.55;
    text-wrap: balance;
}

.section-heading > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
}

.heading-line {
    width: 66px;
    height: 4px;
    margin: 17px auto 0;
    border-radius: 4px;
    background: var(--green-bright);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-section {
    background: #ffffff;
}

.about-content {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 58px;
}

.about-mark {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, #edf7e8, #f6eff9);
}

.about-mark span {
    font-size: 64px;
    line-height: 1.5;
}

.about-mark strong {
    color: var(--green);
    font-size: 28px;
    font-weight: 800;
}

.about-mark small {
    margin-top: 4px;
    color: var(--purple);
    font-size: 14px;
}

.about-text h3 {
    margin-bottom: 14px;
    color: var(--green-dark);
    font-size: 25px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 18px;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--green);
    font-weight: 800;
}

.text-link:hover {
    color: var(--purple);
    text-decoration: underline;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    background: var(--background);
}

.services-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    padding: 28px 23px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #a6ce91;
}

.service-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--green-light);
    font-size: 28px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 19px;
    line-height: 1.6;
}

.service-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.service-note {
    max-width: 950px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

/* =========================================================
   PHOTO GALLERY PLACEHOLDER
   ========================================================= */

.gallery-section {
    background: #ffffff;
}

.gallery-empty {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    border: 2px dashed #d7e4d2;
    border-radius: 15px;
    background: #fbfdf9;
    text-align: center;
}

.gallery-symbol {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 52px;
}

.gallery-empty h3 {
    margin-bottom: 8px;
    color: var(--green-dark);
    font-size: 21px;
}

.gallery-empty p {
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   MEMBER LOGIN BANNER
   ========================================================= */

.member-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 45px max(24px, calc((100% - 1150px) / 2));
    color: #ffffff;
    background: linear-gradient(115deg, #17612c, #26783c);
}

.light-label {
    color: #d0f0ad;
}

.member-banner h2 {
    margin-bottom: 8px;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.5;
}

.member-banner p {
    color: #e3f0e4;
    font-size: 15px;
}

.button-white {
    flex-shrink: 0;
    color: var(--green-dark);
    background: #ffffff;
}

.button-white:hover {
    transform: translateY(-2px);
    background: #edf6e9;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background: var(--background);
}

.contact-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-card {
    padding: 30px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    margin-bottom: 12px;
    font-size: 33px;
}

.contact-card h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 19px;
}

.contact-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.contact-card .text-link {
    overflow-wrap: anywhere;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: #ffffff;
    background: #103f22;
}

.footer-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 24px 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 78px;
    height: 65px;
    padding: 4px;
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 21px;
    line-height: 1.5;
}

.footer-brand p {
    color: #cde4ce;
    font-size: 14px;
}

.footer-description {
    margin-top: 20px;
    color: #d5e5d7;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 24px;
}

.footer-links a {
    color: #e2efe3;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--green-pale);
}

.footer-bottom {
    padding: 17px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.footer-bottom p {
    color: #c7dccb;
    font-size: 14px;
}

/* =========================================================
   TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 10px 14px;
    }

    .nav-brand {
        margin-right: 8px;
    }

    .nav-brand img {
        width: 84px;
        height: 56px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-login {
        margin-left: 4px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slide-content {
        padding-left: 58px;
        padding-right: 58px;
    }
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {
    html {
        scroll-padding-top: 20px;
    }

    .nav-inner {
        justify-content: center;
        gap: 3px;
        padding: 8px 7px;
    }

    .nav-brand {
        width: 100%;
        margin: 0 0 5px;
    }

    .nav-brand img {
        width: 92px;
        height: 55px;
    }

    .nav-link {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .nav-login {
        margin: 4px 0 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero-slider {
        height: 500px;
    }

    .slide-image {
        object-fit: cover;
        object-position: center center;
    }

    .slide-overlay {
        background: rgba(9, 53, 27, 0.76);
    }

    .slide-content {
        padding: 35px 27px 70px;
    }

    .slide-content .eyebrow {
        max-width: calc(100% - 8px);
        margin-bottom: 13px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .slide-content h1 {
        margin-bottom: 12px;
        font-size: 34px;
        line-height: 1.45;
    }

    .slide-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .slide-content .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 285px;
        gap: 9px;
        margin-top: 19px;
    }

    .slide-content .button {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .slider-arrow.prev {
        left: 7px;
    }

    .slider-arrow.next {
        right: 7px;
    }

    .slider-dots {
        bottom: 14px;
    }

    .section {
        padding: 52px 18px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading > p {
        font-size: 14px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-mark {
        min-height: 200px;
    }

    .about-text h3 {
        font-size: 22px;
    }

    .about-text p {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 23px;
    }

    .member-banner {
        align-items: stretch;
        flex-direction: column;
        padding: 35px 22px;
    }

    .member-banner .button {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 25px 18px;
    }

    .footer-main {
        padding: 32px 20px 25px;
    }

    .footer-brand h3 {
        font-size: 18px;
    }

    .footer-links {
        gap: 12px 18px;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide {
        transition: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
