/* ==========================================================================
   Fundament '96 WordPress Theme - Combined Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS Variables - Fundament '96 Kft.
   ========================================================================== */

:root {
    /* ===== COLORS - Updated branding ===== */
    --color-primary: #cf2e2e;          /* Red - main brand color */
    --color-primary-dark: #a82424;     /* Darker red for hover states */
    --color-primary-light: #e04545;    /* Lighter red */

    --color-secondary: #cf2e2e;        /* Same red for header/footer */
    --color-secondary-light: #e04545;  /* Slightly lighter red */

    --color-accent: #FFD00A;           /* Bright yellow - CTA buttons */
    --color-accent-dark: #e6bb00;      /* Darker yellow for hover */

    /* Text colors */
    --color-text: #2D2D2D;             /* Main text - dark gray */
    --color-text-light: #555555;       /* Secondary text */
    --color-text-muted: #777777;       /* Muted text */

    /* Backgrounds */
    --color-white: #FAF9F6;            /* Off-white/törtfehér */
    --color-gray-50: #F5F4F1;
    --color-gray-100: #EDECE8;
    --color-gray-200: #E0DFD9;
    --color-gray-300: #C8C7C1;

    /* ===== TYPOGRAPHY ===== */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Manrope', var(--font-body);

    /* Font sizes - fluid typography */
    --font-size-xs: 0.75rem;           /* 12px */
    --font-size-sm: 0.875rem;          /* 14px */
    --font-size-base: 1rem;            /* 16px */
    --font-size-lg: 1.125rem;          /* 18px */
    --font-size-xl: 1.25rem;           /* 20px */
    --font-size-2xl: 1.5rem;           /* 24px */
    --font-size-3xl: 1.875rem;         /* 30px */
    --font-size-4xl: 2.25rem;          /* 36px */
    --font-size-5xl: 3rem;             /* 48px */
    --font-size-6xl: 3.75rem;          /* 60px */

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ===== SPACING ===== */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */

    /* Section spacing */
    --section-padding: clamp(4rem, 8vw, 6rem);

    /* ===== LAYOUT ===== */
    --container-max: 1200px;
    --container-padding: var(--space-6);
    --header-height: 80px;

    /* ===== BORDERS ===== */
    --border-radius-sm: 0.25rem;   /* 4px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 1rem;      /* 16px */
    --border-radius-xl: 1.5rem;    /* 24px */
    --border-radius-full: 9999px;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 16, 46, 0.08);

    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* ===== Z-INDEX ===== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
}

/* ==========================================================================
   CSS Reset - Modern Minimal Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: var(--line-height-normal);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

address {
    font-style: normal;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-md);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

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

/* ==========================================================================
   Layout - Header, Footer, Grid, Containers
   ========================================================================== */

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background-color: var(--color-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    transition: background-color var(--transition-base),
                box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: var(--color-primary-dark);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    position: relative;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

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

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-6);
}

.lang-btn {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.4);
}

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: var(--color-gray-300);
    margin-top: var(--space-4);
    max-width: 280px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-nav h3,
.footer-contact h3 {
    color: var(--color-white);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav a {
    color: var(--color-gray-300);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-contact address {
    color: var(--color-gray-300);
    font-size: var(--font-size-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-contact a {
    color: var(--color-gray-300);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-gray-300);
    font-size: var(--font-size-sm);
}

/* ===== SECTIONS ===== */
.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

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

.section--dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-12);
    background-color: var(--color-gray-50);
    text-align: center;
}

.page-title {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-5xl));
    margin-bottom: var(--space-4);
}

.page-intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== GRID UTILITIES ===== */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

/* ===== MAIN CONTENT ===== */
main {
    padding-top: var(--header-height);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        background-color: #ffffff;
        padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: var(--space-4) 0;
        font-size: var(--font-size-lg);
        border-bottom: 1px solid var(--color-gray-200);
        color: var(--color-text);
    }

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

    .language-switcher {
        position: absolute;
        top: 50%;
        right: 70px;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

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

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-header) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Components - Buttons, Cards, Animations
   ========================================================================== */

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

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

/* Primary button - Red */
.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Secondary/Outline button */
.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Accent button - Yellow */
.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
}

.btn--accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* White button (for dark backgrounds) */
.btn--white {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
}

.btn--white:hover {
    background-color: #F5F4F1;
    border-color: #F5F4F1;
}

/* Large button */
.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

/* Button with icon */
.btn svg {
    width: 1.25em;
    height: 1.25em;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

.card__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.card__link:hover {
    gap: var(--space-3);
}

/* Service card variant */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card__number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-100);
    line-height: 1;
}

/* Stats card */
.stat-card {
    text-align: center;
    padding: var(--space-6);
}

.stat-card__number {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-card__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact card */
.contact-card {
    text-align: center;
    padding: var(--space-8);
}

.contact-card__icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--color-white);
}

.contact-card__icon svg {
    width: 28px;
    height: 28px;
}

.contact-card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

.contact-card__text {
    color: var(--color-text-light);
}

.contact-card a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ===== HERO - SIMPLE STYLE ===== */
.hero {
    position: relative;
    padding: var(--space-16) 0;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    overflow: visible;
    margin-bottom: 0;
}

.hero__background {
    display: none;
}

.hero__background img {
    display: none;
}

.hero__overlay {
    display: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--color-text);
    max-width: 600px;
}

.hero__label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
}

.hero__title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    color: var(--color-text);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.hero__title span {
    display: block;
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-300);
    font-size: var(--font-size-sm);
    animation: bounce 2s infinite;
}

.scroll-indicator__arrow {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== PROJECT HIGHLIGHT ===== */
.project-highlight {
    background-color: var(--color-gray-50);
    border-radius: var(--border-radius-xl);
    padding: var(--space-10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.project-highlight__badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.project-highlight__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.project-highlight__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.project-highlight__stats {
    display: flex;
    gap: var(--space-8);
}

.project-stat {
    text-align: left;
}

.project-stat__value {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.project-stat__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.project-highlight__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.project-highlight__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .project-highlight {
        grid-template-columns: 1fr;
    }

    .project-highlight__image {
        order: -1;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--color-primary);
    padding: var(--space-16) 0;
    text-align: center;
}

.cta-section__content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.cta-section__text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

/* ===== SERVICE BLOCKS ===== */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block--reverse {
    direction: rtl;
}

.service-block--reverse > * {
    direction: ltr;
}

.service-block__number {
    font-family: var(--font-heading);
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-100);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.service-block__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.service-block__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.service-block__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-block__features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text);
}

.service-block__features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
    flex-shrink: 0;
}

.service-block__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.service-block__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .service-block,
    .service-block--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-block__image {
        order: -1;
    }
}

/* ===== ANIMATIONS ===== */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }
.animate--delay-4 { transition-delay: 0.4s; }

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== MAP ===== */
.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== VALUES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.value-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.value-card__icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--color-primary);
}

.value-card__icon svg {
    width: 36px;
    height: 36px;
}

.value-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

.value-card__text {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

.two-col__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.two-col__image img {
    width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .two-col,
    .two-col--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .two-col__image {
        order: -1;
    }
}

/* ===== WORDPRESS SPECIFIC ===== */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: var(--space-4);
}

.entry-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.entry-content h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-2);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.entry-content img {
    border-radius: var(--border-radius-lg);
    margin: var(--space-6) 0;
}

/* ==========================================================================
   Responsive Styles - Media Queries
   ========================================================================== */

/* ===== TABLET (576px - 991px) ===== */
@media (min-width: 576px) and (max-width: 991px) {
    :root {
        --container-padding: var(--space-8);
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

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

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

/* ===== MOBILE (< 576px) ===== */
@media (max-width: 575px) {
    :root {
        --container-padding: var(--space-4);
        --section-padding: var(--space-12);
    }

    /* Typography adjustments */
    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .page-title {
        font-size: var(--font-size-3xl);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-16);
    }

    .hero__content {
        text-align: center;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-card__number {
        font-size: var(--font-size-4xl);
    }

    /* Cards */
    .card {
        padding: var(--space-6);
    }

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

    /* Project highlight */
    .project-highlight {
        padding: var(--space-6);
    }

    .project-highlight__stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-section__title {
        font-size: var(--font-size-2xl);
    }

    /* Contact cards */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn--large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-sm);
    }

    /* Header */
    .site-header {
        --header-height: 70px;
    }

    .logo img {
        height: 35px;
    }

    /* Service blocks */
    .service-block {
        padding: var(--space-8) 0;
        gap: var(--space-6);
    }

    .service-block__number {
        font-size: var(--font-size-4xl);
    }

    .service-block__image img {
        height: 250px;
    }
}

/* ===== LARGE SCREENS (> 1400px) ===== */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .language-switcher,
    .scroll-indicator,
    .btn {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
        background: none;
        color: var(--color-text);
    }

    .hero__title,
    .hero__subtitle {
        color: var(--color-text);
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: var(--font-size-sm);
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-text-light: #333333;
        --shadow-card: 0 0 0 2px var(--color-text);
    }

    .btn {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ==========================================================================
   Additional Components for Page Templates
   ========================================================================== */

/* ===== STATS ROW (Featured Section) ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    color: var(--color-white);
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-item__label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

@media (max-width: 991px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .stat-item__number {
        font-size: var(--font-size-4xl);
    }
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background-color: var(--color-primary);
    padding: var(--space-16) 0;
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: -59px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-primary);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ===== PROJECT DETAILS ===== */
.project-details {
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-card);
}

.project-details__header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-gray-200);
}

.project-details__meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.project-meta-item {
    text-align: center;
    padding: var(--space-4);
    background-color: var(--color-gray-50);
    border-radius: var(--border-radius-md);
}

.project-meta-item__label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.project-meta-item__value {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.project-details__content h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.project-details__content h3:first-child {
    margin-top: 0;
}

.project-details__content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.project-details__content ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
}

.project-details__content ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.project-details__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@media (max-width: 991px) {
    .project-details__meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .project-details {
        padding: var(--space-6);
    }

    .project-details__meta {
        grid-template-columns: 1fr;
    }
}

/* ===== FUNDING BADGE ===== */
.funding-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-4);
    background-color: var(--color-gray-50);
    border-radius: var(--border-radius-md);
}

.funding-badge__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin: 0;
}

@media (max-width: 575px) {
    .funding-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

/* ===== PROCESS TIMELINE ===== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--color-gray-200);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 70px;
    height: 70px;
    background-color: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0 auto var(--space-4);
    position: relative;
    z-index: 1;
}

.process-step__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.process-step__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

@media (max-width: 991px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}
