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

:root {
    --sidebar-w: 220px;
    --accent: #c2410c;
    --accent-bg: #fff1eb;
    --text: #1c1412;
    --muted: #78625a;
    --border: rgba(0, 0, 0, 0.08);
    --bg: #fdf6f0;
    --surface: #f5e6df;
}

/*
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #5DCAA5;
        --accent-bg: #085041;
        --text: #f0ede8;
        --muted: #999994;
        --border: rgba(255, 255, 255, 0.1);
        --bg: #1a1917;
        --surface: #242320;
    }
}
        */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--text);
    padding: 0 1.5rem 2rem;
    letter-spacing: -0.01em;
}

.sidebar-logo span {
    color: var(--accent);
}

nav {
    flex: 1;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 1.5rem 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-link .icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text);
    background: var(--accent-bg);
}

.nav-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-bg);
    font-weight: 500;
}

.nav-link.active .icon {
    opacity: 1;
}

/* ── Main ── */

.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 4rem;
}

section {
    width: 100%;
    max-width: 1100px;
    min-height: 100vh;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--border);
    text-align: justify;
}


section:last-child {
    border-bottom: none;
}


.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

h3 {
    font-family: 'DM Serif Display', serif;
}

#besoiros h3 {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--your-border-color);
}

p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
    /* --- max-width: 56ch; ---*/
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 48ch;
}

.hero-images {
    margin: 1.5rem 0;
}

.hero-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.15s;
}

.hero-images img:hover {
    opacity: 0.85;
}

/* ── Documents ── */

.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 2rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.doc-card:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
}

.doc-card:hover .doc-download [data-lucide] {
    stroke: var(--accent);
}

.doc-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
    text-align: left;
}

.doc-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.doc-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.doc-download {
    flex-shrink: 0;
}

.doc-download [data-lucide] {
    stroke: var(--muted);
    transition: stroke 0.15s;
}

@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Cards ── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.card-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.875rem;
    margin: 0;
}

/* ── Contact ── */

.contact-sub {
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-card-wide {
    grid-column: 1 / -1;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-wide {
        grid-column: 1;
    }
}

[data-lucide] {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    stroke-width: 1.5;
}

/* bigger icons somewhere specific */
.contact-icon [data-lucide] {
    width: 18px;
    height: 18px;
}

/* different color for sidebar icons */
.nav-link [data-lucide] {
    stroke: var(--muted);
}

.nav-link.active [data-lucide] {
    stroke: var(--accent);
}


.auditorium-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.5rem 0;
}

.auditorium-images img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.15s;
}

.auditorium-images img:hover {
    opacity: 0.85;
}


.gallery-images {
    column-count: 3;
    /* or 2, 4 — your call */
    column-gap: 12px;
}

.gallery-images img {
    width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    break-inside: avoid;
    /* keeps image in one column */
    cursor: pointer;
    transition: opacity 0.15s;
}

.gallery-images img:hover {
    opacity: 0.85;
}

.besoiros-images {
    column-count: 3;
    /* or 2, 4 — your call */
    column-gap: 12px;
}

.besoiros-images img {
    width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    break-inside: avoid;
    /* keeps image in one column */
    cursor: pointer;
    transition: opacity 0.15s;
}

.besoiros-images img:hover {
    opacity: 0.85;
}

/* lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ── Price table ── */

.table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.price-table thead th {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border);
}

.price-table thead th:first-child {
    text-align: left;
    border-radius: 12px 0 0 0;
}

.price-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.price-table tbody tr:nth-child(even) {
    background: var(--accent-bg);
}

.price-table tbody td {
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

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

.price-table .row-label {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    min-width: 160px;
}

.price-table .limpeza {
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

/* ── Mobile ── */

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        overflow-y: visible;
    }

    .sidebar-logo {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
    }

    .nav-label {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 1rem 1.25rem;
    }

    .nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }

    .main {
        margin-left: 0;
        padding: 2.5rem 1.5rem;
    }

    .gallery-images {
        column-count: 1;
    }

}