/* Michis — landing profesional */

:root {
    --ink: #14201c;
    --muted: #5a6a64;
    --sand: #eef5f1;
    --sand-2: #e3ece7;
    --coral: #1f8a70;
    --coral-deep: #176c58;
    --foam: #ffffff;
    --line: rgba(20, 32, 28, 0.1);
    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --radius: 1.25rem;
    --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.michis {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    background: var(--sand);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: .5rem 1rem;
    z-index: 100;
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* Nav */
.site-nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem var(--pad);
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.site-links {
    display: none;
    gap: 1.25rem;
}

.site-links a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
}

.site-links a:hover { color: #fff; }

@media (min-width: 800px) {
    .site-links { display: flex; }
}

/* Hero — full bleed */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.04);
    animation: heroZoom 12s ease-out both;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(12, 28, 24, .78) 0%, rgba(12, 28, 24, .28) 48%, rgba(12, 28, 24, .5) 100%),
        linear-gradient(180deg, transparent 35%, rgba(10, 22, 18, .9) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 7vw, 5rem) var(--pad);
    max-width: 42rem;
    animation: rise .9s .2s ease both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: .9;
    margin: 0 0 .9rem;
    letter-spacing: -.03em;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.35rem, 3.2vw, 1.95rem);
    line-height: 1.25;
    margin: 0 0 .85rem;
    max-width: 18ch;
}

.hero-lead {
    margin: 0 0 1.6rem;
    color: rgba(247, 241, 234, .88);
    font-size: 1.05rem;
    max-width: 36ch;
}

.btn-primary {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--coral);
    padding: .9rem 1.45rem;
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(31, 138, 112, .32);
    transition: transform .25s ease, background .25s ease;
}

.btn-primary:hover {
    background: var(--coral-deep);
    transform: translateY(-2px);
}

/* Sections */
.band {
    padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.band-alt {
    background: var(--sand-2);
}

.band-inner {
    width: min(1120px, calc(100% - 2 * var(--pad)));
    margin-inline: auto;
}

.section-head {
    margin-bottom: 2rem;
    max-width: 34rem;
}

.section-head-center {
    text-align: center;
    margin-inline: auto;
}

.section-head h2,
.story-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 .45rem;
    letter-spacing: -.02em;
}

.section-head p,
.story-copy p {
    margin: 0;
    color: var(--muted);
}

.story-copy p + p { margin-top: 1rem; }

/* Featured — image-led, no card chrome */
.featured-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .featured-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.featured-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    background: #c5d5cd;
    animation: rise .7s var(--d, 0s) ease both;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(14, 10, 8, .78));
    color: #fff;
    display: grid;
    gap: .2rem;
}

.featured-item strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.featured-item span {
    font-size: .92rem;
    opacity: .88;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.gallery-item {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: calc(var(--radius) - .15rem);
    aspect-ratio: 1;
    background: #c5d5cd;
    animation: rise .65s var(--d, 0s) ease both;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease, filter .55s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

/* Story */
.story {
    display: grid;
    gap: 0;
    background: #10241e;
    color: #e8f2ed;
}

@media (min-width: 900px) {
    .story {
        grid-template-columns: 1.05fr 1fr;
        min-height: 34rem;
    }
}

.story-media {
    min-height: 22rem;
    overflow: hidden;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 22rem;
}

.story-copy {
    padding: clamp(2.25rem, 6vw, 4.5rem) var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
    color: #8fd4bb;
    margin: 0 0 .85rem !important;
}

.story-copy h2 { color: #fff; }
.story-copy p { color: rgba(232, 242, 237, .78); }

/* Surprise */
.surprise {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
}

.surprise-stage {
    width: min(560px, 100%);
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #c5d5cd;
    box-shadow: 0 28px 60px rgba(20, 32, 28, .14);
}

.surprise-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease, transform .5s ease;
}

.surprise-stage img.is-switching {
    opacity: .35;
    transform: scale(1.03);
}

/* Footer */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem var(--pad) 2.25rem;
    border-top: 1px solid var(--line);
    background: var(--sand);
}

.footer-brand {
    display: grid;
    gap: .15rem;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.footer-brand span {
    color: var(--muted);
    font-size: .9rem;
}

.footer-admin {
    color: var(--coral-deep);
    font-weight: 700;
    text-decoration: none;
}

.footer-admin:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(920px, calc(100vw - 2rem));
}

.lightbox::backdrop {
    background: rgba(10, 8, 7, .86);
    backdrop-filter: blur(4px);
}

.lightbox img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: .75rem;
    background: #1a1614;
}

.lightbox-close {
    position: absolute;
    top: -2.4rem;
    right: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.04); }
}

/* Toast GPS sutil */
.geo-toast[hidden] { display: none !important; }

.geo-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 40;
    width: min(420px, calc(100% - 1.5rem));
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .95rem 1rem;
    border-radius: 1rem;
    background: rgba(16, 36, 30, .94);
    color: #e8f2ed;
    box-shadow: 0 18px 40px rgba(10, 22, 18, .28);
    backdrop-filter: blur(10px);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 0;
}

.geo-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.geo-toast-copy {
    display: grid;
    gap: .2rem;
    flex: 1 1 200px;
    font-size: .9rem;
}

.geo-toast-copy strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.geo-toast-copy span {
    color: rgba(232, 242, 237, .78);
    line-height: 1.35;
}

.geo-toast-actions {
    display: flex;
    gap: .45rem;
    flex-shrink: 0;
}

.geo-toast-allow,
.geo-toast-dismiss {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: .85rem;
    border-radius: 999px;
    padding: .55rem .9rem;
}

.geo-toast-allow {
    background: var(--coral);
    color: #fff;
}

.geo-toast-dismiss {
    background: transparent;
    color: rgba(232, 242, 237, .8);
    border: 1px solid rgba(232, 242, 237, .25);
}

.geo-ok {
    position: fixed;
    left: 50%;
    top: 1.25rem;
    transform: translateX(-50%) translateY(-140%);
    z-index: 50;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .35);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
}

.geo-ok.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
