/*
 * Panchayat — Base Stylesheet
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1E3A5F;
    --primary-dark: #152C47;
    --primary-light: #2B5080;
    --accent: #D4A853;
    --accent-dark: #B8893A;
    --accent-light: #E0BE7A;
    --accent-bg: rgba(212, 168, 83, 0.08);
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.3; color: var(--primary); }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--off-white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent);
    margin-bottom: 14px;
}
.section-label::before {
    content: ''; display: inline-block; width: 32px; height: 2px; background: var(--accent);
}

.section-heading {
    font-size: 38px; font-weight: 800; margin-bottom: 18px; line-height: 1.2;
    color: var(--primary);
}
.section-dark .section-heading { color: var(--white); }

.section-subtext {
    font-size: 17px; color: var(--gray-500); max-width: 700px; line-height: 1.7;
}
.section-dark .section-subtext { color: rgba(255, 255, 255, 0.8); }

.section-header-center {
    text-align: center; max-width: 750px; margin: 0 auto 56px;
}
.section-header-center .section-subtext { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; font-weight: 600; font-size: 14px; font-family: inherit;
    border-radius: var(--radius); cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); white-space: nowrap;
}
.btn i { font-size: 13px; }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 168, 83, 0.3); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
.btn-outline-accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 42px; height: 42px; background: var(--primary); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-weight: 800; font-size: 18px;
    box-shadow: var(--shadow-sm);
}
.logo-text-group h2 { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; margin: 0; }
.logo-text-group span { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav .nav-link {
    font-size: 14px; font-weight: 600; color: var(--gray-700);
    padding: 8px 0; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--accent); }
.main-nav .nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: var(--transition);
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { width: 100%; }

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

/* Mobile Toggle */
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--primary); cursor: pointer; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); }
.footer-bottom-bar {
    padding: 24px 0;
}
.footer-bottom-bar .container {
    display: flex; justify-content: center; align-items: center;
}
.footer-bottom-bar p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 12px 16px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--gray-50);
    outline: none; transition: var(--transition); color: var(--text-color);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15); background: var(--white); }
textarea.form-input { resize: vertical; min-height: 120px; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--error-light); color: #991b1b; border: 1px solid #fecaca; }

/* ===== HOME PLACEHOLDER ===== */
.home-placeholder {
    min-height: calc(100vh - 72px - 57px);
    display: flex; align-items: center;
    background: var(--off-white);
}
.home-placeholder .placeholder-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 16px;
}
.home-placeholder h1 { font-size: 48px; color: var(--primary); margin-bottom: 12px; }
.home-placeholder .placeholder-sub { font-size: 16px; color: var(--gray-500); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 16px 24px; border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md); gap: 4px;
    }
    .main-nav.active { display: flex; }
    .main-nav .nav-link { padding: 10px 0; width: 100%; }
    .header-cta { display: none; }
    .section-heading { font-size: 28px; }
    .section { padding: 60px 0; }
}
