/*
Theme core styles for FlyUp4You
*/

:root {
    --bg: #f8fbff;
    --bg-alt: #eef6ff;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #dbe7f3;
    --accent: #0ea5e9;
    --accent-2: #14b8a6;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 20px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
    --transition: all 0.25s ease;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 24%),
        var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section-title {
    margin: 0 0 1rem;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-title--left,
.section-subtitle--left {
    text-align: left;
    margin-inline: 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-kicker--light {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.bg-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 246, 255, 0.9));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}

.btn-outline {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--border);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-sm {
    min-height: 42px;
    padding: 0.75rem 1rem;
}

.btn-lg {
    min-height: 54px;
    padding: 1rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.flyup-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flyup-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flyup-field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flyup-field-full {
    grid-column: 1 / -1;
}

input,
select,
textarea,
.form-control {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 231, 243, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(219, 231, 243, 0.9);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.site-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav__menu a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.site-nav__menu a:hover {
    color: var(--text-primary);
}

.site-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.site-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
}

.site-lang-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: var(--transition);
}

.site-lang-switcher__item:hover {
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.08);
}

.site-lang-switcher__item.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
}

.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.site-footer__links,
.site-footer__meta,
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.site-footer__links h3,
.site-footer__meta h3 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1rem;
}

.site-logo--footer .site-logo__text {
    color: #fff;
}

@media (max-width: 1100px) {
    .site-header__inner {
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .site-nav__menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 1.2rem, var(--container));
    }

    .site-header {
        padding-top: 0.75rem;
    }

    .site-header__inner {
        padding: 0.9rem 1rem;
    }

    .site-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .site-actions .btn {
        flex: 1;
    }

    .site-lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}