@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 5rem;
}

body {
    background-color: var(--text-white);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--text-white);
}
::-webkit-scrollbar-thumb {
    background: var(--yellow-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--yellow-dark);
}

.nav-link {
    color: var(--primary);
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover {
    color: var(--yellow-dark);
}
.nav-link-active {
    color: var(--yellow-dark);
    border-bottom-color: var(--yellow-light);
    font-weight: 600;
}

.mobile-nav-link {
    color: var(--primary);
    padding: 0.7rem 0.75rem;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-active {
    color: var(--yellow-dark);
    border-left-color: var(--yellow-light);
    font-weight: 600;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.header-action:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    border: 1px solid var(--primary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
    background-color: var(--yellow-light);
    color: var(--text-white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline-white:hover {
    background-color: var(--yellow-light);
    color: var(--primary);
}

.product-card {
    background: var(--text-white);
    border: 1px solid var(--yellow-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-label {
    color: var(--yellow-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.icon-box {
    width: 48px;
    height: 48px;
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-box-on-dark {
    width: 48px;
    height: 48px;
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-light);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.testimonial-card {
    background: var(--text-white);
    border: 1px solid var(--yellow-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promise-panel {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--yellow-light);
}

.promise-cell {
    padding: 1.5rem 1.4rem;
    border-bottom: 1px solid var(--yellow-light);
}

.promise-cell:last-child {
    border-bottom: none;
}

.promise-cell h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.promise-cell p {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: 0.4rem;
    line-height: 1.65;
}

@media (min-width: 768px) {
    .promise-panel {
        grid-template-columns: 1fr 1fr;
    }

    .promise-cell {
        padding: 1.75rem 1.6rem;
        border-bottom: 1px solid var(--yellow-light);
    }

    .promise-cell:nth-child(odd) {
        border-right: 1px solid var(--yellow-light);
    }

    .promise-cell:nth-child(3),
    .promise-cell:nth-child(4) {
        border-bottom: none;
    }
}

.contact-form {
    border: 1px solid var(--yellow-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-field span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yellow-dark);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--yellow-light);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--text-white);
    outline: none;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--yellow);
}

.contact-alert {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
}

.contact-alert-ok {
    border: 1px solid var(--secondary);
    color: var(--primary);
    background: var(--text-white);
}

.contact-alert-err {
    border: 1px solid var(--yellow-dark);
    color: var(--yellow-dark);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--secondary);
}

.footer-social {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.footer-social:hover {
    background: var(--yellow);
    color: var(--primary);
}

#siteHeader {
    transition: box-shadow 0.25s ease;
}
#siteHeader.is-scrolled {
    box-shadow: 0 4px 18px rgba(16, 56, 30, 0.08);
}

.btn-primary,
.btn-outline,
.btn-outline-white {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover,
.btn-outline:hover,
.btn-outline-white:hover {
    transform: translateY(-2px);
}
.btn-primary i,
.btn-outline i,
.btn-outline-white i {
    transition: transform 0.2s ease;
}
.btn-primary:hover i,
.btn-outline:hover i,
.btn-outline-white:hover i {
    transform: translateX(4px);
}

.icon-box,
.icon-box-on-dark {
    transition: transform 0.25s ease;
}
.icon-box:hover,
.icon-box-on-dark:hover {
    transform: scale(1.06);
}

.product-card,
.testimonial-card {
    transition: transform 0.25s ease;
}
.product-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
}

.promise-cell {
    transition: background-color 0.2s ease;
}

.hero-copy {
    animation: fadeUp 0.65s ease both;
}

.hero-type {
    display: inline-block;
    min-height: 1.15em;
}

.hero-type::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.82em;
    margin-left: 4px;
    background: var(--yellow);
    vertical-align: -0.06em;
    animation: caretBlink 0.7s step-end infinite;
}

.hero-type.is-done::after {
    opacity: 0;
    animation: none;
}

.hero-visual {
    animation: fadeUp 0.75s ease 0.12s both;
}
.hero-visual img {
    animation: heroZoom 1.1s ease both;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.is-open {
    opacity: 0.28;
    pointer-events: auto;
}

#mobileDrawer.translate-x-0 .mobile-nav-link {
    animation: fadeUp 0.35s ease both;
}
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(1) { animation-delay: 0.04s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(2) { animation-delay: 0.08s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(3) { animation-delay: 0.12s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(4) { animation-delay: 0.16s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(5) { animation-delay: 0.2s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(6) { animation-delay: 0.24s; }
#mobileDrawer.translate-x-0 .mobile-nav-link:nth-child(7) { animation-delay: 0.28s; }

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

@keyframes caretBlink {
    50% {
        opacity: 0;
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-copy,
    .hero-visual,
    .hero-visual img,
    .product-card,
    .testimonial-card,
    .btn-primary,
    .btn-outline,
    .btn-outline-white,
    .icon-box,
    .icon-box-on-dark,
    #mobileDrawer.translate-x-0 .mobile-nav-link {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
