/* ==========================================================================
   CS Development — main stylesheet
   Structure follows HVB/website/css/style.css:
   reset · tokens · base · top bar · header/nav · hero slider · sections ·
   cards · footer · back-to-top · AOS · responsive
   ========================================================================== */

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

:root {
    /* Color Scheme - taken from the slider images:
       deep blue (#2f4f9f) → lavender (#7781a8) → pink (#e7b1c6) / rose (#ce777c) */
    --primary: #3a4fa0;          /* slider blue — links, headings accents, buttons */
    --primary-dark: #252b66;     /* deep indigo — footer, hover */
    --primary-light: #7b86c4;    /* lavender */
    --primary-soft: #eef0fa;     /* soft lavender backgrounds */
    --violet: #6f6aae;           /* middle of the gradient */
    --rose: #b05a7c;             /* deep rose — white text stays readable on it */
    --pink: #e79ab2;             /* light pink accent — dots, icons on dark */
    --pink-soft: #fbeef3;        /* soft pink backgrounds */
    --accent: var(--pink);
    --gradient-brand: linear-gradient(120deg, #2f4f9f 0%, #6f6aae 52%, #b05a7c 100%);
    --gradient-soft: linear-gradient(120deg, #eef0fa 0%, #f6eef7 50%, #fbeef3 100%);
    --gradient-line: linear-gradient(90deg, #3a4fa0, #8f7cc0 55%, #e79ab2);
    --text-graphite: #2e3742;
    --gray-dark: #1f2937;
    --gray-medium: #5f6b76;
    --gray-light: #f4f3fa;
    --border: rgba(37, 43, 102, 0.08);
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-main: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;
    --header-h: 96px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(37, 43, 102, 0.08);
    --shadow-md: 0 8px 25px rgba(37, 43, 102, 0.12);
    --shadow-lg: 0 15px 50px rgba(37, 43, 102, 0.15);
    --shadow-brand: 0 8px 25px rgba(111, 106, 174, 0.30);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-padding-top: calc(var(--header-h) + 10px);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-graphite);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

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

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

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

:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--gray-dark);
}

p {
    line-height: 1.8;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Themed icons: line icons painted with the site gradient */
.ticon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    stroke: url(#csd-grad);
    transition: stroke 0.3s ease;
}

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
}

/* ==========================================================================
   Top bar (kept from the old site: phone, email, language)
   ========================================================================== */
.topbar {
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    position: relative;
}

.topbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 0%, rgba(255, 255, 255, 0.14), transparent 45%);
    pointer-events: none;
}

.topbar .container {
    position: relative;
    z-index: 1;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 20px;
}

.topbar-contacts {
    display: flex;
    gap: 26px;
    list-style: none;
}

.topbar-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.topbar-contacts a:hover {
    color: var(--white);
}

.topbar-contacts .icon {
    width: 26px;
    height: 26px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

/* Language switch */
/* Language switch — segmented pill */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 7px;
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.lang-switch a[aria-current="true"] {
    color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(37, 43, 102, 0.25);
}

.lang-switch .flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* ==========================================================================
   Header Styles (HVB pattern, sticky instead of fixed so the top bar can scroll away)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gradient-line);
    opacity: 0;
    transition: var(--transition);
}

.header.scrolled::after {
    opacity: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    transition: var(--transition);
}

.header.scrolled .header-content {
    height: 76px;
}

.logo a {
    display: block;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.02);
}

.logo img {
    display: block;
    height: 66px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 54px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-line);
    transition: var(--transition);
    border-radius: 2px;
}

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

/* Extras shown only inside the mobile menu */
.nav-extra {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--gray-dark);
    transition: var(--transition);
}

/* ==========================================================================
   Hero slider — rebuild of the old Revolution Slider
   (3 slides, fade, arrows, dots, timer bar, captions sliding in one by one)
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #6f6aae;
    color: var(--white);
    touch-action: pan-y;
}

.hero-slider__track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 0.8s ease, visibility 0s;
}

.hero-slide.is-leaving {
    visibility: visible;
    z-index: 1;
}

.hero-slide__bg,
.hero-slide__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide__bg img {
    object-fit: cover;
    object-position: center;
}

.hero-slide__bg--flip img {
    transform: scaleX(-1);
}

.cap-text strong {
    font-weight: 700;
}

/* light veil so white text stays readable on the pale photos */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 30, 80, 0.22), rgba(30, 30, 80, 0.06) 55%, rgba(30, 30, 80, 0.16));
    pointer-events: none;
}

.hero-slide__stage {
    list-style: none;
    position: relative;
    z-index: 3;
    max-width: 1170px;
    height: 100%;
    margin: 0 auto;
}

/* Caption positioning: --x / --y are the old Revolution Slider data-x / data-y
   values in a 1170 x 500 stage, converted to percentages so the layout scales. */
.cap {
    position: absolute;
    left: calc(var(--x, 0) * 100% / 1170);
    top: calc(var(--y, 0) * 100% / 500);
    color: var(--white);
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

/* Entry directions (old sfl / sfr / sft / sfb) */
.cap--from-left   { --from: translateX(-60px); }
.cap--from-right  { --from: translateX(60px); }
.cap--from-top    { --from: translateY(-50px); }
.cap--from-bottom { --from: translateY(50px); }

/* Animation — only when JS is running (no-JS shows everything) */
.js .hero-slide .cap {
    opacity: 0;
    transform: var(--from, none);
    transition: none;
}

.js .hero-slide.is-active .cap {
    opacity: 1;
    transform: none;
    transition:
        opacity 700ms ease var(--delay, 0ms),
        transform 700ms var(--ease-out-back) var(--delay, 0ms);
}

.js .hero-slide.is-leaving .cap {
    opacity: 1;
    transform: none;
}

/* Speech bubble (old .caption.text) */
.cap-bubble {
    padding: 14px 28px 14px 35px;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-size: 16.5px;
    line-height: 1.6;
}

.cap-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    margin-top: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid rgba(255, 255, 255, 0.25);
}

.cap-bubble h2 {
    color: var(--white);
    font-size: 26px;
    line-height: 33px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cap-bubble p {
    line-height: 1.6;
}

/* Vertical list with a connecting line (old .caption.item-list) */
.cap-list {
    padding-left: 40px;
    font-size: 17.5px;
    line-height: 26px;
}

.cap-list::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--white);
}

.cap-list::after {
    content: '';
    position: absolute;
    left: 5px;
    top: -5px;
    height: 45px;
    border-left: 1px solid rgba(255, 255, 255, 0.85);
}

.cap-list--alt {
    padding-left: 60px;
    font-size: 26px;
    line-height: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cap-list--alt::before {
    left: 0;
    top: -3px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.cap-list--alt::after {
    content: none;
}

/* Titles and text lines (old .caption.title / .caption.text-2) */
.cap-title {
    font-size: 50px;
    line-height: 60px;
    font-weight: 300;
    text-align: right;
}

.cap-title--lg {
    font-size: 55px;
}

.cap-title strong {
    font-weight: 700;
    text-transform: uppercase;
}

.cap-text {
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    text-align: right;
}

/* safety: long lines wrap inside the stage instead of running off the edge */
.cap-title,
.cap-text {
    max-width: calc((1170 - var(--x, 0)) * 100% / 1170 - 20px);
    white-space: normal;
}

.cap-text .sep {
    opacity: 0.7;
    margin: 0 4px;
}

/* Arrows (old soloArrow left / right, 20px offset, vertically centred) */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 66px;
    margin-top: -33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--white);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-slider__arrow svg {
    width: 26px;
    height: 46px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
    opacity: 1;
}

.hero-slider__arrow--prev { left: 10px; }
.hero-slider__arrow--next { right: 10px; }
.hero-slider__arrow--prev:hover { transform: translateX(-3px); }
.hero-slider__arrow--next:hover { transform: translateX(3px); }

/* Dots (old round bullets, bottom centre, 30px offset) */
.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    display: flex;
    gap: 2px;
    transform: translateX(-50%);
}

.hero-slider__dots button {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider__dots button::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--white);
    background: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-slider__dots button:hover::before,
.hero-slider__dots button[aria-selected="true"]::before {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(231, 154, 178, 0.75);
    transform: scale(1.1);
}

/* Timer bar (old hideTimerBar: off) */
.hero-slider__timer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.12);
}

.hero-slider__timer span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8f9ee0, var(--pink), var(--white));
    opacity: 0.9;
}

/* ==========================================================================
   Section Styles (HVB)
   ========================================================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 34px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-line);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin: -6px auto 50px;
    max-width: 700px;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray-medium);
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Value cards (old .icon-box-1 on the home page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.values-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.value-card {
    background-color: var(--white);
    padding: 40px 28px 34px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(37, 43, 102, 0.07);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-line);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 43, 102, 0.13);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background-color: var(--primary-soft);
    color: var(--primary);
    border-radius: 18px;
    transition: var(--transition);
}

.value-icon .icon,
.value-icon .ticon {
    width: 36px;
    height: 36px;
}

.value-card:hover .value-icon,
.contact-card:hover .value-icon {
    background: var(--gradient-brand);
    color: var(--white);
}

.value-card:hover .value-icon .ticon,
.contact-card:hover .value-icon .ticon {
    stroke: var(--white);
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.value-card h3 a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.value-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.value-card:hover h3 a {
    color: var(--primary);
}

.value-card p {
    color: var(--gray-medium);
    line-height: 1.7;
    font-size: 0.97rem;
}

.value-card--left {
    text-align: left;
}

.value-card--left .value-icon {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-brand);
    background-size: 160% 100%;
    background-position: 0 0;
    color: var(--white);
    padding: 13px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.97rem;
    border: 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(111, 106, 174, 0.3);
}

.btn:hover {
    color: var(--white);
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.btn-outline:hover {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-brand);
}

/* ==========================================================================
   Footer (HVB)
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #232861 0%, #1a1d48 100%);
    color: var(--white);
    padding: 70px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 45px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    height: 62px;
    width: auto;
}

.footer-col p {
    color: rgba(236, 236, 250, 0.8);
    line-height: 1.7;
    max-width: 360px;
}

.footer-col h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-line);
}

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

.footer-col ul li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contacts li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contacts .icon {
    color: var(--pink);
    margin-top: 5px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   Back to top (kept from the old site)
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
}

.back-to-top .icon {
    width: 22px;
    height: 22px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

/* ==========================================================================
   Animation on scroll (HVB AOS) — content is only hidden when JS runs
   ========================================================================== */
.js [data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-aos].aos-animate {
    opacity: 1;
}

.js [data-aos="fade-up"] { transform: translateY(30px); }
.js [data-aos="fade-right"] { transform: translateX(-30px); }
.js [data-aos="fade-left"] { transform: translateX(30px); }
.js [data-aos="zoom-in"] { transform: scale(0.92); }

.js [data-aos].aos-animate {
    transform: none;
}

[data-aos-delay="100"] { transition-delay: 0.1s !important; }
[data-aos-delay="200"] { transition-delay: 0.2s !important; }
[data-aos-delay="300"] { transition-delay: 0.3s !important; }
[data-aos-delay="400"] { transition-delay: 0.4s !important; }
[data-aos-delay="500"] { transition-delay: 0.5s !important; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design (HVB breakpoints: 1240 / 1024 / 768 / 480)
   ========================================================================== */
@media (max-width: 1239px) {
    .cap-title { font-size: clamp(37px, 4.2vw, 50px); line-height: 1.2; }
    .cap-title--lg { font-size: clamp(42px, 4.6vw, 55px); }
    .cap-text { font-size: clamp(19px, 2.05vw, 24px); line-height: 1.25; }
    .cap-bubble { font-size: 15.5px; }
}

@media (max-width: 1100px) {
    .nav-list { gap: 22px; }
    .nav-link { font-size: 14px; }
}

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

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

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    /* Slider: stacked captions instead of absolute positions */
    .hero-slider {
        height: 460px;
    }

    .hero-slide__stage {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 40px 80px 64px;
    }

    .cap {
        position: relative;
        left: auto;
        top: auto;
        white-space: normal;
        text-align: left;
    }

    .cap br {
        display: none;
    }

    .cap-title,
    .cap-text {
        max-width: none;
        text-align: left;
        margin-left: calc(var(--i, 0) * 14px);
    }

    .cap-title { font-size: 37px; margin-bottom: 6px; }
    .cap-title--lg { font-size: 42px; }
    .cap-text { font-size: 20px; }

    .slide-1 .hero-slide__stage {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        align-content: center;
        column-gap: 50px;
        row-gap: 0;
    }

    .slide-1 .cap-bubble {
        grid-column: 1;
        grid-row: 1 / span 7;
        align-self: center;
    }

    .slide-1 .cap-list {
        grid-column: 2;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .slide-1 .cap-list::after { top: 0; height: 100%; }
    .slide-1 .cap-list::before { top: 14px; }
    .slide-1 .cap-list--alt { padding-top: 10px; padding-bottom: 10px; font-size: 22px; }
    .slide-1 .cap-list--alt::before { top: 6px; }
}

@media (max-width: 860px) {
    :root {
        --header-h: 70px;
    }

    .topbar {
        display: none;
    }

    .header.scrolled .header-content {
        height: var(--header-h);
    }

    .logo img,
    .header.scrolled .logo img {
        height: 50px;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .nav.active {
        transform: none;
        visibility: visible;
        transition: transform 0.3s ease, visibility 0s;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 28px;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .nav-link::after {
        bottom: 10px;
    }

    .nav-extra {
        display: block;
        padding: 10px 28px 30px;
    }

    .nav-extra .lang-switch {
        display: inline-flex;
        margin-bottom: 18px;
        background: var(--primary-soft);
        box-shadow: none;
    }

    .nav-extra .lang-switch a {
        color: var(--gray-dark);
        font-size: 0.9rem;
        padding: 7px 16px 7px 9px;
    }

    .nav-extra .lang-switch a[aria-current="true"] {
        background: var(--gradient-brand);
        color: var(--white);
    }

    .nav-extra ul {
        list-style: none;
    }

    .nav-extra li {
        margin-bottom: 10px;
    }

    .nav-extra a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--text-graphite);
        text-decoration: none;
    }

    .nav-extra .icon {
        color: var(--primary);
    }

    .hamburger {
        display: flex;
    }

    .hamburger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .hamburger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    body {
        font-size: 15px;
    }

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

    .values-grid,
    .values-grid--4 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* Slider on phones */
    .hero-slider {
        height: 560px;
    }

    .hero-slide__stage {
        padding: 36px 44px 64px;
        gap: 10px;
    }

    .cap-title { font-size: 30px; }
    .cap-title--lg { font-size: 33px; }
    .cap-text { font-size: 17.5px; margin-left: calc(var(--i, 0) * 8px); }

    .slide-1 .hero-slide__stage {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        gap: 8px;
    }

    .slide-1 .cap-bubble {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px 18px;
    }

    .cap-bubble::before,
    .cap-list::after {
        display: none;
    }

    .cap-bubble h2 {
        font-size: 21px;
        line-height: 1.3;
    }

    /* list items become compact chips */
    .slide-1 .cap-list,
    .slide-1 .cap-list--alt {
        padding: 5px 12px 5px 24px;
        font-size: 15px;
        line-height: 1.4;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.16);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
    }

    .slide-1 .cap-list::before {
        left: 10px;
        top: 50%;
        width: 6px;
        height: 6px;
        margin-top: -3px;
        border: 0;
    }

    .slide-1 .cap-list--alt {
        background: rgba(255, 255, 255, 0.32);
        font-weight: 700;
        text-transform: uppercase;
    }

    .hero-slider__arrow {
        width: 34px;
        height: 50px;
        margin-top: -25px;
    }

    .hero-slider__arrow svg {
        width: 16px;
        height: 30px;
    }

    .hero-slider__arrow--prev { left: 4px; }
    .hero-slider__arrow--next { right: 4px; }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-slider {
        height: 600px;
    }

    .hero-slide__stage {
        padding: 30px 34px 60px;
    }

    .cap-title { font-size: 26px; }
    .cap-title--lg { font-size: 29px; }
    .cap-text { font-size: 16.5px; }

    .value-card {
        padding: 32px 22px 28px;
    }
}

/* Reduced motion: no sliding, only fades */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .hero-slide .cap,
    .js [data-aos] {
        transform: none !important;
    }

    .value-card:hover,
    .btn:hover {
        transform: none;
    }
}
