:root {
    --gold: #A17337;
    --gold-light: #C9A06B;
    --blue: #061426;
    --blue-light: #0A2B70;
    --bg: #F7F6F2;
    --paper: #FFFFFF;
    --ink: #1C1A17;
    --ink-soft: #5B564D;
    --line: rgba(2, 28, 87, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Ubuntu', 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {

    font-weight: 500;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: 'Ubuntu', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gold);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width:640px) {
    .container {
        padding: 0 22px;
    }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

.reveal-delay-5 {
    transition-delay: .5s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    * {
        animation: none !important;
    }
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: all .45s cubic-bezier(.2, .7, .2, 1);
}

.site-header.scrolled {
    padding: 14px 0;
    background: rgba(247, 246, 242, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 8px 30px rgba(2, 28, 87, 0.06);
    border-bottom: 1px solid var(--line);
}

.logo-mark {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-mark img {
    display: block;
    width: 120px;
    height: auto;
}

.nav-link {
    position: relative;
    color: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right .35s cubic-bezier(.2, .7, .2, 1);
}

.nav-link:hover::after {
    right: 0;
}

.site-header:not(.scrolled) .nav-link {
    color: #fff;
}

.site-header.scrolled .nav-link {
    color: var(--blue);
}

.btn-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
    box-shadow: 0 6px 20px rgba(161, 115, 55, 0.25);
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, var(--gold-light), var(--gold) 40%, #8a6027 70%, var(--gold-light));
    background-size: 220% 100%;
    transition: background-position .6s ease;
}

.btn-gold:hover::before {
    background-position: 100% 0;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(161, 115, 55, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 100px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: all .35s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0d1220;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.6s ease;
}

.hero-slide.active {
    opacity: 1;
    animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    right: 32px;
    display: flex;
    gap: 9px;
}

@media (max-width:640px) {
    .hero-dots {
        right: 22px;
        bottom: 20px;
    }
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all .35s ease;
    padding: 0;
    border: none;
}

.hero-dot.active {
    background: var(--gold-light);
    width: 22px;
    border-radius: 5px;
}

.hero-caption {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 32px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-caption::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--gold-light);
    display: inline-block;
}

@media (max-width:640px) {
    .hero-caption {
        left: 22px;
    }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 10, 30, 0.82) 0%, rgba(2, 10, 30, 0.55) 42%, rgba(2, 10, 30, 0.15) 70%, rgba(2, 10, 30, 0.35) 100%),
        linear-gradient(0deg, rgba(2, 10, 30, 0.55) 0%, rgba(2, 10, 30, 0.05) 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 180px 0 110px;
    width: 90%;
}

.hero-eyebrow {
    color: var(--gold-light);
}

.hero h1 {
    color: #fff;
    font-size: clamp(34px, 5.2vw, 68px);
    line-height: 1.08;
    margin: 18px 0 22px;
    max-width: 18ch;
}

.hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.65;
    max-width: 46ch;
    margin: 0 0 34px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* subtle ambient bg movement */
@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-1.5%, 1%) scale(1.03);
    }
}

.ambient {
    animation: drift 22s ease-in-out infinite;
}

/* ---------- Section basics ---------- */
section {
    position: relative;
}

.section-pad {
    padding: 120px 0;
}

@media (max-width:768px) {
    .section-pad {
        padding: 80px 0;
    }
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    color: var(--blue);
    margin: 14px 0 16px;
    line-height: 1.2;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- About / História ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

@media (max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.about-copy h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    color: var(--blue);
    margin: 14px 0 22px;
    line-height: 1.18;
}

.about-copy p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.8;
    margin: 0 0 16px;
}

.timeline {
    margin-top: 38px;
    position: relative;
    padding-left: 26px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(var(--gold), rgba(161, 115, 55, 0.15));
}

.timeline-item {
    position: relative;
    padding-bottom: 26px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(161, 115, 55, 0.15);
}

.timeline-item .yr {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--blue);
    font-size: 16px;
    display: block;
    margin-bottom: 3px;
}

.timeline-item p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

.about-visual {
    position: relative;
}

.blob {
    position: absolute;
    border-radius: 38% 62% 61% 39% / 45% 41% 59% 55%;
    background: rgba(161, 115, 55, 0.14);
    z-index: 0;
}

.blob-1 {
    width: 78%;
    height: 60%;
    top: -8%;
    right: -10%;
}

.blob-2 {
    width: 46%;
    height: 34%;
    bottom: -6%;
    left: -8%;
    background: rgba(2, 28, 87, 0.08);
}

.about-visual .frame {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(2, 28, 87, 0.28);
    aspect-ratio: 4/4.6;
}

.about-visual .frame svg {
    width: 100%;
    height: 100%;
    display: block;
}


.imghistoria {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 100%;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1080px;
    margin: 0 auto;
}

.services-grid .row2 {
    grid-column: span 3;
    display: grid;
    gap: 26px;
}

@media (max-width:900px) {

    .services-grid,
    .services-grid .row2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:640px) {

    .services-grid,
    .services-grid .row2 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--paper);
    border-radius: 20px;
    padding: 38px 30px;
    border: 1px solid var(--line);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 26px 50px -18px rgba(2, 28, 87, 0.22);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(161, 115, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform .5s ease;
}

.service-card:hover .service-icon {
    transform: rotate(-8deg);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.service-card h3 {
    font-size: 19px;
    color: var(--blue);
    margin: 0 0 10px;
    line-height: 1.3;
}

.service-card>p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.service-photo {
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 20px;
    aspect-ratio: 16/10.5;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover .service-photo img {
    transform: scale(1.08);
}

.service-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.service-list li {
    font-size: 13.5px;
    color: var(--ink-soft);
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.service-list li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.service-more {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-more svg {
    width: 14px;
    height: 14px;
    transition: transform .3s ease;
}

.service-more:hover svg {
    transform: translateX(4px);
}

/* ---------- How it works ---------- */
.steps-wrap {
    position: relative;
}

.steps-line {
    position: absolute;
    top: 26px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.steps-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gold);
    transition: width 1.4s cubic-bezier(.2, .7, .2, 1);
}

.steps-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width:900px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-line {
        display: none;
    }
}

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

.step-item {
    text-align: center;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 26px -8px rgba(2, 28, 87, 0.4);
    position: relative;
    transition: transform .4s ease;
}

.step-item:hover .step-icon {
    transform: scale(1.08) rotate(-4deg);
}

.step-icon svg {
    width: 20px;
    height: 20px;
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', 'Inter', sans-serif;
}

.step-item h4 {
    font-size: 14.5px;
    color: var(--blue);
    margin: 0 0 8px;
    font-weight: 600;
}

.step-item p {
    font-size: 12.8px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

/* ---------- Video + Mission ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: 380px 480px;
    justify-content: center;
    gap: 60px;
    align-items: stretch;
}

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

    .video-card {
        margin: 0 auto;
    }
}

.video-card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.video-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}



.mission-box {
    background: var(--blue);
    border-radius: 22px;
    padding: 44px 38px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.mission-box .eyebrow {
    color: var(--gold-light);
}

.mission-box h3 {
    font-size: 18px;
    margin: 12px 0 26px;
    line-height: 1.35;
    color: #fff;
    font-weight: 500;
}

.mission-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mission-list .ico {
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(161, 115, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-list .ico svg {
    width: 38px;
    height: 38px;
    stroke: var(--gold-light);
}

.mission-list strong {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.mission-list span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.mission-box .btn-gold {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- Testimonials marquee ---------- */
.testi-section {
    background: var(--blue);
    overflow: hidden;
}

.testi-head h2 {
    color: #fff;
}

.testi-head p {
    color: rgba(255, 255, 255, 0.6);
}

.marquee-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation-name: marqueeLeft;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.marquee-track.reverse {
    animation-name: marqueeRight;
}

.marquee-viewport:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.testi-card {
    flex: none;
    width: 320px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .4s ease, background .4s ease;
}

.testi-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.testi-card .quote-mark {
    color: var(--gold-light);
    font-family: 'Fraunces', serif;
    font-size: 34px;
    line-height: 1;
    opacity: .7;
}

.testi-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.testi-card .avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testi-card .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    flex: none;
}

.testi-card .who strong {
    display: block;
    font-size: 13.5px;
    color: #fff;
    font-weight: 600;
}

.testi-card .who span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.marquee-row {
    margin-top: 36px;
}

.marquee-row+.marquee-row {
    margin-top: 22px;
}

/* ---------- CTA ---------- */
.cta-band {
    background: var(--bg);
    text-align: center;
    padding: 130px 0;
}

.cta-band h2 {
    font-size: clamp(26px, 4vw, 44px);
    color: var(--blue);
    line-height: 1.28;
    margin: 0 0 34px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 600;
    transition: all .35s ease;
    box-shadow: 0 10px 26px -10px rgba(2, 28, 87, 0.4);
}

.whatsapp-btn:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -10px rgba(161, 115, 55, 0.5);
}

.whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- Footer ---------- */
footer {
    background: #EFEBE3;
    padding: 70px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

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

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

.footer-grid h5 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-soft);
    margin: 0 0 16px;
    font-weight: 600;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}

.footer-grid a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(2, 28, 87, 0.1);
    padding-top: 22px;
    font-size: 12.5px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-logo p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 0;
    max-width: 32ch;
}

/* mobile nav */
.mobile-toggle {
    display: none;
}

@media (max-width:860px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 26px;
    text-decoration: none;
}

.mobile-close {
    position: absolute;
    top: 26px;
    right: 26px;
    color: #fff;
    cursor: pointer;
}

.count-fade {
    transition: opacity .3s ease;
}

::selection {
    background: var(--gold);
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 62px;
    height: 62px;
    background: var(--blue);
    color: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    border: 1px solid rgba(201, 160, 107, .35);
    box-shadow: 0 15px 35px rgba(2, 28, 87, .25);
    transition: all .35s cubic-bezier(.2, .7, .2, 1);
}

.whatsapp-float i {
    font-size: 34px;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background: var(--gold);
    color: #fff;
    box-shadow: 0 18px 45px rgba(161, 115, 55, .35);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(201, 160, 107, .35);
    animation: whatsappPulse 2.5s infinite;
}


@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: .8;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}


@media(max-width:768px) {

    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 20px;
        bottom: 20px;
    }

    .whatsapp-float i {
        font-size: 30px;
    }

}


/* ---------- Quem Somos ---------- */
.whoweare-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 72px;
    align-items: center;
}

.whoweare-copy .whoweare-mission {
    color: var(--gold-light);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
}

.whoweare-copy .whoweare-signature {
    font-family: var(--font-script, cursive);
    font-size: 26px;
    color: var(--gold-light);
    margin: 8px 0 28px;
}

.whoweare-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    padding: 22px;
}

.whoweare-card-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.whoweare-card strong {
    display: block;
    color: var(--blue);
    margin-bottom: 6px;
}

.whoweare-card p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.whoweare-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.ww-col-left {
    display: grid;
    gap: 24px;
}

.ww-col-right {
    display: grid;
    gap: 24px;
}


.ww-photo {
    border-radius: 24px;
    overflow: hidden;
    min-height: 0;
}

.ww-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: .8s;
}




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

    .whoweare-gallery {
        grid-template-columns: 1fr 1fr;

    }
}

@media (max-width: 640px) {
    .whoweare-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ww-col {
        height: auto;
    }


    .ww-col-left .ww-tall,
    .ww-col-left .ww-tall2,
    .ww-col-right .ww-wide,
    .ww-col-right .ww-mid,
    .ww-col-right .ww-wide2 {
        flex: none;
    }
}

.moments-gallery-5 {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "big big a b"
        "big big c d";
    gap: 20px;
    margin-top: 70px;

}

.moments-gallery-5 .gallery-item {

    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;

}

.moments-gallery-5 .gallery-item-big {
    grid-area: big;
}

.moments-gallery-5 .gallery-item:nth-child(2) {
    grid-area: a;
}

.moments-gallery-5 .gallery-item:nth-child(3) {
    grid-area: b;
}

.moments-gallery-5 .gallery-item:nth-child(4) {
    grid-area: c;
}

.moments-gallery-5 .gallery-item:nth-child(5) {
    grid-area: d;
}

.moments-gallery-5 .gallery-item img {

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform .8s ease;

}

/* Itens dentro do carrossel/gallery ficam ocultos pelo overflow do
   container e o IntersectionObserver do .reveal nunca os marca como
   visíveis (fica opacity:0 pra sempre). Forçamos visibilidade aqui. */
.moments-gallery-5 .reveal {

    opacity: 1;
    transform: none;
    filter: none;
    transition: none;

}

.moments-gallery-5 .gallery-item::after {

    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 24, 36, 0) 60%, rgba(12, 24, 36, .35) 100%);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;

}

.moments-gallery-5 .gallery-item:hover::after {
    opacity: 1;
}

.moments-gallery-5 .gallery-item:hover img {

    transform: scale(1.06);

}

@media(max-width:950px) and (min-width:701px) {

    .moments-gallery-5 {

        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "big big"
            "a   b"
            "c   d";

    }

    .moments-gallery-5 .gallery-item-big {
        aspect-ratio: 16 / 9;
    }

}

/* ---------- Carrossel mobile (sem JS) ---------- */

.moments-gallery-wrap {
    position: relative;
}

.gallery-dots {
    display: none;
}

@media(max-width:700px) {

    .moments-gallery-5 {

        display: flex;
        grid-template-columns: none;
        grid-template-areas: none;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 18px;
        margin-top: 40px;

        /* sinalização: barra de rolagem visível e estilizada,
           assim quem usa mouse (sem touch) também vê que dá pra arrastar */
        scrollbar-width: thin;
        scrollbar-color: var(--gold) rgba(12, 24, 36, .1);

    }

    .moments-gallery-5::-webkit-scrollbar {
        height: 5px;
    }

    .moments-gallery-5::-webkit-scrollbar-track {
        background: rgba(12, 24, 36, .08);
        border-radius: 10px;
    }

    .moments-gallery-5::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 10px;
    }

    .moments-gallery-5 .gallery-item {

        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 76vw;
        max-width: 340px;
        aspect-ratio: 4 / 5;

    }

    .moments-gallery-5 .gallery-item-big {

        width: 84vw;
        max-width: 380px;
        aspect-ratio: 4 / 5;

    }

    /* pontinhos: sinalizam que há mais fotos e levam direto a cada
       uma delas com um clique/toque — funciona com mouse, dedo e teclado */
    .gallery-dots {

        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 6px;

    }

    .gallery-dots a {

        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(12, 24, 36, .18);
        transition: background .25s ease, transform .25s ease;

    }

    .gallery-dots a:hover,
    .gallery-dots a:focus-visible {
        background: var(--gold);
        transform: scale(1.2);
    }

}

@media(max-width:420px) {

    .moments-gallery-5 .gallery-item {
        width: 82vw;
    }

    .moments-gallery-5 .gallery-item-big {
        width: 90vw;
    }

}

.moments-stats {

    margin-top: 70px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--line);

}

.stat {

    padding: 45px;
    text-align: center;

}

.stat h3 {

    font-size: 54px;
    color: var(--gold);
    margin: 0 0 10px;
    font-family: 'Fraunces', serif;

}

.stat span {

    color: var(--ink-soft);
    line-height: 1.6;

}

@media(max-width:950px) {

    .moments-stats {

        grid-template-columns: 1fr;

    }

}

.journey {
    background: #fbfaf7;
    padding-top: 86px;
    padding-bottom: 86px
}

.journey-inner {
    max-width: 1060px
}

.journey-map {
    position: relative;
    max-width: 910px;
    margin: 54px auto 0
}

.journey-map:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 16px;
    bottom: 18px;
    width: 1px;
    background: #c7a875;
    transform: translateX(-50%)
}

.journey-step {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: center;
    min-height: 116px
}

.journey-step .journey-number {
    font-size: 28px;
    color: #171717
}

.journey-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    justify-self: center;
    z-index: 1
}

.journey-step div h3 {
    margin: 0 0 2px;
    color: var(--gold);
    font-size: 19px;
    font-weight: 500;
    text-transform: uppercase
}

.journey-step div p {
    margin: 0;
    color: #171717;
    font-size: 16px;
    line-height: 1.4
}

.journey-right .journey-number {
    text-align: right;
    padding-right: 20px
}

.journey-right div {
    grid-column: 3;
    padding-left: 20px
}

.journey-right .journey-dot {
    grid-column: 2;
    grid-row: 1
}

.journey-left div {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: 20px
}

.journey-left .journey-dot {
    grid-column: 2;
    grid-row: 1
}

.journey-left .journey-number {
    grid-column: 3;
    grid-row: 1;
    padding-left: 20px
}

.journey-note {
    text-align: center;
    margin: 32px 0 0;
    color: #646b72;
    font-size: 14px
}

/* ==========================================================
   CORREÇÕES DO MERGE — SPN, perfis e histórias reais
   ========================================================== */

:root {
    --navy: var(--blue);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

img,
picture,
svg {
    max-width: 100%;
}

img {
    display: block;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--blue);
    text-decoration: none;
    transform: translateY(-170%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.mobile-toggle,
.mobile-close {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.mobile-toggle {
    color: #fff;
}

.site-header.scrolled .mobile-toggle {
    color: var(--blue);
}

.mobile-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

/* Hero ocupa a viewport inteira, mantendo slider + Ken Burns do código antigo. */
.hero {
    height: 100vh;
    height: 100svh;
    min-height: 680px;
}

.hero-slide {
    background-repeat: no-repeat;
}

/* Utilitários usados pelas seções que foram adicionadas no merge. */
.section {
    padding: 92px 0;
}

.centered {
    text-align: center;
}

.section-kicker {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.section-title {
    margin: 0;
    color: var(--blue);
    font-family: var(--serif);
    font-size: clamp(34px, 3.15vw, 52px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.025em;
}

.section-subtitle {
    max-width: 820px;
    margin: 18px auto 0;
    color: #6a7075;
    font-size: 16px;
    line-height: 1.5;
}

.section-subtitle.left {
    margin-left: 0;
}

.gold-text {
    color: var(--gold) !important;
}

.short-rule {
    display: block;
    width: 54px;
    height: 2px;
    margin: 14px auto;
    background: var(--gold);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 7px 18px rgba(114, 78, 30, .18);
}

.button-gold:hover {
    background: #875c2a;
}

/* ---------- Jornada SPN ---------- */
.journey.section {
    padding-top: 86px;
    padding-bottom: 86px;
}

/* ---------- Perfis SPN ---------- */
.profiles {
    padding-top: 90px;
    padding-bottom: 108px;
    background: var(--bg);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 96px;
}

.profile-card {
    position: relative;
    min-height: 520px;
    padding: 70px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #ecebe7;
    border-radius: 16px;
    box-shadow: 0 4px 0 rgba(6, 45, 85, .08);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.profile-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(2, 28, 87, .12);
}

/* Fallback sem JS. Quando o GSAP está carregado, ele assume os transforms. */
.profile-card:hover .profile-icon {
    transform: translate3d(0, -7px, 0) rotate(3deg) scale(1.055);
}

.has-gsap .profile-card:hover {
    transform: none;
}

.has-gsap .profile-card:hover .profile-icon {
    transform: none;
}

.profile-icon {
    position: absolute;
    top: -78px;
    left: 0;
    right: 0;
    width: 142px;
    height: 142px;
    margin-inline: auto;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.profile-stage {
    margin: 0;
    color: var(--gold);
    font-size: 15px;
}

.profile-card h3 {
    margin: 3px 0;
    color: var(--blue);
    font-family: var(--serif);
    font-size: 28px;
}

.profile-status {
    margin: 0;
    color: #6f7478;
    font-size: 16px;
    line-height: 1.35;
}

.profile-card>p:last-of-type {
    max-width: 270px;
    color: var(--blue);
    font-size: 16px;
    line-height: 1.45;
}

.profile-button {
    width: 100%;
    margin-top: auto;
    padding-inline: 12px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
}

.profile-captions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin: 20px 0 14px;
    text-align: center;
    color: var(--blue);
    font-family: var(--serif);
    font-size: 18px;
}

.profile-message {
    margin: 0;
    text-align: center;
    color: var(--blue);
    font-size: 15px;
}

.profile-message span {
    display: inline-block;
    margin-top: 6px;
    color: var(--gold);
}

/* ---------- Novos Começos ---------- */
.new-beginnings {
    padding-top: 120px;
    padding-bottom: 130px;
    background: #f8f6f2;
}

.beginnings-title {
    max-width: 930px;
    font-size: clamp(42px, 4vw, 62px);
}

.new-beginnings .section-subtitle {
    max-width: 850px;
}

.case {
    display: grid;
    grid-template-columns: 1.28fr .82fr;
    align-items: center;
    gap: 0;
    max-width: 1040px;
    margin: 130px auto 0;
}

.case-image-right {
    grid-template-columns: .82fr 1.28fr;
}

.case-photo {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 0;
    border: 10px solid #fff;
    background: #fff;
    box-shadow: 0 20px 30px rgba(25, 30, 35, .16);
}

.case-photo picture {
    display: block;
    width: 100%;
}

/* As imagens safe já têm 1200x820. Mantemos a proporção NATURAL e não
   forçamos height/object-fit:cover; assim nenhum rosto/cabeça é recortado. */
.case-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

.tilt-left {
    transform: rotate(-1.5deg);
}

.tilt-right {
    transform: rotate(1.5deg);
}

.case-card {
    position: relative;
    z-index: 2;
    min-height: 430px;
    margin-left: -55px;
    padding: 40px 42px 34px;
    background: #fff;
    border-top: 4px solid var(--blue);
    box-shadow: 0 16px 28px rgba(20, 30, 40, .15);
    transition: transform .35s ease, box-shadow .35s ease;
}

.case:hover .case-card {
    transform: translateY(-4px);
    box-shadow: 0 22px 34px rgba(20, 30, 40, .17);
}

.case-image-right .case-card {
    margin-right: -55px;
    margin-left: 0;
}

.case-card.gold-top {
    border-top-color: var(--gold);
}

.case-card h3 {
    margin: 0 0 24px;
    color: var(--blue);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
}

.case-card dl {
    margin: 0;
}

.case-card dt {
    margin-top: 14px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-card dd {
    margin: 3px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.35;
}

.case-card blockquote {
    margin: 28px 0 18px;
    padding-top: 22px;
    border-top: 1px solid #d7d0c7;
    color: var(--blue);
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
}

.case-name {
    margin: 0;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-last {
    margin-top: 160px;
}

/* SVG inline do WhatsApp: substitui Font Awesome sem mudar o visual. */
.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@media (max-width: 980px) {
    .profile-grid {
        gap: 18px;
    }

    .profile-card {
        padding-inline: 20px;
    }

    .profile-button {
        font-size: 10.5px;
    }

    .case {
        max-width: 880px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 62px 0;
    }

    .section-kicker {
        font-size: 16px;
    }

    .section-title {
        font-size: 36px;
    }

    .desktop-break {
        display: none;
    }

    .hero {
        height: 100svh;
        min-height: 640px;
    }

    .hero-content {
        padding: 128px 0 82px;
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 48px);
    }

    .hero p {
        font-size: 16px;
    }

    .journey.section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .journey-map::before {
        left: 17px;
    }

    .journey-step {
        grid-template-columns: 35px 1fr;
        min-height: 146px;
        gap: 18px;
    }

    .journey-step .journey-number {
        display: none;
    }

    .journey-dot {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 24px;
        height: 24px;
        justify-self: start;
    }

    .journey-step div {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .journey-step div h3 {
        font-size: 17px;
    }

    .journey-step div p {
        font-size: 15px;
    }

    .journey-note {
        padding-left: 53px;
        text-align: left;
    }

    .profiles {
        padding-top: 82px;
        padding-bottom: 86px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 94px;
        margin-top: 92px;
    }

    .profile-card {
        width: 100%;
        max-width: 440px;
        min-height: 490px;
        margin: auto;
    }

    .profile-captions {
        display: none;
    }

    .profile-message {
        margin-top: 24px;
    }

    .new-beginnings {
        padding-top: 84px;
        padding-bottom: 94px;
    }

    .beginnings-title {
        font-size: 40px;
    }

    .case,
    .case-image-right {
        grid-template-columns: 1fr;
        margin-top: 82px;
    }

    .case-image-right .case-card {
        order: 2;
    }

    .case-image-right .case-photo {
        order: 1;
    }

    .case-photo {
        border-width: 6px;
        transform: none !important;
    }

    .case-card,
    .case-image-right .case-card {
        min-height: 0;
        margin: -18px 14px 0;
        padding: 30px 26px 28px;
    }

    .case-card h3 {
        font-size: 26px;
    }

    .case-card blockquote {
        font-size: 18px;
    }

    .case-last {
        margin-top: 90px;
    }
}

@media (max-width: 430px) {
    .section-title {
        font-size: 33px;
    }

    .beginnings-title {
        font-size: 36px;
    }

    .profile-button {
        white-space: normal;
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .profile-card,
    .case-card,
    .button,
    .skip-link {
        transition: none;
    }
}

section[id] {
    scroll-margin-top: 92px;
}
/* ==========================================================
   RESPONSIVIDADE + COMPACTAÇÃO FINAL (2026-08)
   ========================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: min(100%, 1240px);
    padding-inline: clamp(18px, 3.2vw, 32px);
}

.logo-mark img {
    width: clamp(104px, 10vw, 120px);
    height: auto;
}

.hero-content,
.section-head,
.section-title,
.section-subtitle,
.about-copy,
.case-card,
.footer-grid > * {
    min-width: 0;
}

.hero-content {
    padding-inline: clamp(18px, 3.2vw, 32px);
}

.hero h1,
.section-title,
.section-head h2,
.about-copy h2,
.cta-band h2 {
    text-wrap: balance;
}

.footer-grid a,
.case-card dd,
.profile-card p {
    overflow-wrap: anywhere;
}

/* Perfil SPN: menos ar entre título, ícones e cards, sem perder legibilidade. */
.profiles {
    padding-top: 68px;
    padding-bottom: 78px;
}

.profiles .section-kicker {
    margin-bottom: 10px;
}

.profiles .section-title {
    max-width: 820px;
    margin-inline: auto;
}

.profiles .section-subtitle {
    margin-top: 10px;
}

.profile-grid {
    gap: 24px;
    margin-top: 68px;
}

.profile-card {
    min-height: 438px;
    padding: 54px 24px 22px;
}

.profile-icon {
    top: -58px;
    width: 112px;
    height: 112px;
}

.profile-card h3 {
    margin: 2px 0 4px;
    font-size: 26px;
}

.profile-status {
    font-size: 15px;
}

.profile-card > p:last-of-type {
    max-width: 280px;
    margin: 2px 0 16px;
    font-size: 15px;
    line-height: 1.42;
}

.short-rule {
    width: 46px;
    margin: 11px auto;
}

.profile-button {
    min-height: 44px;
}

.profile-captions {
    margin: 16px 0 10px;
}

.profile-message span {
    margin-top: 4px;
}

/* Imagens nunca ultrapassam seu contêiner. */
.service-photo img,
.imghistoria,
.case-photo img {
    max-width: 100%;
}

/* Tablet: evita cards estreitos e textos esmagados. */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 72px 20px;
    }

    .profile-card:nth-child(3) {
        grid-column: 1 / -1;
        width: calc((100% - 20px) / 2);
        justify-self: center;
    }

    .profile-captions {
        display: none;
    }

    .case,
    .case-image-right {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-top: 80px;
    }

    .case-image-right .case-card {
        order: 2;
    }

    .case-image-right .case-photo {
        order: 1;
    }

    .case-photo {
        transform: none !important;
    }

    .case-card,
    .case-image-right .case-card {
        min-height: 0;
        margin: -18px 18px 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 16px 0;
    }

    .site-header.scrolled {
        padding: 10px 0;
    }

    .hero {
        min-height: 100svh;
        height: 100svh;
    }

    .hero-content {
        padding-top: max(108px, env(safe-area-inset-top));
        padding-bottom: 88px;
    }

    .hero h1 {
        font-size: clamp(34px, 10.5vw, 46px);
        max-width: 15ch;
        margin-block: 14px 18px;
    }

    .hero p {
        font-size: 15.5px;
        line-height: 1.55;
        margin-bottom: 26px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn-gold,
    .hero-actions .btn-outline {
        min-height: 44px;
        padding-inline: 20px;
    }

    .profiles {
        padding-top: 56px;
        padding-bottom: 66px;
    }

    .profiles .section-title {
        font-size: clamp(30px, 9vw, 36px);
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 66px;
        margin-top: 62px;
    }

    .profile-card,
    .profile-card:nth-child(3) {
        grid-column: auto;
        width: 100%;
        max-width: 480px;
        min-height: 0;
        padding: 52px 20px 20px;
    }

    .profile-icon {
        top: -53px;
        width: 104px;
        height: 104px;
    }

    .profile-message {
        margin-top: 18px;
        font-size: 14px;
    }

    .section-pad,
    .new-beginnings,
    .cta-band {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .case-card,
    .case-image-right .case-card {
        margin-inline: 10px;
        padding: 26px 22px 24px;
    }

    .footer-grid {
        gap: 30px 24px;
    }

    footer {
        padding-top: 54px;
    }
}

@media (max-width: 430px) {
    .container {
        padding-inline: 18px;
    }

    .hero-content {
        padding-inline: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
    }

    .hero-actions a {
        width: 100%;
    }

    .profile-button {
        white-space: normal;
        line-height: 1.25;
    }

    .case-card h3 {
        font-size: 24px;
    }

    .case-card blockquote {
        font-size: 17px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 560px;
    }

    .hero-content {
        padding-top: 110px;
        padding-bottom: 70px;
    }
}

/* Hero first paint: arquivo menor no mobile, AVIF preferido com fallback WebP. */
.hero-bg {
    background-image: image-set(
        url('../images/hero-braga.avif') type('image/avif'),
        url('../images/hero-braga.webp') type('image/webp')
    );
    background-size: cover;
    background-position: center;
}

@media (max-width: 720px) {
    .hero-bg {
        background-image: image-set(
            url('../images/hero-braga-960.avif') type('image/avif'),
            url('../images/hero-braga-960.webp') type('image/webp')
        );
    }
}

/* Fallback explícito para navegadores sem image-set(). */
.hero-bg {
    background-image: url('../images/hero-braga.webp');
    background-image: image-set(
        url('../images/hero-braga.avif') type('image/avif'),
        url('../images/hero-braga.webp') type('image/webp')
    );
}

@media (max-width: 720px) {
    .hero-bg {
        background-image: url('../images/hero-braga-960.webp');
        background-image: image-set(
            url('../images/hero-braga-960.avif') type('image/avif'),
            url('../images/hero-braga-960.webp') type('image/webp')
        );
    }
}


/* ==========================================================
   GSAP + RESPONSIVIDADE / NO-REFLOW (2026-08-25)
   ========================================================== */

/* Reveal uses compositor-only properties; blur was removed to reduce paint cost. */
.reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: none;
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: none;
}

/* Progress does not animate width, so it does not invalidate surrounding layout. */
.steps-line-progress {
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.25s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}

.steps-line-progress.is-complete {
    transform: scaleX(1);
}

.count-target {
    display: inline-block;
    min-width: 3ch;
    font-variant-numeric: tabular-nums;
}

/* Hero: viewport real em mobile + respiro lateral consistente/safe-area. */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
}

.hero-content {
    width: 100%;
    max-width: 1240px;
    padding-inline: clamp(24px, 4vw, 42px);
}

.hero-slide {
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.055);
}

.hero-slide.active {
    transform: translateZ(0) scale(1);
}

/* When GSAP is available it owns the Ken Burns transform; CSS remains the fallback. */
.has-gsap .hero-slide.active {
    animation: none;
}

/* Perfil SPN: elimina o grande vazio interno sem apertar o conteúdo. */
.profile-grid {
    align-items: start;
    gap: 24px;
    margin-top: 66px;
}

.profile-card {
    min-height: 0;
    padding: 52px 24px 22px;
}

.profile-card > p:last-of-type {
    min-height: 64px;
    margin: 2px 0 0;
}

.profile-button {
    margin-top: 18px;
}

.profile-captions {
    margin-top: 14px;
}

/* Prevent image/layout surprises while preserving the uncropped family photos. */
.service-photo,
.about-visual .frame,
.case-photo {
    contain: paint;
}

.case-photo img {
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .profile-grid {
        gap: 66px 20px;
        margin-top: 64px;
    }

    .profile-card:nth-child(3) {
        width: min(100%, 480px);
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: 100svh;
        height: auto;
        align-items: flex-end;
    }

    .hero-content {
        width: 100%;
        padding-top: max(112px, calc(env(safe-area-inset-top) + 92px));
        padding-right: max(24px, calc(env(safe-area-inset-right) + 20px));
        padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 88px));
        padding-left: max(24px, calc(env(safe-area-inset-left) + 20px));
    }

    .hero h1 {
        max-width: 13.5ch;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.06;
    }

    .hero p {
        max-width: 34ch;
        font-size: clamp(15px, 4.1vw, 16px);
        line-height: 1.52;
    }

    .hero-caption {
        left: max(24px, calc(env(safe-area-inset-left) + 20px));
        bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
    }

    .hero-dots {
        right: max(24px, calc(env(safe-area-inset-right) + 20px));
        bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
    }

    .profiles {
        padding-top: 50px;
        padding-bottom: 58px;
    }

    .profile-grid {
        gap: 62px;
        margin-top: 58px;
    }

    .profile-card,
    .profile-card:nth-child(3) {
        width: 100%;
        max-width: 460px;
        padding: 48px 20px 20px;
        justify-self: center;
    }

    .profile-card > p:last-of-type {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .container {
        padding-inline: 20px;
    }

    .hero-content {
        padding-right: max(22px, calc(env(safe-area-inset-right) + 18px));
        padding-left: max(22px, calc(env(safe-area-inset-left) + 18px));
    }

    .hero h1 {
        font-size: clamp(32px, 10.2vw, 40px);
    }

    .hero-actions {
        width: min(100%, 300px);
        max-width: none;
    }

    .profile-grid {
        margin-top: 56px;
    }
}

@media (max-width: 360px) {
    .container {
        padding-inline: 18px;
    }

    .hero-content {
        padding-left: max(20px, calc(env(safe-area-inset-left) + 16px));
        padding-right: max(20px, calc(env(safe-area-inset-right) + 16px));
    }

    .hero h1 {
        font-size: 31px;
    }
}

@media (max-height: 650px) and (orientation: landscape) {
    .hero {
        min-height: 540px;
        height: auto;
    }

    .hero-content {
        padding-top: 104px;
        padding-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .reveal,
    .steps-line-progress {
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== GSAP microinteractions: Perfis SPN ===== */
@media (hover: hover) and (pointer: fine) {
    .profile-card {
        will-change: transform;
    }

    .profile-icon {
        cursor: pointer;
    }
}

/* ===== Histórias reais: as fotos abaixo já são compostas a partir dos arquivos
   originais completos. O frame horizontal é mantido sem recortar pessoas. ===== */
.case-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

