@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0F3D2E;
    --primary-light: #195E47;
    --accent: #D97706;
    --accent-bright: #F59E0B;
    --crimson: #B91C1C;
    --bg: #FFFDF7;
    --surface: #FFFFFF;
    --surface-soft: #F3F8F5;
    --text: #1F2937;
    --text-muted: #4B5563;
    --border: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(15, 61, 46, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 61, 46, 0.10);
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Tamil', 'Mukta Malar', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-strip {
    background: linear-gradient(90deg, #09291E, var(--primary));
    color: #FEF3C7;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-strip a {
    color: #FDE68A;
    font-weight: 600;
}

.top-strip a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.78rem;
    color: var(--crimson);
    font-weight: 600;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary);
    color: #FFFFFF;
}

.nav-links a.cms-btn {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
    margin-left: 6px;
}

.nav-links a.cms-btn:hover {
    background-color: var(--accent);
    color: #FFFFFF;
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0B2E22 0%, #144B38 55%, #1E5F47 100%);
    color: #FFFFFF;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-bright);
    color: #FDE68A;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #FDE68A;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero p {
    color: #E5E7EB;
    font-size: 1.02rem;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #111827;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.hero-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid var(--accent-bright);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Page Header */
.page-banner {
    background: linear-gradient(135deg, #0B2E22, #185640);
    color: #FFFFFF;
    padding: 42px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}

.page-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 6px;
}

.page-banner p {
    color: #FDE68A;
    font-size: 1rem;
}

/* Main Content & Blocks */
.section {
    padding: 52px 0;
}

.blocks-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.block-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.block-text h3,
.block-media h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FEF3C7;
}

.block-text p {
    font-size: 1.03rem;
    color: var(--text);
    white-space: pre-line;
}

/* Image Block */
.block-image-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #F9FAFB;
    border: 1px solid var(--border);
    margin-top: 12px;
}

.block-image-frame img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.block-image-frame img:hover {
    transform: scale(1.015);
}

.block-caption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.98rem;
    white-space: pre-line;
}

/* Video & YouTube */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 12px;
    background: #000;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.native-video-wrap {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.native-video-wrap video {
    width: 100%;
    max-height: 520px;
    display: block;
}

/* Service Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: zoom-in;
}

.service-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h4 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card-body p {
    color: var(--text-muted);
    font-size: 0.96rem;
    white-space: pre-line;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-item-caption {
    padding: 14px 16px;
}

.gallery-item-caption h4 {
    font-size: 1.04rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-item-caption p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    margin-top: 28px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h4 {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text);
    font-size: 1rem;
    word-break: break-word;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.alert-success {
    background: #ECFDF5;
    border: 1px solid #10B981;
    color: #065F46;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #EF4444;
    color: #991B1B;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
}

.map-wrap {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* Footer */
.footer {
    background: #0B2E22;
    color: #D1FAE5;
    padding: 48px 0 24px;
    margin-top: 56px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h3,
.footer h4 {
    color: #FDE68A;
    margin-bottom: 14px;
    font-weight: 800;
}

.footer p,
.footer li {
    font-size: 0.94rem;
    color: #D1D5DB;
    margin-bottom: 8px;
}

.footer ul {
    list-style: none;
}

.footer ul a:hover {
    color: #FDE68A;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.88rem;
    color: #9CA3AF;
}

/* Floating Quick Contact Buttons */
.floating-actions {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: scale(1.05);
}

.float-whatsapp {
    background: #16A34A;
}

.float-call {
    background: var(--crimson);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
        align-items: stretch;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a.cms-btn {
        margin-left: 0;
        text-align: center;
    }
}

