/* ============================================================
   DexaVita — Shared Design System
   ============================================================ */

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary: #2B8A6E;
    --primary-light: #4DB890;
    --primary-dark: #1A5444;
    --cream: #FAF7F2;
    --amber: #F5A050;
    --amber-hover: #E89940;

    /* Text */
    --text-dark: #1C2B25;
    --text-medium: #4A6258;
    --text-light: #6B7B77;

    /* Borders & Surfaces */
    --border-light: #E8DFD7;
    --surface-white: #FFFFFF;
    --surface-cream: #FAF7F2;
    --surface-tint: rgba(43, 138, 110, 0.04);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(28, 43, 37, 0.06);
    --shadow-md: 0 4px 20px rgba(28, 43, 37, 0.08);
    --shadow-lg: 0 12px 40px rgba(28, 43, 37, 0.12);
    --shadow-xl: 0 20px 60px rgba(28, 43, 37, 0.16);

    /* Spacing */
    --section-pad: 5rem 2rem;
    --section-pad-mobile: 3rem 1rem;
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 16px;

    /* Transitions */
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ========== TYPOGRAPHY ========== */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 700px;
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: var(--section-pad);
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-light);
}

.site-header nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo svg {
    width: 28px;
    height: 28px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

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

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform var(--transition);
}

.nav-dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-white);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-medium);
    white-space: nowrap;
    transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
    color: var(--primary);
    background: var(--surface-tint);
}

/* Mobile dropdown items */
.mobile-dropdown-label {
    padding: 1rem 0.5rem 0.25rem;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.language-toggle button {
    background: none;
    border: none;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.language-toggle button.active {
    color: var(--primary);
    font-weight: 700;
}

.language-toggle button:hover {
    color: var(--primary);
}

.language-toggle span {
    color: var(--border-light);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-white);
    flex-direction: column;
    padding: 1.5rem;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 0.5rem;
    color: var(--text-medium);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu .language-toggle {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu .btn-primary {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--rounded-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 138, 110, 0.3);
}

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

.btn-primary.btn-amber:hover {
    background: var(--amber-hover);
    box-shadow: 0 4px 12px rgba(245, 160, 80, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--rounded-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(43, 138, 110, 0.06);
    transform: translateY(-2px);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--rounded-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--surface-white);
    border-radius: var(--rounded-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 138, 110, 0.1);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.3rem;
}

/* ========== MODAL / TOAST ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 43, 37, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: white;
    border-radius: var(--rounded-lg);
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.modal-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.modal-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-card input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--rounded-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.modal-card input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 138, 110, 0.1);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--rounded-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.show {
    display: flex;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo svg {
    stroke: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.social-icons a:hover {
    background: var(--amber);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-white { color: white; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--section-pad-mobile);
    }

    .site-header nav {
        padding: 0 1rem;
        height: 60px;
    }

    html {
        scroll-padding-top: 60px;
    }

    .mobile-menu {
        top: 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
