/* ===== CSS Reset & Base ===== */
:root {
    --primary-color: #1a3a52;
    --primary-dark: #0f2638;
    --primary-light: #2c5f7d;

    --accent-color: #90aec8;
    --accent-dark: #90aec8;
    --accent-light: #90aec8;

    --text-dark: var(--primary-dark);
    --text-light: #f5f5f5;
    --text-gray: var(--primary-dark);

    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;

    --border-color: #dce2e8;

    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

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

    /* ===== Section spacing system (numeric) ===== */
    --section-padding-y: 4rem;          /* 64px: top/bottom padding for each section */
    --section-padding-y-compact: 3rem;  /* 48px: compact pages (legal/contact) */
    --section-content-gap: 2rem;        /* 32px: gap between heading and content */
    --section-content-gap-lg: 2.5rem;   /* 40px: larger inner gap */
    --section-block-gap: 3rem;          /* 48px: gap between big blocks in one section */
    --section-card-gap: 1.5rem;         /* 24px: gap between cards/items */
    --section-card-padding: 2rem;       /* 32px: inner card padding */
    --section-actions-gap-top: 2.5rem;  /* 40px: space before CTA/actions */

    --page-header-offset-top: 2rem;     /* 32px above page title below fixed header */
    --page-header-padding-bottom: 2.5rem; /* 40px below page title area */
    --page-header-content-gap: 0; /* no gap between title/subtitle */

    --container-width: 1200px;
    --page-inline-padding: 2rem;
    --heading-indent: clamp(2rem, 4vw, 3.25rem);
    --header-height: 80px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    --hero-bg-start: var(--primary-dark);
    --hero-bg-middle: var(--primary-color);
    --hero-bg-end: var(--primary-light);
    --hero-gradient-angle: 135deg;
    --hero-bg-overlay-opacity: 0;

    --hero-height: 100vh;
    --hero-min-height: 600px;
    --hero-padding-top: 0;
    --hero-padding-bottom: 0;
    --hero-content-max-width: 60%;
    --hero-copy-anchor-x: 0%;
    --hero-copy-anchor-y: 50%;
    --hero-copy-shift-x: 0%;
    --hero-copy-shift-y: -50%;
    --hero-copy-offset-x: calc(var(--page-inline-padding) + var(--heading-indent));
    --hero-copy-offset-y: 0rem;

    --hero-text-color: var(--text-light);
    --hero-text-align: left;

    --hero-button-bg: var(--accent-color);
    --hero-button-text: var(--text-light);
    --hero-button-padding: 0.8rem 2rem;
    --hero-button-radius: 0;
    --hero-button-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);

    --hero-parallax-speed: 0;
    --hero-fade-start: 30px;
    --hero-fade-end: 150px;
    --hero-bg-fade-start: 50px;
    --hero-bg-fade-end: 200px;
}

@media screen and (min-width: 769px) {
    :root {
        --hero-fade-start: 120px;
        --hero-fade-end: 380px;
        --hero-bg-fade-start: 160px;
        --hero-bg-fade-end: 480px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ===== Utilities ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--page-inline-padding);
}

.section {
    padding: var(--section-padding-y) 0;
}

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

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

.section__title {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: 0.3px;
    text-align: left;
    padding-left: var(--heading-indent);
}

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

.section__subtitle {
    text-align: left;
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 0;
    max-width: 720px;
    padding-left: var(--heading-indent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--border-color);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.35s ease, box-shadow var(--transition-base);
}

.header--hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo--nav {
    gap: 0;
}

.logo__image {
    display: block;
    width: auto;
}

.logo__image--nav {
    height: 52px;
}

.logo__icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
}

.logo__icon span {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}

/* Navigation Menu */
.nav__list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav__link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0;
    transition: all var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: none;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--accent-light);
}

/* Mobile Navigation */
.nav__toggle,
.nav__close {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: var(--hero-height);
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    margin-top: var(--header-height);
    padding-top: var(--hero-padding-top);
    padding-bottom: var(--hero-padding-bottom);
    z-index: 1;
    overflow: visible;
    transition: opacity 0.1s ease, transform 0.1s ease;
    will-change: opacity, transform, z-index;
}

.hero__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -30vh;
    z-index: 0;
    pointer-events: none;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-repeat: no-repeat;
    background-position: 40% top;
    background-size: cover;
    transition: opacity 0.8s ease;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Hero overlay (optional dark overlay) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--page-inline-padding);
}

.hero__content {
    position: absolute;
    left: var(--hero-copy-anchor-x);
    top: var(--hero-copy-anchor-y);
    transform: translate(var(--hero-copy-shift-x), var(--hero-copy-shift-y)) translate(var(--hero-copy-offset-x), var(--hero-copy-offset-y));
    transition: opacity 0.1s ease;
    will-change: opacity;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: var(--hero-text-align);
    max-width: min(var(--hero-content-max-width), calc(100% - (2 * var(--spacing-md))));
    color: #ffffff;
}

.hero__content * {
    color: #ffffff !important;
}

.hero__brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
}

.logo--hero {
    flex-direction: column;
    gap: 1rem;
}

.logo--hero .logo__icon {
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logo--hero .logo__icon span {
    font-size: 2.5rem;
}

.logo--hero .logo__text {
    font-size: 3.5rem;
    letter-spacing: 4px;
    color: var(--hero-text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero__title {
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
    color: var(--hero-text-color);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--hero-text-color);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    max-width: 800px;
    min-height: calc(1.6em * 3);
}

.hero__headline,
.hero__headline .hero__subtitle-text {
    font-family: var(--font-family) !important;

    font-size: clamp(1.55rem, 3.45vw, 2.7rem);
    font-weight: 500 !important;
    font-variation-settings: "wght" 500 !important;
    font-synthesis: none;
    line-height: 1.08;
    letter-spacing: 0.015em;
    text-transform: none;
    text-wrap: balance;
    color: #ffffff !important;
    text-align: left !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    max-width: 100%;
    min-height: 0;
    margin: 0;
}

.hero__headline .hero__subtitle-text::after {
    height: 0.9em;
    margin-left: 0.18em;
    vertical-align: -0.08em;
}

.hero__subtitle-text {
    position: relative;
    display: inline;
    font-weight: inherit;
    color: #ffffff !important;
}

.hero__subtitle-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 0.12em;
    vertical-align: -0.12em;
    background-color: currentColor;
    animation: heroCursorBlink 0.8s step-end infinite;
}

.hero__content .btn {
    animation: fadeInUp 0.8s ease 0.4s backwards;
    background-color: var(--hero-button-bg);
    color: var(--hero-button-text);
    padding: var(--hero-button-padding);
    border-radius: var(--hero-button-radius);
    box-shadow: var(--hero-button-shadow);
}

/* ===== Services Section ===== */
.services {
    position: relative;
    z-index: 10;
    background-color: var(--bg-light);
}

.section--home-services {
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: -10vh;
    padding-top: calc(var(--section-padding-y) + 28vh) !important;
    background: linear-gradient(135deg, #05203b 0%, #0d3570 48%, #2852da 100%);
    color: var(--text-light);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28vh);
    mask-image: linear-gradient(to bottom, transparent 0%, black 28vh);
}

.section--home-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 16, 34, 0.5) 0%, rgba(2, 16, 34, 0.1) 45%, rgba(2, 16, 34, 0) 100%);
    pointer-events: none;
}

.section--home-services .container {
    position: relative;
    z-index: 1;
}

.services-showcase {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.services-showcase__intro {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 2rem;
}

.services-showcase__intro-copy {
    max-width: 760px;
    display: contents;
}

.services-showcase__intro-copy .section__title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}

.services-showcase__intro-copy .section__subtitle {
    grid-column: 1;
    grid-row: 2;
}

.services-showcase__cta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    flex-shrink: 0;
    padding-right: var(--heading-indent);
}

.section--home-services .section__title {
    color: var(--text-light);
}

.section--home-services .section__subtitle {
    color: rgba(255, 255, 255, 0.82);
    max-width: 100%;
}

.section--home-services .btn--secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.45);
}

.section--home-services .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.7);
}

.services-showcase__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 430px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 24, 51, 0.24);
    box-shadow: 0 20px 50px rgba(1, 12, 31, 0.3);
    backdrop-filter: blur(4px);
}

.services-showcase__panel--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.services-showcase__panel--link:hover {
    transform: none;
    box-shadow: 0 20px 50px rgba(1, 12, 31, 0.3);
}

.services-showcase__panel--link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

.services-showcase__feature,
.services-showcase__headline,
.services-showcase__description,
.services-showcase__visual {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.services-showcase__panel.is-transitioning .services-showcase__feature,
.services-showcase__panel.is-transitioning .services-showcase__headline,
.services-showcase__panel.is-transitioning .services-showcase__description,
.services-showcase__panel.is-transitioning .services-showcase__visual {
    opacity: 0.55;
    transform: translateY(8px);
}

.services-showcase__controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.services-showcase__dots-host {
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.services-showcase__arrow {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.services-showcase__arrow:hover,
.services-showcase__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.services-showcase__arrow:active {
    transform: translateY(1px);
}

.services-showcase__dot {
    appearance: none;
    width: 0.65rem;
    height: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.services-showcase__dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.08);
}

.services-showcase__feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    height: 100%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
}

.services-showcase__feature-icon {
    width: clamp(6.5rem, 10vw, 8.5rem);
    height: clamp(6.5rem, 10vw, 8.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.services-showcase__feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
}

.services-showcase__headline {
    margin-top: auto;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.1;
    color: var(--primary-dark);
}

.services-showcase__description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-gray);
    max-width: 58ch;
}

.services-showcase__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0;
    --services-showcase-image: url("public/images/usluge/usluge_PROJEKTIRANJE.webp");
    background-image: var(--services-showcase-image);
    background-size: cover;
    background-position: center;
    align-self: start;
}

.services-showcase__visual::after {
    content: none;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--section-card-gap);
    margin-top: var(--section-content-gap);
}

.services__grid--showcase {
    grid-template-columns: repeat(4, minmax(220px, 260px));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
}

.service__card {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: var(--section-card-padding);
    border-radius: 0;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.section--home-services .service__card {
    padding: 1.1rem 0 0;
    background: transparent;
    color: var(--text-light);
    border: none;
    border-top: 4px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    box-shadow: none;
    opacity: 0.72;
}

.section--home-services .service__card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-top-color: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

.section--home-services .service__card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 4px;
}

.section--home-services .service__card.is-active {
    border-top-color: #1cb5ff;
    opacity: 1;
}

.service__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    color: inherit;
}

.service__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.section--home-services .service__title {
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-light);
    margin-bottom: 0;
    text-align: left;
}

.service__card--showcase {
    appearance: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.service__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.service__list {
    list-style: none;
    padding-left: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

.service__list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service__list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* ===== About Section ===== */
.about {
    position: relative;
    z-index: 10;
    background-color: var(--bg-white);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: var(--section-content-gap);
    align-items: center;
    margin-top: 0;
}

.about__content {
    text-align: left;
    padding-left: var(--heading-indent);
    padding-right: var(--section-content-gap);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__content .section__title {
    padding-left: 0;
}

.about__text {
    margin-top: 0;
}

.about__text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about__subtitle {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
    color: var(--text-dark);
}

.about__text p strong {
    color: var(--text-dark);
}

.about__highlight {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    font-size: 1.1rem;
}

.section--home-about .btn--secondary {
    background-color: var(--bg-light);
}

.section--home-about .btn--secondary:hover {
    background-color: #eef2f5;
}

.about__image {
    position: relative;
    overflow: hidden;
    padding-right: var(--heading-indent);
}

.about__video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background-color: var(--primary-dark);
}

.image__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    box-shadow: var(--shadow-md);
}

.image__placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.team__card {
    background-color: var(--bg-light);
    border-radius: 0;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.team__photo .image__placeholder {
    min-height: 250px;
    background-color: #ddd;
    border-radius: 0;
}

.team__name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team__content p {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.team__list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.team__list li {
    margin-bottom: 0.5rem;
}

/* ===== References Section ===== */
.references {
    position: relative;
    z-index: 10;
    background-color: var(--bg-light);
}

.reference__group {
    margin-bottom: var(--spacing-xl);
}

.reference__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.reference__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.reference__crest {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    background-color: transparent;
    flex-shrink: 0;
}

/* Fallback for when image fails or isn't present */
.reference__item a {
    display: flex; /* Ensure link wraps image correctly */
    align-items: center;
    justify-content: center;
}
.reference__item span {
    font-weight: 500;
    color: var(--primary-dark);
}

/* ===== Homepage Trust Belts ===== */
.trust-belts {
    display: flex;
    flex-direction: column;
    gap: calc(var(--section-block-gap) * 2);
}

.trust-belt-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-belt-row__title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-left: var(--heading-indent);
}

.trust-belt {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.trust-belt::before,
.trust-belt::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 10vw, 180px);
    z-index: 2;
    pointer-events: none;
}

.trust-belt::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.trust-belt::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.trust-belt__track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: trust-belt-scroll 36s linear infinite;
}

.trust-belt--reverse .trust-belt__track {
    animation-direction: reverse;
}

.trust-belt__set {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding-left: 0;
    padding-right: 1.5rem;
}

.trust-belt__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    width: 200px;
    min-height: 126px;
    padding: 1rem;
    white-space: normal;
    border: none;
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
}

.trust-belt__crest {
    height: 60px;
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    background: transparent;
}

.trust-belt__name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-dark);
    line-height: 1.4;
}

@keyframes trust-belt-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes heroCursorBlink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .trust-belt-row__title {
        font-size: 1.5rem;
    }

    .trust-belt__item {
        width: 200px;
        min-height: 126px;
        padding: 1rem;
    }

    .trust-belt__crest {
        height: 60px;
    }

    .trust-belt__name {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-belt__track {
        animation: none;
    }
}

.project {
    margin-bottom: var(--section-block-gap);
}

.project:last-child {
    margin-bottom: 0;
}

.project__title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--accent-color);
}

.project__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.project__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.project__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.project__image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.project__image .image__placeholder {
    min-height: 250px;
}

.policy__list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

.policy__list li {
    margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    --footer-grid-gap: clamp(1rem, 2vw, 2rem);
    position: relative;
    display: flex;
    align-items: flex-start;
    color: var(--text-light);
    aspect-ratio: 2999 / 1091;
    padding: clamp(1.4rem, 2.5vw, 2.25rem) 0 clamp(1.2rem, 2vw, 1.75rem);
    min-height: 0;
    background-image: url("public/images/footer/futer_02.webp");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% auto;
    overflow: hidden;
}

.footer > .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    align-items: start;
    gap: clamp(1.25rem, 2.5vw, 2.75rem);
    margin: 0;
}

.footer__col {
    min-width: 0;
    display: flex;
}

.footer__col--main {
    align-items: flex-start;
    justify-content: flex-start;
}

.footer__col--eu {
    justify-content: flex-end;
    padding-right: clamp(1rem, 3vw, 3rem);
    min-width: 0;
}

.footer .logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    height: 100%;
    margin: -0.95rem;
}

.logo__image--footer {
    width: calc(100% + 1.9rem);
    height: calc(100% + 1.9rem);
    object-fit: fill;
    display: block;
    transform: none;
}

.footer__brand {
    width: 100%;
    display: grid;
    grid-template-columns: clamp(180px, 18vw, 320px) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
}

.footer__content {
    width: 100%;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.section--home-references .section__title,
.section--home-references .section__subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.section--home-references > .container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.references-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 2rem;
}

.references-intro__copy {
    display: contents;
}

.references-intro__copy .section__title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}

.references-intro__copy .section__subtitle {
    grid-column: 1;
    grid-row: 2;
}

.references-intro__cta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    flex-shrink: 0;
    padding-right: var(--heading-indent);
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-light);
}

.footer__list {
    list-style: none;
    margin: 0;
}

.footer__list li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    line-height: normal; /* Added for baseline consistency */
}

.footer__list li:last-child {
    margin-bottom: 0;
    display: flex;
    align-items: flex-end; /* This sets the item to align down */
}

.footer__spacer {
    margin-bottom: var(--spacing-sm);
}

.footer__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: fit-content;
    margin-top: clamp(0.95rem, 1.35vw, 1.3rem);
    margin-bottom: 0;
}

.footer__mini-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.footer__mini-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.footer__mini-link:hover {
    color: var(--accent-light);
}

.footer__divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    align-self: flex-start;
    width: 100%;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
}

.footer__link {
    color: var(--text-light);
    text-decoration: none;
    margin: 0;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.footer__link:hover {
    color: var(--accent-light);
}

/* EU co-funded badge (positioned top-right of content wrapper) */
.footer__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
}

.footer__info-row {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    width: 100%;
}

.footer__info-row > .footer__list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.footer__eu {
    display: flex;
    align-items: flex-start;
    align-self: start;
    gap: clamp(0.8rem, 1.5vw, 1.25rem);
    width: 100%;
    max-width: 30rem;
}

.footer__meta {
    width: fit-content;
    max-width: 100%;
}

.footer__eu-image {
    width: clamp(120px, 10vw, 170px);
    height: auto;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.footer__eu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 0;
    min-width: 0;
}

.footer__eu-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 100%;
}

.footer__eu-label,
.footer__eu-code {
    display: block;
}

.footer__eu-label {
    font-weight: 700;
    color: var(--text-light);
}

.footer__eu-code {
    margin-top: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-light);
}

.footer__eu-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    margin-top: 0;
    white-space: nowrap;
}

.footer__eu-link:hover {
    color: var(--accent-light);
}

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

/* =====================================================
   RESPONSIVE DESIGN - 6 Breakpoints
   =====================================================

   1. Extra Large: 1400px+ (4K, Ultra Wide)
   2. Large: 1200px-1399px (Standard Desktop)
   3. Medium: 992px-1199px (Small Desktop/Laptop)
   4. Tablet: 768px-991px (iPad Landscape)
   5. Mobile: 576px-767px (Large Phone)
   6. Small: 320px-575px (Small Phone)

   ===================================================== */

/* ===== 1. EXTRA LARGE SCREENS (1400px+) ===== */
@media screen and (min-width: 1400px) {
    :root {
        --container-width: 1400px;
        --font-size-base: 18px;
        --spacing-xl: 5rem;
    }

    .hero__title {
        font-size: 5rem;
    }

    .section__title {
        font-size: 3rem;
    }

    .footer__grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 27rem);
    }

    .footer__eu-text {
        font-size: 0.84rem;
    }
}

@media screen and (min-width: 1800px) {
    :root {
        --container-width: 1680px;
    }

    .footer__grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 30rem);
    }

    .footer__eu-image {
        width: clamp(140px, 10vw, 180px);
    }
}

/* ===== 2. LARGE SCREENS (1200px-1399px) ===== */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
        gap: clamp(2rem, 3vw, 3rem);
    }
}

/* ===== 3. MEDIUM SCREENS (992px-1199px) ===== */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 var(--page-inline-padding);
    }

    .hero__headline {
        font-size: clamp(1.45rem, 3vw, 2.2rem);
    }

    .hero__title {
        font-size: 4rem;
    }

    .section__title {
        font-size: 2.25rem;
    }

    .footer__grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 22rem);
        gap: 1.5rem;
    }

    .footer__brand {
        grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
    }

    .footer__eu-image {
        width: clamp(110px, 11vw, 150px);
    }

    .footer__eu-text {
        font-size: 0.84rem;
        max-width: 100%;
    }

    .footer__eu {
        max-width: 22rem;
    }
}

@media screen and (max-width: 1139px) and (min-width: 992px) {
    .footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 18.5rem);
    }

    .footer__eu {
        gap: 0.7rem;
        max-width: 18.5rem;
    }

    .footer__eu-image {
        width: clamp(92px, 10vw, 120px);
    }

    .footer__eu-text {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

/* ===== 4. TABLET (768px-991px) ===== */
@media screen and (max-width: 991px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
        --section-padding-y: 3.5rem;
        --section-padding-y-compact: 2.5rem;
        --section-content-gap: 1.5rem;
        --section-content-gap-lg: 2rem;
        --section-block-gap: 2.5rem;
        --hero-copy-anchor-y: 50%;
    }

    /* Hero - tablet */
    .hero__title {
        font-size: 3rem;
        font-weight: 500;
    }

    .hero__subtitle {
        font-size: 1.25rem;
        min-height: calc(1.6em * 4);
    }

    .hero__headline {
        font-size: clamp(1.25rem, 3.6vw, 1.8rem);
        max-width: 100%;
    }

    .section__title {
        font-size: 2rem;
    }

    .services-showcase__intro {
        display: contents;
    }

    .services-showcase {
        display: flex;
        flex-direction: column;
    }

    .services-showcase__intro-copy {
        display: block;
        order: 1;
    }

    .services-showcase__panel {
        order: 2;
    }

    .services-showcase__controls {
        order: 3;
    }

    .services__grid--showcase {
        order: 4;
    }

    .services-showcase__cta {
        order: 5;
        padding-right: 0;
        justify-self: start;
        align-self: start;
    }

    .references-intro {
        display: contents;
    }

    .references-intro__copy {
        display: block;
        order: 1;
    }

    .trust-belts {
        order: 2;
    }

    .references-intro__cta {
        order: 3;
        padding-right: 0;
        justify-self: start;
        align-self: start;
    }

    .services-showcase__panel {
        grid-template-columns: 1fr;
    }

    .services-showcase__feature-icon {
        width: clamp(5.75rem, 14vw, 7rem);
        height: clamp(5.75rem, 14vw, 7rem);
    }

    .services-showcase__visual {
        min-height: 0;
    }

    .services__grid--showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Grids - 2 columns */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project__grid--three {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services page - single column on tablet */
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-layout .service-block,
    .services-layout .service-block:nth-child(even),
    .services-layout .service-block:nth-last-child(-n+2),
    .services-layout .service-block:last-child:nth-child(odd) {
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        grid-column: auto;
    }

    .services-layout .service-block:last-child {
        border-bottom: 1px solid var(--border-color);
    }

    /* Single column layouts */
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about__image {
        margin: 0;
        width: 100%;
        padding-right: 0;
    }

    .about__content {
        padding-right: 0;
    }

    .about__video {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

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

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

    .footer__grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__col {
        min-height: auto;
    }

    .footer__col--main,
    .footer__col--eu,
    .footer .logo {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .footer__brand {
        grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    }

    .logo__image--footer {
        width: min(100%, 280px);
        height: auto;
        transform: none;
    }

    .footer__list li {
        white-space: normal;
    }

    .footer__eu-image {
        width: clamp(90px, 14vw, 120px);
    }

    .footer__eu {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .footer__meta,
    .footer__bottom {
        width: 100%;
    }

    .footer__col--eu {
        padding-right: 0;
    }

    .footer__eu-text {
        font-size: 0.82rem;
        max-width: none;
    }

    .footer {
        background-size: cover;
        background-position: top center;
        aspect-ratio: auto;
        min-height: 0;
        padding: 2rem 0 0;
        padding-bottom: 40%;
    }
}

/* ===== 5. MOBILE (576px-767px) ===== */
@media screen and (max-width: 767px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 2.75rem;
        --font-size-base: 15px;
        --page-inline-padding: 1.5rem;
        --section-padding-y: 3rem;
        --section-padding-y-compact: 2.25rem;
        --section-content-gap: 1.25rem;
        --section-content-gap-lg: 1.75rem;
        --section-block-gap: 2rem;
        --section-card-gap: 1.25rem;
        --section-card-padding: 1.5rem;
        --section-actions-gap-top: 2rem;
        --page-header-padding-bottom: 2rem;
        --heading-indent: 2rem;
    }

    .container {
        padding: 0 var(--page-inline-padding);
    }

    .nav {
        justify-content: space-between;
        gap: 1rem;
    }

    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: var(--spacing-lg) var(--spacing-md);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav__link {
        color: var(--text-light);
        font-size: 1.125rem;
    }

    .nav__link::after {
        background-color: var(--accent-color);
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
        cursor: pointer;
        z-index: 100;
    }

    .toggle__line {
        width: 28px;
        height: 3px;
        background-color: var(--text-light);
        border-radius: 2px;
        transition: all var(--transition-base);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        font-size: 2rem;
        color: var(--text-light);
        cursor: pointer;
    }

    /* Hero - Centered, smaller */
    .hero {
        height: 85vh;
        min-height: 550px;
        background-position: 40% center;
    }

    .hero__title {
        font-size: 2.5rem;
        font-weight: 500;
        letter-spacing: -1px;
    }

    .hero__subtitle {
        font-size: 1.125rem;
        min-height: calc(1.6em * 4);
    }

    .hero__headline {
        font-size: clamp(1.1rem, 4vw, 1.55rem);
        letter-spacing: 0.045em;
        max-width: 100%;
    }

    .hero__container {
        padding: 0 var(--page-inline-padding);
    }

    .services-showcase__feature {
        padding: 2rem;
    }

    .services-showcase__feature-icon {
        width: 5.25rem;
        height: 5.25rem;
    }

    .services-showcase__headline {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }

    .services-showcase__panel--link {
        touch-action: pan-y;
    }

    .services-showcase__dots {
        gap: 0.5rem;
    }

    .services-showcase__controls {
        display: flex;
        gap: 0.75rem;
    }

    .services-showcase__arrow {
        display: none;
    }

    .services-showcase__visual {
        min-height: 0;
    }

    .services__grid--showcase {
        display: none;
    }

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

    .page-subtitle {
        font-size: 0.95rem;
    }

    .service-block {
        padding: 1.5rem 1.25rem;
    }

    .service-block__header {
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .service-block__icon {
        width: 32px;
        height: 32px;
    }

    .service-block__icon svg {
        width: 22px;
        height: 22px;
    }

    .service-block h2 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .service-block__content li {
        padding-left: 1rem;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .service-block__content li::before {
        width: 5px;
        top: 0.65em;
    }

    .section__title {
        font-size: 1.75rem;
    }

    /* All grids - single column */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project__grid,
    .project__grid--three {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__grid {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "text text"
            "logo eu";
        column-gap: 0.75rem;
        row-gap: 0.75rem;
        align-items: end;
    }

    .footer__meta {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .footer__col--main {
        grid-area: text;
        width: 100%;
        min-width: 0;
    }

    .footer__brand {
        display: block;
    }

    .footer__col--eu {
        grid-area: eu;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        align-self: start;
        padding-right: 0;
        margin-top: clamp(0.55rem, 1.6vw, 0.9rem);
        margin-right: 0;
        margin-left: 0;
    }

    .footer__info-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .footer__content-wrapper {
        grid-area: text;
        width: 100%;
    }

    .footer__eu {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.35rem;
        margin-top: 0;
        justify-content: flex-start;
        width: 100%;
        max-width: none;
    }

    .footer__eu-image {
        width: clamp(72px, 18vw, 96px);
    }

    .footer__eu-content {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 0.1rem;
        gap: 0.35rem;
    }

    .footer__eu-text {
        font-size: 0.74rem;
        line-height: 1.35;
        max-width: none;
        width: 100%;
    }

    .footer .logo {
        display: none;
    }

    .logo__image--footer {
        width: min(100%, 240px);
        display: block;
    }

    .footer__mini-nav,
    .footer__bottom {
        justify-content: flex-start;
    }

    /* Service cards - reduce padding */
    .service__card {
        padding: var(--spacing-md);
    }

    .team__card {
        padding: var(--spacing-md);
    }

    /* Buttons - touch friendly */
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .footer {
        background-size: cover;
        background-position: top center;
        aspect-ratio: auto;
        min-height: 0;
        padding-bottom: 45%;
    }

}

/* ===== 6. SMALL MOBILE (320px-575px) ===== */
@media screen and (max-width: 575px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2.25rem;
        --spacing-md: 1.5rem;
        --font-size-base: 14px;
        --page-inline-padding: 1rem;
        --section-padding-y: 2.5rem;
        --section-padding-y-compact: 2rem;
        --section-content-gap: 1rem;
        --section-content-gap-lg: 1.5rem;
        --section-block-gap: 1.75rem;
        --section-card-gap: 1rem;
        --section-card-padding: 1.25rem;
        --section-actions-gap-top: 1.5rem;
        --page-header-offset-top: 1.5rem;
        --page-header-padding-bottom: 1.5rem;
        --page-header-content-gap: 0;
        --heading-indent: 1.5rem;
    }

    .container {
        padding: 0 var(--page-inline-padding);
    }

        .page-title {
            font-size: 1.7rem;
        }

        .page-subtitle {
            font-size: 0.9rem;
        }

        .service-block {
            padding: 1.25rem 1rem;
        }

        .service-block__icon {
            width: 28px;
            height: 28px;
        }

        .service-block__icon svg {
            width: 20px;
            height: 20px;
        }

        .service-block h2 {
            font-size: 1.05rem;
        }

        .service-block__content ul {
            gap: 0.5rem;
        }

        .service-block__content li {
            font-size: 0.92rem;
            line-height: 1.5;
        }

    /* Smaller header */
    :root {
        --header-height: 70px;
    }

    .nav {
        height: 70px;
    }

    .logo__image--nav {
        height: 44px;
    }


    .page-title {
        font-size: 1.7rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .service-block {
        padding: 1.25rem 1rem;
    }

    .service-block__icon {
        width: 28px;
        height: 28px;
    }

    .service-block__icon svg {
        width: 20px;
        height: 20px;
    }

    .service-block h2 {
        font-size: 1.05rem;
    }

    .service-block__content ul {
        gap: 0.5rem;
    }

    .service-block__content li {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .hero__subtitle {
        font-size: 1rem;
        min-height: calc(1.6em * 5);
    }

    .hero__headline {
        font-size: clamp(1rem, 4.2vw, 1.3rem);
        letter-spacing: 0.04em;
        max-width: 100%;
    }

    .hero__container {
        padding: 0 var(--page-inline-padding);
    }

    .services-showcase {
        gap: 1.25rem;
    }

    .services-showcase__feature {
        padding: 1.5rem;
        gap: 1rem;
    }

    .services-showcase__feature-icon {
        width: 4.5rem;
        height: 4.5rem;
    }

    .services-showcase__description {
        font-size: 0.92rem;
    }

    .services-showcase__visual {
        min-height: 0;
    }

    /* Typography */
    .section__title {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .section__subtitle {
        font-size: 0.95rem;
    }

    /* Buttons - smaller but still touch-friendly */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* Service cards */
    .service__card {
        padding: 1.5rem;
    }

    .service__title {
        font-size: 1.25rem;
    }

    .service__description {
        font-size: 0.95rem;
    }

    .service__icon {
        width: 50px;
        height: 50px;
    }

    /* Project titles */
    .project__title {
        font-size: 1.25rem;
    }

    /* About section */
    .about__text p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer__title {
        font-size: 1.1rem;
    }

    .footer__list li,
    .footer__description {
        font-size: 0.9rem;
    }

    .footer__bottom {
        font-size: 0.85rem;
    }

    .footer__mini-link {
        font-size: 0.85rem;
    }

    .footer__link {
        font-size: 0.78rem;
    }

    .footer__eu-link {
        font-size: 0.78rem;
    }

    .footer__eu-text {
        font-size: 0.7rem;
        max-width: none;
        width: 100%;
    }

    .footer__col--eu {
        margin-top: 0.7rem;
        margin-right: 0;
        margin-left: 0;
    }

    .footer__eu {
        gap: 0.3rem;
        max-width: none;
        width: 100%;
    }

    .footer__eu-image {
        width: clamp(62px, 18vw, 82px);
    }

    .footer {
        padding-bottom: 50%;
    }

    /* Image placeholders */
    .image__placeholder svg {
        width: 60px;
        height: 60px;
    }
}

/* ===== EXTRA SMALL MOBILE (320px) - Safety net ===== */
@media screen and (max-width: 360px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__headline {
        font-size: 0.85rem;
    }

    .section__title {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    .service__card {
        padding: 1.25rem;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 400px;
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        min-height: calc(1.6em * 5);
    }

    .hero__headline {
        font-size: 0.95rem;
    }
}

/* ===== REDUCE MOTION (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__title,
    .hero__subtitle,
    .hero__headline,
    .hero__content .btn {
        animation: none;
    }

    .hero__subtitle-text::after {
        animation: none;
    }
}

/* =========================================
   MULTI-PAGE LAYOUT ADDITIONS
   ========================================= */

/* --- Page Header --- */
.page-header {
    background: var(--bg-light);
    padding: calc(var(--header-height) + var(--page-header-offset-top)) 0 var(--page-header-padding-bottom);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.main-content--dark {
    position: relative;
    background:
        linear-gradient(180deg, transparent 65%, #01112e 93%),
        linear-gradient(135deg, #05203b 0%, #0a2d5a 35%, #06224a 55%, #021838 70%, #011231 100%);
    color: var(--text-light);
}

.main-content--dark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    background: linear-gradient(90deg, #011331 0%, #001230 35%, #01112d 65%, #01102b 100%);
    pointer-events: none;
    z-index: 2;
}

.main-content--dark .page-header {
    background: transparent;
    color: var(--text-light);
    border-bottom: none;
}

.main-content--dark .page-subtitle {
    opacity: 0.9;
}

.main-content--dark .section {
    background: transparent;
}

.main-content--dark .section__title,
.main-content--dark .team-profile__header h3,
.main-content--dark .team-role,
.main-content--dark .team-license,
.main-content--dark .team-profile__body h4,
.main-content--dark .team-profile__body p,
.main-content--dark .team-profile__body li,
.main-content--dark .about-company__text p,
.main-content--dark .about-company__text strong,
.main-content--dark .contact-card__title,
.main-content--dark .contact-label,
.main-content--dark .contact-value,
.main-content--dark .contact-value a {
    color: var(--text-light);
}

.main-content--dark .team-profile,
.main-content--dark .contact-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.main-content--dark .team-profile__header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.main-content--dark .team-zigzag__row {
    box-shadow: none;
}

.main-content--dark .team-zigzag__photo {
    background: rgba(255, 255, 255, 0.04);
}

.main-content--dark .team-zigzag__specs h4,
.main-content--dark .team-zigzag__style h4 {
    border-bottom-color: var(--border-color);
}

.main-content--dark .team-zigzag__specs li::before {
    background: var(--accent-color);
}

.main-content--dark .team-profile__body {
    background: transparent;
}

.main-content--dark .contact-card {
    border-color: rgba(255, 255, 255, 0.14);
}

.page-header .container {
    display: grid;
    gap: var(--page-header-content-gap);
    justify-items: stretch;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: 0.3px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Services Page Layout (.service-block) --- */
.services-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.service-block {
    margin-bottom: 0;
    padding: 2.5rem 2.5rem;
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-right: none;
    border-bottom: none;
    transition: background-color var(--transition-base);
    position: relative;
}

.services-layout .service-block:nth-child(even) {
    border-right: 1px solid var(--border-color);
}

.services-layout .service-block:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border-color);
}

/* When odd total, last item spans or gets bottom border */
.services-layout .service-block:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-block:hover {
    background-color: var(--bg-light);
    box-shadow: none;
    transform: none;
}

.service-block__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.service-block__icon {
    font-size: 0;
    color: inherit;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
    flex-shrink: 0;
}

.service-block__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-block h2 {
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

.service-block__content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: 0;
    margin: 0;
}

.service-block__content li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-gray);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.service-block__content li::before {
    content: "";
    width: 6px;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0.6em;
}

@media screen and (max-width: 991px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-layout .service-block,
    .services-layout .service-block:nth-child(even),
    .services-layout .service-block:nth-last-child(-n+2),
    .services-layout .service-block:last-child:nth-child(odd) {
        grid-column: auto;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .services-layout .service-block:last-child {
        border-bottom: 1px solid var(--border-color);
    }
}

@media screen and (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
        max-width: 34ch;
        margin: 0 auto;
    }

    .service-block {
        padding: 1.5rem 1.25rem;
    }

    .service-block__header {
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .service-block__icon {
        width: 32px;
        height: 32px;
    }

    .service-block__icon svg {
        width: 22px;
        height: 22px;
    }

    .service-block h2 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .service-block__content ul {
        gap: 0.55rem;
    }

    .service-block__content li {
        padding-left: 1rem;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .service-block__content li::before {
        width: 5px;
        top: 0.65em;
    }
}

@media screen and (max-width: 575px) {
    .page-title {
        font-size: 1.7rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .service-block {
        padding: 1.25rem 1rem;
    }

    .service-block__icon {
        width: 28px;
        height: 28px;
    }

    .service-block__icon svg {
        width: 20px;
        height: 20px;
    }

    .service-block h2 {
        font-size: 1.05rem;
    }

    .service-block__content ul {
        gap: 0.5rem;
    }

    .service-block__content li {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

/* --- Services Page Zigzag Layout --- */
.section--services-zigzag {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 65%, #01112e 93%),
        linear-gradient(135deg, #05203b 0%, #0a2d5a 35%, #06224a 55%, #021838 70%, #011231 100%);
    color: var(--text-light);
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.page-header--services {
    position: relative;
    z-index: 1;
    background: transparent;
    color: var(--text-light);
    border-bottom: none;
}

.section--services-zigzag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 16, 34, 0.5) 0%, rgba(2, 16, 34, 0.1) 45%, rgba(2, 16, 34, 0) 100%);
    mask-image: linear-gradient(180deg, black 70%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, black 70%, transparent 95%);
    pointer-events: none;
}

.section--services-zigzag::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    background: linear-gradient(90deg, #011331 0%, #001230 35%, #01112d 65%, #01102b 100%);
    pointer-events: none;
    z-index: 2;
}

.services-zigzag {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding-y) var(--page-inline-padding) 3.5rem;
}

.services-zigzag__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    background: rgba(7, 24, 51, 0.24);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.services-zigzag__row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Zigzag: even rows reverse the column order */
.services-zigzag__row:nth-child(even) .services-zigzag__content {
    order: 2;
}

.services-zigzag__row:nth-child(even) .services-zigzag__image {
    order: 1;
}

.services-zigzag__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
    height: 100%;
}

.services-zigzag__icon {
    width: clamp(6.5rem, 10vw, 8.5rem);
    height: clamp(6.5rem, 10vw, 8.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    align-self: flex-start;
}

.services-zigzag__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
}

.services-zigzag__title {
    margin-top: auto;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 500;
    color: var(--primary-dark);
}

.services-zigzag__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.services-zigzag__list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.45;
}

.services-zigzag__list li::before {
    content: "";
    width: 6px;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0.75em;
}

.services-zigzag__image {
    background-size: cover;
    background-position: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
}

@media screen and (max-width: 767px) {
    .services-zigzag {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .services-zigzag__row {
        grid-template-columns: 1fr;
        min-height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .services-zigzag__row .services-zigzag__image {
        order: 1;
        aspect-ratio: 1 / 1;
    }

    .services-zigzag__row .services-zigzag__content {
        order: 2;
        padding: clamp(1.25rem, 3vw, 2rem);
    }

    .services-zigzag__icon {
        width: clamp(3rem, 6vw, 4rem);
        height: clamp(3rem, 6vw, 4rem);
    }

    .services-zigzag__title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .services-zigzag__list li {
        font-size: 0.92rem;
    }
}

@media screen and (max-width: 575px) {

    .services-zigzag__row .services-zigzag__content {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .services-zigzag__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .services-zigzag__title {
        font-size: 1.15rem;
    }

    .services-zigzag__list li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media screen and (max-width: 767px) {
    .services-zigzag__content {
        padding: 1.5rem;
    }

    .services-zigzag__icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .services-zigzag__title {
        font-size: 1.3rem;
    }

    .services-zigzag__list li {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

@media screen and (max-width: 480px) {
    .services-zigzag__content {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .services-zigzag__icon {
        width: 3rem;
        height: 3rem;
    }

    .services-zigzag__title {
        font-size: 1.15rem;
    }

    .services-zigzag__list li {
        font-size: 0.92rem;
        padding-left: 1rem;
    }

    .services-zigzag__list li::before {
        width: 5px;
        top: 0.65em;
    }
}

/* --- Team Zigzag Layout --- */
.team-zigzag {
    display: flex;
    flex-direction: column;
    margin-top: var(--section-content-gap);
}

.team-zigzag__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--bg-white);
    overflow: hidden;
}

/* Zigzag: even rows reverse the column order */
.team-zigzag__row:nth-child(even) .team-zigzag__content {
    order: 2;
}

.team-zigzag__row:nth-child(even) .team-zigzag__photo {
    order: 1;
}

.team-zigzag__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
}

.team-zigzag__header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-zigzag__header .team-role {
    display: block;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.team-zigzag__header .team-license {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

.team-zigzag__specs h4,
.team-zigzag__style h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team-zigzag__specs ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-zigzag__specs li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.team-zigzag__specs li::before {
    content: "";
    width: 6px;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0.75em;
}

.team-zigzag__style p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1rem;
}

.team-zigzag__photo {
    background: #e7ebf0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-zigzag__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 991px) {
    .team-zigzag {
        gap: 2rem;
    }

    .team-zigzag__row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .team-zigzag__row .team-zigzag__photo {
        order: 1;
        min-height: 220px;
        aspect-ratio: auto;
    }

    .team-zigzag__row .team-zigzag__content {
        order: 2;
        padding: clamp(1.25rem, 3vw, 2rem);
    }
}

@media screen and (max-width: 575px) {
    .team-zigzag__row .team-zigzag__photo {
        min-height: 180px;
    }

    .team-zigzag__row .team-zigzag__content {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .team-zigzag__specs li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* --- Team Page Layout (.team-profile) --- */
.team-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xl);
}

@media screen and (max-width: 1024px) {
    .team-layout {
        grid-template-columns: 1fr;
    }
}

.team-profile {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.team-profile__header {
    background: var(--bg-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.team-profile__header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-role {
    display: block;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.team-license {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

.team-profile__photo {
    margin: var(--spacing-md) auto 0;
    width: min(62%, 260px);
    min-width: 170px;
    aspect-ratio: 3 / 4;
    border-radius: 0;
    border: 1px solid #cfd6dd;
    background: #e7ebf0;
    overflow: hidden;
}

.team-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-profile__body {
    padding: var(--section-card-padding);
    display: flex;
    flex-direction: column;
    gap: var(--section-content-gap);
}

@media screen and (max-width: 576px) {
    .team-profile__photo {
        margin-top: var(--spacing-sm);
        width: min(70%, 220px);
        min-width: 150px;
    }
}

.team-profile h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team-profile__specs ul {
    list-style: none;
}

.team-profile__specs li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.team-profile__specs li:last-child {
    border-bottom: none;
}

.team-profile__style p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- References Page Layout (.reference-category) --- */
.reference-category {
    margin-bottom: var(--section-block-gap);
}

.reference-category__title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.reference__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.reference__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 0;
    border: none;
}

.reference__crest {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* --- Contact Page Layout (.contact-grid) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-grid--single {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--bg-light);
    padding: var(--section-card-padding);
    border-radius: 0;
    margin-bottom: var(--section-content-gap);
    border: 1px solid var(--border-color);
}

.contact-card__title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    color: var(--text-light-gray);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-value a:hover {
    color: var(--accent-color);
}

/* --- Page-specific section spacing --- */
.section--home-services,
.section--home-references,
.section--about-intro,
.section--about-team,
.section--services-page,
.section--references-page {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section--home-about {
    padding: var(--section-padding-y) 0;
    overflow: hidden;
}

.section--home-references {
    padding-top: calc(var(--section-padding-y) - 1rem);
}

@media screen and (min-width: 768px) {
    .section--home-references {
        padding-top: calc(var(--section-padding-y) - 1.75rem);
    }
}

.section--home-about .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--page-inline-padding);
}

.section--contact-page,
.section--legal-page {
    padding-top: var(--section-padding-y-compact);
    padding-bottom: var(--section-padding-y-compact);
}

.reference-layout {
    display: grid;
    gap: var(--section-block-gap);
}

.reference-category:last-child {
    margin-bottom: 0;
}

.about-company {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg, 2rem);
    align-items: stretch;
}

.about-company__text {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.about-company__image {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.about-company__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .about-company {
        grid-template-columns: 1fr;
    }

    .about-company__image {
        min-height: 300px;
        max-height: 420px;
    }
}

.legal-content {
    max-width: 940px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* --- Clean Visual Refinements --- */

.hero::before {
    background: transparent;
}

.hero__content .btn {
    box-shadow: var(--shadow-sm);
}

/* --- Footer Tweaks --- */
.footer__col h4 {
    color: var(--text-light); /* Ensure footer titles are visible */
    margin-bottom: 1rem;
}
