:root {
    color-scheme: light;
    --color-primary: #1e5fa8;
    --color-accent: #4caf50;
    --color-page: #f4f8fb;
    --color-surface: #ffffff;
    --color-text: #263746;
    --content-gutter: clamp(20px, 5vw, 64px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: "Segoe UI", sans-serif;
    background: var(--color-page);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px var(--content-gutter);
    background: var(--color-surface);
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: 70px;
    object-fit: contain;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 24px;
}

.menu a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.menu a:hover {
    color: var(--color-accent);
}

.slider {
    position: relative;
    height: clamp(300px, 42vw, 450px);
    overflow: hidden;
    background: #18384f;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slides img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-text {
    position: absolute;
    top: 40%;
    left: 10%;
    color: var(--color-surface);
    text-shadow: 0 2px 12px rgb(0 0 0 / 45%);
}

.slider-text h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 5vw, 42px);
}

.slider-text p {
    margin: 0;
}

.section {
    padding: 70px var(--content-gutter);
    text-align: center;
    scroll-margin-top: 100px;
}

.section h2 {
    color: var(--color-primary);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 32px auto 0;
}

.card {
    padding: 20px;
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
    transition: transform 180ms ease;
}

.card:hover {
    transform: translateY(-4px);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.contact {
    color: var(--color-surface);
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
}

.contact h2 {
    color: var(--color-surface);
}

.contact address {
    font-style: normal;
    line-height: 1.6;
}

.whatsapp {
    position: fixed;
    z-index: 11;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: 56px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgb(0 0 0 / 22%);
}

.whatsapp:hover {
    background: #1eaa53;
}

.site-footer {
    padding: 15px var(--content-gutter);
    color: var(--color-surface);
    background: var(--color-primary);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 10px;
    }

    .menu {
        justify-content: center;
        gap: 10px 18px;
        padding-bottom: 8px;
    }

    .section {
        padding-block: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}