/* ══════════════════════════════════════
   MotorStuen — Langeskov
   Main Stylesheet
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --navy-deep: #0b1628;
    --navy: #111d33;
    --navy-mid: #162542;
    --navy-light: #1c2f52;
    --orange: #e2652a;
    --orange-light: #f07840;
    --orange-dark: #c4501a;
    --silver: #b8bcc8;
    --silver-light: #d0d4de;
    --cream: #eef0f5;
    --muted: #7a8298;
    --steel-blue: #3a4a6b;
}

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy-deep);
    color: var(--cream);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── Top Bar ── */
.topbar {
    background: var(--navy-deep);
    border-bottom: 1px solid var(--navy-mid);
    padding: 10px 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar .star { color: var(--orange); margin: 0 8px; }

/* ── Header ── */
header {
    background: var(--navy);
    border-bottom: 3px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-link img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--navy-light);
    object-fit: cover;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--cream);
    line-height: 1;
}

.logo-text span { color: var(--orange); }

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-top: 1px;
}

/* ── Navigation ── */
nav { display: flex; gap: 28px; }

nav a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

nav a:hover { color: var(--cream); }
nav a:hover::after { width: 100%; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
            radial-gradient(ellipse at 30% 80%, rgba(226,101,42,0.1) 0%, transparent 60%),
            radial-gradient(ellipse at 70% 20%, rgba(226,101,42,0.05) 0%, transparent 50%),
            var(--navy-deep);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.008) 40px, rgba(255,255,255,0.008) 41px);
}

.hero-deco {
    position: absolute;
    right: -140px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    border: 1px solid rgba(226,101,42,0.07);
    border-radius: 50%;
    opacity: 0.5;
    animation: spin 60s linear infinite;
}

.hero-deco::before {
    content: '';
    position: absolute;
    inset: 50px;
    border: 1px solid rgba(226,101,42,0.05);
    border-radius: 50%;
}

.hero-deco-left {
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(184,188,200,0.04);
    border-radius: 50%;
    animation: spin 90s linear reverse infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 2; padding: 0 24px; }

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 28px;
    animation: fadeUp 0.8s ease both;
    filter: drop-shadow(0 8px 32px rgba(226,101,42,0.2));
}

.hero-tag {
    display: inline-block;
    border: 1px solid var(--orange);
    color: var(--orange-light);
    padding: 6px 18px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero h1 em { font-style: normal; color: var(--orange); }

.hero-sub {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--silver);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeUp 0.8s 0.35s ease both;
}

.hero-cta {
    margin-top: 36px;
    display: inline-flex;
    gap: 16px;
    animation: fadeUp 0.8s 0.5s ease both;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--silver); }
.btn-outline:hover { border-color: var(--cream); transform: translateY(-2px); }

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

/* ── Sections (shared) ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--silver);
    max-width: 560px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── About ── */
#om {
    background: var(--navy);
    border-top: 1px solid var(--navy-mid);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.about-text { line-height: 1.8; color: var(--silver); font-size: 0.95rem; }
.about-text p + p { margin-top: 16px; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--navy-mid);
    padding: 28px;
    border-left: 3px solid var(--orange);
}

.stat-card .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    color: var(--cream);
    line-height: 1;
}

.stat-card .label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: var(--navy);
    border: 1px solid var(--navy-mid);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover { border-color: var(--orange); transform: translateY(-4px); }

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i,
.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Contact ── */
#kontakt { background: var(--navy); border-top: 1px solid var(--navy-mid); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--navy-mid); }
.hours-table td { padding: 12px 0; font-size: 0.9rem; }
.hours-table td:first-child { color: var(--cream); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--silver); }
.hours-table tr.closed td:last-child { color: var(--orange); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--navy-mid);
    border: 1px solid var(--steel-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.contact-icon i,
.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 2px;
}

.contact-item .value { color: var(--cream); font-size: 0.95rem; line-height: 1.5; }
.contact-item a { color: var(--cream); text-decoration: none; }
.contact-item a:hover { color: var(--orange-light); }

/* ── Map ── */
.map-embed {
    margin-top: 40px;
    border: 1px solid var(--navy-mid);
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.map-embed iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.map-embed-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--navy);
    border: 1px solid var(--navy-mid);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--cream);
    pointer-events: none;
    border-radius: 4px;
}

.map-embed-overlay .dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── Footer ── */
footer {
    background: var(--navy-deep);
    border-top: 1px solid var(--navy-mid);
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-area img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0.7;
}

.footer-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.footer-name span { color: var(--orange-dark); }

footer small { color: #3a4a6b; font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: block; }

    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        border-bottom: 3px solid var(--orange);
        padding: 20px 24px;
        gap: 16px;
        z-index: 99;
    }

    .hero { min-height: 65vh; }
    .hero-logo { width: 120px; height: 120px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-cta { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .hero-deco, .hero-deco-left { display: none; }
    .map-embed iframe { height: 220px; }
}