/**
 * Flix Theme - Global Styles
 *
 * Global styles loaded on every page.
 */

/* ================================
   CSS Variables
   ================================ */
:root {
    --base-white: #fff;
    --base-black: #000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #020617;
    --main-color-50: #eff6ff;
    --main-color-100: #dbeafe;
    --main-color-200: #bfdbfe;
    --main-color-300: #93c5fd;
    --main-color-400: #60a5fa;
    --main-color-500: #3b82f6;
    --main-color-600: #2563eb;
    --main-color-700: #1d4ed8;
    --main-color-800: #1e40af;
    --main-color-900: #1e3a8a;
    --main-color-950: #172554;
    --secondary-color-50: #eff6ff;
    --secondary-color-100: #dbeafe;
    --secondary-color-200: #bfdbfe;
    --secondary-color-300: #93c5fd;
    --secondary-color-400: #60a5fa;
    --secondary-color-500: #3b82f6;
    --secondary-color-600: #2563eb;
    --secondary-color-700: #1d4ed8;
    --secondary-color-800: #1e40af;
    --secondary-color-900: #1e3a8a;
    --secondary-color-950: #172554;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    --red-950: #450a0a;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    --orange-950: #431407;
    --yellow-50: #fffbeb;
    --yellow-100: #fef3c7;
    --yellow-200: #fde68a;
    --yellow-300: #fcd34d;
    --yellow-400: #fbbf24;
    --yellow-500: #f59e0b;
    --yellow-600: #d97706;
    --yellow-700: #b45309;
    --yellow-800: #92400e;
    --yellow-900: #78350f;
    --yellow-950: #451a03;
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;
    --green-950: #022c22;
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --cyan-800: #155e75;
    --cyan-900: #164e63;
    --cyan-950: #083344;
    --light-blue-50: #f0f9ff;
    --light-blue-100: #e0f2fe;
    --light-blue-200: #bae6fd;
    --light-blue-300: #7dd3fc;
    --light-blue-400: #38bdf8;
    --light-blue-500: #0ea5e9;
    --light-blue-600: #0284c7;
    --light-blue-700: #0369a1;
    --light-blue-800: #075985;
    --light-blue-900: #0c4a6e;
    --light-blue-950: #082f49;
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-200: #c7d2fe;
    --indigo-300: #a5b4fc;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-800: #3730a3;
    --indigo-900: #312e81;
    --indigo-950: #1e1b4b;
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-200: #ddd6fe;
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --purple-900: #4c1d95;
    --purple-950: #2e1065;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;
    --pink-950: #500724;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-800: #9f1239;
    --rose-900: #881337;
    --rose-950: #4c0519;
    --modal-background-25: rgba(17, 24, 39, 0.25);
    --modal-background-50: rgba(17, 24, 39, 0.5);
    --modal-background-75: rgba(17, 24, 39, 0.75);

    /* Semantic Color Variables */
    --color-primary: var(--blue-600);
    --color-primary-dark: var(--blue-700);
    --color-primary-light: var(--blue-50);
    --color-secondary: var(--gray-600);
    --color-secondary-dark: var(--gray-700);
    --color-text: var(--gray-900);
    --color-text-light: var(--gray-500);
    --color-text-muted: var(--gray-500);
    --color-background: var(--base-white);
    --color-background-alt: var(--gray-100);
    --color-border: var(--gray-200);
    --color-border-dark: var(--gray-300);
    --color-success: var(--green-600);
    --color-error: var(--red-600);
    --color-warning: var(--yellow-500);

    --font-family: "Onest", sans-serif;
    --second-family: "Inter", sans-serif;
    --third-family: "Roboto", sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --box-shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;

    --header-height: 80px;
}

/* ================================
   Reset & Base Styles
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html{
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    color: var(--gray-900);
}

h1 { font-size: 56px; }
h2 { font-size: 48px; }
h3 { font-size: 32px; }
h4 { font-size: 20px; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

/* ================================
   Global Focus Styles
   ================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--primary:focus-visible {
    outline-color: var(--blue-800);
    outline-offset: 2px;
}

.btn--secondary:focus-visible {
    outline-color: var(--gray-900);
    outline-offset: 2px;
}

.btn--outline:focus-visible {
    outline-color: var(--color-primary);
    outline-offset: 2px;
}

.menu-toggle:focus-visible,
.mobile-menu__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.lang-switcher__toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.notification-bar__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.offer-modal__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    padding-left: 1.5rem;
}

/* ================================
   Container
   ================================ */
.container {
    width: 100%;
    max-width: 1263px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--base-white);
}

.text-white .section-title {
    color: var(--base-white);
}

.bg-light {
    background-color: var(--gray-50);
}

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

.section-padding {
    padding: 112px 0;
}

/* Decorative border lines (left + right) — desktop only */
.has-border-lines {
    position: relative;
    overflow: hidden;
}

.has-border-lines::before,
.has-border-lines::after {
    content: '';
    position: absolute;
    top: 0;
    width: 36px;
    height: 100%;
    background-image: url('/wp-content/uploads/2026/02/flix-border-element.svg');
    background-repeat: repeat-y;
    background-size: 36px auto;
    pointer-events: none;
    z-index: 1;
}

.has-border-lines::before {
    left: 24px;
}

.has-border-lines::after {
    right: 24px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-light);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 9px 17px;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

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

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

.btn--secondary {
    background-color: var(--gray-800);
    color: white;
}

.btn--secondary:hover {
    background-color: var(--gray-900);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--color-border-dark);
}

.btn--outline:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.btn--large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn__icon {
    display: inline-flex;
    align-items: center;
}

.btn__label {
    white-space: nowrap;
}

/* ================================
   Site Header
   ================================ */
.site-header-group {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    background: var(--base-white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.site-header > .container {
    max-width: 1290px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.site-branding {
    flex-shrink: 0;
}

.site-branding__link {
    text-decoration: none;
    color: var(--gray-900);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0;
}

.site-branding .custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.primary-menu li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 20px 4px;
    padding-top: 23px;
    border-bottom: 1px solid transparent;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    text-align: center;
    color: var(--gray-900);
    transition: var(--transition);
}

.primary-menu > li > a:hover,
.primary-menu li.current-menu-item > a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

/* Dropdown arrow for items with submenus */
.primary-menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.primary-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -0.15em;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.primary-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
}

/* Dropdown submenus */
.primary-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--base-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
}

.primary-menu li:hover > ul.sub-menu {
    display: block;
}

.primary-menu li ul.sub-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-700);
    border-radius: 0;
    transition: var(--transition);
}

.primary-menu li ul.sub-menu li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Sub-submenu arrow (points right) */
.primary-menu ul.sub-menu li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-menu ul.sub-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.35em;
    height: 0.35em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Sub-submenus open to the right */
.primary-menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Mobile-only blocks — hidden on desktop */
.mobile-menu__header,
.mobile-menu__cta,
.mobile-menu__lang,
.mobile-menu__contact {
    display: none;
}

/* Header Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Language Switcher (desktop) */
/* TODO: Remove these two lines when RU content is ready */
.lang-switcher__option[hreflang="ru"],
.mobile-menu__lang-btn[hreflang="ru"] { display: none; }
.lang-switcher {
    position: relative;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 68px;
    min-height: 24px;
    padding: 6px;
    background: var(--gray-200);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 114%;
    color: var(--gray-900);
    transition: var(--transition);
    white-space: nowrap;
}

.lang-switcher__toggle:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.lang-switcher__globe {
    flex-shrink: 0;
}

.lang-switcher__chevron {
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s ease;
    color: var(--gray-500);
}

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

.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 160px;
    background: var(--base-white);
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 4px;
    z-index: 100;
}

.lang-switcher.open .lang-switcher__dropdown {
    display: block;
}

.lang-switcher__option {
    display: block;
    padding: 0.625rem 0.875rem;
    font-family: var(--third-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background 0.15s ease;
}

.lang-switcher__option:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.lang-switcher__option.active {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Lang switcher — opens upward (footer) */
.lang-switcher--up .lang-switcher__dropdown {
    top: auto;
    bottom: calc(100% + 0.5rem);
    left: auto;
    right: 0;
}

.lang-switcher--up .lang-switcher__chevron {
    transform: rotate(180deg);
}

.lang-switcher--up.open .lang-switcher__chevron {
    transform: rotate(0deg);
}

/* ================================
   Notification Bar
   ================================ */
.notification-bar-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    pointer-events: none;
}

.notification-bar {
    background: var(--base-white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
    margin-top: 8px;
}

.notification-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md, 1rem);
}

.notification-bar__content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.notification-bar__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    background: var(--main-color-600);
}

.notification-bar__text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    line-height: 1.4;
}

.notification-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.notification-bar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: var(--gray-50);
    color: var(--gray-400);
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.notification-bar__close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

@media (max-width: 768px) {
    .notification-bar__inner {
        gap: 0.5rem;
    }
    .notification-bar__text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .notification-bar__inner {
        flex-wrap: wrap;
    }
    .notification-bar__content {
        flex: 1 1 100%;
    }
    .notification-bar__actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

/* ================================
   Site Footer
   ================================ */
/* -- Footer -- */
.site-footer {
    background: var(--base-white);
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.site-footer a {
    color: var(--color-text);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-primary);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: stretch;
    gap: var(--spacing-xl);
    padding: 80px 0;
    position: relative;
    z-index: 0;
}

.site-footer__top::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--gray-50);
    z-index: -1;
}
    overflow: hidden;
}

/* Brand column */
.site-footer__logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    text-decoration: none;
}

.site-footer__logo-img {
    height: 36px;
    width: auto;
}

.site-footer__logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    font-style: italic;
}

.site-footer__tagline {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--gray-700);
    max-width: 280px;
    margin: 0;
}

/* Contact column */
.site-footer__col--contact {
    border-left: 1px solid var(--color-border);
    padding-left: var(--spacing-xl);
    margin-top: -80px;
    padding-top: 80px;
    margin-bottom: -80px;
    padding-bottom: 80px;
}

.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.site-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.site-footer__contact-list li:last-child {
    margin-bottom: 0;
}

.site-footer__contact-list svg {
    flex-shrink: 0;
    color: var(--gray-500);
}

.site-footer__contact-list a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color 0.2s;
}

.site-footer__socials a:hover {
    color: var(--color-primary);
}

.site-footer__socials svg {
    width: 20px;
    height: 20px;
}

.site-footer__col--nav {
    border-left: 1px solid var(--color-border);
    padding-left: var(--spacing-xl);
    margin-top: -80px;
    padding-top: 80px;
    margin-bottom: -80px;
    padding-bottom: 80px;
}

/* Navigation column */
.site-footer__nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.site-footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__nav-list li {
    margin-bottom: 0.625rem;
}

.site-footer__nav-list li:last-child {
    margin-bottom: 0;
}

.site-footer__nav-list a {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.site-footer__nav-list a:hover {
    color: var(--color-primary);
}

/* Bottom bar */
.site-footer__bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.site-footer__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--color-border);
}

.site-footer__copyright p {
    margin: 0;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-footer__links a {
    color: var(--gray-500);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__links a:hover {
    color: var(--color-primary);
}

/* ================================
   Page Header
   ================================ */
.page-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ================================
   Section Headers
   ================================ */
.section-header {
    margin-bottom: 80px;
}

.section-header.text-center {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.section-description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    color: var(--gray-700);
}

.section-header:not(.text-center) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.section-link:hover {
    gap: 0.6rem;
}

.section-link svg {
    width: 18px;
    height: 18px;
}

.section-footer {
    margin-top: 80px;
}

.link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 9px 15px 9px 17px;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    color: var(--gray-700);

    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background: var(--base-white);
}

.link-with-arrow:hover {
    gap: 0.6rem;
}

.link-with-arrow svg {
    width: 18px;
    height: 18px;
}

/* ================================
   Loading Spinner
   ================================ */
.spinner {
    border: 3px solid var(--color-background-alt);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   Offer Modal
   ================================ */
.offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.offer-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.offer-modal__dialog {
    background: #fff;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 64px 48px 48px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.offer-modal.is-active .offer-modal__dialog {
    transform: translateY(0);
}

.offer-modal__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: var(--transition);
}

.offer-modal__close:hover {
    color: var(--gray-900);
}

.offer-modal__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 48px;
}

.offer-modal .wpcf7-form p:last-of-type {
    text-align: center;
}

/* Success view */
.offer-modal__success-view[hidden] {
    display: none;
}

[data-cf7-form-view][hidden] {
    display: none;
}

.offer-modal__success-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.offer-modal__success-icon {
    margin-bottom: var(--spacing-lg);
}

.offer-modal__success-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.offer-modal__success-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: var(--spacing-lg);
}

.offer-modal__success-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xl);
}

.offer-modal__success-note svg {
    flex-shrink: 0;
    color: var(--gray-400);
}

.lead-form-contact__form .offer-modal__success-view {
    padding: 16px 0;
}

.lead-form-contact__form .offer-modal__success-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.lead-form-contact__form .offer-modal__success-text {
    margin-bottom: 24px;
}

.hero-form .offer-modal__success-view {
    padding: 16px 0;
}

.hero-form .offer-modal__success-title {
    font-size: 28px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .lead-form-contact__form .offer-modal__success-title,
    .hero-form .offer-modal__success-title {
        font-size: 24px;
    }
}

/* ================================
   CF7 Global Form Styles
   ================================ */
.wpcf7-form label {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    color: var(--gray-700);
}

.wpcf7-form p {
    margin-bottom: 24px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 9px 13px;
    transition: var(--transition);

    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background: var(--base-white);

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--gray-500);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--blue-100);
}

.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}

.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border-radius: 8px;
    border: none;
    padding: 13px 25px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background: var(--blue-600);

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: var(--base-white);
    cursor: pointer;
    transition: var(--transition);
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--blue-700);
}

.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"],
.wpcf7-form .wpcf7-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--base-white);
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked,
.wpcf7-form .wpcf7-checkbox input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked::after,
.wpcf7-form .wpcf7-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--base-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wpcf7-list-item{
    margin: 0px;
}
.wpcf7-list-item label {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 400;
    line-height: 1.4;
}

.wpcf7-form .wpcf7-spinner {
    display: none;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: var(--red-500) !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: var(--red-600);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-form .wpcf7-response-output {
    display: none;
}

/* ================================
   Entry Content (Generic Pages)
   ================================ */
.entry-header {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-xl) 0 0;
}

.entry-title {
    font-size: 2.25rem;
}

.entry-content {
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content img {
    border-radius: var(--border-radius);
}

/* ================================
   WordPress Core Overrides
   ================================ */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: var(--border-radius);
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.alignwide {
    max-width: 1263px;
    margin-left: auto;
    margin-right: auto;
}

/* Posts Navigation */
.posts-navigation {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a {
    font-weight: 600;
}

/* ================================
   Fancybox Overrides
   ================================ */
.fancybox__slide.has-image > .fancybox__content {
    border-radius: 24px;
    overflow: hidden;
}

.fancybox__container {
    --f-button-width: 44px;
    --f-button-height: 44px;
    --f-button-border: 1px solid var(--gray-300);
    --f-button-border-radius: 50%;
    --f-button-bg: var(--base-white);
    --f-button-color: var(--gray-600);
    --f-button-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --f-button-hover-bg: var(--base-white);
    --f-button-svg-width: 20px;
    --f-button-svg-height: 20px;
    --f-button-svg-stroke-width: 0;
    --f-button-svg-fill: currentColor;
    --f-button-svg-filter: none;
}

.fancybox__nav .f-button {
    box-shadow: var(--f-button-shadow);
    transition: border-color 0.2s, color 0.2s;
}

.fancybox__nav .f-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.fancybox__nav .f-button svg {
    stroke: none;
}

/* ================================
   Responsive — 1024px
   ================================ */
@media (max-width: 1024px) {
    /* decorative border lines */
    .has-border-lines::before,
    .has-border-lines::after {
        display: none;
    }

    /* Footer 1024px */
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
    .site-footer__col--contact {
        border-left: none;
        padding-left: 0;
        margin-top: 0;
        padding-top: var(--spacing-lg);
        margin-bottom: 0;
        padding-bottom: 0;
        border-top: 1px solid var(--color-border);
    }
    .site-footer__col--nav {
        border-left: none;
        padding-left: 0;
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Header Mobile - 1024px */
    .site-header-group {
        z-index: 1001;
    }
    .site-header {
        height: auto;
        padding: var(--spacing-sm) 0;
    }
    .site-header__inner {
        flex-wrap: wrap;
    }
    .site-branding {
        flex: 1;
    }
    .site-header__actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .site-header__actions .btn--cta{
        display: none;
    }
    .site-header .lang-switcher {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    /* Full-screen mobile menu overlay */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--base-white);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: var(--spacing-lg) var(--spacing-md);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .main-navigation.toggled {
        transform: translateX(0);
        visibility: visible;
    }
    .mobile-menu__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-lg);
        flex-shrink: 0;
    }
    .mobile-menu__logo {
        display: flex;
        align-items: center;
    }
    .mobile-menu__logo-img {
        max-height: 40px;
        width: auto;
    }
    .mobile-menu__logo-text {
        font-family: var(--main-family);
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gray-900);
    }
    .mobile-menu__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--gray-600);
        padding: 0;
        flex-shrink: 0;
        transition: color 0.2s ease;
    }
    .mobile-menu__close:hover {
        color: var(--gray-900);
    }
    .mobile-menu__cta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: var(--spacing-xl);
        flex-shrink: 0;
    }
    .mobile-menu__cta .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .mobile-menu__lang {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        flex-shrink: 0;
        color: var(--gray-500);
    }
    .mobile-menu__lang-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-600);
    }
    .mobile-menu__lang-toggle {
        display: flex;
        gap: 4px;
        margin-left: auto;
        background: var(--base-white);
        border: none;
        border-radius: 6px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 4px;
    }
    .mobile-menu__lang-btn {
        padding: 0.625rem 0.875rem;
        font-family: var(--third-family);
        font-size: 1rem;
        font-weight: 500;
        color: var(--gray-700);
        border: none;
        border-radius: var(--border-radius);
        background: transparent;
        cursor: pointer;
        transition: background 0.15s ease;
        white-space: nowrap;
        width: auto;
    }
    .mobile-menu__lang-btn:hover {
        background: var(--gray-50);
        color: var(--gray-900);
    }
    .mobile-menu__lang-btn.active {
        background: var(--gray-100);
        color: var(--gray-900);
    }
    .primary-menu {
        flex-direction: column;
        padding: 0;
        gap: 0;
        flex: 1;
    }

    .primary-menu > li{
        width: 100%;
    }
    .primary-menu li a {
        padding: 0.75rem 0;
        border-bottom: none;
        font-size: 1.375rem;
        font-weight: 700;
        color: var(--gray-900);
    }
    .primary-menu > li > a {
        font-family: var(--font-family);
        font-weight: 700;
        font-size: 28px;
        line-height: 120%;
        color: var(--gray-900);
        text-align: start;
    }
    .primary-menu > li > a:hover,
    .primary-menu li.current-menu-item > a {
        border-bottom: none;
    }
    .primary-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: var(--spacing-md);
        min-width: auto;
        display: none;
    }
    .primary-menu li ul.sub-menu li a {
        font-size: 1.05rem;
        font-weight: 500;
        padding: 0.5rem 0;
    }
    .primary-menu ul.sub-menu ul.sub-menu {
        top: auto;
        left: auto;
    }
    .primary-menu li:hover > ul.sub-menu {
        display: none;
    }
    .primary-menu li.menu-item-has-children > ul.sub-menu.open {
        display: block;
    }
    .primary-menu li.menu-item-has-children > a::after {
        transform: rotate(45deg) !important;
        transition: transform 0.2s ease;
    }
    .primary-menu li.menu-item-has-children.submenu-open > a::after {
        transform: rotate(-135deg) !important;
    }
    .mobile-menu__contact {
        display: block;
        margin-top: auto;
        flex-shrink: 0;
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--gray-100);
    }
    .mobile-menu__contact-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-menu__contact-list li {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    .mobile-menu__contact-list li:last-child {
        margin-bottom: 0;
    }
    .mobile-menu__contact-list li img,
    .mobile-menu__contact-list li svg {
        flex-shrink: 0;
        color: var(--gray-500);
    }
    .mobile-menu__contact-list li a,
    .mobile-menu__contact-list li span {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 16px;
        line-height: 150%;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        color: var(--gray-900);
        transition: color 0.2s ease;
    }
    .mobile-menu__contact-list li span {
        text-decoration: none;
    }
    .mobile-menu__contact-list li a:hover {
        color: var(--color-primary);
    }
    body.menu-open {
        overflow: hidden;
    }
}

/* ================================
   Responsive — 768px
   ================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .section-padding {
        padding: 48px 0;
    }

    /* Footer Mobile */
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 48px 0;
        overflow: visible;
    }
    .site-footer__col--brand {
        grid-column: auto;
    }
    .site-footer__tagline {
        max-width: none;
    }
    .site-footer__col--contact {
        border-top: 0px;
        padding-top: var(--spacing-lg);
    }
    .site-footer__col--nav {
        border-top: 0px;
        padding-top: var(--spacing-lg);
    }
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        text-align: left;
    }
    .site-footer__links {
        order: 1;
    }
    .site-footer__bottom .lang-switcher {
        order: 2;
    }
    .site-footer__copyright {
        order: 3;
    }
    .site-footer__links {
        display: grid;
        justify-content: start;
    }

    /* Page Header Mobile */
    .page-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 32px;
    }
    .section-description {
        font-size: 16px;
    }
    .section-header:not(.text-center) {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   Responsive — 480px
   ================================ */
@media (max-width: 480px) {
    .section-header{
        margin-bottom: 32px;
    }

    .section-footer{
        margin-top: 48px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Offer Modal — slides up from bottom on mobile */
    .offer-modal {
        align-items: flex-end;
    }
    .offer-modal__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        padding: 48px 20px 24px;
        transform: translateY(100%);
    }
    .offer-modal__close {
        top: 16px;
        right: 16px;
    }
    .offer-modal__title {
        font-size: 32px;
        margin-bottom: 32px;
    }
    .offer-modal.is-active .offer-modal__dialog {
        transform: translateY(0);
    }
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

