/* Visually hidden — acessível a leitores de tela, invisível visualmente */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Reset e base cross-browser ──────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: #faf5ef;
    color: #3d2b35;
    padding-top: 60px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ─── Navegação ────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 245, 239, 0.97);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #3d2b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

nav a:hover {
    color: #b8688a;
}

nav a:focus-visible {
    color: #b8688a;
    outline: 3px solid #b8688a;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #3d2b35;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Layout ────────────────────────────────────────────── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

#home     { padding-bottom: 0; }
#sobre    { padding-top: 20px; }
#sobre h2 { margin-top: 0; }

/* ─── Logo ──────────────────────────────────────────────── */
.logo {
    text-align: center;
    margin: 30px 0;
}

.logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* ─── Tipografia ────────────────────────────────────────── */
h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    text-align: center;
    margin: 30px 0 10px;
    color: #3d2b35;
    line-height: 1.2;
}

.subtitle {
    text-align: center;
    color: #7a5a68;
    font-size: 15px;
    margin-bottom: 30px;
}

h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    margin: 40px 0 20px;
    color: #3d2b35;
    line-height: 1.2;
}

p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    color: #3d2b35;
}

/* ─── Fundadora ─────────────────────────────────────────── */
.founder {
    max-width: 700px;
    margin: 30px auto 10px;
}

.founder-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    min-height: 180px; /* fallback for browsers without aspect-ratio */
}

.founder-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-caption {
    font-size: 13px;
    color: #7a5a68;
    font-style: italic;
    text-align: center;
    margin-top: 6px;
}

/* ─── Eventos ───────────────────────────────────────────── */
.events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.event {
    flex: 1 1 260px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f0eb;
    overflow: hidden;
    position: relative;
}

.event-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event h3 {
    font-size: 18px;
    color: #3d2b35;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-date {
    color: #c9a84c;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.event p {
    font-size: 14px;
    margin: 10px 0;
}

/* ─── Botão ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: #b8688a;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: inherit; /* <button> não herda a fonte da página por padrão */
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:hover {
    background: #9a5472;
}

/* ─── Galeria ───────────────────────────────────────────── */
.gallery {
    margin: 30px 0;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    min-height: 240px; /* fallback for browsers without aspect-ratio */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-img.active {
    display: block;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.gallery-btn {
    width: 44px;
    height: 44px;
    background: #b8688a;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gallery-btn:hover {
    background: #9a5472;
}

/* Accessible focus outlines for keyboard users */
.btn:focus-visible,
.gallery-btn:focus-visible,
.nav-toggle:focus-visible,
.dot:focus-visible,
.contact-item a:focus-visible {
    outline: 3px solid #b8688a;
    outline-offset: 2px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dot.active {
    background: #b8688a;
}

/* ─── Contato ───────────────────────────────────────────── */
.contacts {
    max-width: 500px;
    margin: 30px auto;
}

.contact-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.contact-item strong {
    display: block;
    color: #7a5a68;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-item a {
    color: #b8688a;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-intro {
    text-align: center;
    margin-bottom: 30px;
}

/* ─── Rodapé ────────────────────────────────────────────── */
footer {
    background: #3d2b35;
    color: #c4a882;
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
    line-height: 1.6;
}

footer p {
    margin: 0;
    color: #c4a882;
    font-size: 13px;
}

/* ─── Botão flutuante WhatsApp ──────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ─── Responsivo: Tablet ────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .container { padding: 50px 20px; }
}

/* ─── Responsivo: Mobile ────────────────────────────────── */
@media (max-width: 680px) {
    body { padding-top: 56px; }

    /* Nav com hamburger */
    nav {
        padding: 14px 20px;
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 245, 239, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #f0e8e0;
    }

    .nav-links.open {
        display: flex;
    }

    nav a { font-size: 14px; }

    /* Layout */
    .container { padding: 40px 16px; }
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }

    /* Cards de evento: empilhados, altura livre independente do tamanho do texto */
    .events { display: flex; flex-direction: column; gap: 20px; }
    .event  { flex: none; width: 100%; }

    /* Imagem em 3:2 — mantém position:absolute funcionando, menos altura que 1:1 */
    .event-img-wrap { aspect-ratio: 3 / 2; }

    /* Galeria em formato mais vertical no mobile */
    .gallery-main { aspect-ratio: 3 / 4; }

    /* WhatsApp button menor e mais próximo da borda */
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ─── Responsivo: Mobile pequeno ───────────────────────── */
@media (max-width: 400px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    p { font-size: 15px; }
    .container { padding: 30px 14px; }
}
