/* ====================================
   Edins Glas AB — Premium Design System
   Vanilla CSS (No Tailwind)
   ==================================== */

/* ─── CSS Custom Properties ─── */
:root {
    --font-sans:    'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;

    /* Brand */
    --brand-cyan:    #06b6d4;
    --brand-blue:    #3b82f6;
    --brand-emerald: #10b981;

    /* Dark theme (default) */
    --bg:            #080d17;
    --bg-alt:        #040810;
    --bg-section:    rgba(4, 8, 16, 0.45);
    --bg-card:       rgba(15, 23, 42, 0.70);
    --border:        rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.16);
    /* High-contrast text values */
    --text:          #f1f5f9;       /* near-white, readable on dark */
    --text-sub:      #94a3b8;       /* slate-400 – good on dark glass */
    --text-muted:    #64748b;       /* slate-500 */
    --header-blur-bg: rgba(8, 13, 23, 0.82);
    --input-bg:      rgba(255, 255, 255, 0.05);
    --cyan-glow:     rgba(6, 182, 212, 0.20);
    --glass-shadow:  0 8px 32px rgba(0,0,0,0.45);
    --map-filter:    none; /* use native dark tile layer */
    --transition:    0.3s cubic-bezier(.4,0,.2,1);
}

:root.light {
    /* Light theme */
    --bg:            #f0f5fb;
    --bg-alt:        #e2eaf4;
    --bg-section:    rgba(226, 234, 244, 0.60);
    --bg-card:       rgba(255, 255, 255, 0.88);
    --border:        rgba(15, 23, 42, 0.12);
    --border-strong: rgba(15, 23, 42, 0.22);
    /* High-contrast text for light */
    --text:          #0f172a;       /* near-black */
    --text-sub:      #1e293b;       /* slate-800 – readable on white glass */
    --text-muted:    #475569;       /* slate-600 */
    --header-blur-bg: rgba(240, 245, 251, 0.88);
    --input-bg:      rgba(15, 23, 42, 0.04);
    --cyan-glow:     rgba(8, 145, 178, 0.14);
    --glass-shadow:  0 8px 32px rgba(15, 23, 42, 0.12);
    --map-filter:    none;

    --brand-cyan:    #0891b2;
    --brand-blue:    #2563eb;
    --brand-emerald: #059669;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea { font-family: inherit; }
ul { list-style: none; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-cyan); }
::selection { background: var(--brand-cyan); color: #fff; }


/* =====================================================
   BACKGROUND BLOBS
   ===================================================== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.bg-blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); top: -160px; left: -160px; opacity: 0.14; filter: blur(80px); }
.bg-blob-2 { width: 440px; height: 440px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); top: 40%; right: -150px; opacity: 0.09; filter: blur(80px); }
.bg-blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, #6366f1 0%, transparent 70%); bottom: -140px; left: 30%; opacity: 0.11; filter: blur(80px); }


/* =====================================================
   HEADER
   ===================================================== */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 80px;
    background: var(--header-blur-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}
#main-header.scrolled {
    height: 62px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

#header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}
.header-logo-wrap img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition), transform 0.2s;
}
#main-header.scrolled .header-logo-wrap img { height: 30px; }
.header-logo-wrap:hover img { transform: scale(1.06); }
.header-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.2s;
    white-space: nowrap;
}
.header-nav a:hover { color: var(--brand-cyan); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Icon buttons */
.theme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-sub);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.theme-btn:hover { background: rgba(255,255,255,0.10); color: var(--text); }
:root.light .theme-btn:hover { background: rgba(15,23,42,0.08); }

/* Phone pill */
.btn-phone {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff;
    font-weight: 600; font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(6,182,212,0.30);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-phone:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(6,182,212,0.45); }

.mobile-actions { display: none; align-items: center; gap: 0.5rem; }
.hamburger-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-sub);
    transition: background 0.2s, color 0.2s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.10); color: var(--text); }

/* Mobile Drawer */
#mobile-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem 1.5rem;
    background: rgba(6, 9, 20, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
:root.light #mobile-menu { background: rgba(240,245,251,0.97); }
#mobile-menu.open { display: flex; }
#mobile-menu a {
    display: block;
    font-size: 1rem; font-weight: 500;
    color: var(--text-sub);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
#mobile-menu a:last-of-type { border-bottom: none; }
#mobile-menu a:hover { color: var(--brand-cyan); }
.mobile-phone-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 1.25rem; padding: 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff; font-weight: 700; font-size: 1rem;
}

/* Theme icon show/hide */
.icon-sun, .icon-moon { display: block; }
:root:not(.light) .icon-sun  { display: none; }
:root:not(.light) .icon-moon { display: block; }
:root.light       .icon-sun  { display: block; }
:root.light       .icon-moon { display: none; }


/* =====================================================
   PAGE STRUCTURE
   ===================================================== */
main {
    position: relative;
    z-index: 10;
    padding-top: 80px; /* matches header height */
}

/* Central content wrapper */
.section-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Shared section spacing */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }

/* Quick info bar inner padding */
#quick-info .section-container { padding-top: 2rem; padding-bottom: 2rem; }

/* Section labels / pill tags */
.section-tag {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.32);
    color: var(--brand-cyan);
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.10em;
    margin-bottom: 1.25rem;
}
:root.light .section-tag { background: rgba(8,145,178,0.10); color: #0891b2; }

/* Section headings */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800; color: var(--text);
    line-height: 1.15; letter-spacing: -0.025em;
    margin-bottom: 0.9rem;
}
.section-subtitle {
    font-size: 1.05rem; font-weight: 400;
    color: var(--text-sub);
    line-height: 1.75; max-width: 44rem;
}
.section-divider {
    width: 3.5rem; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
    margin-bottom: 1.75rem;
}
/* Centred headers */
.header-center { text-align: center; max-width: 52rem; margin: 0 auto 3.5rem; }
.header-center .section-divider { margin-left: auto; margin-right: auto; }
.header-center .section-subtitle { margin: 0 auto; }


/* =====================================================
   HERO
   ===================================================== */
#hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(6,182,212,0.09) 0%, transparent 68%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900; color: var(--text);
    letter-spacing: -0.03em; line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-h1 .gradient-text {
    background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 45%, #60a5fa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
    font-size: 1.1rem; font-weight: 400;
    color: var(--text-sub);
    line-height: 1.75; max-width: 38rem;
    margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* CTA Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 5px 18px rgba(6,182,212,0.32);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(6,182,212,0.48); }
.btn-primary:active { transform: none; }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-weight: 600; font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}
:root.light .btn-secondary:hover { background: rgba(15,23,42,0.06); border-color: rgba(15,23,42,0.25); }

/* Hero Info Card */
.hero-card-wrap { display: flex; justify-content: center; align-items: flex-start; }
#hero-interactive-card {
    width: 100%; max-width: 400px;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    position: relative; overflow: hidden;
}
.card-glare {
    position: absolute; inset: 0;
    pointer-events: none; opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.4rem;
}
.card-header-left { display: flex; align-items: center; gap: 0.7rem; }
.card-icon-wrap {
    width: 44px; height: 44px; border-radius: 11px;
    background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.30);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-cyan); flex-shrink: 0;
}
.card-heading { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); }
.card-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.badge-open {
    padding: 0.22rem 0.65rem; border-radius: 999px;
    background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35);
    color: #34d399; font-size: 0.68rem; font-weight: 700;
    white-space: nowrap;
}
:root.light .badge-open { color: #059669; background: rgba(16,185,129,0.10); }

.hours-list { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.hours-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-label { font-size: 0.875rem; color: var(--text-sub); font-weight: 400; }
.hours-value { font-size: 0.875rem; color: var(--text); font-weight: 600; }
.hours-value.closed { color: var(--text-muted); font-weight: 400; }

.card-contacts {
    padding-top: 1.2rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.8rem;
}
.card-contact-row {
    display: flex; align-items: flex-start; gap: 0.65rem;
    color: var(--text-sub); font-size: 0.85rem; transition: color 0.2s;
}
.card-contact-row:hover { color: var(--brand-cyan); }
.card-contact-row svg { color: var(--brand-cyan); margin-top: 1px; flex-shrink: 0; }


/* =====================================================
   QUICK INFO BAR
   ===================================================== */
#quick-info {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}
.quick-info-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem;
}
.quick-info-icon { color: var(--brand-cyan); }
.quick-info-label {
    font-family: var(--font-heading); font-weight: 600;
    font-size: 0.95rem; color: var(--text);
}
.quick-info-value {
    color: var(--text-sub); font-size: 0.875rem; font-weight: 500;
    transition: color 0.2s;
}
a.quick-info-value:hover { color: var(--brand-cyan); }


/* =====================================================
   SERVICES
   ===================================================== */
#tjanster { padding: 5rem 0; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    padding: 1.75rem;
    border-radius: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--glass-shadow);
    display: flex; flex-direction: column;
    transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.3s, box-shadow 0.35s;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6,182,212,0.35);
    box-shadow: 0 20px 44px -12px var(--cyan-glow), var(--glass-shadow);
}
.service-icon-wrap {
    width: 52px; height: 52px; border-radius: 13px;
    background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.28);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-cyan); margin-bottom: 1.25rem;
    transition: transform 0.3s;
}
.service-card:hover .service-icon-wrap { transform: scale(1.1); }
.service-title {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.65rem;
}
.service-desc {
    font-size: 0.9rem; font-weight: 400;
    color: var(--text-sub); line-height: 1.7; margin-bottom: 1.25rem;
}
.service-features {
    display: flex; flex-direction: column; gap: 0.55rem;
    margin-bottom: 1.5rem; flex-grow: 1;
}
.service-features li {
    display: flex; align-items: flex-start; gap: 0.55rem;
    color: var(--text-sub); font-size: 0.85rem;
}
.service-features li svg { color: var(--brand-cyan); flex-shrink: 0; margin-top: 2px; }
.service-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--brand-cyan); font-weight: 600; font-size: 0.88rem;
    margin-top: auto; transition: gap 0.2s, color 0.2s;
}
.service-link svg { transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(4px); }
.service-card:hover .service-link { color: #22d3ee; }
:root.light .service-card:hover .service-link { color: #0891b2; }


/* =====================================================
   AUTHORIZED GLAZIER
   ===================================================== */
#auktorisering {
    padding: 5rem 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.auth-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 3rem; align-items: center;
}
.auth-text > p {
    font-size: 0.95rem; color: var(--text-sub);
    line-height: 1.8; margin-bottom: 1.5rem;
}
.auth-features-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 0.85rem; margin-top: 0.25rem;
}
.auth-feature {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; color: var(--text-sub);
}
.auth-feature-icon {
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.28);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-emerald); flex-shrink: 0;
}
.auth-badge-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
}
.auth-badge-img {
    height: 160px; width: auto; object-fit: contain;
    margin-bottom: 1.25rem; transition: transform 0.3s;
}
.auth-badge-card:hover .auth-badge-img { transform: scale(1.05); }
.auth-badge-title {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.4rem;
}
.auth-badge-desc { font-size: 0.8rem; color: var(--text-sub); line-height: 1.6; }


/* =====================================================
   ABOUT
   ===================================================== */
#om-oss { padding: 5rem 0; }
.about-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 3.5rem; align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-visual-card {
    position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
    border-radius: 1.25rem;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.about-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.about-circle {
    position: relative; z-index: 2;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(6,182,212,0.10); border: 1px solid rgba(6,182,212,0.30);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1rem;
    transition: transform 0.5s;
}
.about-visual-card:hover .about-circle { transform: scale(1.05); }
.about-big-num {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 900;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.about-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-sub); margin-top: 0.3rem;
}
.about-sublabel { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.15rem; }

.about-float-1, .about-float-2 {
    position: absolute; z-index: 20;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.9rem; border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: var(--text); font-size: 0.72rem; font-weight: 600;
    white-space: nowrap;
}
.about-float-1 svg, .about-float-2 svg { color: var(--brand-cyan); flex-shrink: 0; }
.about-float-1 { bottom: 1.25rem; right: 1.25rem; }
.about-float-2 { top: 1.25rem; left: 1.25rem; }

.about-text .section-divider { margin-bottom: 1.75rem; }
.about-text > p {
    font-size: 0.95rem; color: var(--text-sub);
    line-height: 1.8; margin-bottom: 1.1rem;
}
.about-highlights {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; margin-top: 1rem;
}
.about-highlight h4 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 0.95rem; color: var(--text); margin-bottom: 0.3rem;
}
.about-highlight p { font-size: 0.82rem; color: var(--text-sub); line-height: 1.55; }


/* =====================================================
   CONTACT
   ===================================================== */
#kontakt {
    padding: 5rem 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}
.contact-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.75rem; align-items: start;
}
/* Form card */
.form-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    position: relative; overflow: hidden;
}
.form-row {
    display: grid; grid-template-columns: 1fr;
    gap: 1.1rem; margin-bottom: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--text-sub);
}
.form-input, .form-textarea {
    width: 100%; padding: 0.8rem 0.95rem;
    border-radius: 9px;
    background: var(--input-bg);
    border: 1px solid var(--border-strong);
    color: var(--text); font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.14);
}
.form-textarea { resize: none; min-height: 120px; }
.form-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.95rem;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 5px 18px rgba(6,182,212,0.30);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer; border: none; font-family: inherit; margin-top: 0.25rem;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,182,212,0.45); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Success overlay */
#form-success {
    display: none;
    position: absolute; inset: 0; z-index: 20;
    border-radius: inherit;
    background: rgba(6, 9, 20, 0.94);
    backdrop-filter: blur(14px);
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
}
:root.light #form-success { background: rgba(240,245,251,0.96); }
#form-success.active { display: flex; }
.success-icon-ring {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.35);
    display: flex; align-items: center; justify-content: center;
    color: #34d399; margin-bottom: 1.25rem;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(.175,.885,.32,1.275);
}
:root.light .success-icon-ring { color: #059669; }
.success-title {
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800;
    color: var(--text); margin-bottom: 0.5rem;
}
.success-msg {
    font-size: 0.88rem; color: var(--text-sub);
    line-height: 1.65; max-width: 20rem; margin-bottom: 1.5rem;
}
.success-reset-btn {
    padding: 0.55rem 1.2rem; border-radius: 8px;
    background: var(--input-bg); border: 1px solid var(--border-strong);
    color: var(--text); font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.success-reset-btn:hover { background: rgba(255,255,255,0.10); }

/* Info card */
.info-card {
    padding: 2rem; border-radius: 1.25rem;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    display: flex; flex-direction: column;
}
.info-card-heading {
    font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
    color: var(--text); margin-bottom: 1.25rem;
}
.info-item {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.info-item:last-of-type { border-bottom: none; }
.info-icon-wrap {
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.28);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-cyan); flex-shrink: 0;
}
.info-detail-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.2rem;
}
.info-detail-val {
    font-size: 0.925rem; font-weight: 600; color: var(--text);
    transition: color 0.2s;
}
a.info-detail-val:hover { color: var(--brand-cyan); }
.contact-mail-img {
    width: 100%; max-height: 130px; object-fit: contain; opacity: 0.8;
    margin-top: auto; padding-top: 1.5rem;
    transition: opacity 0.3s, transform 0.3s;
}
.info-card:hover .contact-mail-img { opacity: 1; transform: scale(1.03); }


/* =====================================================
   MAP
   ===================================================== */
#karta { position: relative; height: 420px; z-index: 10; }
#map-container { width: 100%; height: 100%; }
.map-overlay-card {
    display: none;
    position: absolute; bottom: 2rem; left: 2rem;
    z-index: 1000; max-width: 260px;
    padding: 1.2rem 1.4rem; border-radius: 13px;
    background: rgba(6, 9, 20, 0.90);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.38);
}
:root.light .map-overlay-card { background: rgba(255,255,255,0.94); }
.map-overlay-title {
    font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
    color: var(--text); margin-bottom: 0.35rem;
}
.map-overlay-desc { font-size: 0.775rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 0.7rem; }
.map-overlay-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.775rem; font-weight: 600; color: var(--brand-cyan);
    transition: color 0.2s;
}
.map-overlay-link:hover { color: #22d3ee; }


/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    position: relative; z-index: 20;
}
.footer-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 2rem;
    display: flex; flex-direction: column;
    align-items: center; gap: 1.75rem; text-align: center;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.65rem; }
.footer-logo-wrap img { height: 28px; width: auto; object-fit: contain; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); }
.footer-legal { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-right { display: flex; align-items: center; gap: 0.85rem; }
.footer-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.8rem; border-radius: 7px;
    background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.72rem; font-weight: 600;
}
.footer-badge svg { color: var(--brand-cyan); }
#back-to-top {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-sub); cursor: pointer;
    opacity: 0; transition: opacity 0.3s, background 0.2s, color 0.2s;
}
#back-to-top.visible { opacity: 1; }
#back-to-top:hover { background: rgba(255,255,255,0.10); color: var(--text); }
:root.light #back-to-top:hover { background: rgba(15,23,42,0.08); }


/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* =====================================================
   SCROLL-DRIVEN HEADER (Progressive Enhancement)
   ===================================================== */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    #main-header {
        animation: shrink-header linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 90px;
    }
    @keyframes shrink-header {
        to {
            height: 60px;
            box-shadow: 0 2px 20px rgba(0,0,0,0.2);
        }
    }
}


/* =====================================================
   SPINNER
   ===================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.7s linear infinite; flex-shrink: 0;
}


/* =====================================================
   LEAFLET OVERRIDES
   ===================================================== */
.leaflet-popup-content-wrapper {
    background: rgba(8,13,23,0.94) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
}
:root.light .leaflet-popup-content-wrapper {
    background: rgba(255,255,255,0.97) !important;
    color: #0f172a !important;
}
.leaflet-popup-tip { background: rgba(8,13,23,0.94) !important; }
:root.light .leaflet-popup-tip { background: #fff !important; }
.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
.leaflet-control-attribution {
    background: rgba(8,13,23,0.80) !important;
    color: #64748b !important;
}
:root.light .leaflet-control-attribution { background: rgba(255,255,255,0.85) !important; }


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 480px) {
    .auth-features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
    .hero-ctas { flex-wrap: nowrap; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .map-overlay-card { display: block; }
}

@media (min-width: 768px) {
    .quick-info-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .quick-info-item { flex-direction: row; align-items: center; gap: 1rem; }

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

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

    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-nav { justify-content: flex-start; }
}

@media (min-width: 900px) {
    .header-nav     { display: flex; }
    .header-actions { display: flex; }
    .mobile-actions { display: none !important; }
}
@media (max-width: 899px) {
    .header-nav     { display: none; }
    .header-actions { display: none; }
    .mobile-actions { display: flex; }
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
    .auth-grid { grid-template-columns: 1fr 0.75fr; }
    .about-grid { grid-template-columns: 1fr 1fr; }
}
