:root {
    --header-bg: rgba(24, 24, 27, 0.6);
    --header-bg-scrolled: rgba(24, 24, 27, 0.8);
    --text-light: #f7f7f7;
    --text-muted: rgba(255, 255, 255, 0.78);
    --line-soft: rgba(255, 255, 255, 0.14);
    --page-bg: #101114;
}

/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: #242424;
    font-family: "Inter", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    color: var(--text-light);
    background: rgb(0 0 0 / 13%);
    backdrop-filter: blur(7px);
    transition:
        background 240ms ease,
        transform 240ms ease,
        box-shadow 240ms ease;
    overflow: hidden;
    border-bottom: 3px solid #0e1421;
}

.site-header.is-scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top {
    height: 30px;
    border-bottom: 1px solid var(--line-soft);
}

.header-top-inner {
    height: 30px;
}

.contact-strip,
.social-strip {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-strip a,
.social-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.icon,
.social-strip svg {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex: 0 0 18px;
}

.icon svg,
.social-strip svg {
    width: 100%;
    height: 100%;
    max-width: 18px;
    max-height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-whpp svg {
    width: 100%;
    height: 100%;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 0.13;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header svg {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    overflow: visible;
}

.site-header .social-strip svg {
    width: 17px;
    height: 17px;
    max-width: 17px;
    max-height: 17px;
}

.social-strip {
    gap: 18px;
    font-size: 19px;
    font-weight: 700;
}

.social-strip a {
    width: 20px;
    justify-content: center;
    font-size: 19px;
}

.header-main {
    height: 88px;
    transition: height 240ms ease;
}

.header-main .header-inner {
    height: 100%;
}

.site-header.is-scrolled .header-main {
    height: 1px;
}

.site-header.is-scrolled .header-main .brand,
.site-header.is-scrolled .header-main nav.main-nav {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 180px;
    min-width: 180px;
    overflow: hidden;
}

.brand img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 180px;
    object-fit: contain;
    transition:
        height 240ms ease,
        opacity 240ms ease;
}

.site-header.is-scrolled .brand img {
    height: 34px;
    max-width: 130px;
}

/* =========================================================
   NAV
========================================================= */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.main-nav a:hover {
    color: var(--text-light);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-tauge {
    min-height: 700px;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #5d4433;
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.4);
    transition: opacity 1400ms ease;
    filter: grayscale(1);
    margin-bottom: -50px;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.25) 1px,
        transparent 1px
    );
    background-size: 5px 5px;
    z-index: 2;
}

.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.36),
            rgb(14 23 47 / 62%)
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18),
            rgb(65 74 109 / 72%)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(980px, calc(100% - 32px));
    min-height: 66vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content-tauge {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    padding-top: 150px;
}

.hero-content-tauge {
    padding-top: 0;
}

.hero-logo {
    display: block;
    width: min(700px, 64vw);
    max-height: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: clamp(120px, 18vh, 210px);
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.hero h1 {
    margin: 0;
    font-family: "Italiana", sans-serif;
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 400;
    color: #f5f3ef;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
}

.borda {
    position: absolute;
    width: 80%;
    height: 90%;
    margin: 0 auto;
    z-index: 5;
    background: transparent;
}

/* =========================================================
   CONTENT SECTIONS
========================================================= */

.content-section {
    min-height: 55vh;
    background: #122137;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    padding: 0 10%;
}

.content-section:nth-of-type(odd) {
    background: #534248;
}

.section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
}

.section-inner h2 {
    margin: 18px 0 18px;
    color: #fff;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 400;
    letter-spacing: 0;
}

.section-inner p {
    margin: 0;
    max-width: 100% !important;
    color: #f2f2f2;
    font-size: 18px;
    line-height: 1.7;
}

.inner-section {
    min-height: 400px;
    padding: 50px 100px;
    background: rgba(217, 217, 217, 0.13);
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.10) 0.8px,
        transparent 0.8px
    );
    background-size: 6px 6px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

.inner-section h1 {
    margin: 0;
    font-family: "Italiana", sans-serif;
    font-size: clamp(30px, 9vw, 40px);
    font-weight: 400;
    color: #fff !important;
    line-height: 3;
    letter-spacing: 0;
    text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
}

.inner-section ul {
    margin-block-start: 5px;
    padding-inline-start: 25px;
    line-height: 1.5;
}

.inner-section li {
    margin: 10px 0;
    max-width: 100% !important;
    color: #f2f2f2;
    font-size: 18px;
    line-height: 2;
}

.inner-section li strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 800;
}

hr {
    height: 1px;
    width: 100%;
    margin: 100px 0 30px;
    color: #fafafa;
}

/* =========================================================
   FAMÍLIA / PATRIMÔNIO - GRID
========================================================= */

#familia,
#patrimonio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* =========================================================
   CARDS
========================================================= */

.fam,
.pat {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 250px;
    margin-bottom: 30px;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================================
   IMAGENS DOS CARDS
========================================================= */

.fam img,
.pat img,
#divorcio,
#curatela,
#partilha,
#inventario,
#guarda,
#uniao-estavel,
#acordo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* =========================================================
   TEXTOS DOS CARDS
========================================================= */

.fam h4,
.pat h4 {
    margin: 24px 0 18px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.fam p,
.pat p {
    margin: 0 0 14px;
    color: #fff;
    font-size: 21px;
    line-height: 1.45;
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    #familia,
    #patrimonio {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fam,
    .pat {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .fam img,
    .pat img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .fam h4,
    .pat h4 {
        font-size: 26px;
        line-height: 1.25;
        margin: 26px 0 18px;
    }

    .fam p,
    .pat p {
        font-size: 22px;
        line-height: 1.45;
    }
}

/* =========================================================
   MOBILE HEADER / LAYOUT
========================================================= */

@media (max-width: 820px) {

    .header-inner {
        width: min(calc(100% - 24px), 720px);
    }

    .header-top {
        height: auto;
        min-height: 30px;
    }

    .header-top-inner {
        height: auto;
        min-height: 30px;
        gap: 8px;
        padding: 5px 0;
        align-items: flex-start;
    }

    .contact-strip {
        gap: 10px;
        flex-wrap: wrap;
    }

    .contact-strip a {
        font-size: 11px;
        gap: 5px;
    }

    .contact-strip a:nth-child(2) {
        display: none;
    }

    .social-strip {
        gap: 10px;
        flex-shrink: 0;
    }

    .social-strip a {
        font-size: 16px;
        width: 17px;
    }

    .header-main {
        height: 66px;
    }

    .site-header.is-scrolled .header-main {
        height: 4px;
    }

    .brand {
        width: 130px;
        min-width: 130px;
    }

    .brand img {
        height: 30px;
        max-width: 120px;
    }

    .main-nav {
        display: none;
    }

    .hero-content {
        min-height: 70vh;
        padding-top: 135px;
    }

    .hero-logo {
        width: min(430px, 78vw);
        max-height: 140px;
        margin-bottom: clamp(82px, 15vh, 145px);
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 64px);
    }

    .section-inner {
        width: min(calc(100% - 32px), 720px);
        margin: 0 auto;
        padding: 30px 0;
    }

    .content-section {
        min-height: 55vh;
        background: #122137;
        display: flex;
        align-items: center;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        padding: 0 5px;
    }

    .inner-section {
        min-height: 400px;
        padding: 30px 13px;
        background: rgba(217, 217, 217, 0.13);
        background-image: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.10) 0.8px,
            transparent 0.8px
        );
        background-size: 6px 6px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
    }

    .inner-section h1 {
        margin: 0 0 10px;
        font-family: "Italiana", sans-serif;
        font-size: clamp(30px, 9vw, 40px);
        font-weight: 400;
        color: #fff !important;
        line-height: 1.2;
        letter-spacing: 0;
        text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
    }

    .inner-section li {
        margin: 10px 0;
        max-width: 100% !important;
        color: #f2f2f2;
        font-size: 18px;
        line-height: 1.3;
    }

    .inner-section li strong {
        color: #fff;
        font-size: 22px;
        line-height: 1.3;
        font-weight: 800;
    }

    hr {
        height: 1px;
        width: 100%;
        margin: 50px 0 30px;
        color: #fafafa;
    }

    .hero-tauge {
        min-height: 200px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        isolation: isolate;
        background: #5d4433;
    }

    .borda {
        position: absolute;
        border: 1px solid #404451;
        width: 90%;
        height: 90%;
        margin: 0 auto;
        z-index: 5;
        background: transparent;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}