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

:root {
    --color-primary: #1f5f9f;
    --color-primary-dark: #164a7d;
    --color-text: #1a1a2e;
    --color-heading: #111827;
    --color-muted: #4b5563;
    --color-border: #e5e7eb;
    --color-white: #fff;
    --color-stripe: #f3f4f6;
    --color-footer: #111827;
    --header-height: 64px;
    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: var(--color-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: var(--header-height);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 201;
    -webkit-tap-highlight-color: transparent;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(15, 26, 46, 0.45);
    z-index: 198;
}

body.nav-open .nav-backdrop {
    display: block;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--color-primary);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn--light:hover {
    background: #f0f4f8;
    border-color: #f0f4f8;
    color: var(--color-primary-dark);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Hero carousel */
.hero-carousel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.hero-carousel__slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 46, 0.45) 0%,
        rgba(15, 26, 46, 0.65) 55%,
        rgba(15, 26, 46, 0.8) 100%
    );
}

.hero-carousel__content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-height) + 40px) 24px 80px;
    color: var(--color-white);
}

.hero-carousel__content .eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.9;
    margin-bottom: 12px;
}

.hero-carousel__content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-carousel__content > p {
    max-width: 520px;
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

.hero-carousel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-carousel__dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-carousel__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dots button.is-active {
    background: var(--color-white);
    transform: scale(1.15);
}

/* Page sections */
.page-section {
    padding: 72px 24px;
}

.page-section--muted {
    background: var(--color-stripe);
}

.page-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.page-section h2,
.shop-intro h2,
.contact-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-heading);
    margin-bottom: 20px;
}

.split p + p {
    margin-top: 1rem;
    color: var(--color-muted);
}

.split p:first-child {
    color: var(--color-text);
}

.mission-list {
    list-style: none;
    display: grid;
    gap: 20px;
}

.mission-list li {
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.page-section--muted .mission-list li {
    background: var(--color-white);
}

.mission-list strong {
    display: block;
    color: var(--color-heading);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.mission-list span {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Shop — full width, simple */
.shop {
    width: 100%;
    border-top: 1px solid var(--color-border);
    background: var(--color-stripe);
}

.shop-intro {
    padding: 56px 24px 24px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.shop-intro > p:not(.section-label) {
    color: var(--color-muted);
    margin-bottom: 20px;
}

.shop-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.shop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 24px 24px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
}

.shop-nav a {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-heading);
    background: var(--color-stripe);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.shop-nav a:hover {
    background: var(--color-heading);
    color: var(--color-white);
    border-color: var(--color-heading);
}

.shop-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 24px 48px;
}

.shop-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.shop-row--single {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-row--single .shop-card {
    grid-column: 1;
}

.shop-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 18px 16px 14px;
    min-width: 0;
    scroll-margin-top: calc(var(--header-height) + 56px);
}

.shop-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-heading);
}

.shop-card__note {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: -2px 0 10px;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
}

.shop-table td {
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    line-height: 1.35;
}

.shop-table tr:last-child td {
    border-bottom: none;
}

.shop-table td:first-child {
    color: var(--color-text);
    width: 58%;
    padding-right: 8px;
    word-wrap: break-word;
}

.shop-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.82rem;
}

.shop-card__tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shop-card--split .shop-table {
    font-size: 0.8rem;
}

.shop-footnote {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

@media (max-width: 960px) and (min-width: 721px) {
    .shop-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-row--single .shop-card {
        grid-column: auto;
    }
}

/* Contact & map */
.contact-section {
    padding-bottom: 0;
}

.contact-grid {
    margin-bottom: 32px;
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-location {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 20px !important;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-actions .btn {
    min-width: 200px;
    text-align: center;
}

.btn--whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: var(--color-white);
}

.btn--whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: var(--color-white);
}

.contact-hours {
    margin-top: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.map-wrap {
    width: 100%;
    line-height: 0;
    background: var(--color-stripe);
}

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

/* Footer */
.site-footer {
    padding: 24px;
    text-align: center;
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
    color: #93c5fd;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p + p {
    margin-top: 6px;
    font-size: 0.9rem;
}

.footer-credit {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-credit a {
    color: #93c5fd;
}

/* Mobile */
@media (max-width: 720px) {
    :root {
        --header-height: 56px;
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .site-header {
        background: var(--color-primary);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: relative;
        z-index: 201;
    }

    .logo {
        font-size: 1.2rem;
        z-index: 201;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 12px 16px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        background: var(--color-primary);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
        z-index: 200;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-menu a.is-active {
        background: rgba(255, 255, 255, 0.22);
    }

    .page-section {
        padding: 48px 16px;
    }

    .hero-carousel__content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel__content h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .hero-carousel__content > p {
        font-size: 1rem;
    }

    .hero-carousel__dots {
        bottom: max(20px, env(safe-area-inset-bottom));
    }

    .shop-intro {
        padding: 40px 16px 20px;
    }

    .shop-nav {
        top: var(--header-height);
        padding: 12px 16px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-nav::-webkit-scrollbar {
        display: none;
    }

    .shop-nav a {
        flex-shrink: 0;
        padding: 10px 14px;
    }

    .shop-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .shop-card {
        scroll-margin-top: calc(var(--header-height) + 52px);
    }

    .hero-carousel__actions .btn,
    .contact-actions .btn,
    .shop-intro__actions .btn {
        width: 100%;
        min-width: 0;
    }

    .shop-row,
    .shop-row--single {
        grid-template-columns: 1fr;
    }

    .shop-row--single .shop-card {
        grid-column: auto;
    }

    .shop-card__tables {
        grid-template-columns: 1fr;
    }

    .mission-list li {
        padding: 16px;
    }

    .map-wrap iframe {
        height: 280px;
    }

    .site-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}
