/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--gray-900);
    font-weight: 700;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary,
.btn--primary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover,
.btn--primary:hover {
    background: var(--accent-green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--gray-100);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

/* Site Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.site-header__logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-header__nav a {
    padding: 0.5rem 0.75rem;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    text-decoration: none;
}

.site-header__nav a:hover {
    color: var(--primary);
    background: var(--primary-lightest);
}

.site-header__nav a.active {
    color: var(--accent-purple);
    background: var(--accent-purple-light);
}

.site-header__cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header social icon */
.site-header__social {
    display: flex;
    align-items: center;
    color: var(--gray-500);
    transition: color 0.15s ease;
}

.site-header__social:hover {
    color: var(--primary);
    text-decoration: none;
}

.site-header__social svg {
    display: block;
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-700);
}

.hamburger svg {
    display: block;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--gray-200);
}

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

.mobile-nav a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
}

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

.mobile-nav .btn {
    margin-top: 1rem;
    justify-content: center;
}

/* Site Footer */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.site-footer__brand img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.site-footer__links {
    display: flex;
    gap: 2rem;
}

.site-footer__links a {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    transition: color 0.15s ease;
}

.site-footer__links a:hover {
    color: var(--white);
    text-decoration: none;
}

.site-footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.site-footer__social a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--font-size-sm);
}

.site-footer__social a:hover {
    color: var(--white);
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
}

.site-footer__contact a {
    color: var(--gray-400);
}

.site-footer__contact a:hover {
    color: var(--white);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--gray-700);
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.lang-switcher__btn:hover {
    background: var(--gray-200);
}

.lang-switcher__chevron {
    font-size: 0.625rem;
    transition: transform 0.15s ease;
}

.lang-switcher__menu.open + .lang-switcher__btn .lang-switcher__chevron,
.lang-switcher.open .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 200;
    min-width: 120px;
    padding: 0.25rem;
}

.lang-switcher__menu.open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--gray-700);
    border-radius: calc(var(--radius) - 2px);
    transition: background 0.1s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--primary-lightest);
    color: var(--primary);
}

.lang-option--active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile language switcher (horizontal row in mobile nav) */
.mobile-lang-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.mobile-lang-switcher .lang-option {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    font-size: var(--font-size-xs);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }

    .site-header__nav {
        display: none;
    }

    .site-header__cta .btn,
    .site-header__social {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .lang-switcher {
        display: none;
    }

    .site-footer__top {
        flex-direction: column;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
