/* ==========================================================================
   TPDA Components — Indiaspora-inspired
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */
.main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.main-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.main-btn:hover svg path { stroke: white; }

.main-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.main-btn-fill {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.main-btn-fill:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.main-btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
}
.main-btn-white:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: gap var(--transition);
}
.btn-arrow:hover { gap: 10px; }

/* ==========================================================================
   Section Label (orange span above headings)
   ========================================================================== */
.section-label {
    display: block;
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.sec-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled .nav-links a { color: var(--text-body); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .logo-text { color: var(--text-dark); }
.navbar.scrolled .mobile-toggle span { background: var(--text-dark); }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 44px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-links .nav-cta {
    background: var(--accent) !important;
    color: white !important;
    border-radius: 4px !important;
    margin-left: 8px;
    font-weight: 600 !important;
}
.nav-links .nav-cta:hover { opacity: 0.9; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.95);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all var(--transition);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-footer);
    padding: 56px 0 0;
}

.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-img { height: 48px; }
.footer-brand .logo-text { color: var(--text-dark); font-size: 1rem; }

.footer-nav {
    display: flex;
    gap: 32px;
    margin-top: 12px;
}

.footer-nav a {
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 500;
}
.footer-nav a:hover { color: var(--primary); }

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    background: white;
    color: var(--text-dark);
}

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

.newsletter-form button {
    padding: 12px 24px;
    background: var(--bg-dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.newsletter-form button:hover { background: var(--primary); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.82rem;
    transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.85rem; color: var(--text-body); }
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    transition: border var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
input::placeholder, textarea::placeholder { color: var(--text-light); }
textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Simple footer for subpages */
.footer-simple { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }
.footer-simple a { color: var(--primary); }

/* Page header for subpages */
.page-header { padding: 120px 24px 48px; text-align: center; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.page-header p { color: var(--text-body); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.88rem; font-weight: 500; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; height: 64px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active, .nav-links.open { display: flex; }
    .nav-links a { color: var(--text-body) !important; padding: 10px 16px; }
    .mobile-toggle { display: flex; }
    .logo-text { display: none; }
    .lang-switcher { top: auto; bottom: 16px; right: 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
}
