/* ============================
   Midtjysk Malerservice - Final Design
   Inspired by doge + ibsen + own style
   ============================ */

:root {
    --gold: #D4951A;
    --gold-light: #E8B44E;
    --gold-dark: #B07A12;
    --bordeaux: #6B1C23;
    --bordeaux-light: #8A2A33;
    --bordeaux-dark: #4E1219;

    --cream: #F5F0E8;
    --warm-white: #FDFBF7;
    --white: #FFFFFF;
    --gray-50: #F7F5F2;
    --gray-100: #E8E5E0;
    --gray-200: #D4D0C9;
    --gray-300: #B0ACA4;
    --gray-400: #8A8680;
    --gray-500: #6B6860;
    --gray-600: #4A4840;
    --gray-700: #33312B;
    --gray-800: #1C1B18;
    --gray-900: #0D0C0A;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.07);

    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.text-gold { color: var(--gold); }
.text-bordeaux { color: var(--bordeaux); }

/* ============================
   SECTION SHARED
   ============================ */
.section-header {
    max-width: 600px;
    margin-bottom: 56px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.section-header h2,
.about-content h2,
.contact-info h2,
.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253,251,247,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: relative;
    display: flex;
    height: 46px;
    min-width: 180px;
}

.nav-logo img {
    height: 46px;
    transition: opacity 0.5s ease, height var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

.logo-gold {
    opacity: 1;
}

.logo-bordeaux {
    opacity: 0;
}

.navbar.scrolled .nav-logo img { height: 38px; }
.navbar.scrolled .logo-gold { opacity: 0; }
.navbar.scrolled .logo-bordeaux { opacity: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--white);
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--gold-dark) !important;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.navbar.scrolled .nav-social {
    border-left-color: var(--gray-200);
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-social a {
    color: var(--gray-400);
}

.navbar.scrolled .nav-social a:hover {
    color: var(--bordeaux);
    background: var(--gray-50);
}

.nav-social svg {
    width: 17px;
    height: 17px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-800);
}

/* ============================
   HERO - Fullscreen with fading gallery background
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bordeaux-dark);
    overflow: hidden;
}

/* Slideshow background images */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

/* Dark overlay on images */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        160deg,
        rgba(13,12,10,0.82) 0%,
        rgba(107,28,35,0.7) 50%,
        rgba(13,12,10,0.75) 100%
    );
}

/* Fallback gradient if no gallery images */
.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, var(--bordeaux-dark) 0%, var(--bordeaux) 40%, var(--bordeaux-light) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 140px 0 100px;
    width: 100%;
    max-width: 720px;
}

.hero-text { /* no longer needed as grid child but keep for structure */ }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease-out;
}

.hero-badge::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero h1 .text-gold {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 36px;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero .btn-primary {
    background: var(--gold);
    box-shadow: 0 4px 20px rgba(212,149,26,0.3);
}

.hero .btn-primary:hover {
    background: var(--gold-dark);
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.hero .btn-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
    animation: fadeInUp 0.7s ease-out 0.4s both;
}

.stat { text-align: left; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide old hero visual elements (no longer split layout) */
.hero-visual { display: none; }
.hero-logo-showcase { display: none; }
.hero-logo-ring { display: none; }

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 28px;
    z-index: 10;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-indicator::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { width: 36px; opacity: 1; }
    50% { width: 18px; opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--bordeaux);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(107,28,35,0.2);
}

.btn-primary:hover {
    background: var(--bordeaux-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107,28,35,0.3);
}

.btn-secondary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(212,149,26,0.25);
}

.btn-secondary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--bordeaux);
    color: var(--bordeaux);
}

.btn-white {
    background: var(--white);
    color: var(--bordeaux);
    box-shadow: var(--shadow-md);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ============================
   MARQUEE TICKER
   ============================ */
.marquee {
    overflow: hidden;
    background: var(--bordeaux-dark);
    padding: 14px 0;
    white-space: nowrap;
}

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

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.marquee-item .dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

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

/* ============================
   SERVICES
   ============================ */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--bordeaux), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    color: var(--bordeaux);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.service-card-cta {
    background: linear-gradient(160deg, var(--bordeaux), var(--bordeaux-light));
    border-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-cta::before { display: none; }
.service-card-cta h3 { color: var(--white); font-family: var(--font-display); font-size: 1.35rem; }
.service-card-cta p { color: rgba(255,255,255,0.65); margin-bottom: 24px; }
.service-card-cta:hover { box-shadow: 0 20px 50px rgba(107,28,35,0.25); }

/* ============================
   BEFORE / AFTER SLIDER
   ============================ */
.before-after {
    padding: 120px 0;
    background: var(--cream);
}

.ba-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ba-text .section-tag { margin-bottom: 16px; }

.ba-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.ba-text p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.ba-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.ba-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--gray-700);
}

.ba-feature svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

/* The slider container */
.ba-slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    transition: opacity 0.3s ease;
}

.ba-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-img-before {
    z-index: 1;
}

.ba-img-after {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

/* Drag handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.ba-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.ba-handle::after {
    content: '\2194';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--bordeaux);
    z-index: 11;
    font-weight: 700;
}

/* Labels */
.ba-label {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }

/* Slider navigation dots */
.ba-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ba-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.ba-dot.active {
    background: var(--bordeaux);
    border-color: var(--bordeaux);
}

/* Placeholder for before/after when no images */
.ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

.ba-placeholder svg { width: 48px; height: 48px; }

/* ============================
   ABOUT
   ============================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual { position: relative; }

.about-image-block {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bordeaux);
    box-shadow: var(--shadow-lg);
}

.about-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 200px 200px at 70% 30%, rgba(232,168,36,0.1) 0%, transparent 100%),
        radial-gradient(ellipse 150px 150px at 30% 70%, rgba(255,255,255,0.04) 0%, transparent 100%);
}

.about-pattern::before, .about-pattern::after { display: none; }

.about-logo-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.about-logo-display img {
    width: 100%;
    max-width: 260px;
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0,0,0,0.2));
}

.about-visual::after {
    content: 'Stiftet i Randers';
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.about-content .section-tag { margin-bottom: 16px; }

.about-lead {
    font-size: 1.08rem;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-content > p {
    color: var(--gray-500);
    margin-bottom: 36px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.value {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.value:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg { width: 20px; height: 20px; color: var(--bordeaux); }
.value strong { display: block; font-size: 0.9rem; color: var(--gray-900); margin-bottom: 1px; }
.value span { font-size: 0.82rem; color: var(--gray-500); }

/* ============================
   TESTIMONIALS
   ============================ */
.why-us {
    padding: 120px 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.testimonial {
    padding: 36px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.testimonial.visible { opacity: 1; transform: translateY(0); }

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--cream);
}

.testimonial:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.testimonial-featured {
    background: var(--bordeaux);
}

.testimonial-featured::before { color: rgba(255,255,255,0.05); }
.testimonial-featured.visible { transform: translateY(0); }
.testimonial-featured:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(107,28,35,0.3); }

.testimonial-stars { display: flex; gap: 2px; margin-bottom: 20px; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--gold); }

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-featured .testimonial-text { color: rgba(255,255,255,0.7); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--bordeaux);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-featured .author-avatar { background: var(--gold); }
.testimonial-author strong { display: block; font-size: 0.88rem; color: var(--gray-900); }
.testimonial-featured .testimonial-author strong { color: var(--white); }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-400); }
.testimonial-featured .testimonial-author span { color: rgba(255,255,255,0.4); }

/* ============================
   GALLERY - Living grid
   ============================ */
.gallery {
    padding: 120px 0;
    background: var(--bordeaux-dark);
    overflow: hidden;
}

.gallery .section-header h2 { color: var(--white); }
.gallery .section-header p { color: var(--gray-400); }
.gallery .section-tag { color: var(--gold); }
.gallery .section-tag::before { background: var(--gold); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
    perspective: 1000px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    cursor: pointer;
}

.gallery-item.visible { opacity: 1; }

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.shuffling { animation: shuffleOut 0.5s ease-in forwards; }
.gallery-item.shuffling-in { animation: shuffleIn 0.5s ease-out forwards; }

@keyframes shuffleOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.92) rotateY(6deg); opacity: 0; }
}

@keyframes shuffleIn {
    0% { transform: scale(0.92) rotateY(-6deg); opacity: 0; }
    100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.gallery-item:nth-child(odd) { animation: gFloat1 6s ease-in-out infinite; }
.gallery-item:nth-child(even) { animation: gFloat2 8s ease-in-out infinite; }
.gallery-item:nth-child(3n) { animation: gFloat3 7s ease-in-out infinite; }

@keyframes gFloat1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes gFloat3 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-3px,-3px); } }

.gallery-placeholder {
    height: 100%;
    background: var(--bordeaux);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border-radius: var(--radius);
}

.gallery-placeholder:hover { background: var(--bordeaux-light); }
.gallery-placeholder-icon { color: rgba(255,255,255,0.25); }
.gallery-placeholder-icon svg { width: 36px; height: 36px; }
.gallery-placeholder span { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.4); }

.gallery-real-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-real-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-real-image:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-real-image:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.gallery-overlay small { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
    padding: 100px 0;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: 12%;
    width: 1px;
    height: 140%;
    background: var(--gold);
    opacity: 0.15;
    transform: rotate(15deg);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.cta-content h2 { color: var(--gray-900); margin-bottom: 14px; }
.cta-content p { color: var(--gray-500); font-size: 1.02rem; margin-bottom: 32px; }

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   CONTACT
   ============================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--gray-50);
    transition: var(--transition);
}

.contact-item:hover { background: var(--cream); box-shadow: var(--shadow-sm); }

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-icon svg { width: 18px; height: 18px; color: var(--bordeaux); }
.contact-item strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1px; }
.contact-item a, .contact-item span { font-size: 0.88rem; color: var(--gray-500); }
.contact-item a:hover { color: var(--bordeaux); }

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-main);
    font-size: 0.92rem;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--bordeaux);
    box-shadow: 0 0 0 3px rgba(107,28,35,0.08);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8680' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ============================
   FLOATING CONTACT BUTTON
   ============================ */
.floating-contact {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(107,28,35,0.3);
    transition: var(--transition);
    position: relative;
}

.floating-btn:hover {
    background: var(--bordeaux-light);
    transform: scale(1.08);
}

.floating-btn svg { width: 24px; height: 24px; }

/* Ripple effect */
.floating-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--bordeaux);
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
}

.floating-contact.open .floating-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    transition: var(--transition);
}

.floating-option:hover { background: var(--cream); transform: translateX(-4px); }
.floating-option svg { width: 18px; height: 18px; color: var(--bordeaux); flex-shrink: 0; }

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--bordeaux-dark);
    padding: 80px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo { height: 40px; margin-bottom: 16px; filter: brightness(1.3); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }

.footer-links h4 {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links li, .footer-links a { font-size: 0.85rem; color: var(--gray-400); }
.footer-links a:hover { color: var(--gold); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

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

.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--gray-500); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .nav-links a { padding: 7px 12px; font-size: 0.82rem; }
    .nav-cta { padding: 8px 16px !important; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
    .ba-layout { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--warm-white);
        flex-direction: column;
        padding: 100px 28px 28px;
        gap: 4px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-links.open { right: 0; }
    .nav-links a { color: var(--gray-700) !important; padding: 12px 16px; width: 100%; border-radius: var(--radius); }
    .nav-social { display: none; }

    /* Mobil: gult logo default, bordeaux ved scroll */
    .nav-toggle span { background: var(--white); }
    .navbar.scrolled .nav-toggle span { background: var(--gray-800); }
    .nav-logo { height: 38px; min-width: 150px; }
    .nav-logo img { height: 38px; }
    .navbar.scrolled .nav-logo img { height: 32px; }

    .hero-content { padding: 120px 0 80px; }
    .hero-scroll { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { order: -1; }
    .about-image-block { aspect-ratio: 16/9; }
    .about-visual::after { bottom: -12px; right: 12px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gallery-item-large { grid-column: span 2; grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .marquee { display: none; }
    .floating-btn { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
    .gallery-item-large { grid-column: span 1; }
}
