/*
Theme Name: Studio FM Pilates
Theme URI: https://example.com/studio-fm-pilates
Author: OpenAI
Description: Tema WordPress responsivo do Studio FM Pilates, com identidade visual baseada no logo original e fotos reais do Studio.
Version: 5.4
Text Domain: studio-fm-pilates
*/

/* ==================================================
   1. VARIÁVEIS
   ================================================== */

:root {
    --brand: #536D9F;
    --brand-dark: #3E557E;
    --brand-deep: #263545;
    --brand-mid: #7895BC;
    --brand-light: #AFC6D8;
    --brand-pale: #D8E6EE;

    --bg: #F4F8FA;
    --surface: #FFFFFF;
    --text: #263545;
    --muted: #677484;
    --line: rgba(38, 53, 69, 0.12);

    --whatsapp: #25D366;

    --shadow: 0 18px 55px rgba(38, 53, 69, 0.12);
    --radius: 22px;
    --max: 1180px;

    --font-main: "Aptos", "Segoe UI", Arial, sans-serif;
}


/* ==================================================
   2. RESET / BASE
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
label,
strong,
small {
    font-family: var(--font-main);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.section {
    padding: 92px 0;
}


/* ==================================================
   3. TIPOGRAFIA / TÍTULOS
   ================================================== */

.eyebrow {
    display: inline-flex;
    font-family: var(--font-main);
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--brand-pale);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.eyebrow-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.section-title,
.section-heading h2 {
    margin: 16px 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-title span,
.section-heading h2 span {
    color: var(--brand);
}

.section-copy,
.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading.centered {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}


/* ==================================================
   4. BOTÕES
   ================================================== */

.btn,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: 0.2s ease;
}

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

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 30px rgba(83, 109, 159, 0.25);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.22);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(8px);
}


/* ==================================================
   5. CABEÇALHO / NAVEGAÇÃO
   ================================================== */

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand .custom-logo {
    width: auto;
    max-height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-links a:not(.btn):hover {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.45rem;
}


/* ==================================================
   6. HERO
   ================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 700px;
    margin-top: 72px;
    overflow: hidden;
    background: var(--brand-deep);
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-position: center 45%;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(18, 32, 43, 0.88) 0%,
        rgba(25, 42, 55, 0.72) 42%,
        rgba(20, 35, 46, 0.15) 76%,
        rgba(20, 35, 46, 0.05) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 82px 0;
    color: #fff;
}

.hero h1 {
    max-width: 780px;
    margin: 18px 0 20px;
    font-family: var(--font-main);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--brand-light);
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 650;
}


/* ==================================================
   7. BENEFÍCIOS
   ================================================== */

.benefits {
    background: #fff;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.benefit-grid article {
    padding: 18px 12px;
    text-align: center;
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border: 1px solid var(--brand-light);
    border-radius: 50%;
    background: var(--bg);
    color: var(--brand);
    font-size: 1.6rem;
}

.benefit-grid strong {
    display: block;
    font-size: 0.93rem;
    line-height: 1.35;
}


/* ==================================================
   8. SOBRE O STUDIO
   ================================================== */

.about {
    background: linear-gradient(180deg, #fff, var(--bg));
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 58px;
}

.about-photos {
    position: relative;
    min-height: 520px;
}

.about-main {
    position: absolute;
    inset: 0 0 74px 70px;
    width: calc(100% - 70px);
    height: calc(100% - 74px);
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.about-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 46%;
    height: 44%;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.checks {
    display: grid;
    gap: 13px;
    margin: 26px 0;
}

.check {
    display: flex;
    gap: 11px;
}

.check b {
    color: var(--brand);
}

.about-btn {
    margin-top: 6px;
}


/* ==================================================
   9. PARA QUEM É
   ================================================== */

.audience {
    background: var(--brand-pale);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.audience-grid article {
    padding: 24px 18px;
    border: 1px solid rgba(83, 109, 159, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.audience-grid span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.audience-grid strong {
    display: block;
    margin-bottom: 7px;
}

.audience-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}


/* ==================================================
   10. GALERIA
   ================================================== */

.gallery {
    background: #fff;
}

.gallery-masonry {
    columns: 3 300px;
    column-gap: 18px;
    margin-top: 34px;
}

.gallery-card {
    break-inside: avoid;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--brand-pale);
    box-shadow: 0 10px 28px rgba(38, 53, 69, 0.08);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 345px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.gallery-card:first-child img {
    object-position: center 45%;
}

.gallery-card:hover img {
    transform: scale(1.018);
}


/* ==================================================
   11. COMO FUNCIONA A PRIMEIRA AULA
   ================================================== */

.process {
    padding: 62px 0;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark));
    color: #fff;
}

.process-inner > h2 {
    margin: 0 0 38px;
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
}

.process-inner > h2 span {
    color: var(--brand-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-grid article {
    position: relative;
    text-align: center;
}

.process-grid article:not(:last-child)::after {
    position: absolute;
    top: 22px;
    right: -18px;
    content: "→";
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.5rem;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 13px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    font-size: 1.45rem;
}

.process-grid strong {
    display: block;
    margin-bottom: 5px;
}

.process-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}


/* ==================================================
   12. EXPERIÊNCIA / DEPOIMENTOS
   ================================================== */

.testimonials {
    background: var(--bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 54px;
}

.testimonial-grid h2 {
    margin-top: 0;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
}

.testimonial-photo img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}


/* ==================================================
   13. FAQ / CTA
   ================================================== */

.faq-section {
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
    gap: 44px;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    border: 0;
    background: #fff;
    color: var(--text);
    text-align: left;
    font-weight: 750;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--muted);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

.cta-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 34px;
    border-radius: 24px;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.cta-card h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
}

.cta-card p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-card .btn {
    align-self: flex-start;
}


/* ==================================================
   14. CONTATO / MAPA / FACHADA
   ================================================== */

.contact {
    padding: 46px 0 0;
    background: var(--brand-deep);
}

.contact .contact-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #fff;
    font-size: 1.35rem;
}

.contact .contact-logo img {
    width: 54px;
    height: 54px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 28px;
    margin-bottom: 34px;
    color: #fff;
}

.contact-info-grid > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info-grid strong { color: #fff; }
.contact-info-grid a { color: rgba(255,255,255,.92); }

.contact-media-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 42px;
    align-items: start;
}

.contact-media-grid .facade {
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.contact-media-grid .map {
    width: 100%;
    height: 480px;
    min-height: 0;
    margin-top: 0;
    align-self: start;
    border: 0;
}

/* ==================================================
   15. REDES SOCIAIS
   ================================================== */

.studiofm-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studiofm-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(83, 109, 159, 0.22);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.studiofm-socials a:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.studiofm-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.studiofm-social-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 36px;
    color: var(--text);
}

.studiofm-social-contact > span {
    font-weight: 600;
}

.studiofm-social-contact .studiofm-socials a {
    width: auto;
    height: 40px;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
}

.studiofm-social-contact .studiofm-socials a span {
    font-size: 14px;
    font-weight: 600;
}


/* ==================================================
   16. RODAPÉ / WHATSAPP FLUTUANTE
   ================================================== */

.site-footer {
    padding: 22px 0;
    background: #1D2A36;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.whatsapp-float {
    position: fixed;
    z-index: 60;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}


/* ==================================================
   17. RESPONSIVIDADE - TABLET
   ================================================== */

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        top: 71px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 650px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(18, 32, 43, 0.88),
            rgba(25, 42, 55, 0.55)
        );
    }

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

    .about-grid,
    .testimonial-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-photos {
        min-height: 440px;
    }

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

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

    .process-grid article::after {
        display: none;
    }

    .contact-card {
        padding: 46px 0;
    }

    .map {
        min-height: 420px;
    }
}


/* ==================================================
   18. RESPONSIVIDADE - GALERIA / SOCIAL
   ================================================== */

@media (max-width: 780px) {
    .gallery-masonry {
        columns: 2 220px;
        column-gap: 14px;
    }

    .gallery-card {
        margin-bottom: 14px;
        border-radius: 16px;
    }
}

@media (max-width: 760px) {
    .studiofm-social-contact {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==================================================
   19. RESPONSIVIDADE - CELULAR
   ================================================== */

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .section {
        padding: 68px 0;
    }

    .hero {
        min-height: 700px;
        margin-top: 70px;
    }

    .hero-photo {
        background-position: 58% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(18, 32, 43, 0.94),
            rgba(25, 42, 55, 0.67)
        );
    }

    .hero-content {
        padding: 58px 0;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.2rem);
    }

    .hero-trust {
        display: grid;
        gap: 10px;
    }

    .hero-actions {
        align-items: stretch;
    }

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

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

    .about-grid {
        gap: 34px;
    }

    .about-photos {
        min-height: 360px;
    }

    .about-main {
        inset: 0 0 58px 36px;
        width: calc(100% - 36px);
        height: calc(100% - 58px);
    }

    .about-small {
        width: 52%;
        height: 42%;
    }

    .audience-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .testimonial-photo img {
        height: 330px;
    }
}

@media (max-width: 520px) {
    .gallery-masonry {
        columns: 1;
    }

    /* Em uma coluna, reduz um pouco a altura para não ocupar a tela inteira */
    .gallery-card img {
        height: 300px;
    }
}


/* ==================================================
   20. CONTATO - RESPONSIVIDADE FINAL
   ================================================== */
@media (max-width: 980px) {
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-media-grid { grid-template-columns: 1fr; }
    .contact-media-grid .map { height: 380px; }
}
@media (max-width: 640px) {
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-media-grid .map { height: 320px; }
}

/* ==================================================
   BENEFÍCIOS V5.3 - CARDS ILUSTRADOS
   ================================================== */

.benefit-grid-v2 {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: start;
}

.benefit-card {
    padding: 8px 10px 18px;
    text-align: center;
}

.benefit-icon-v2 {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F6F9FC, #EAF1F7);
    border: 1px solid rgba(83,109,159,.25);
    box-shadow: 0 10px 28px rgba(38,53,69,.07);
}

.benefit-icon-v2 svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card strong {
    display: block;
    min-height: 48px;
    color: var(--brand-deep);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.benefit-card p {
    margin: 10px auto 0;
    max-width: 210px;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.5;
}

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

@media (max-width: 640px) {
    .benefit-grid-v2 { grid-template-columns: 1fr; gap: 30px; }
    .benefit-card strong { min-height: auto; }
    .benefit-card p { max-width: 320px; }
}


/* ==================================================
   BENEFÍCIOS V5.4 - ÍCONES PREMIUM
   ================================================== */

.benefit-icon-v2 {
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    border: 0;
    background:
        radial-gradient(circle at 38% 32%, #FFFDFB 0%, #FFF7F0 58%, #F8ECE4 100%);
    box-shadow: none;
}

.benefit-icon-v2 svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: #17365F;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card strong {
    font-size: 1.08rem;
}

@media (max-width: 640px) {
    .benefit-icon-v2 {
        width: 104px;
        height: 104px;
    }

    .benefit-icon-v2 svg {
        width: 64px;
        height: 64px;
    }
}
