﻿/* ==========================================================================
   Aavin Nilgiri — Design tokens
   Palette: deep pine forest (trust) + Nilgiri mountain-mist blue + turmeric
   gold accent. Type: Fraunces (display) / Public Sans (the typeface built
   for government digital services — used here deliberately).
   Signature motif: layered blue-green ridge line + a circular co-op seal.
   ========================================================================== */

:root {
    --forest: #0E3D2E;
    --forest-deep: #082922;
    --forest-tint: #EAF1EC;
    --blue-mist: #2F5C74;
    --blue-mist-light: #6C99AC;
    --cream: #FAF6EC;
    --cream-deep: #F1E8D4;
    --gold: #C1862C;
    --gold-deep: #94661C;
    --ink: #152420;
    --line: #DED0AF;
    --white: #FFFFFF;
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 14px;
    --shadow-soft: 0 12px 32px rgba(8, 41, 34, 0.12);
    --shadow-lift: 0 18px 40px rgba(8, 41, 34, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
}

h1, h2, h3, h4, .brand-text-en, .display-serif {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--forest-deep);
    letter-spacing: -0.01em;
}

p {
    color: #3C4A42;
}

a {
    color: var(--blue-mist);
    text-decoration: none;
}

    a:hover {
        color: var(--gold-deep);
    }

    a:focus-visible, button:focus-visible, .nav-link:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 2px;
        border-radius: 3px;
    }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--forest-deep);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}

    .skip-link:focus {
        left: 0;
    }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

/* ==========================================================================
   Government identity strip
   ========================================================================== */
.gov-strip {
    background: var(--forest-deep);
    color: #CFE0D2;
    font-size: 0.8rem;
    padding: 0.45rem 0;
    letter-spacing: 0.01em;
    border-bottom: 2px solid var(--gold);
}

.gov-strip-text {
    opacity: 0.95;
}

.gov-strip-secondary {
    opacity: 0.65;
    font-family: var(--font-display);
}

/* ==========================================================================
   Header / navbar
   ========================================================================== */
.site-navbar {
    background: var(--cream);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    height: 52px;
    width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text-en {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--forest-deep);
    line-height: 1.15;
}

.brand-text-ta {
    font-size: 0.72rem;
    color: var(--blue-mist);
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
}

.navbar-nav .nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        background: var(--forest-tint);
        color: var(--forest-deep);
    }

.navbar-toggler {
    color: var(--forest-deep);
}

/* Buttons */
.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--white);
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

    .btn-gold:hover {
        background: var(--gold-deep);
        border-color: var(--gold-deep);
        color: var(--white);
    }

    .btn-gold:active {
        transform: translateY(1px);
    }

.btn-outline-forest {
    border: 1.5px solid var(--forest);
    color: var(--forest-deep);
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: all 0.15s ease;
}

    .btn-outline-forest:hover {
        background: var(--forest);
        color: var(--white);
    }

.btn-outline-light-line {
    border: 1.5px solid rgba(255,255,255,0.55);
    color: var(--white);
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: transparent;
    transition: all 0.15s ease;
}

    .btn-outline-light-line:hover {
        background: var(--white);
        color: var(--forest-deep);
    }

/* Off-canvas mobile menu */
.offcanvas-aavin {
    background: var(--forest-deep);
    color: var(--cream);
    width: 300px;
}

    .offcanvas-aavin .brand-mark-sm {
        gap: 0.6rem;
    }

        .offcanvas-aavin .brand-mark-sm .brand-logo {
            height: 36px;
            width: 36px;
            background: var(--white);
            border-radius: 50%;
            padding: 3px;
        }

    .offcanvas-aavin .brand-text-en {
        color: var(--white);
        font-size: 1.05rem;
    }

    .offcanvas-aavin .nav-link {
        color: #CFE0D2;
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

        .offcanvas-aavin .nav-link:hover {
            color: var(--white);
            background: rgba(255,255,255,0.06);
            border-radius: var(--radius-sm);
        }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(100deg, rgba(8,41,34,0.90) 0%, rgba(8,41,34,0.72) 38%, rgba(8,41,34,0.30) 68%, rgba(8,41,34,0.08) 100%), url('https://images.unsplash.com/photo-1748753778598-2e5c4244e90e?w=2000&q=80&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    padding: 6.5rem 0 5rem;
    overflow: hidden;
}

    .hero .eyebrow {
        color: var(--gold);
    }

    .hero h1 {
        color: var(--white);
        font-size: clamp(2.3rem, 4.2vw, 3.6rem);
        line-height: 1.06;
    }

    .hero .tamil-line {
        color: var(--blue-mist-light);
        font-size: 0.95rem;
        font-weight: 600;
    }

.hero-lede {
    color: #DCE7DF;
    max-width: 46ch;
    font-size: 1.05rem;
}

.stat-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    padding: 0.9rem 0.6rem;
    backdrop-filter: blur(4px);
}

    .stat-pill .num {
        font-size: 1.4rem;
        color: var(--gold);
        margin-bottom: 0.15rem;
    }

    .stat-pill .lbl {
        font-size: 0.76rem;
        color: #DCE7DF;
        font-weight: 600;
    }

/* Co-operative seal badge */
.seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

    .seal-badge .seal-caption {
        font-size: 0.78rem;
        color: #CFE0D2;
        line-height: 1.3;
    }

        .seal-badge .seal-caption strong {
            display: block;
            color: var(--white);
            font-family: var(--font-display);
            font-size: 0.95rem;
        }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 5.5rem 0;
}

.section-tight {
    padding: 2.5rem 0;
}

.section-forest {
    background: var(--forest-deep);
    color: #DCE7DF;
    padding: 5.5rem 0;
}

    .section-forest .eyebrow {
        color: var(--gold);
    }

    .section-forest h2 {
        color: var(--white);
    }

.photo-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

    .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .photo-frame.ratio-4-3 {
        aspect-ratio: 4 / 3;
    }

    .photo-frame.ratio-16-9 {
        aspect-ratio: 16 / 9;
    }

.card-aavin {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .card-aavin:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lift);
    }

    .card-aavin.dark {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.14);
        color: #DCE7DF;
    }

        .card-aavin.dark h3 {
            color: var(--white);
        }

.icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-tint);
    color: var(--forest-deep);
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.card-aavin.dark .icon-wrap {
    background: rgba(193,134,44,0.18);
    color: var(--gold);
}

.chip {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--forest-tint);
    color: var(--forest-deep);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}

/* Quality banner (photo section) */
.quality-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(120deg, rgba(8,41,34,0.88) 10%, rgba(47,92,116,0.55) 100%), url('https://images.unsplash.com/photo-1550583724-b2692b85b150?w=1800&q=80&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    padding: 3.2rem 2.2rem;
}

    .quality-banner h2 {
        color: var(--white);
    }

    .quality-banner .metric {
        border-left: 2px solid var(--gold);
        padding-left: 0.9rem;
    }

        .quality-banner .metric .num {
            font-family: var(--font-display);
            font-size: 1.6rem;
            color: var(--gold);
        }

        .quality-banner .metric .lbl {
            font-size: 0.82rem;
            color: #DCE7DF;
        }

.contact-strip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

    .contact-strip i {
        font-size: 1.5rem;
        color: var(--gold-deep);
    }

/* ==========================================================================
   Signature motif — layered Nilgiri ridge line
   ========================================================================== */
.ridge-divider {
    width: 100%;
    line-height: 0;
    background: var(--cream);
}

    .ridge-divider svg {
        width: 100%;
        height: 60px;
        display: block;
    }

.ridge-back {
    fill: var(--blue-mist-light);
    opacity: 0.35;
}

.ridge-mid {
    fill: var(--blue-mist);
    opacity: 0.55;
}

.ridge-front {
    fill: var(--forest-deep);
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--forest-deep);
    color: #C9D6CB;
    padding: 3.5rem 0 1.5rem;
    font-size: 0.92rem;
}

    .site-footer h5 {
        color: var(--white);
        font-family: var(--font-body);
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
    }

    .site-footer a {
        color: #C9D6CB;
    }

        .site-footer a:hover {
            color: var(--gold);
        }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-logo {
    height: 70px;
    width: 100px;
    object-fit: contain;
    background: var(--white);
    border-radius: 1%;
    padding: 4px;
}

.footer-brand h5 {
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: #8FA692;
}
.site-footer {
    position: relative;
    padding-top: 56px;
    padding-bottom: 24px;
}

.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8862F 0%, #C1862C 50%, #B8862F 100%);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-sub {
    display: block;
    font-size: 0.75rem;
    color: #B7C7BE;
    margin-top: 2px;
}

.footer-about {
    color: #C7D3CC;
    line-height: 1.65;
    max-width: 34ch;
}

.footer-seal-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(241,232,212,0.12);
}

.footer-seal-caption {
    font-size: 0.7rem;
    color: #9FB1A8;
    line-height: 1.4;
}

.footer-heading {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F1E8D4;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(184,134,47,0.4);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #C7D3CC;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, gap 0.15s ease;
}

    .footer-links a i {
        font-size: 0.65rem;
        color: #B8862F;
    }

    .footer-links a:hover {
        color: #F1E8D4;
        gap: 9px;
    }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: #C7D3CC;
    line-height: 1.5;
}

.footer-contact i {
    color: #B8862F;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #C7D3CC;
    text-decoration: none;
}

    .footer-contact a:hover {
        color: #F1E8D4;
    }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(241,232,212,0.12);
    font-size: 0.78rem;
    color: #9FB1A8;
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero {
        padding: 4.5rem 0 3.5rem;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 42px;
        width: 42px;
    }

    .brand-text-en {
        font-size: 1.1rem;
    }

    .site-navbar {
        padding: 0.65rem 0;
    }

    .section {
        padding: 3.5rem 0;
    }

    .quality-banner {
        padding: 2.2rem 1.4rem;
    }
}
.gov-strip {
    padding: 10px 0;
}

.gov-strip-logo {
    height: 56px;
    width: auto;
}

.gov-strip-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.gov-strip-subtitle {
    font-size: 1rem;
    color: #f1e8d4;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .gov-strip-title {
        font-size: 1.1rem;
    }

    .gov-strip-subtitle {
        font-size: 0.75rem;
    }

    .gov-strip-logo {
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* Larger full-width map on Contact page */
.map-frame-large iframe {
    height: 480px;
}

@media (max-width: 767.98px) {
    .map-frame-large iframe {
        height: 320px;
    }
}
