/* ============================================
   URBAN INTERIORS - ARCHITECTURAL DARK MONOCHROME
   Stark, precise, refined
   ============================================ */

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Dark Monochrome Palette */
    --black: #050505;
    --black-rich: #0a0a0a;
    --black-soft: #111111;
    --black-lighter: #1a1a1a;
    --black-border: #2a2a2a;
    --black-border-subtle: #1a1a1a;

    /* White colors */
    --white: #ffffff;
    --white-off: #f5f5f5;
    --white-dim: #e0e0e0;
    --white-02: rgba(255, 255, 255, 0.03);
    --white-05: rgba(255, 255, 255, 0.05);
    --white-30: rgba(255, 255, 255, 0.3);

    /* Gray for secondary text - good contrast on dark */
    --gray: #a0a0a0;
    --gray-dark: #808080;
    --gray-darker: #606060;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    --space-3xl: 160px;

    /* Container */
    --container-max: 1400px;
    --container-narrow: 900px;
    --padding-x: 48px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration: 0.6s;
    --duration-fast: 0.3s;
}

@media (max-width: 768px) {
    :root {
        --padding-x: 24px;
        --space-xl: 60px;
        --space-2xl: 80px;
        --space-3xl: 100px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--white-dim);
    background-color: var(--black);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background-color: var(--white);
    color: var(--black);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(40px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
}

h3 {
    font-size: clamp(24px, 3vw, 36px);
}

h4 {
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 500;
}

p {
    color: var(--gray);
}

.text-large {
    font-size: 20px;
    line-height: 1.6;
}

.text-small {
    font-size: 14px;
}

.text-mono {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-dark);
}

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

.text-italic {
    font-style: italic;
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

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

.section {
    padding: var(--space-2xl) 0;
}

.section-large {
    padding: var(--space-3xl) 0;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background var(--duration-fast) ease, backdrop-filter var(--duration-fast) ease;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: opacity var(--duration-fast) ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    position: relative;
    padding: 4px 0;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width var(--duration-fast) var(--ease-out);
}

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

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

.header-cta {
    margin-left: auto;
    padding: 9px 20px;
    font-size: 13px;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.menu-btn span:nth-child(1) { top: 4px; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 4px; }

.menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 1100px) {
    .nav {
        display: none !important;
    }

    .header-cta {
        display: none !important;
    }

    .menu-btn {
        margin-left: auto;
    }

    .menu-btn {
        display: block;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px var(--padding-x) var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease-out);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 56px);
    color: var(--white);
    padding: var(--space-sm) 0;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration) var(--ease-out);
}

.mobile-nav.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-link:hover {
    color: var(--gray);
}

.mobile-nav-cta {
    width: 100%;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration) var(--ease-out);
}

.mobile-nav.active .mobile-nav-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--black-border);
}

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

.btn-ghost {
    padding: 8px 0;
    background: transparent;
    color: var(--white);
    border: none;
    border-bottom: 1px solid var(--white);
}

.btn-ghost:hover {
    color: var(--gray);
    border-color: var(--gray);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        var(--black) 0%,
        transparent 30%,
        transparent 60%,
        var(--black) 100%
    );
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-label {
    display: block;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    max-width: 1000px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
    max-width: 500px;
    font-size: 18px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--padding-x);
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gray-dark), transparent);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MARQUEE ========== */
.marquee {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-right: var(--space-xl);
    flex-shrink: 0;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 48px);
    color: var(--white);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.marquee-item::after {
    content: '◆';
    font-size: 12px;
    color: var(--gray-darker);
}

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

/* ========== INTRO SECTION ========== */
.intro {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.intro-content {
    max-width: 700px;
}

.intro-content p {
    font-size: 20px;
    line-height: 1.7;
    color: var(--white-dim);
}

.intro-content p + p {
    margin-top: 1.5em;
}

@media (max-width: 768px) {
    .intro {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Intro split (with image) */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.intro-text .intro-content p {
    font-size: 20px;
    line-height: 1.7;
    color: var(--white-dim);
}

.intro-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--duration) ease;
}

.intro-image:hover img {
    filter: grayscale(50%);
}

@media (max-width: 768px) {
    .intro-split {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    background: transparent;
}

.service-card {
    background: var(--white-02);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-fast) ease;
    border-radius: var(--radius-lg);
    border: 1px solid var(--black-border-subtle);
}

.service-card:hover {
    background: var(--white-05);
    border-color: var(--black-border);
}

.service-number {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--gray-darker);
    line-height: 1;
    margin-bottom: auto;
    transition: color var(--duration-fast) ease;
}

.service-card:hover .service-number {
    color: var(--gray-dark);
}

.service-title {
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 15px;
    color: var(--gray);
}

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

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

/* ========== SERVICES PHOTOS (index homepage strip) ========== */
.services-photos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: var(--space-md);
}

.service-photo {
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    cursor: pointer;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all var(--duration) var(--ease-out);
}

.service-photo:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.service-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    background: linear-gradient(0deg, rgba(5,5,5,0.85) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-photo-num {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--white-30);
    line-height: 1;
}

.service-photo-label > span:not(.service-photo-num) {
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    .services-photos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .services-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== SERVICE CARD WITH PHOTO (diensten page) ========== */
.service-card-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--black-border-subtle);
    min-height: 280px;
    cursor: pointer;
}

.service-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all var(--duration) var(--ease-out);
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-photo:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.service-card-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px var(--space-lg) var(--space-lg);
    background: linear-gradient(0deg, rgba(5,5,5,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-card-photo-num {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--white-30);
    line-height: 1;
}

.service-card-photo-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    line-height: 1.1;
}

.service-card-photo-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ========== SPLIT SECTION ========== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

.split-content {
    max-width: 500px;
}

.split-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform var(--duration) var(--ease-out), filter var(--duration) var(--ease-out);
}

.split-image:hover img {
    transform: scale(1.05);
    filter: grayscale(50%);
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .split-reverse {
        direction: ltr;
    }

    .split-image {
        order: -1;
        aspect-ratio: 16/10;
    }
}

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.portfolio-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all var(--duration) var(--ease-out);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-info {
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.portfolio-title {
    font-size: 20px;
    transition: color var(--duration-fast) ease;
}

.portfolio-item:hover .portfolio-title {
    color: var(--gray);
}

.portfolio-category {
    font-size: 13px;
    color: var(--gray-dark);
}

.portfolio-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    flex-shrink: 0;
}

.portfolio-arrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--gray);
    transition: stroke var(--duration-fast) ease;
}

.portfolio-item:hover .portfolio-arrow {
    background: var(--white);
    border-color: var(--white);
}

.portfolio-item:hover .portfolio-arrow svg {
    stroke: var(--black);
}

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

/* ========== PROCESS STEPS ========== */
.process-list {
    border-top: 1px solid var(--black-border);
}

.process-item {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--black-border);
    transition: background var(--duration-fast) ease;
}

.process-item:hover {
    background: var(--black-soft);
    margin: 0 calc(var(--padding-x) * -1);
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

.process-number {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--gray-darker);
    line-height: 1;
}

.process-title {
    font-size: 28px;
}

.process-desc {
    font-size: 15px;
    color: var(--gray);
    max-width: 400px;
}

@media (max-width: 900px) {
    .process-item {
        grid-template-columns: 80px 1fr;
        gap: var(--space-md);
    }

    .process-desc {
        grid-column: 2;
    }
}

@media (max-width: 600px) {
    .process-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .process-number {
        font-size: 32px;
    }

    .process-desc {
        grid-column: 1;
    }
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    background: transparent;
}

.stat-item {
    background: var(--white-02);
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--black-border-subtle);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

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

/* ========== CTA SECTION ========== */
.cta-section {
    background: transparent;
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-02);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--black-border-subtle);
}

.cta-title {
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 18px;
    margin-bottom: var(--space-lg);
}

/* Floating CTA that overlaps footer */
.cta-floating {
    position: relative;
    z-index: 10;
    padding-bottom: 0;
    margin-bottom: -140px; /* More overlap into footer */
}

.cta-floating .cta-inner {
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .cta-floating {
        margin-bottom: -100px;
    }
}

/* ========== CONTACT INFO ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--black-border);
}

.contact-item-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
    margin-bottom: var(--space-xs);
}

.contact-item-value {
    font-size: 15px;
    color: var(--white);
}

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

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

/* ========== ABOUT HERO IMAGE ========== */
.about-hero-image {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--duration) ease;
}

.about-hero-image:hover img {
    filter: grayscale(50%);
}

@media (max-width: 768px) {
    .about-hero-image {
        aspect-ratio: 16/9;
    }
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding-top: 180px;
    padding-bottom: var(--space-xl);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--black-border), transparent);
}

.page-header-content {
    max-width: 900px;
}

.page-header h1 {
    margin-bottom: var(--space-md);
}

.page-header .text-large {
    color: var(--gray);
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 140px;
    }
}

/* ========== DIENST SECTIONS ========== */
.dienst-section {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--black-border);
}

.dienst-section:last-of-type {
    border-bottom: none;
}

.dienst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.dienst-header {
    position: sticky;
    top: 120px;
}

.dienst-number {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-dark);
    margin-bottom: var(--space-sm);
}

.dienst-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: var(--space-md);
}

.dienst-content p {
    font-size: 17px;
    margin-bottom: 1.5em;
}

.dienst-features {
    margin-top: var(--space-lg);
}

.feature-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--black-border);
    display: flex;
    gap: var(--space-md);
}

.feature-item:first-child {
    border-top: 1px solid var(--black-border);
}

.feature-icon {
    width: 8px;
    height: 8px;
    background: var(--white);
    flex-shrink: 0;
    margin-top: 8px;
}

.feature-text {
    font-size: 15px;
}

.feature-text strong {
    color: var(--white);
    font-weight: 500;
}

@media (max-width: 900px) {
    .dienst-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .dienst-header {
        position: static;
    }
}

/* ========== FORM STYLES ========== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--white);
    background: var(--white-02);
    border: 1px solid var(--black-border-subtle);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-fast) ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--white-30);
    background: var(--white-05);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-dark);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

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

/* ========== FOOTER ========== */
.footer {
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid var(--black-border);
    background: var(--black-rich);
}

/* Footer with floating CTA overlap */
.footer-with-cta {
    padding-top: calc(var(--space-xl) + 160px); /* Extra space for CTA overlap */
}

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    display: block;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

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

.footer-link {
    font-size: 14px;
    color: var(--gray);
    transition: color var(--duration-fast) ease;
}

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

.footer-contact-item {
    margin-bottom: var(--space-sm);
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
    margin-bottom: 4px;
}

.footer-contact-value {
    font-size: 14px;
    color: var(--white-dim);
}

.footer-contact-value a {
    color: var(--white-dim);
    transition: color var(--duration-fast) ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--black-border);
}

.footer-copy {
    font-size: 13px;
    color: var(--gray-dark);
    flex: 1;
}

.footer-credit {
    font-size: 13px;
    flex: 1;
    text-align: center;
    color: var(--gray-dark);
}

.footer-credit a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all var(--duration-fast) ease;
}

.footer-social-link:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* Legacy footer support */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-with-cta {
        padding-top: calc(var(--space-xl) + 120px);
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

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

    .footer-social {
        order: -1;
    }
}

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

/* ========== 404 ERROR PAGE ========== */
.error-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-lg) 0 var(--space-xl);
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(120px, 20vw, 280px);
    color: transparent;
    -webkit-text-stroke: 1px var(--black-border);
    line-height: 0.85;
    margin-bottom: var(--space-lg);
    user-select: none;
}

.error-text {
    font-size: 18px;
    color: var(--gray);
    max-width: 460px;
    margin: 0 auto var(--space-lg);
}

.error-content .btn-group {
    justify-content: center;
}

@media (max-width: 768px) {
    .error-content {
        padding: var(--space-md) 0 var(--space-lg);
    }

    .error-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .error-content .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .error-content .btn-group .btn {
        width: 100%;
    }
}

/* ========== UTILITIES ========== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

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

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

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--black-border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-darker);
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    opacity: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-option {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    font-family: var(--font-body);
}

.lang-option:hover {
    color: var(--white);
}

.lang-option.active {
    color: var(--black);
    background: var(--white);
}

.lang-option + .lang-option {
    border-left: 1px solid var(--black-border);
}

/* Mobile lang switcher */
.mobile-lang-switcher {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.mobile-lang-switcher .lang-option {
    padding: 8px 16px;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.mobile-lang-switcher .lang-option + .lang-option {
    border-left: 1px solid var(--black-border);
}

@media (max-width: 900px) {
    .lang-switcher {
        display: none;
    }
}

@media (min-width: 901px) {
    .mobile-lang-switcher {
        display: none;
    }
}

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 768px) {
    /* Larger touch targets for buttons */
    .btn {
        padding: 14px 22px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Hero adjustments */
    .hero {
        min-height: 100svh; /* Use small viewport height for mobile browsers */
        padding-bottom: var(--space-lg);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Standalone buttons stay inline */
    .text-center .btn {
        width: auto;
    }

    /* Better text sizing */
    .text-large {
        font-size: 17px;
    }

    /* Service cards on mobile */
    .service-card {
        min-height: 220px;
        padding: var(--space-md);
    }

    .service-number {
        font-size: 48px;
    }

    /* CTA section */
    .cta-inner {
        padding: var(--space-lg) var(--space-md);
    }

    /* Form improvements */
    .form-input,
    .form-textarea {
        padding: var(--space-sm);
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Stats on mobile */
    .stat-item {
        padding: var(--space-md);
    }

    .stat-value {
        font-size: 40px;
    }

    /* Footer nav wrapping */
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-title {
        font-size: 40px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Portfolio on small screens */
    .portfolio-info {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .portfolio-arrow {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .portfolio-item:hover .portfolio-image img {
        transform: none;
    }

    .split-image:hover img {
        transform: none;
    }

    /* Make gallery items show overlay by default */
    .gallery-item-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    /* Ensure tap targets are large enough */
    .nav-link,
    .footer-link {
        padding: 8px 4px;
    }

    .filter-tab {
        padding: 12px 20px;
        min-height: 44px;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(var(--padding-x), env(safe-area-inset-left));
        padding-right: max(var(--padding-x), env(safe-area-inset-right));
    }

    .mobile-nav {
        padding-left: max(var(--padding-x), env(safe-area-inset-left));
        padding-right: max(var(--padding-x), env(safe-area-inset-right));
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
