/* ═══════════════════════════════════════════════════
   FREDERICO FERREIRA — Layout (Header, Footer, Grids)
   ═══════════════════════════════════════════════════ */

/* ══ HEADER ══ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-sticky);
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
}

.header.is-scrolled {
    background: rgba(14, 30, 52, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-light);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-list {
    display: flex;
    gap: var(--space-lg);
}

.header__nav-link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--duration-fast);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
}

.header__nav-link:hover {
    color: var(--white);
}

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    cursor: pointer;
    z-index: calc(var(--z-overlay) + 1);
}

.header__hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.header__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 1024px) {
    .header__hamburger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        background: rgba(14, 30, 52, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out);
        z-index: var(--z-overlay);
    }

    .header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .header__nav-link {
        font-size: var(--fs-h3);
        letter-spacing: var(--ls-wide);
    }

    .header__nav .btn {
        margin-top: var(--space-xl);
    }

    .header__logo img {
        height: 50px;
    }
}

/* ══ HERO ══ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(209, 178, 125, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 39, 64, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, rgba(14, 30, 52, 0.3) 0%, var(--navy) 100%);
    z-index: 1;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: var(--header-height);
    margin: 0 auto;
    text-align: center;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: var(--gold-glow);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
}

.hero__title {
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__title span {
    color: var(--gold);
}

.hero__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.hero__badges {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    justify-content: center;
    border-top: 1px solid var(--border-light);
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.hero__badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .hero__badges {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ══ GRID LAYOUTS ══ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid--2-1 {
    grid-template-columns: 2fr 1fr;
}

.grid--1-2 {
    grid-template-columns: 1fr 2fr;
}

.grid--contact {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid--2,
    .grid--3,
    .grid--4,
    .grid--2-1,
    .grid--1-2,
    .grid--contact {
        grid-template-columns: 1fr;
    }
}

/* ══ ABOUT SECTION ══ */
.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__photo {
    width: 280px;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(209, 178, 125, 0.3);
    box-shadow: 0 20px 40px rgba(14, 30, 52, 0.1), 0 0 0 1px rgba(209, 178, 125, 0.05);
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-secondary), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__photo-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--gold);
    opacity: 0.3;
}

.about__info h3 {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-xs);
}

.about__oab {
    font-size: var(--fs-small);
    color: var(--gold);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--space-lg);
}

.about__bio {
    color: var(--text-dark-secondary);
    margin-bottom: var(--space-xl);
    line-height: var(--lh-relaxed);
}

.about__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about__detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    color: var(--text-dark-secondary);
}

.about__detail svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__photo {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }

    .about__details {
        align-items: center;
    }
}

/* ══ CONTACT SECTION ══ */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info__title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-md);
}

.contact-info__text {
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-fast);
}

.contact-info__item:hover {
    border-color: var(--border-gold);
}

.contact-info__item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-info__item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
}

.contact-info__item-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--gold);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-2xs);
}

.contact-info__item-value {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.contact-form-wrapper__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xl);
}

/* ══ FOOTER ══ */
.footer {
    background: var(--navy-surface);
    border-top: 2px solid rgba(209, 178, 125, 0.15);
    color: var(--text-secondary);
    position: relative;
}

.footer__top {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__brand-logo {
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.footer__brand-logo img {
    width: auto;
    height: 44px;
    object-fit: contain;
    display: block;
}

.footer__brand-text {
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
    max-width: 300px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer__brand-oab {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    color: var(--gold);
    opacity: 0.7;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(209, 178, 125, 0.12);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--fs-small);
    color: var(--text-muted);
    transition: all var(--duration-fast);
    display: inline-block;
}

.footer__link:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer__bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copy {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.footer__disclaimer {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    max-width: 500px;
    text-align: right;
    line-height: var(--lh-normal);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer__brand {
        grid-column: span 2;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__disclaimer {
        text-align: center;
    }
}

/* ══ PAGE HEADER (inner pages) ══ */
.page-header {
    background: var(--navy);
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(209, 178, 125, 0.05) 0%, transparent 70%);
}

.page-header__title {
    font-size: var(--fs-h1);
    color: var(--white);
    position: relative;
    margin-bottom: var(--space-md);
}

.page-header__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    position: relative;
    max-width: 500px;
    margin-inline: auto;
}

/* ══ LEGAL PAGE (privacy, terms, cookies) ══ */
.legal-content {
    padding: var(--section-py) 0;
}

.legal-content h2 {
    font-size: var(--fs-h3);
    color: var(--navy);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.legal-content h3 {
    font-size: var(--fs-h4);
    color: var(--navy);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    color: var(--text-dark-secondary);
    margin-bottom: var(--space-md);
    line-height: var(--lh-relaxed);
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content li {
    color: var(--text-dark-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xs);
}

.legal-content strong {
    color: var(--navy);
    font-weight: var(--fw-semibold);
}