@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&family=Nunito:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Colors */
    --primary: #F59E0B;
    --primary-hover: #d97706;
    /* roughly -600 */
    --secondary: #1E3A8A;

    --bg-light: #FAFAFA;
    --bg-dark: #111827;

    --surface-light: #FFFFFF;
    --surface-dark: #1F2937;

    --text-light: #333333;
    --text-dark: #E5E7EB;

    --accent-green: #4CAF50;
    --footer-bg: #F3E5D0;
    --footer-bg-dark: #1F1D18;

    /* Fonts */
    --font-display: 'Bitter', serif;
    --font-sans: 'Nunito', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    line-height: 1.5;
}

body.dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-primary {
    color: var(--primary);
}

.font-display {
    font-family: var(--font-display);
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Navbar Styles (can be moved layout.css later) */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    height: var(--header-height);
    transition: all var(--transition-normal);
}

body.dark .main-navbar {
    background-color: rgba(31, 41, 55, 0.95);
    border-bottom-color: #374151;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

/* Light mode defaults */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* Dark mode overrides */
body.dark .logo-light {
    display: none;
}

body.dark .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    position: relative;
    padding-bottom: 2px;
}

body.dark .nav-link {
    color: #d1d5db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    color: #6b7280;
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: #f3f4f6;
}

body.dark .theme-toggle:hover {
    background-color: #1f2937;
}

/* Language Selector */
.lang-container {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    color: #6b7280;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background-color: #f3f4f6;
    color: var(--primary);
}

body.dark .lang-btn {
    color: #9ca3af;
}

body.dark .lang-btn:hover {
    background-color: #1f2937;
    color: var(--primary);
}

.lang-modal {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 160px;
    z-index: 100;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.lang-modal.show {
    display: flex;
}

body.dark .lang-modal {
    background-color: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    color: #374151;
}

body.dark .lang-option {
    color: #d1d5db;
}

.lang-option:hover {
    background-color: #f3f4f6;
}

body.dark .lang-option:hover {
    background-color: #374151;
}

.lang-option.active {
    background-color: rgba(245, 158, 11, 0.1);
    /* primary with opacity */
    color: var(--primary);
    font-weight: 600;
}

body.dark .lang-option.active {
    background-color: rgba(245, 158, 11, 0.2);
}

.lang-option img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

body.dark .menu-toggle {
    color: var(--text-dark);
}

/* Footer Styles */
.main-footer {
    background-color: var(--footer-bg);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    transition: background-color var(--transition-normal);
}

body.dark .main-footer {
    background-color: var(--footer-bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
    width: max-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body.dark .social-btn {
    background-color: #1f2937;
    color: #d1d5db;
}

.social-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.legal-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legal-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: #9ca3af;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.legal-links a:hover .legal-dot {
    background-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

body.dark .footer-bottom {
    border-top-color: #374151;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
        /* simple hide for now, need mobile menu logic */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    body.dark .nav-links {
        background-color: #1f2937;
    }

    .menu-toggle {
        display: block;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
    /* Slight adjustment for better visual centering */
}