:root {
    --navy-950: #020817;
    --navy-900: #06142d;
    --navy-800: #08244a;
    --ink: #0c1324;
    --muted: #667085;
    --gold: #ffc842;
    --gold-dark: #e6a800;
    --surface: #ffffff;
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 22px 60px rgba(2, 8, 23, 0.18);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f7f9fc;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(2, 8, 23, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.navbar {
    width: min(1180px, calc(100% - 40px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 220px;
    height: 66px;
    overflow: hidden;
    white-space: nowrap;
}

.section-heading span {
    color: var(--gold);
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 52px);
    color: #fff;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    padding: 26px 0 24px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 620px;
    padding: 126px 0 58px;
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.98) 0%, rgba(2, 8, 23, 0.9) 33%, rgba(2, 8, 23, 0.38) 66%, rgba(2, 8, 23, 0.2) 100%),
        url("../images/hero-repair.png") center right / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 66, 0.65), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 24%, rgba(255, 200, 66, 0.16), transparent 24%),
        linear-gradient(180deg, transparent 0%, rgba(2, 8, 23, 0.22) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    max-width: none;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0;
    max-width: 590px;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 560px;
    margin: 20px 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn.primary {
    color: #08111f;
    background: linear-gradient(135deg, var(--gold), #ffe38c);
    box-shadow: 0 16px 32px rgba(255, 200, 66, 0.22);
}

.btn.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 650px;
}

.hero-point {
    min-height: 76px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.hero-point svg {
    width: 38px;
    height: 38px;
    padding: 8px;
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.services-section {
    padding: 76px 0 92px;
    background: #fff;
}

.section-heading {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 800;
}

.section-heading h2 {
    max-width: min(100%, 980px);
    margin: 0 auto;
    font-size: clamp(1.5rem, 2.55vw, 2rem);
    line-height: 1.25;
    color: var(--navy-950);
}

.typewriter-heading {
    min-height: 1.35em;
    color: var(--navy-950);
}

.typewriter-heading span {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 0;
    overflow: hidden;
    margin-bottom: 0;
    white-space: nowrap;
    color: var(--navy-950) !important;
    animation: typewriter 3.2s steps(40, end) 0.35s forwards;
}

.typewriter-heading span::after {
    content: "";
    position: absolute;
    top: 0.08em;
    right: 0;
    width: 3px;
    height: 1.05em;
    background: var(--navy-950);
    animation: typewriter-caret 0.8s steps(1, end) infinite;
}

@keyframes typewriter {
    to {
        max-width: 100%;
    }
}

@keyframes typewriter-caret {
    50% {
        opacity: 0;
    }
}

.service-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 44px rgba(12, 19, 36, 0.12);
    border: 1px solid #e8edf5;
    transform-style: preserve-3d;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 58px rgba(12, 19, 36, 0.18);
    border-color: rgba(255, 200, 66, 0.55);
}

.service-media {
    position: relative;
    overflow: hidden;
    background: #07111f;
    aspect-ratio: 1 / 1;
    isolation: isolate;
}

.service-media::before {
    content: "";
    position: absolute;
    inset: -30% auto -30% -80%;
    z-index: 3;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(180deg, transparent 48%, rgba(2, 8, 23, 0.08) 63%, rgba(2, 8, 23, 0.68) 100%);
    pointer-events: none;
}

.service-card:hover .service-media::before {
    animation: image-sheen 0.85s ease forwards;
}

.service-image,
.service-reflection {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image {
    position: relative;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08) rotate(0.7deg);
    filter: saturate(1.12) contrast(1.04);
}

.service-reflection {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -42%;
    z-index: 2;
    height: 56%;
    transform: scaleY(-1);
    transform-origin: center bottom;
    opacity: 0.28;
    filter: blur(1px) saturate(0.95);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
    pointer-events: none;
    transition: opacity 0.35s ease, bottom 0.35s ease;
}

.service-card:hover .service-reflection {
    bottom: -34%;
    opacity: 0.38;
}

@keyframes image-sheen {
    0% {
        left: -80%;
        opacity: 0;
    }

    25% {
        opacity: 0.9;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

.service-body {
    min-height: 230px;
    padding: 26px 20px 28px;
    text-align: center;
}

.service-body svg {
    width: 34px;
    height: 34px;
    color: var(--gold-dark);
}

.service-body h3 {
    margin: 14px 0 10px;
    color: #111827;
    font-size: 1.08rem;
}

.service-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.promise-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.promise-item {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.promise-item:last-child {
    border-right: 0;
}

.promise-item svg {
    width: 44px;
    height: 44px;
    color: var(--gold);
}

.promise-item strong {
    font-size: 1.1rem;
}

.site-footer {
    background: radial-gradient(circle at top left, rgba(255, 200, 66, 0.1), transparent 26%), var(--navy-950);
    color: #fff;
}

.footer-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 44px;
}

.footer-column {
    min-width: 0;
}

.footer-column h2 {
    margin: 0 0 18px;
    font-size: 1.3rem;
}

.footer-column p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info svg,
.social-links svg {
    flex: 0 0 auto;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 200, 66, 0.16);
    transform: translateY(-2px);
}

.map-wrap {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    background: #dbe4f0;
}

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

.map-action {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: #07111f;
    background: linear-gradient(135deg, var(--gold), #ffe38c);
    border-radius: var(--radius);
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.22);
}

.map-action svg {
    width: 20px;
    height: 20px;
}

.copyright {
    padding: 18px 20px 24px;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(37, 211, 102, 0.42);
}

.whatsapp-float svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

@media (max-width: 1080px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .navbar {
        width: min(100% - 28px, 1180px);
        height: 70px;
    }

    .menu-toggle {
        display: grid;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: rgba(2, 8, 23, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 10px;
    }

    .nav-links a::after {
        bottom: 5px;
    }

    .hero {
        min-height: auto;
        padding: 96px 0 34px;
        background:
            linear-gradient(180deg, rgba(2, 8, 23, 0.92) 0%, rgba(2, 8, 23, 0.8) 55%, rgba(2, 8, 23, 0.7) 100%),
            url("../images/hero-repair.png") center / cover no-repeat;
    }

    .hero-content,
    .section-heading,
    .service-grid,
    .footer-grid,
    .map-wrap {
        width: min(100% - 28px, 1180px);
    }

    .hero-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
    }

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

    .section-heading .typewriter-heading {
        font-size: 1.55rem;
    }

    .promise-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promise-item:nth-child(2) {
        border-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .brand {
        width: 156px;
        height: 50px;
    }

    .brand-logo {
        max-height: 50px;
    }

    .section-heading .typewriter-heading {
        font-size: 1.18rem;
    }

    .typewriter-heading span {
        animation-duration: 2.8s;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero-copy {
        font-size: 0.98rem;
        margin: 16px 0 20px;
    }

    .hero-actions {
        margin-bottom: 18px;
    }

    .hero-point {
        min-height: 62px;
        gap: 6px;
        font-size: 0.88rem;
    }

    .hero-point svg {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .hero-points,
    .service-grid,
    .promise-band {
        grid-template-columns: 1fr;
    }

    .promise-item,
    .promise-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .promise-item:last-child {
        border-bottom: 0;
    }

    .service-body {
        min-height: auto;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-heading span {
        width: auto;
        max-width: 100%;
        animation: none;
    }

    .typewriter-heading span::after {
        display: none;
    }

    .service-card,
    .service-image,
    .service-reflection,
    .whatsapp-float,
    .btn {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:hover .service-image {
        transform: none;
    }

    .service-card:hover .service-media::before {
        animation: none;
    }
}
