/* ==================== SELF-HOSTED FONTS ==================== */
/* DM Sans - Latin Extended */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans - Latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display - Latin Extended */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display - Latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Playfair Display Italic - Latin Extended */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display Italic - Latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/playfair-display-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================== BASE STYLES ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Swiss Blue Palette */
    --blue-900: #0a1628;
    --blue-800: #0f2744;
    --blue-700: #1a3a5c;
    --blue-600: #1e4d7b;
    --blue-500: #2563a8;
    --blue-400: #3b82c4;
    --blue-300: #60a5fa;
    --blue-200: #93c5fd;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    /* Neutral */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;

    /* Accent */
    --accent: #dc2626;
    --accent-light: #ef4444;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Type */
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--slate-50);
    overflow-x: hidden;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to right, #1b4d72, #2a6799);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.nav::before {
    /* Diagonal accent stripe */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(to top right, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.nav::after {
    /* Bottom grey bar */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #2d3e4a;
    border-top: 1px solid rgba(74, 106, 128, 0.5);
}

.nav:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-icon {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-1);
}

.nav-links a {
    display: block;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - var(--space-8));
}

/* Mobile Nav Toggle (CSS only) */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#nav-check {
    display: none;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-top: 72px;
    padding: var(--space-16) var(--space-6);
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header .section-label {
    color: var(--blue-300);
}

.page-header .section-title {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.page-header-desc {
    font-size: 1.125rem;
    color: var(--blue-200);
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--blue-300);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb span {
    color: var(--blue-400);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: var(--space-24) var(--space-6);
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

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

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

.section-blue {
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.section-cream {
    background: #f7f3ec;
}

/* ==================== CONTENT ==================== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.content-main {
    max-width: none;
}

.content-sidebar {
    position: sticky;
    top: 100px;
}

.content-text {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.content-text strong {
    color: var(--slate-800);
    font-weight: 600;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.content-heading:first-child {
    margin-top: 0;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--blue-300);
    box-shadow: 0 12px 24px rgba(37, 99, 168, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
    color: var(--blue-500);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: var(--space-2);
}

.card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* Info Card */
.info-card {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: 12px;
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
}

/* ==================== PRODUCT CARDS ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--blue-300);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 168, 0.12);
}

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

.product-card-featured {
    border-color: var(--blue-300);
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.product-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--blue-600);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: 4px;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    color: var(--blue-600);
}

.product-icon svg,
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: var(--space-2);
}

.product-card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.product-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card:hover .product-link {
    color: var(--blue-700);
}

/* ==================== BRAND CARDS ==================== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-8);
}

.brand-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: var(--space-8);
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: var(--blue-300);
    box-shadow: 0 20px 40px rgba(37, 99, 168, 0.1);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.brand-logo {
    width: 64px;
    height: 64px;
    background: var(--blue-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-600);
}

.brand-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--blue-900);
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.brand-card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.2s;
}

.brand-link:hover {
    color: var(--blue-700);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding-left: var(--space-10);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue-200);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-10);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-10) - 6px);
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--blue-500);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--blue-200);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-500);
    margin-bottom: var(--space-2);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: var(--space-2);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ==================== LINKS LIST ==================== */
.links-section {
    margin-bottom: var(--space-10);
}

.links-section:last-child {
    margin-bottom: 0;
}

.links-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--blue-200);
}

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

.link-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-item:hover {
    border-color: var(--blue-300);
    background: var(--blue-50);
    transform: translateX(4px);
}

.link-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    flex-shrink: 0;
}

.link-icon svg {
    width: 20px;
    height: 20px;
}

.link-content {
    flex: 1;
}

.link-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-800);
}

.link-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.link-arrow {
    color: var(--blue-400);
    transition: transform 0.2s;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: var(--space-1);
}

.contact-info-content p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--blue-600);
    text-decoration: none;
}

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

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
}

.hours-table tr {
    border-bottom: 1px solid var(--slate-200);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: var(--space-3) 0;
    font-size: 0.9375rem;
}

.hours-table td:first-child {
    color: var(--slate-600);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--slate-800);
}

/* Map Placeholder */
.map-container {
    background: var(--slate-100);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--slate-700);
}

/* Screen-reader-only heading utility — used to maintain heading hierarchy
   without visible text (e.g., section gets an SR-only h2 above an info-card h3) */
.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;
}

.map-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

/* ==================== EVENTS ==================== */
.event-card {
    background: var(--white);
    border: 2px solid var(--blue-200);
    border-radius: 20px;
    padding: var(--space-8);
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--blue-400);
    box-shadow: 0 12px 32px rgba(37, 99, 168, 0.12);
}

.event-date {
    background: var(--blue-600);
    color: var(--white);
    border-radius: 12px;
    padding: var(--space-4);
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.event-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: var(--space-2);
}

.event-content p {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.7;
}

.event-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    font-size: 0.875rem;
    color: var(--blue-600);
}

.event-location svg {
    width: 16px;
    height: 16px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 168, 0.25);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 168, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-700);
    border: 2px solid var(--blue-300);
}

.btn-secondary:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--blue-900);
    color: var(--white);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

.logo-stack {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-footer:hover .logo-stack {
    transform: scale(1.02);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--blue-300);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.footer-nav a {
    color: var(--blue-200);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--blue-200);
}

.footer-cookie-revoke {
    display: inline-block;
    margin-top: var(--space-2);
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--blue-300);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cookie-revoke:hover {
    color: var(--white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(to right, #1b4d72, #2a6799);
        flex-direction: column;
        padding: var(--space-4);
        border-bottom: 3px solid #2d3e4a;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    #nav-check:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #nav-check:checked ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #nav-check:checked ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    #nav-check:checked ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links a {
        padding: var(--space-3) var(--space-4);
    }

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

    .section {
        padding: var(--space-16) var(--space-4);
    }

    .page-header {
        padding: var(--space-12) var(--space-4);
    }

    .event-card {
        flex-direction: column;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

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

    .timeline {
        padding-left: var(--space-8);
    }

    .timeline-marker {
        left: calc(-1 * var(--space-8) - 6px);
    }
}

/* Video embed (YouTube facade + native MP4) */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-embed-yt {
    cursor: pointer;
}

.video-embed-yt:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

.video-embed-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.video-embed-yt:hover .video-embed-poster {
    transform: scale(1.02);
    filter: brightness(0.85);
}

.video-embed-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-embed-play svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.video-embed-yt:hover .video-embed-play svg {
    transform: scale(1.1);
}

.video-embed-yt > iframe,
.video-embed-mp4 video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Product card image (used inside brand-feature products grid) */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: var(--space-4);
    border-radius: 8px;
    background: var(--slate-100);
}

.product-card-with-image {
    padding-top: var(--space-4);
}

.product-card-with-image .product-icon {
    display: none;
}

/* Vehicle page layout */
.section-compact {
    padding-top: var(--space-6);
    padding-bottom: var(--space-4);
}

/* Visually attaches a section to whatever precedes it (info-box, test-vehicles).
   Used on the brands section in vehicle pages. */
.section-tight-top {
    padding-top: var(--space-8);
}

/* Test-vehicles section is tighter at the bottom so it flows into brands. */
.test-vehicles-section {
    padding-bottom: var(--space-8);
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.vehicle-body {
    max-width: 880px;
}

.vehicle-body h2,
.vehicle-body h3 {
    color: var(--blue-900);
}

.vehicle-body h2 {
    font-size: 1.75rem;
    margin: var(--space-8) 0 var(--space-4);
}

.vehicle-body h2:first-child {
    margin-top: 0;
}

.vehicle-body h3 {
    font-size: 1.25rem;
    margin: var(--space-6) 0 var(--space-3);
}

.vehicle-body p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

/* Brand feature block */
.brand-feature-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

.brand-feature {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
    border: 1px solid var(--slate-100);
}

.brand-feature-header {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.brand-feature-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-3);
    border: 1px solid var(--slate-100);
    flex-shrink: 0;
}

.brand-feature-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-600);
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 2.5rem;
    border: 0;
}

.brand-feature-titles {
    flex: 1;
    min-width: 0;
}

.brand-feature-name {
    font-size: 1.875rem;
    color: var(--blue-900);
    margin: 0 0 var(--space-1);
    line-height: 1.1;
}

.brand-feature-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--slate-600);
    font-size: 1.125rem;
    margin: 0;
}

.brand-feature-description {
    font-size: 1.0625rem;
    color: var(--slate-700);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.brand-feature-hint {
    color: var(--blue-700);
    margin-bottom: var(--space-4);
}

.brand-feature-link-row {
    margin-bottom: var(--space-6);
}

.brand-feature-videos {
    margin-top: var(--space-8);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--space-4);
}

/* Picture gallery */
.picture-gallery {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

.picture-gallery-1 { grid-template-columns: 1fr; }
.picture-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.picture-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.picture-gallery-4 { grid-template-columns: repeat(2, 1fr); }
.picture-gallery-5,
.picture-gallery-6 { grid-template-columns: repeat(3, 1fr); }

.picture-gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--slate-100);
    aspect-ratio: 4 / 3;
}

.picture-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.picture-gallery-item:hover img {
    transform: scale(1.04);
}

/* Test vehicles */
.test-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.test-vehicle-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 39, 68, 0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.test-vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 39, 68, 0.14);
}

.test-vehicle-body {
    padding: var(--space-5);
}

.test-vehicle-body h3 {
    color: var(--blue-900);
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.test-vehicle-body p {
    color: var(--slate-600);
    font-size: 0.9375rem;
    margin: 0;
}

/* Variant: photo as full-bleed background with text overlay.
   Activated when the test-vehicle markdown has an `image` field. */
.test-vehicle-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--blue-900);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.test-vehicle-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.test-vehicle-card-photo:hover .test-vehicle-bg {
    transform: scale(1.04);
}

.test-vehicle-card-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.test-vehicle-card-photo .test-vehicle-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--space-5);
}

.test-vehicle-card-photo .test-vehicle-body h3 {
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.test-vehicle-card-photo .test-vehicle-body p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.test-vehicle-cta {
    margin-top: var(--space-8);
    text-align: center;
}

/* Consultation */
.consultation {
    text-align: center;
}

.consultation-inner {
    max-width: 720px;
    margin: 0 auto;
}

.consultation-text {
    margin: 0 auto var(--space-8);
    max-width: 520px;
}

.consultation-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .brand-feature {
        padding: var(--space-5);
    }

    .brand-feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .brand-feature-logo {
        width: 72px;
        height: 72px;
    }

    .brand-feature-name {
        font-size: 1.5rem;
    }

    .picture-gallery-3,
    .picture-gallery-5,
    .picture-gallery-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .picture-gallery-4 {
        grid-template-columns: 1fr;
    }

    .brand-feature-videos {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   /firma — editorial heritage redesign
   ============================================================ */

.firma-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: var(--space-4);
}

.firma-section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 700;
    color: var(--blue-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-8);
    max-width: 18ch;
}

.firma-section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--blue-700);
}

/* Origin section: massive year + asymmetric photo */
.firma-origin-section {
    overflow: hidden;
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.firma-origin-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
}

.firma-origin-text {
    position: relative;
    z-index: 2;
}

.firma-origin-headline {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    font-weight: 700;
    color: var(--blue-900);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-6);
}

.firma-origin-headline em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--blue-700);
}

.firma-origin-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--slate-700);
    margin: 0 0 var(--space-6);
    max-width: 36ch;
}

.firma-origin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin: 0;
}

.firma-origin-meta-dot {
    color: var(--blue-400);
}

.firma-origin-photo {
    position: relative;
    margin: 0;
    z-index: 1;
}

.firma-origin-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 24px 60px -20px rgba(15, 39, 68, 0.45);
    filter: sepia(0.05) contrast(1.02);
}

.firma-origin-photo figcaption {
    position: absolute;
    left: var(--space-4);
    bottom: -2.25rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--slate-600);
    letter-spacing: 0.02em;
}

/* The huge "1952" — sits behind/over the photo on desktop */
.firma-origin-year {
    position: absolute;
    top: -1.5rem;
    right: -3vw;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(8rem, 18vw, 15rem);
    line-height: 0.85;
    color: var(--blue-900);
    opacity: 0.06;
    letter-spacing: -0.03em;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    white-space: nowrap;
}

.firma-origin-year-em {
    color: var(--accent);
    opacity: 1;
}

/* Timeline — editorial ordered list with vertical rule */
.firma-timeline-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.firma-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(7rem, 12rem) auto 1fr;
    column-gap: var(--space-6);
    row-gap: 0;
}

.firma-timeline-item {
    display: contents;
}

.firma-timeline-date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    color: var(--blue-700);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--slate-300);
    align-self: stretch;
}

.firma-timeline-rule {
    width: 1px;
    background: var(--slate-300);
    position: relative;
}

.firma-timeline-rule::before {
    content: "";
    position: absolute;
    left: 50%;
    top: var(--space-6);
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #f7f3ec;
}

.firma-timeline-item:first-child .firma-timeline-date,
.firma-timeline-item:first-child .firma-timeline-rule { border-top: 0; }

.firma-timeline-body {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--slate-300);
}

.firma-timeline-item:first-child .firma-timeline-body { border-top: 0; }

.firma-timeline-body h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-900);
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}

.firma-timeline-body p {
    color: var(--slate-700);
    line-height: 1.7;
    margin: 0;
    max-width: 60ch;
}

/* Heritage gallery — asymmetric 3-photo composition */
.firma-heritage-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

/* Heritage gallery: three photos in a single row. Column widths are
   proportional to each image's aspect ratio (portrait ad: 0.52,
   1968: 1.37, heute: 1.33) so at a shared row height each cell hugs
   its picture — no letterbox margins on the sides. */
.firma-heritage {
    display: grid;
    grid-template-columns: 0.52fr 1.37fr 1.33fr;
    grid-template-rows: clamp(260px, 45vh, 420px);
    grid-auto-flow: dense;
    gap: var(--space-5);
    margin-top: var(--space-8);
    align-items: stretch;
}

.firma-heritage-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--slate-100);
    box-shadow: 0 12px 32px -16px rgba(15, 39, 68, 0.25);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.firma-heritage-item:hover {
    transform: translateY(-3px);
}

.firma-heritage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Bottom gradient so the caption stays readable on any image content */
.firma-heritage-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(15, 22, 35, 0.7), rgba(15, 22, 35, 0));
    pointer-events: none;
}

.firma-heritage-item:hover img {
    transform: scale(1.02);
}

/* Position each photo in its aspect-matched column (chronological
   left→right: 1952 ad, 1968 photo, today). If you replace one of the
   images with a different aspect, retune the matching fr in
   .firma-heritage's grid-template-columns above. */
.firma-heritage-wide   { grid-column: 1; } /* portrait 1952 ad   ~0.52 */
.firma-heritage-tall   { grid-column: 2; } /* landscape 1968     ~1.37 */
.firma-heritage-square { grid-column: 3; } /* landscape heute    ~1.33 */

.firma-heritage-item figcaption {
    position: absolute;
    left: var(--space-4);
    bottom: var(--space-4);
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.firma-heritage-year {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1;
}

.firma-heritage-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* Operations — typographic figure cards */
.firma-ops-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.firma-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.firma-ops-card {
    padding: var(--space-6) 0 0;
    border-top: 2px solid var(--blue-900);
}

.firma-ops-card-credentials {
    border-top-color: var(--accent);
}

.firma-ops-figure {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: var(--blue-900);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3);
}

.firma-ops-figure-3 {
    color: var(--accent);
}

.firma-ops-unit {
    font-size: 0.45em;
    font-style: normal;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--slate-500);
    margin-left: var(--space-1);
    vertical-align: top;
    position: relative;
    top: 0.6em;
}

.firma-ops-card h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue-900);
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}

.firma-ops-card p {
    color: var(--slate-600);
    line-height: 1.7;
    margin: 0;
}

/* Team teaser linking to /team */
.firma-team-teaser {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.firma-team-teaser-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.firma-team-teaser-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 24px 60px -20px rgba(15, 39, 68, 0.4);
}

.firma-team-teaser-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.firma-team-teaser-text {
    max-width: 36ch;
}

.firma-team-teaser-motto {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.375rem;
    color: var(--blue-700);
    line-height: 1.45;
    margin: 0 0 var(--space-6);
    padding-left: var(--space-4);
    border-left: 2px solid var(--accent);
}

.firma-team-teaser-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
    text-decoration: none;
    margin-top: var(--space-6);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--blue-900);
    transition: gap 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.firma-team-teaser-cta:hover {
    gap: var(--space-3);
    color: var(--accent);
    border-color: var(--accent);
}

/* Brands prose — three text blocks side by side */
.firma-brands-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.firma-brands-prose {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.firma-brands-prose-block h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--blue-700);
    margin: 0 0 var(--space-3);
    font-weight: 400;
}

.firma-brands-prose-block p {
    color: var(--slate-700);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   /team — portrait grid
   ============================================================ */

.team-hero-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.team-hero {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 24px 60px -20px rgba(15, 39, 68, 0.4);
}

.team-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.team-hero-caption {
    position: absolute;
    inset: auto var(--space-6) var(--space-6) var(--space-6);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    text-align: right;
    line-height: 1.4;
}

.team-grid-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.team-grid-intro {
    max-width: 56ch;
    margin: 0 0 var(--space-12);
    font-size: 1.0625rem;
}

.team-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-10) var(--space-6);
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-member:hover {
    transform: translateY(-3px);
}

.team-member-photo-wrap {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: var(--slate-100);
    position: relative;
}

.team-member-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
    filter: grayscale(0.15);
}

.team-member:hover .team-member-photo-wrap img {
    transform: scale(1.03);
    filter: grayscale(0);
}

.team-member-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-300);
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--slate-100) 100%);
}

.team-member-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-900);
    margin: 0 0 var(--space-1);
    letter-spacing: -0.01em;
}

.team-member-role {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--blue-700);
    margin: 0 0 var(--space-3);
}

.team-member-bio {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.65;
    margin: 0;
}

.team-member-historical {
    grid-column: span 1;
    opacity: 0.85;
}

.team-member-historical .team-member-photo-wrap {
    background: linear-gradient(135deg, #f7f3ec 0%, var(--slate-100) 100%);
    border: 1px solid var(--slate-200);
}

.team-member-historical .team-member-name {
    color: var(--blue-700);
}

/* Team CTA at bottom */
.team-cta-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
    text-align: center;
}

.team-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.team-cta-text {
    margin: 0 auto var(--space-8);
}

/* Mobile adaptations for /firma + /team */
@media (max-width: 1024px) {
    .firma-origin-grid,
    .firma-team-teaser-inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .firma-origin-year {
        font-size: clamp(7rem, 22vw, 12rem);
        top: auto;
        bottom: -1rem;
        right: -2vw;
    }

    .firma-heritage {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .firma-heritage-tall,
    .firma-heritage-wide,
    .firma-heritage-square {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .firma-heritage-wide {
        aspect-ratio: 9 / 16;
    }

    .firma-ops-grid,
    .firma-brands-prose {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .firma-origin-section,
    .firma-team-teaser,
    .firma-heritage-section,
    .firma-timeline-section,
    .firma-ops-section,
    .firma-brands-section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .firma-timeline {
        grid-template-columns: 1fr;
    }

    .firma-timeline-rule {
        display: none;
    }

    .firma-timeline-date {
        padding-bottom: 0;
    }

    .firma-timeline-body {
        padding-top: var(--space-3);
    }

    .firma-heritage {
        grid-template-columns: 1fr;
    }

    .firma-heritage-tall,
    .firma-heritage-wide,
    .firma-heritage-square {
        aspect-ratio: 4 / 3;
    }

    .firma-ops-grid,
    .firma-brands-prose {
        grid-template-columns: 1fr;
    }

    .team-hero-caption {
        font-size: 0.9375rem;
        inset: auto var(--space-3) var(--space-3) var(--space-3);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6) var(--space-3);
    }

    .team-member-name {
        font-size: 1.0625rem;
    }

    .team-member-bio {
        font-size: 0.875rem;
    }
}

/* ============================================================
   Brand feature — two-column layout with media stage
   ============================================================ */

.brand-feature-body {
    display: block;
}

/* When a video is present, lay out copy + video side-by-side and vertically center
   the copy so a short paragraph doesn't leave a tall void next to the video. */
.brand-feature-body--with-video {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
    gap: var(--space-8);
    align-items: center;
}

.brand-feature-copy {
    min-width: 0;
}

.brand-feature-video-col {
    min-width: 0;
}

@media (max-width: 900px) {
    .brand-feature-body--with-video {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        align-items: stretch;
    }
}

/* Brand video stage */
.brand-video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-100);
    border-radius: 14px;
    overflow: hidden;
}

.brand-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-video-frame-yt {
    cursor: pointer;
    background: var(--slate-900);
}

.brand-video-frame-yt:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 3px;
}

.brand-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.brand-video-frame-yt:hover .brand-video-poster {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.brand-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.brand-video-play svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.brand-video-frame-yt:hover .brand-video-play svg {
    transform: scale(1.1);
}

.brand-video-frame-loaded > iframe,
.brand-video-frame-mp4 > video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--slate-900);
    object-fit: cover;
}

.brand-video-queue-info {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(15, 39, 68, 0.75);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: var(--space-1) var(--space-2);
    border-radius: 999px;
    pointer-events: none;
}

/* Picture strip below the brand body — flex row that caps each item's width so
   small picture counts don't blow up to half the card. Wraps and centers the row
   when fewer items than fit per row. */
.picture-gallery-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-6) 0 0;
}

.picture-gallery-strip .picture-gallery-item {
    flex: 1 1 180px;
    max-width: 240px;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

@media (max-width: 640px) {
    .picture-gallery-strip .picture-gallery-item {
        flex: 1 1 100%;
        max-width: none;
    }
}

.picture-gallery-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    margin: 0;
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picture-gallery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 39, 68, 0.12);
}

.picture-gallery-button:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 3px;
}

.picture-gallery-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

/* Generic opt-in lightbox: signals tap-to-zoom on any <img class="lightbox-image"> */
img.lightbox-image {
    cursor: zoom-in;
}
img.lightbox-image:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 3px;
}

.picture-gallery-button:hover img {
    transform: scale(1.04);
}

.picture-gallery-zoom {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 39, 68, 0.85);
    color: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.picture-gallery-button:hover .picture-gallery-zoom,
.picture-gallery-button:focus-visible .picture-gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

.picture-gallery-caption {
    font-size: 0.8125rem;
    color: var(--slate-600);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* Picture lightbox (native <dialog>) — flex-column layout: toolbar (close), stage
   (prev | image | next), caption. Explicit vertical centring because UA defaults
   for dialog:modal centring vary across browsers. */
.picture-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    overflow: visible;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
}

.picture-lightbox:not([open]) {
    display: none;
}

.picture-lightbox::backdrop {
    background: rgba(15, 22, 35, 0.85);
    backdrop-filter: blur(4px);
}

.picture-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 0;
}

.picture-lightbox-image {
    max-width: 100%;
    max-height: calc(95vh - 80px); /* leaves room for caption + gap */
    min-height: 0;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.picture-lightbox-caption {
    color: var(--slate-100);
    font-size: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
    text-align: center;
    margin: 0;
    max-width: 60ch;
    align-self: center;
}

.picture-lightbox-caption[hidden] {
    display: none;
}

.picture-lightbox-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2.25rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picture-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.picture-lightbox-nav[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .picture-lightbox {
        gap: var(--space-3);
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        padding: var(--space-3);
        box-sizing: border-box;
        justify-content: center;
    }
    .picture-lightbox-stage {
        flex: 1 1 auto;
        min-height: 0;
        gap: 0;
    }
    .picture-lightbox-nav {
        display: none; /* Mobile: close via Esc / backdrop tap; navigate by re-opening */
    }
    .picture-lightbox-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .picture-lightbox-caption {
        padding: 0 var(--space-3);
        flex-shrink: 0;
    }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-8));
    max-width: 720px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 39, 68, 0.18);
    z-index: 1100;
    overflow: hidden;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
}

.cookie-banner-text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--slate-700);
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.cookie-banner-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-banner-btn-secondary {
    background: transparent;
    color: var(--slate-700);
    border-color: var(--slate-300);
}

.cookie-banner-btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
}

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

.cookie-banner-btn-primary:hover {
    background: var(--blue-700);
}

@media (max-width: 540px) {
    .cookie-banner {
        bottom: var(--space-2);
        width: calc(100% - var(--space-4));
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
