/* ===== COLOR SCHEME ===== */
:root {
    /* Primary Colors */
    --color-primary-blue: #1e40af;        /* Main blue for big headers (Kapcsolat H1) */
    --color-light-blue: #2563eb;          /* Light blue for links and small headers */
    
    /* Background Colors */
    --color-bg-white: #ffffff;            /* Default white background */
    --color-bg-light-blue: #e0f2fe;       /* Light blue background for highlighting */
    --color-bg-blue: #bae6fd;             /* Blue background for sections */
    --color-bg-hover: #f0f9ff;            /* Light blue for hovered cards */
    --blue-gradient: linear-gradient(90deg, 
        #1e3a8a 0px,           /* Solid dark blue from left edge */
        #1e3a8a 200px,         /* Start gradient after 200px */
        #1e40af 960px,         /* 1/4 of 4K width (960px) */
        #2563eb 1920px,        /* Center of 4K width (1920px) */
        #1e40af 2880px,        /* 3/4 of 4K width (2880px) */
        #1e3a8a 3640px,        /* End gradient before 4K edge */
        #1e3a8a 3840px         /* Solid dark blue to 4K edge and beyond */
    );  /* 4K-optimized blue gradient */
    --light-grey-bg: #f1f5f9;             /* Cool light grey that complements blue */
    
    /* Text Colors */
    --color-text-dark: #1f2937;           /* Dark text */
    --color-text-medium: #374151;         /* Medium text */
    --color-text-light: #6b7280;          /* Light text */
    
    /* Accent Colors */
    --color-accent-blue: #1d4ed8;         /* Darker blue for accents */
    --color-border-light: rgba(37, 99, 235, 0.1);  /* Light border */
    --color-border-medium: rgba(37, 99, 235, 0.3); /* Medium border */
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent white showing below the footer (short pages / overscroll) */
    background: #1f2937;
    /* Prevent accidental horizontal page panning on mobile (tables should scroll inside their containers) */
    overflow-x: hidden;
}

/* (keep horizontal scroll prevention minimal; table scrolling is handled inside `.reference-table-container`) */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    /* Prevent accidental horizontal page panning on mobile (tables should scroll inside their containers) */
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

/* Universal heading color - unify h2 and h3 to dark blue; keep h1 blue */
h1 {
    color: #2563eb; /* Blue for h1 */
}

h2, h3 {
    color: #1e40af; /* Dark blue for h2 and h3 */
}

h4 {
    color: #2563eb !important; /* Blue for h4 - force override for specificity issues */
}

h3 {
    font-size: 1.875rem;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo .logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-logo h2 {
    color: #2563eb;
    font-size: 1.75rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.lang-separator {
    color: #d1d5db;
    font-weight: 300;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 45px;
    /* More noticeable by default (mobile will show it via responsive.css) */
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.28);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.hamburger:hover {
    background-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22);
}

.hamburger:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.bar {
    width: 40px;
    height: 5px;
    background: #2563eb;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation - Transform to X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* ===== HERO SECTION ===== */
.hero {
    /* Top padding: 80px (navbar) + 80px (visual gap) = 160px from Top of Page */
    /* Navbar overlays hero; keep content readable without a big empty band */
    padding: 120px 0 100px 0 !important;
    margin-top: 0;
    background: var(--blue-gradient);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    text-align: left;
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.8s ease-out 0.2s both;
    transition: all 0.3s ease;
}


.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.glass-card ul {
    list-style: none;
    padding: 0;
}

.glass-card li {
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.glass-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    border: 2px solid #1e40af;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.services {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Homepage services cards: equal-height, CTA aligned; icons removed */
.services .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Full-card link styling (no underline, preserve card look) */
.services .service-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.services .service-card-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
}

.services .service-card p {
    margin-bottom: 0;
}

/* Align descriptions: reserve equal title height across cards (2-line clamp) */
.services.light-bg .service-card h3 {
    /* Keep the description starting at the same Y across cards */
    min-height: calc(2 * 1.2em); /* 2 lines */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* If any legacy pages still render a service icon, hide it in the homepage services section */
.services .service-icon {
    display: none;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    background: #f0f9ff;
    transform: translateY(-3px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #2563eb;
}

.service-card h3 {
    color: #1e40af; /* unify with h2 */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #1d4ed8;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 0;
    background: var(--blue-gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: #2563eb;
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: #2563eb;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ===== PRICING PAGE ===== */
.pricing-overview {
    padding: 80px 0;
    background: white;
}

.pricing-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.principle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.principle-card h3 {
    margin-bottom: 1rem;
}

.principle-card p {
    color: #374151;
}

.service-pricing {
    padding: 80px 0;
    background: #f8fafc;
}

.pricing-section {
    margin-bottom: 4rem;
}

.pricing-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.pricing-table-container {
    margin-top: 3rem;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    table-layout: fixed; /* Ensures uniform column widths */
}

.pricing-table th {
    background: #1e40af !important;
    color: white !important;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.pricing-table th.service-name {
    width: 45%; /* Service name column takes up 45% of width */
    text-align: left;
}

.pricing-table th.price {
    width: 20%; /* Price column takes up 20% of width */
    text-align: center;
}

.pricing-table th.details {
    width: 35%; /* Details column takes up 35% of width */
    text-align: left;
}

.pricing-table th:first-child {
    border-top-left-radius: 10px;
    background: #1e40af !important;
}

.pricing-table th:last-child {
    border-top-right-radius: 10px;
    background: #1e40af !important;
}

.pricing-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.pricing-table tbody tr:hover {
    background: #f8fafc;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table .service-name {
    text-align: left;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.pricing-table .price {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
}

.pricing-table .details {
    text-align: left;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Section header rows for grouping services */
.pricing-table .section-header-row {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.05));
}

.pricing-table .section-header {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e40af;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Legacy support for existing tables */
.pricing-table td:nth-child(2) {
    font-weight: 600;
    color: #2563eb;
    text-align: center;
}

.pricing-table td:nth-child(3) {
    color: #6b7280;
    font-size: 0.95rem;
}

.pricing-factors {
    padding: 80px 0;
    background: white;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.factor-item {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.factor-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.factor-item h4 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.factor-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.pricing-note {
    margin-top: 3rem;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.pricing-note p {
    margin: 0;
    color: #1e40af;
    font-size: 1rem;
    line-height: 1.6;
}

.quote-request {
    padding: 80px 0;
    background: var(--blue-gradient);
    color: white;
    text-align: center;
}

.quote-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.quote-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quote-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #dbeafe;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dbeafe;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

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

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

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 120px 0 80px;
    background: var(--blue-gradient);
    text-align: center;
}

.page-hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
    color: #e2e8f0;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== COMPANY INTRODUCTION ===== */
.company-intro {
    padding: 80px 0;
    background: var(--light-grey-bg);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #374151;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2563eb;
}

.detail-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.detail-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 80px 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-img {
    border-color: #2563eb;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.team-position {
    color: #2563eb;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.team-areas {
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.expertise-tag {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== VALUES SECTION ===== */
.values {
    padding: 80px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #2563eb;
}

.value-card h3 {
    color: #1e40af; /* unify with h2 */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* ===== DIRECTOR INTRODUCTION ===== */
.director-intro {
    padding: 80px 0;
    background: #f8fafc;
}

.director-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== COMPACT DIRECTOR INTRODUCTION ===== */
.director-intro-compact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.director-intro-compact:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.director-intro-compact .director-photo {
    margin-bottom: 1.5rem;
}

.director-intro-compact .director-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}


.director-intro-compact .director-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.director-intro-compact .director-title {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.director-intro-compact .director-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.director-intro-compact .director-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.director-intro-compact .expertise-tag {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.director-intro-compact .expertise-tag:hover {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    transform: translateY(-1px);
}

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

.director-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.director-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.director-title {
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.director-description {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.director-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ===== CONTACT INFORMATION ===== */
.contact-info {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-details h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.contact-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0f2fe;
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-text p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.contact-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== CONTACT ITEMS GRID ===== */
.contact-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== LIGHT BACKGROUND SECTIONS ===== */
.light-bg {
    background: var(--light-grey-bg) !important;
}

/* ===== SERVICES SECTION ===== */
.services-detailed {
    padding: 80px 0;
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.service-icon {
    color: var(--color-light-blue);
    flex-shrink: 0;
}

.service-title h2 {
    color: var(--color-primary-blue);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.service-subtitle {
    color: var(--color-text-medium);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-title p {
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-details {
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-group {
    margin-bottom: 0;
}

.service-group h3 {
    color: var(--color-primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--color-light-blue);
    padding-bottom: 0.5rem;
}

.service-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-group li {
    color: var(--color-text-dark);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.service-group li::before {
    content: "•";
    color: var(--color-light-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.services-intro {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--color-light-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.services-intro p {
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.services-intro strong {
    color: var(--color-primary-blue);
}

/* ===== CONTACT FORM AND DIRECTOR SECTION ===== */
.contact-form-director {
    padding: 80px 0;
    background: var(--blue-gradient);
}

.contact-form-director-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px; /* Increased from 120px */
    font-family: inherit;
    line-height: 1.5;
}

/* Mobile-specific textarea improvements */
@media (max-width: 768px) {
    .form-textarea {
        min-height: 180px; /* Even larger on mobile */
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem; /* More padding for easier touch */
    }
    
    .form-input,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
}

/* ===== GDPR CONSENT CHECKBOX ===== */
.gdpr-consent {
    margin-bottom: 1.5rem !important;
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gdpr-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.gdpr-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.gdpr-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gdpr-text {
    color: #374151;
    flex: 1;
}

.gdpr-text a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.gdpr-text a:hover {
    color: #1d4ed8;
}

.gdpr-checkbox:hover .checkmark {
    border-color: #2563eb;
}

/* ===== PRIVACY POLICY STYLING ===== */
/* Unified heading styles for privacy policy */
.intro-text h2 {
    color: #2563eb;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.intro-text h2:first-of-type {
    margin-top: 0;
}

.intro-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Unified text styles */
.intro-text p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.intro-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.intro-text li {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.intro-text strong {
    color: #111827;
    font-weight: 600;
}

.intro-text a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.intro-text a:hover {
    color: #1d4ed8;
}

/* Contact info box styling for privacy policy */
.contact-info-box {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-info-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-box p {
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

/* ===== HIGHLIGHT STATISTICS CARDS ===== */
.highlight-stats {
    padding: 60px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.highlight-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.highlight-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: #2563eb;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.highlight-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Mobile responsive for highlight cards */
@media (max-width: 768px) {
    .highlight-stats {
        padding: 40px 0;
    }
    
    .highlight-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem 1rem;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .highlight-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .highlight-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 2rem 1.5rem;
    }
}

/* ===== REFERENCES CATEGORIES SECTION ===== */
.references-categories {
    background: white;
    padding: 80px 0;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6b7280;
    pointer-events: none;
}

/* ===== SERVICE INFO CARDS ===== */
.service-info-section {
    padding: 60px 0;
    background: #f8fafc;
}

/* ===== PRICING FACTORS / OVERVIEW: COMPACT 2x3 CARDS ===== */
#pricing-factors.service-info-section,
#pricing-overview.service-info-section {
    padding: 40px 0;
}

#pricing-factors .section-header,
#pricing-overview .section-header {
    margin-bottom: 1.25rem;
}

#pricing-factors .section-header {
    text-align: center;
    margin-bottom: 0;
}

#pricing-factors .section-header p {
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.8;
}

#pricing-factors .service-info,
#pricing-overview .service-info {
    margin-bottom: 1rem;
}

/* Desktop: 2 rows x 3 columns, compact cards */
@media (min-width: 1024px) {
    #pricing-factors .text-gallery-content,
    #pricing-overview .text-gallery-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    #pricing-factors .text-slide,
    #pricing-overview .text-slide {
        padding: 1.25rem;
        border-radius: 12px;
    }

    #pricing-factors .text-slide h3,
    #pricing-overview .text-slide h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    #pricing-factors .text-slide p,
    #pricing-overview .text-slide p {
        margin-bottom: 0;
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

/* Mobile/tablet: tighter gallery spacing */
@media (max-width: 1023px) {
    #pricing-factors .text-gallery-header-nav,
    #pricing-overview .text-gallery-header-nav {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    #pricing-factors .header-nav-button,
    #pricing-overview .header-nav-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    #pricing-factors .text-slide,
    #pricing-overview .text-slide {
        padding: 1.25rem;
    }

    #pricing-overview .text-gallery[data-mobile-mode="stacked"] .text-gallery-header-nav,
    #pricing-overview .text-gallery[data-mobile-mode="stacked"] .text-gallery-dots {
        display: none;
    }

    #pricing-overview .text-gallery[data-mobile-mode="stacked"] .text-gallery-content {
        display: grid;
        gap: 1rem;
        background: transparent;
        padding: 0;
        border: none;
        min-height: auto;
        margin-bottom: 0;
    }

    #pricing-overview .text-gallery[data-mobile-mode="stacked"] .text-slide,
    html.js-enabled #pricing-overview .text-gallery[data-mobile-mode="stacked"] .text-slide {
        opacity: 1;
        visibility: visible;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        background: #f8fafc;
        border: 1px solid rgba(37, 99, 235, 0.1);
        border-radius: 12px;
        padding: 1.25rem;
    }
}

/* Styled "Fontos megjegyzés" like other notes */
#pricing-factors .pricing-note {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

#pricing-factors .pricing-note p {
    margin: 0;
}

.service-info {
    margin: 0;
}

/* Text Gallery System - Responsive */
.text-gallery {
    width: 100%;
}

/* Large screens: Show original grid layout */
@media (min-width: 1024px) {
    .text-gallery-content {
        display: grid;
        gap: 2rem;
        background: transparent;
        padding: 0;
        border: none;
        min-height: auto;
    }
    
    /* 2 slides: side by side */
    .text-gallery-content:has(.text-slide:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 3 slides: 2 on top, 1 centered below */
    .text-gallery-content:has(.text-slide:nth-child(3):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-gallery-content:has(.text-slide:nth-child(3):last-child) .text-slide:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    /* 4+ slides: 2x2 grid */
    .text-gallery-content:has(.text-slide:nth-child(4)) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-slide {
        opacity: 1;
        visibility: visible;
        position: static;
        background: #f8fafc;
        padding: 2rem;
        border-radius: 15px;
        border: 1px solid rgba(37, 99, 235, 0.1);
        transition: all 0.3s ease;
    }
    
    .text-slide:hover {
        transform: none;
        box-shadow: none;
    }
    
    .text-gallery-header-nav,
    .text-gallery-dots {
        display: none; /* Hide navigation on large screens */
    }
}

/* Medium and small screens: Website-consistent gallery */
@media (max-width: 1023px) {
    .text-gallery {
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* Header navigation - max 2 per row */
    .text-gallery-header-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .header-nav-button {
        /* Use existing btn-outline styling */
        background: transparent;
        color: #1e40af;
        border: 2px solid #1e40af;
        padding: 1rem 1.5rem;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }
    
    .header-nav-button:hover {
        background: #1e40af;
        color: white;
        transform: translateY(-2px);
    }
    
    .header-nav-button.active {
        /* Use existing btn-primary styling */
        background: linear-gradient(135deg, #1e40af, #1d4ed8);
        color: white;
        border: 2px solid #1e40af;
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    }
    
    /* Content area */
    .text-gallery-content {
        position: relative;
        background: #f8fafc;
        padding: 2.5rem;
        border-radius: 15px;
        border: 1px solid rgba(37, 99, 235, 0.1);
        min-height: 200px;
        margin-bottom: 1.5rem;
    }
    
    /* No-JS safe default: show all slides (content must never depend on JS to be visible) */
    .text-slide {
        opacity: 1;
        visibility: visible;
        position: static;
    }

    /* JS-enhanced mode: behave like a slider (only active slide visible) */
    html.js-enabled .text-slide {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 2.5rem;
        left: 2.5rem;
        right: 2.5rem;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    html.js-enabled .text-slide.active {
        opacity: 1;
        visibility: visible;
        position: static;
    }
    
    /* Keep slide headers visible on mobile/tablet too (match desktop + SEO) */
    .text-slide h3 {
        display: block;
    }
    
    /* Dot navigation */
    .text-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background: #cbd5e1;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dot:hover {
        background: #94a3b8;
        transform: scale(1.1);
    }
    
    .dot.active {
        background: #2563eb;
        transform: scale(1.2);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .text-gallery-header-nav {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .header-nav-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .text-gallery-content {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    html.js-enabled .text-slide {
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
}

/* Very small screens: long header labels should stack as 4x1 instead of 2x2 */
@media (max-width: 600px) {
    .text-gallery-header-nav {
        grid-template-columns: 1fr;
    }

    .header-nav-button {
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    .header-nav-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .text-gallery-content {
        padding: 1rem;
    }
    
    .text-slide {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

/* Common styles for text content */
.text-slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e40af;
}

.text-slide p {
    color: #374151;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.text-slide p + ul,
.text-slide p + p {
    margin-top: 0.75rem;
}

.text-slide ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.text-slide ul li {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
}

.text-slide ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 600;
}

/* Dot Navigation */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(37, 99, 235, 0.6);
    transform: scale(1.1);
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .service-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-info-card {
        padding: 1.5rem;
    }
}

/* ===== DETAILED SERVICES SECTION ===== */
.detailed-services {
    padding: 80px 0;
    background: white;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-detail {
    padding: 0;
}

.service-detail h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-detail p {
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .detailed-services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .service-detail h3 {
        font-size: 1.25rem;
    }
}

/* ===== CLIENT MARQUEE ===== */
.client-marquee {
    padding: 60px 0;
    /* Heavy background images are enabled after initial paint/idle via JS (.is-bg-ready) */
    background-color: #0b1220;
    overflow: hidden;
    position: relative;
}

/* Enable the heavy marquee photo background after idle */
.client-marquee.is-bg-ready {
    background-image: image-set(
        url('../images/slider_bg.avif') type('image/avif') 1x,
        url('../images/slider_bg.webp') type('image/webp') 1x,
        url('../images/slider_bg.png')  type('image/png') 1x
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.client-marquee::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.45); /* deep navy #0b1220 @ 58% for crisp contrast */
    z-index: 0; /* Sit below content, above background */
}

/* Ensure content is above the scrim */
.client-marquee .container,
.client-marquee .marquee-container {
    position: relative;
    z-index: 1;
}

/* Improve readability of headings and text over photo background */
.client-marquee .section-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.client-marquee .section-header p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    min-height: 200px;
    background: transparent;
    border-radius: 12px;
}

.marquee-track {
    display: flex;
    animation: marquee 300s linear infinite;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

/* Two-row layout support */
.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marquee-container.two-rows {
    min-height: 380px;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .marquee-container.two-rows {
        min-height: 320px;
    }
    /* Mobile-optimized background */
    .client-marquee.is-bg-ready {
        background-image: image-set(
            url('../images/slider_bg.avif') type('image/avif') 1x,
            url('../images/slider_bg.webp') type('image/webp') 1x,
            url('../images/slider_bg.png')  type('image/png') 1x
        );
    }
}

/* Reverse animation for second row */
.marquee-track.reverse {
    animation-direction: reverse;
}

/* Row panels behind each track for readability */
.marquee-container.two-rows > .marquee-track {
    position: relative;
}

.marquee-container.two-rows > .marquee-track::before {
    display: none; /* switch to per-card backgrounds instead of full-row panel */
}

/* Responsive marquee speeds based on screen size */
/* Tablets: 450s (50% slower than PC) */
@media (max-width: 1024px) and (min-width: 769px) {
    .marquee-track {
        animation-duration: 450s;
    }
}

/* Mobile: 600s (100% slower than PC) */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 600s;
    }
}

/* ===== RESPONSIVE GRADIENT ADJUSTMENTS ===== */

/* Tablets: Center gradient around 1280px (tablet center) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --blue-gradient: linear-gradient(90deg, 
            #1e3a8a 0px,           /* Solid dark blue from left edge */
            #1e3a8a 100px,         /* Start gradient after 100px */
            #1e40af 480px,         /* 1/4 of tablet range */
            #2563eb 1280px,        /* Center around tablet width */
            #1e40af 1680px,        /* 3/4 of tablet range */
            #1e3a8a 2080px,        /* End gradient */
            #1e3a8a 2560px         /* Solid dark blue beyond */
        );
    }
}

/* Mobile: Center gradient around 640px (mobile center) */
@media (max-width: 768px) {
    :root {
        --blue-gradient: linear-gradient(90deg, 
            #1e3a8a 0px,           /* Solid dark blue from left edge */
            #1e3a8a 50px,          /* Start gradient after 50px */
            #1e40af 240px,         /* 1/4 of mobile range */
            #2563eb 640px,         /* Center around mobile width */
            #1e40af 1040px,        /* 3/4 of mobile range */
            #1e3a8a 1240px,        /* End gradient */
            #1e3a8a 1440px         /* Solid dark blue beyond */
        );
    }
}

.marquee-track:active {
    cursor: grabbing;
}

.marquee-track.dragging {
    animation-play-state: paused !important;
    cursor: grabbing !important;
    transition: opacity 0.2s ease;
}

.marquee-track:not(.dragging) {
    animation-play-state: running !important;
}

@keyframes marquee {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.client-card {
    background: rgba(3, 7, 18, 0.35); /* slightly stronger per-card dark panel */
    border-radius: 12px;
    padding: 1.25rem 1.875rem;
    min-width: 280px;
    max-width: 320px;
    min-height: 90px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.22); /* white outline */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Light typography on dark image for glass cards */
.client-marquee .client-name {
    color: #f8fafc !important; /* override mobile dark color */
}

.client-marquee .client-category {
    color: rgba(248, 250, 252, 0.75);
}

.client-marquee .client-labels {
    gap: 0.375rem;
}

.client-marquee .client-label {
    background: transparent; /* remove pill background */
    color: #e5e7eb;
    border: none;
    padding: 0.125rem 0; /* keep even vertical rhythm without a pill */
}


.client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.client-category {
    font-size: 0.8rem;
    color: rgba(107, 114, 128, 0.7);
    margin-bottom: 0.25rem;
    font-weight: 500;
    line-height: 1.1;
}

.client-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-label {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .client-card {
        min-width: 230px;
        max-width: 260px;
        padding: 1rem 1rem;
        height: auto;
        justify-content: flex-start;
    }
    
    .client-card .client-name {
        order: 1;
        margin-bottom: 0.75rem;
    }
    
    .client-card .client-category {
        order: 2;
        margin-bottom: auto;
    }
    
    .client-card .client-labels {
        order: 3;
        margin-top: auto;
        align-self: flex-start;
    }
    
    .client-name {
        font-size: 1rem !important; /* +2px on mobile */
        line-height: 1.25 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box !important; /* enable multi-line clamp */
        -webkit-line-clamp: 2 !important; /* max 2 lines */
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .client-category {
        font-size: 0.875rem; /* +2px on mobile */
    }
    
    .client-labels {
        gap: 0.375rem; /* slightly tighter spacing on mobile */
    }

    .client-label {
        font-size: 0.7rem;
        padding: 0.125rem 0.375rem;
    }
    
    .marquee-track {
        animation-duration: 125s; /* 25% slower than previous 100s */
        gap: 1rem;
    }
    
    .marquee-container {
        min-height: 160px;
    }
}

/* ===== OFFICE LOCATION ===== */
.office-location {
    padding: 80px 0;
    background: #f8fafc;
}

.location-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.location-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.location-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-text h4 {
    color: #2563eb;
    margin: 2rem 0 1rem 0;
    font-size: 1.25rem;
}

.location-text p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.parking-info {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #2563eb;
    margin-top: 2rem;
}

.parking-info h4 {
    color: #1e40af;
    margin: 0 0 0.5rem 0;
}

.parking-info p {
    color: #6b7280;
    margin: 0;
}

.location-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-map iframe:hover {
    transform: scale(1.02);
}

.map-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.map-link:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: inherit;
}

/* ===== DIRECTOR INTRO COMPACT ===== */
.director-intro-compact {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.director-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.director-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.director-info h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.director-title {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.director-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.director-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.expertise-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.map-placeholder {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
    width: 100%;
}

.map-placeholder p:first-child {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.map-placeholder p:nth-child(2) {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-director-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-details h2 {
        font-size: 2rem;
    }
    
    .contact-form-container h2 {
        font-size: 2rem;
    }
    
    .director-intro-compact .director-info h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-container,
    .director-intro-compact {
        padding: 1.5rem;
    }
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== COMPANY DATA SECTION ===== */
.company-data {
    background: white;
    padding: 4rem 0;
}

.company-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.data-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.data-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.data-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.data-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.data-item strong {
    color: #374151;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.data-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.data-item a:hover {
    text-decoration: underline;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: #f0f9ff;
    color: #2563eb;
    transform: translateX(4px);
}

.social-link svg {
    flex-shrink: 0;
}

/* ===== PRICING SECTIONS ===== */
.pricing-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pricing-section:hover {
    background: rgba(37, 99, 235, 0.02);
}

.pricing-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.pricing-section h3::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to sections */
.pricing-section, .section-header-row {
    scroll-margin-top: 100px;
}

/* ===== RESPONSIVE DESIGN FOR NEW SECTIONS ===== */
@media (max-width: 768px) {
    .company-data-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .data-card {
        padding: 1.5rem;
    }
    
    .data-item strong {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .pricing-section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .pricing-section h3 {
        font-size: 1.25rem;
    }
    
    /* Responsive table adjustments */
    .pricing-table th.service-name {
        width: 50%; /* Increase service name width on mobile */
    }
    
    .pricing-table th.price {
        width: 25%; /* Increase price width on mobile */
    }
    
    .pricing-table th.details {
        width: 25%; /* Decrease details width on mobile */
    }
    
    .pricing-table td {
        padding: 1rem 0.75rem; /* Reduce padding on mobile */
        font-size: 0.9rem;
    }
    
    .pricing-table .service-name {
        font-size: 0.9rem;
    }
    
    .pricing-table .price {
        font-size: 1rem;
    }
    
    .pricing-table .details {
        font-size: 0.85rem;
    }
    
    .pricing-table .section-header {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* ===== UNIFY CARD DESIGN WITH HIGHLIGHT-CARD (HOMEPAGE SECTIONS) ===== */
.service-card, .value-card {
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card::before, .value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover, .value-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: #2563eb;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.service-card:hover::before, .value-card:hover::before {
    opacity: 1;
}

/* ===== SCRIM ABOVE SQUARE PATTERNS FOR BLUE SECTIONS ===== */
.hero, .cta, .page-hero, .quote-request {
    position: relative;
}

/* Place scrim ABOVE patterns (patterns use z-index: 0) */
.hero::after, .cta::after, .page-hero::after, .quote-request::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.18);
    z-index: 5; /* above pattern clusters that use z-index: 0 */
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::after, .cta::after, .page-hero::after, .quote-request::after {
        background: rgba(3, 7, 18, 0.22);
    }
}

/* Ensure section content stays on top of scrim */
.hero > *, .cta > *, .page-hero > *, .quote-request > * {
    position: relative;
    z-index: 6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 4rem;
}

.faq-section--flush {
    margin-top: 0;
}

.faq-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary-blue);
    margin-bottom: 2.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.03);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.4;
    flex: 1;
}

.faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--color-primary-blue);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.18s ease, padding 0.18s ease;
    padding: 0 1.5rem;
}

.faq-answer[hidden] {
    display: block !important; /* Override hidden to allow animation */
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer:not([hidden]) {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--color-text-medium);
    font-size: 1rem;
    line-height: 1.7;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

/* FAQ item active state */
.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(30, 64, 175, 0.02));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-section {
        margin-top: 3rem;
    }
    
    .faq-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .faq-container {
        gap: 0.75rem;
    }

    .faq-question {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 1rem;
    }

    .faq-answer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .faq-answer:not([hidden]) {
        padding-bottom: 1.1rem;
    }

    .faq-answer p {
        font-size: 0.92rem;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question,
    .faq-icon,
    .faq-answer {
        transition: none !important;
    }
}
