/* Fonts */
@font-face {
    font-family: "Ananias";
    src:
        url("fonts/ananias.otf") format("opentype"),
        url("fonts/ananias.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ananias";
    src:
        url("fonts/ananias-bold.otf") format("opentype"),
        url("fonts/ananias-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bryndan Write";
    src: url("fonts/bryndan-write.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Childos Arabic";
    src: url("fonts/childos-arabic.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Strawberry Days";
    src: url("fonts/strawberry-days.otf") format("opentype");
    src: url("fonts/strawberry-days.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    width: 100%;
}

/* Reset CSS — configurações comuns */
:root {
    --focus-color: #2684FF;
    --focus-ring: 3px;
}

/* Box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Remove default spacing and backgrounds */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    background: transparent;
}

/* HTML5 elements display reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Base body settings */
body {
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Background */
    background-color: #ffffff;
    background-image: url("assets/bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    /* stacking context for background layers */
    position: relative;

    color: #111111;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Camada do mar: acima do bg, abaixo do conteúdo */
body::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;

    background-image: url("assets/sea.png");
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: auto 100%;

    z-index: 0;
    pointer-events: none;
}

/* Camada de grama: acima do mar e abaixo do conteúdo */
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;

    background-image: url("assets/grass.png");
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: auto 100%;

    z-index: 1;
    pointer-events: none;
}

/* ==========================
   Responsive (Mobile)
   ========================== */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    line-height: 1.2;
}
strong {
    font-weight: 600;
}

/* Lists */
ol, ul {
    list-style: none;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

/* Images and media */
img, picture, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Forms */
button, input, select, textarea {
    font: inherit;
    color: inherit;
    margin: 0;
    background: transparent;
    border: none;
    line-height: inherit;
}
button, [type="button"], [type="submit"], [type="reset"] {
    -webkit-appearance: button;
    cursor: pointer;
}
input, textarea, select {
    -webkit-appearance: none;
    appearance: none;
}
textarea {
    resize: vertical;
}

/* Remove browser autofill background (Chrome) */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: inherit;
}

/* Focus outlines (accessible) */
:focus {
    outline: none;
}
:focus-visible {
    outline: var(--focus-ring) solid var(--focus-color);
    outline-offset: 2px;
}

/* Utility helpers */
.hidden {
    display: none !important;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Optional container default */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ou, para posicionamento absoluto relativo a um container,
   adicione .shift-container ao elemento pai e .img-abs-shift à <img> */
.shift-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    /* garante que o conteúdo fique acima do body::before (mar) e body::after (grama) */
    z-index: 2;
}

/* canto superior esquerdo (fora um pouco do container, como estava) */
.top-left-img {
    position: absolute;
    top: -200px;
    left: -280px;
}

/* topo direito */
.top-right-image {
    position: absolute;
    top: -130px;
    right: -130px;
}

/* canto inferior esquerdo */
.bottom-left-image {
    position: absolute;
    left: 30px;
    bottom: 0;
    /* width: 230px; */
}
/* centro inferior */
.bottom-center-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}
/* canto inferior direito */
.bottom-right-image {
    position: absolute;
    right: -50px;
    bottom: 0;
}


/* ==========================
   Convite (HTML) - substitui title.png
   ========================== */
.invite-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);

    width: min(500px, 80vw);
    padding: 28px 26px 22px;

    /* background: rgba(255, 255, 255, 0.7); */
    /* border-radius: 16px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); */

    text-align: center;
    z-index: 10;
}

.invite-kicker {
    font-family: "Bryndan White", cursive, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #d6b24a;
    text-shadow: 0 1px 0 rgba(50, 50, 50, 1);
}

.invite-name {
    font-family: "Ananias", cursive, sans-serif;
    margin-top: 14px;
    font-size: clamp(5rem, 6vw, 4.2rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: #c88867;
}

.invite-subtitle {
    font-family: "Ananias", cursive, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #c88867;
}

.invite-age {
    font-family: "Bryndan Write", cursive, sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
}

.invite-date {
    font-family: "Childos Arabic", cursive, sans-serif;
    margin-top: 18px;
    color: rgba(100, 100, 100, 1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.invite-date-sides {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.invite-date-sides > span {
    text-align: center;
    border-top: 1px solid rgba(50, 50, 50, 0.5);
    border-bottom: 1px solid rgba(50, 50, 50, 0.5);
    width: 80%;
    padding-top: 3px;
    /* padding-bottom: 2px; */
}

.invite-time { 
    font-family: "Strawberry Days", cursive, sans-serif;
    font-size: 1.13rem;
    margin-right: 0.1rem;
    font-weight: 600;
}
.grid-row-span {
    grid-row: 1 / -1;
}

.invite-date-center {
    display: grid;
    justify-items: center;
    font-family: "Strawberry Days", cursive, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.invite-month {
    font-family: "Childos Arabic", cursive, sans-serif;
}

.invite-day {
    font-size: 3.2rem;
    line-height: 1;
}

.invite-year {
    margin-top: 5px;
    /* font-weight: 700; */
}

.invite-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.invite-action {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.62);
}

.invite-action:hover,
.invite-action:focus-visible {
    background: rgba(0, 0, 0, 0.04);
}

.invite-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #37a8c1;
    color: #fff;
    box-shadow: 0 8px 18px rgba(55, 168, 193, 0.28);
}

.invite-action-label {
    font-family: "Bryndan Write", cursive, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

@media (max-width: 768px) {.shift-container {
        /* melhor no mobile por conta da barra do navegador */
        height: 100svh;
    }

    /* ajusta altura das camadas */
    body::before {
        height: 140px;
    }
    body::after {
        height: 120px;
    }

    /* Topo esquerdo */
    .top-left-img {
        top: -90px;
        left: -80px;
        width: min(150vw);
    }

    /* Topo direito */
    .top-right-image {
        top: -70px;
        right: -70px;
        width: min(55vw, 260px);
    }

    /* Inferior esquerdo */
    .bottom-left-image {
        left: 0px;
        bottom: 5%;
        width: min(25vw, 180px);
    }
    /* Centro inferior */
    .bottom-center-image {
        bottom: 5%;
        width: min(40vw, 360px); 
        /* display: none; */
    }

    /* Inferior direito */
    .bottom-right-image {
        right: -20px;
        bottom: 5%;
        width: min(35vw, 300px);
    }


    /* Título central */
    .title-image {
        top: 12%;
        width: min(200vw, 420px);
    }

    .invite-card {
        width: min(520px, 90vw);
        padding: 20px 18px 16px;
        /* top: 50%; */
        /* transform: translate(-50%, ); */
    }

    .invite-kicker{
        font-size: 1.2rem;
    }

    .invite-name {
        font-size: clamp(4rem, 8vw, 3.5rem);
    }

    .invite-age {
        font-size: 1.6rem;
    }
    
    .invite-leaf {
        width: 80px;
        /* height: 100px; */
    }

    .invite-date-center, .invite-date-sides {
        /* gap: 10px; */
        font-size: 1.2rem;
    }

    .invite-actions {
        gap: 8px;
    }

    .invite-icon {
        width: 44px;
        height: 44px;
    }

    .invite-action-label {
        font-size: 0.65rem;
    }
}

/* (legado) título em imagem - mantido caso você queira voltar a usar */
.title-image {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;

    /* garante que não estoure a tela em resoluções menores */
    max-width: min(90vw, 900px);
    height: auto;
}
