/* ═══════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════ */

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

:root {
    /* Brand */
    --green: #009f4d;
    --green-dark: #1b5e20;

    /* Text */
    --text: #1a1a1a;
    --text-body: #666;

    /* Surfaces */
    --white: #ffffff;
    --grey: #f2f2f2;
    --grey-border: #d0d0d0;

    /* Layout */
    --nav-h: 300px;
    --carousel-gap: 3rem;
    --carousel-peek: 60px;
    --padding-border: 10rem;
}


/* ═══════════════════════════════════════
   BASE
   ═══════════════════════════════════════ */

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}


/* ═══════════════════════════════════════
   NAVIGATION (top bar)
   ═══════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--padding-border);
    z-index: 100;
}

.nav-link-left,
.nav-link-right {
    text-decoration: underline;
    color: var(--green);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link-left:hover,
.nav-link-right:hover {
    color: var(--green-dark);
}

.nav-logo-center {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-center img {
    height: 160px;
}

body.home-active .nav-link-left {
    color: var(--white);
}

body.home-active .nav-logo-center {
    display: none;
}

body.contact-active .nav-link-right {
    color: var(--white);
}

body.contact-active .nav-logo-center {
    display: none;
}


/* ═══════════════════════════════════════
   PAGES (shared)
   ═══════════════════════════════════════ */

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}


/* ═══════════════════════════════════════
   HOME
   ═══════════════════════════════════════ */

#page-home {
    display: none;
    flex-direction: column;
}

#page-home.active {
    display: flex;
}

.home-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 2rem;
    min-height: 100vh;
}

.home-hero img {
    max-width: 60%;
    margin-bottom: 10rem;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 75%;
}

.home-card {
    background: var(--grey);
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--green);
    transition: border-color 0.15s, transform 0.15s;
    text-align: center;
    line-height: 3;
}

.home-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.home-card .label {
    font-size: 3rem;
    font-weight: 600;
    color: var(--green);
}


/* ═══════════════════════════════════════
   CAROUSEL PAGES (shared)
   ═══════════════════════════════════════ */

.carousel-page {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--nav-h);
}

.carousel-page.active {
    display: flex;
}

.carousel-header {
    background: var(--green);
    color: white;
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 1.5rem 0;
    margin: 0 var(--padding-border);
}

.carousel-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 calc(var(--padding-border) - 2rem);
    min-height: 0;
}

.carousel-track {
    flex: 1;
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0;
}

.carousel-slide {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    min-height: 0;
}


/* ── Slide layout ── */

.slide-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--carousel-gap);
    padding: var(--carousel-gap);
    border: 1px solid var(--grey-border);
    margin: 2rem;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    flex: 1;
    min-height: 0;
}

.slide-content {
    flex: 1;
    max-width: 40%;
    padding: 2rem;
}

.slide-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.slide-content p {
    font-size: 2rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 1rem;
    text-align: justify;
}

.slide-icon-svg {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}


/* ── Slide media ── */

.slide-media {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.slide-media img {
    border-radius: 10px;
    object-fit: cover;
    max-width: 75%;
}

/* ── Grid 2×2 ── */

.slide-media.grid2 {
    align-content: center;
}

.slide-media.grid2 img {
    width: calc(50% - 0.375rem);
    height: 487px;
    max-width: none;
}


/* ── Carousel buttons (hidden — touch/swipe/peek used instead) ── */

.carousel-btn {
    display: none;
}


/* ── Progress dots ── */

.carousel-progress {
    display: flex;
    gap: 20px;
    padding: 0.75rem var(--padding-border) 1rem var(--padding-border);
}

.progress-dot {
    height: 15px;
    border-radius: 8px;
    background: var(--grey-border);
    transition: background 0.3s;
    cursor: pointer;
    flex: 1;
}

.progress-dot.active {
    background: var(--green);
}


/* ═══════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════ */

.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem;
    flex-wrap: wrap;
}

.bottom-nav-btn {
    text-decoration: none;
    color: var(--green);
    font-size: 2rem;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    background: var(--grey);
    transition: background 0.15s, color 0.15s;
}

.bottom-nav-btn:hover {
    background: #e0e0e0;
}

.bottom-nav-btn.active {
    background: var(--green);
    color: var(--white);
}


/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */

#page-contact {
    display: none;
    flex-direction: column;
}

#page-contact.active {
    display: flex;
}

.contact-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.contact-cards {
    display: flex;
    gap: 1.5rem;
    max-width: 80%;
}

.contact-card-info {
    flex: 2;
    background: var(--white);
    border: 1.5px solid var(--grey-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.contact-card-info h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.barcode-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.barcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.barcode-placeholder {
    background: var(--white);
    padding: 0.5rem;
}

.barcode-placeholder svg,
.barcode-placeholder img {
    display: block;
}

.barcode-item p {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    font-family: monospace;
}

.barcode-text {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    max-width: 180px;
    text-align: center;
    color: var(--text);
}

.contact-card-qr {
    flex: 1;
    background: var(--white);
    border: 1.5px solid var(--grey-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qr-placeholder {
    background: var(--white);
    padding: 0.5rem;
    border: 1px solid var(--grey-border);
    border-radius: 8px;
}

.qr-placeholder svg,
.qr-placeholder img {
    display: block;
}

.qr-label {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
}


/* ═══════════════════════════════════════
   RESPONSIVE (≤ 768px)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --carousel-gap: 1.5rem;
        --carousel-peek: 40px;
    }

    nav {
        padding: 0 1.5rem;
    }

    .home-cards {
        grid-template-columns: 1fr;
        max-width: 80%;
    }

    .carousel-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .carousel-header {
        margin: 0 -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 1.3rem;
    }

    .slide-inner {
        flex-direction: column;
        gap: var(--carousel-gap);
    }

    .slide-content {
        flex: none;
        max-width: 100%;
    }

    .slide-media.grid2 img {
        width: 100%;
        height: 160px;
    }

    .contact-cards {
        flex-direction: column;
    }

    .barcode-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .bottom-nav {
        gap: 0.5rem;
        padding: 1rem 0 1.5rem 0;
    }

    .bottom-nav-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
    }
}