/*====================================================================
  MoHe Autohuolto — CLEANED CSS
  • Duplicates removed, media/mobile nav consolidated
  • Curly braces moved to next line for consistent formatting
=====================================================================*/

/* =========================
   CSS VARIABLES
   ========================= */
:root
{
    /* Colors */
    --bg: #ffffff;
    --text: #0f1115;
    --muted: #6b7280;
    --soft: #ffffff;            /* alt background */
    --card: #ffffff;
    --accent: #ffd900;          /* primary accent */
    --accent-2: #ff9100;        /* secondary accent */
    --accent-ink: #111111;      /* ink on accent */
    --ring: rgba(17,17,17,.12);
    --shadow: 0 10px 30px rgba(0,0,0,.10);

    /* Sizing */
    --radius: 16px;
    --radius-sm: 12px;
    --max: 1200px;
    --nav-h: 100px;

    /* Pricing tokens */
    --price-accent: #eeeeee;
    --price-ink: #000000;
}

/* =========================
   BASE / RESET
   ========================= */
*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
    color: var(--text);
    background: linear-gradient(180deg, #f5f5f5 0%, #f8f8f8 100%);
    padding-top: var(--nav-h);
}

img
{
    max-width: 100%;
    display: block;
}

a
{
    color: inherit;
    text-decoration: none;
}

.container
{
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   LAYOUT
   ========================= */
section
{
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section
{
    padding: 64px 0;
}

.section.alt
{
    background: var(--soft);
}

.section h2
{
    font-size: clamp(1.6rem, 1.6rem + 1vw, 2.2rem);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.section p.lead
{
    color: var(--muted);
    max-width: 65ch;
}

/* =========================
   HEADER / NAV
   ========================= */
header
{
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-top: env(safe-area-inset-top);
}

.nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 14px;
}

.brand
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img
{
    max-height: calc(var(--nav-h) - 24px);
    height: auto;
    width: auto;
    border-radius: 6px;
}

.brand span
{
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 1.18rem;
}

/* Desktop nav (default visible) */
.desktop-nav ul
{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.desktop-nav a
{
    padding: .5rem .75rem;
    border-radius: 10px;
    font-weight: 600;
    color: #222;
    line-height: 1;
}

.desktop-nav a:hover
{
    background: rgba(0,0,0,.04);
}

.desktop-nav a.active
{
    background: var(--accent);
    color: var(--accent-ink);
}

/* Mobile triggers (hidden by default) */
.menu-btn
{
    display: none; /* shown under 900px */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
}

.menu-btn span
{
    width: 18px;
    height: 2px;
    background: #111;
    position: relative;
    display: block;
}

.menu-btn span:before,
.menu-btn span:after
{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #111;
}

.menu-btn span:before
{
    top: -6px;
}

.menu-btn span:after
{
    top: 6px;
}

/* Mobile drawer */
.mobile-nav
{
    display: none;              /* displayed under 900px */
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 1001;
    padding: 10px 16px 14px;
}

.mobile-nav.open
{
    transform: translateY(0);
}

.mobile-nav ul
{
    list-style: none;
    margin: 0;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.mobile-nav a
{
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #222;
}

.mobile-nav a:hover,
.mobile-nav a:active
{
    background: rgba(0,0,0,.06);
}

/* =========================
   BUTTONS
   ========================= */
.cta-row
{
    display: flex;
    gap: .6rem;
    align-items: center;
}

.btn
{
    --scale: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    background: #111;
    color: #fff;
    transform: scale(var(--scale));
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.btn:active
{
    --scale: .98;
}

.btn:focus-visible
{
    outline: none;
    box-shadow: 0 0 0 4px rgba(17,17,17,.15);
}

.btn-accent
{
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-outline
{
    background: transparent;
    color: #111;
    border-color: #111;
}

.btn-ghost
{
    background: transparent;
    color: #111;
}

.btn .pulse
{
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    background: rgba(255,210,0,.45);
    animation: ripple .6s ease-out forwards;
}

@keyframes ripple
{
    from
    {
        width: 0;
        height: 0;
        opacity: .5;
    }
    to
    {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

/* =========================
   HERO
   ========================= */
#hero
{
    position: relative;
    min-height: 72vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

#hero .bg
{
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('/assets/hero.png') center/cover no-repeat;
    filter: saturate(1.05) contrast(1.02);
}

.hero-inner
{
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
}

.kicker
{
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .8rem;
    opacity: .8;
}

.title
{
    font-size: clamp(2rem, 4vw + .5rem, 4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: .5rem 0;
}

.subtitle
{
    max-width: 55ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-ctas
{
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

#hero .title
{
    color: #fff;
}

#hero .kicker
{
    color: var(--accent);
}

#hero .subtitle
{
    color: rgba(255,255,255,0.85);
}

#hero .btn-outline
{
    border-color: #fff;
    color: #fff;
}

#hero .btn-outline:hover
{
    background: #fff;
    color: #111;
}

#hero .btn-ghost
{
    color: #fff;
}

#hero .btn-ghost:hover
{
    background: rgba(255,255,255,0.15);
}

/* =========================
   CARDS & GRIDS
   ========================= */
.grid
{
    display: grid;
    gap: 18px;
}

.card
{
    background: var(--card);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, translate .25s ease;
}

.card:hover
{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.icon
{
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,210,0,.2);
}

/* Combined services+pricing grid */
.svc-grid
{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card.svc
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.svc .icon
{
    background: rgba(255,210,0,.22);
}

/* =========================
   PRICING
   ========================= */
.pricing
{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card h3
{
    margin: .2rem 0;
}

.price
{
    font-size: 1.6rem;
    font-weight: 900;
}

.price small
{
    font-weight: 600;
    color: var(--muted);
}

.price-badge
{
    margin-top: 10px;
    align-self: flex-start;
    font-weight: 800;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: var(--price-accent);
    color: var(--price-ink);
    box-shadow: var(--shadow);
    line-height: 1;
}

/* =========================
   FORMS (Booking)
   ========================= */
form
{
    display: grid;
    gap: 12px;
}

.field
{
    display: grid;
    gap: 6px;
}

label
{
    font-weight: 700;
    font-size: .94rem;
}

input,
select,
textarea
{
    appearance: none;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus
{
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,210,0,.25);
    border-color: var(--accent);
}

/* =========================
   TESTIMONIALS (Carousel)
   ========================= */
.carousel
{
    display: flex;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px;
    margin: 0;
    overscroll-behavior-x: contain;
}

.carousel::-webkit-scrollbar
{
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb
{
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}

.carousel.no-snap
{
    scroll-snap-type: none;
}

.t-card
{
    min-width: 300px;
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: center;
}

@media (min-width: 900px)
{
    .t-card
    {
        flex-basis: 31%;
    }
}

/* =========================
   GALLERY
   ========================= */
.gallery
{
    columns: 1;
    column-gap: 12px;
}

@media (min-width: 640px)
{
    .gallery
    {
        columns: 2;
    }
}

@media (min-width: 980px)
{
    .gallery
    {
        columns: 3;
    }
}

.gallery a
{
    display: block;
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
}

.gallery img
{
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}

.gallery a:hover img
{
    transform: scale(1.03);
}

/* Lightbox */
.lightbox
{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.lightbox.open
{
    display: flex;
}

.lightbox img
{
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 12px;
}

.lb-close,
.lb-prev,
.lb-next
{
    position: absolute;
    top: 16px;
    background: #fff;
    border: none;
    padding: .7rem .9rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.lb-close
{
    right: 16px;
}

.lb-prev
{
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next
{
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================
   ABOUT / TRUST
   ========================= */
.stats
{
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.stat
{
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.stat .num
{
    font-weight: 900;
    font-size: 1.6rem;
}

.stat .label
{
    color: var(--muted);
    font-weight: 600;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid
{
    display: grid;
    gap: 18px;
}

@media (min-width: 860px)
{
    .contact-grid
    {
        grid-template-columns: 1.1fr 1fr;
    }
}

.map
{
    border: 0;
    width: 100%;
    height: 360px;
    border-radius: 14px;
}

/* =========================
   TOAST
   ========================= */
.toast
{
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #111;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s;
    z-index: 1400;
}

.toast.show
{
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   REVEAL ON SCROLL
   ========================= */
.reveal
{
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show
{
    opacity: 1;
    transform: none;
}

/* =========================
   UTILITIES
   ========================= */
.row
{
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

.muted
{
    color: var(--muted);
}

.center
{
    text-align: center;
}

.hidden
{
    display: none;
}

html,
body
{
    max-width: 100%;
    overflow-x: hidden; /* guard against sideways scroll */
}

/* =========================
   RESPONSIVE & MOBILE NAV (consolidated)
   ========================= */
@media (max-width: 900px)
{
    :root
    {
        --nav-h: 64px;
    }

    header
    {
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,.08);
        backdrop-filter: none;
    }

    .nav
    {
        height: var(--nav-h);
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .desktop-nav
    {
        display: none !important;
    }

    .menu-btn
    {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        border: none;
        background: #000;
        color: #fff;
        position: absolute;
        right: 8px;
        top: calc((var(--nav-h) - 40px)/2);
        z-index: 1002;
    }

    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after
    {
        background: #fff;
    }

    .mobile-nav
    {
        display: block;
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,.06);
        transform: translateY(-120%);
        top: var(--nav-h);
    }

    .mobile-nav.open
    {
        transform: translateY(0);
    }

    .mobile-nav a
    {
        color: #000;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        border-radius: 0;
    }

    .mobile-nav a:hover
    {
        background-color: #ddd;
        color: #000;
    }

    .mobile-nav a.active
    {
        background-color: #04AA6D;
        color: #fff;
    }
}

/* Tiny tweaks */
@media (max-width: 640px)
{
    .brand img
    {
        max-height: 32px;
    }

    .brand span
    {
        font-size: 1.05rem;
    }

    .hero-inner
    {
        padding: 72px 0 56px;
    }

    .title
    {
        letter-spacing: -0.02em;
    }
}

/* Hero text column and button spacing on phones */
#hero .hero-inner
{
    padding-inline: 20px;
}

#hero .hero-inner .kicker,
#hero .hero-inner .title,
#hero .hero-inner .subtitle,
#hero .hero-inner .hero-ctas
{
    max-width: 680px;
}

@media (max-width: 420px)
{
    #hero .title
    {
        font-size: clamp(1.8rem, 7vw + .3rem, 2.2rem);
    }
}

#hero .hero-ctas
{
    gap: .6rem;
}

#hero .hero-ctas .btn
{
    min-width: 112px;
}

/* Stats: 1 col → 3 cols */
@media (max-width: 719.98px)
{
    .stats
    {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 720px)
{
    .stats
    {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Wide screens: optionally 4 cols for grids */
@media (min-width: 1280px)
{
    .svc-grid,
    .pricing
    {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Square service tiles */
.svc-grid.svc-tiles
{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 720px)
{
    .svc-grid.svc-tiles
    {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px)
{
    .svc-grid.svc-tiles
    {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px)
{
    .svc-grid.svc-tiles
    {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card.svc
{
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    text-align: center;
    padding: 18px;
}

.card.svc .row
{
    gap: 10px;
    justify-content: center;
}

.card.svc .icon
{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
}

.card.svc h3
{
    margin: 0;
    font-size: 1.05rem;
}

.card.svc p.muted
{
    margin: 8px 0 0;
    font-size: .92rem;
    color: var(--muted);
}

.card.svc .price-badge
{
    justify-self: center;
    margin-top: 0;
}

.card.svc:hover
{
    transform: translateY(-4px);
}

@media (max-width: 360px)
{
    .card.svc h3
    {
        font-size: .98rem;
    }

    .card.svc .icon
    {
        width: 40px;
        height: 40px;
    }
}

/* Featured row */
.svc-featured
{
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px)
{
    .svc-featured
    {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1180px)
{
    .svc-featured
    {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Compact service cards */
.card.svc-mini
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6rem;
    padding: 18px;
}

.card.svc-mini .row
{
    justify-content: center;
    gap: .6rem;
}

.card.svc-mini .icon
{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.card.svc-mini h3
{
    margin: 0;
    font-size: 1rem;
}

.card.svc-mini .price-badge
{
    margin-top: .2rem;
}

.card.svc-mini .btn
{
    padding: .5rem .8rem;
    font-weight: 700;
}

/* Collapsible “All services” */
.svc-more
{
    margin-top: 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.svc-more > summary
{
    list-style: none;
    padding: 14px 16px;
    font-weight: 800;
    cursor: pointer;
    border-radius: var(--radius);
}

.svc-more[open] > summary
{
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.svc-more > summary::-webkit-details-marker
{
    display: none;
}

/* All services list */
.svc-list
{
    margin: 0;
    padding: 8px 10px 12px;
    list-style: none;
    display: grid;
    gap: 6px;
}

.svc-list li
{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 12px;
}

.svc-list li:hover
{
    background: rgba(0,0,0,.03);
}

.svc-list .icon
{
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,210,0,.22);
}

.svc-list .price-badge
{
    box-shadow: none;
    padding: .35rem .6rem;
    font-weight: 800;
}

/* Add comfy side padding just for the services section on phones */
@media (max-width: 480px)
{
    #services .container
    {
        padding-left: 15px;
        padding-right: 15px;
    }

    .svc-featured
    {
        gap: 14px;
    }

    .card.svc-mini
    {
        padding: 16px;
    }
}

