/* =============================================
   Guimarães Advocacia — Design System
   ============================================= */
:root {
    --navy: #0A1628;
    --navy-light: #132038;
    --navy-mid: #1A2D4A;
    --gold: #C5A059;
    --gold-light: #D4B76A;
    --gold-dark: #A8863F;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --gray-100: #E8ECF0;
    --gray-300: #B0BAC5;
    --gray-500: #6B7A8D;
    --gray-700: #3D4F63;
    --font-body: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

em { font-style: normal; color: var(--gold); }

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section__header { margin-bottom: 48px; }
.section__header--center { text-align: center; }
.section__header--light h2,
.section__header--light p { color: var(--white); }
.section__header--light .section__label { color: var(--gold-light); }
.section__header p { color: var(--gray-500); margin-top: 12px; max-width: 560px; }
.section__header--center p { margin-left: auto; margin-right: auto; }
.section__cta { text-align: center; margin-top: 40px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn--lg { padding: 16px 32px; font-size: 0.9375rem; }
.btn--full { width: 100%; justify-content: center; }

.section .btn--outline {
    color: var(--navy);
    border-color: var(--navy);
}
.section .btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--gray-100);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo img { height: 52px; width: auto; }

.header__menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.header__menu-btn:hover {
    background: var(--navy-light);
}

.header__menu-btn i {
    font-size: 0.875rem;
}

.header__menu-btn.active {
    background: var(--gold-dark);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-700);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
    background: var(--navy);
    color: var(--white);
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--navy-light); }

/* ---- Hero / Início ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(197,160,89,0.08) 0%, transparent 70%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(10,22,40,0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero__bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg--video::before,
.hero__bg--video::after {
    z-index: 2;
}

.site-media--bg,
.hero__bg-media .site-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-media--bg iframe,
.site-media--bg video,
.site-media--bg .site-media__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.site-media--slide {
    position: relative;
    overflow: hidden;
}

.site-media__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.site-media__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    transform: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-media__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero__bg--slide::before,
.hero__bg--slide::after {
    z-index: 2;
}

.hero__image-frame .site-media--slide,
.about__image .site-media--slide {
    width: 100%;
    height: 100%;
}

.hero__image-frame .site-media--slide {
    min-height: 520px;
}

.hero__warm-frame .site-media--slide,
.hero__warm-frame .site-media__slides {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.hero__warm-frame .site-media__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
}

.about__image .site-media--slide {
    min-height: 360px;
}

.hero__bg--video {
    background-blend-mode: normal;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--hero-badge-bg, rgba(197,160,89,0.15));
    border: 1px solid var(--hero-badge-border, rgba(197,160,89,0.3));
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hero-badge-color, var(--gold-light));
    margin-bottom: 24px;
}

.hero__text h1 {
    color: var(--hero-title-color, var(--white));
    margin-bottom: 20px;
}

.hero__text h1 em {
    color: var(--hero-accent-color, var(--gold-light));
    font-style: italic;
}

.hero__text p {
    color: var(--hero-subtitle-color, rgba(255,255,255,0.75));
    font-size: 1.0625rem;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero .btn--gold {
    background: linear-gradient(135deg, var(--hero-btn-primary-bg, var(--gold-light)), var(--hero-btn-primary-bg, var(--gold)));
    color: var(--hero-btn-primary-text, var(--white)) !important;
    border-color: var(--hero-btn-primary-bg, var(--gold));
}

.hero .btn--outline {
    color: var(--hero-btn-secondary-text, var(--white)) !important;
    border-color: var(--hero-btn-secondary-border, var(--white));
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}
.hero__trust i { color: var(--gold); margin-right: 6px; }

.hero__image { position: relative; }

.hero__image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(197,160,89,0.3);
}

.hero__image-frame img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero__image-frame--video {
    border: none;
    background: #000;
}

.site-media-slot {
    width: 100%;
    height: 100%;
}

.site-media {
    width: 100%;
    display: block;
}

.site-media--youtube {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hero__image-frame .site-media--youtube {
    width: 100%;
    height: auto;
    max-height: 520px;
}

.site-media--youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hero__image-frame .site-media--file video {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    background: #000;
}

.site-media--poster,
.site-media__activate {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.site-media__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-media__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.35);
    color: #fff;
    font-size: 2rem;
    transition: background 0.2s ease;
}

.site-media__activate:hover .site-media__play {
    background: rgba(10, 22, 40, 0.5);
}

.site-media__play i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.hero__card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: calc(14px * var(--hero-card-scale, 1));
    background: var(--hero-card-bg, var(--white));
    border: 1px solid var(--hero-card-border, #E8EAED);
    padding: calc(20px * var(--hero-card-scale, 1)) calc(24px * var(--hero-card-scale, 1));
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.hero__card i {
    font-size: calc(1.75rem * var(--hero-card-scale, 1));
    color: var(--gold);
}

.hero__card strong {
    display: block;
    font-size: calc(var(--hero-card-title-size, 20) * 1px);
    color: var(--navy);
    font-family: var(--font-display);
}

.hero__card span {
    font-size: calc(var(--hero-card-subtitle-size, 13) * 1px);
    color: var(--gray-500);
}

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section--light { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--contact { background: var(--off-white); }

.site-section--width-full > .container,
.site-section--width-full > .container.about,
.site-section--width-full > .container.contact,
.site-section--width-full > .container.cta-bar__inner,
.site-section--width-full > .container.header__inner,
.site-section--width-full > .container.hero__content,
.site-section--width-full > .container.footer__inner,
.site-section--width-full > .container.footer__grid,
.site-section--width-full .footer__bottom > .container {
    max-width: none;
    width: 100%;
}

.site-section--has-bg-layers,
#header.site-section--has-bg-layers,
#rodape.site-section--has-bg-layers {
    position: relative;
    overflow: hidden;
}

.site-section__bg-layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-section__bg-media,
.site-section__bg-overlay {
    position: absolute;
    inset: 0;
}

.site-section__bg-overlay {
    z-index: 1;
}

.site-section__bg-media .site-media,
.site-section__bg-media .site-section__bg-image,
.site-section__bg-media .site-media--slide {
    width: 100%;
    height: 100%;
}

.site-section__bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-section--has-bg-layers > .container,
.site-section--has-bg-layers > .hero__bg,
.site-section--has-bg-layers > .hero__content,
.site-section--has-bg-layers > .hero__familia-shell,
.site-section--has-bg-layers > .container.header__inner,
.site-section--has-bg-layers > .container.footer__inner,
.site-section--has-bg-layers > .container.footer__grid,
.site-section--has-bg-layers .footer__bottom {
    position: relative;
    z-index: 2;
}

#inicio.site-section--custom-bg:not(.hero--familia) .hero__bg {
    background: transparent !important;
    background-image: none !important;
}

/* ---- Família (regras críticas no CSS principal) ---- */
.hero--familia {
    min-height: auto;
    display: block;
    padding: calc(var(--header-h) + 44px) 0 56px;
    overflow: hidden;
}

.hero--familia .hero__bg {
    background: linear-gradient(
        135deg,
        var(--hero-bg, #2A2328) 0%,
        var(--hero-bg-mid, #332B30) 50%,
        var(--hero-bg-end, #3A3238) 100%
    ) !important;
}

.hero__familia-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
}

body.site-editor-iframe:not(.site-editor-device-mobile) .hero__familia-shell {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr) !important;
    gap: clamp(32px, 5vw, 60px) !important;
    align-items: center !important;
}

body.site-editor-iframe:not(.site-editor-device-mobile) .hero__familia-copy {
    order: 0 !important;
}

.hero__familia-media {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
}

.hero--familia .hero__warm-frame {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 4 / 5;
    width: 100%;
    border: 3px solid rgba(212, 176, 122, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
    isolation: isolate;
}

.hero--familia .hero__warm-frame .site-media-slot {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.hero--familia .hero__warm-frame .site-media--slide,
.hero--familia .hero__warm-frame .site-media__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.hero--familia .hero__warm-frame .site-media__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
}

.hero--familia .hero__warm-frame > .site-media-slot > img:not(.site-media__slide),
.hero--familia .hero__warm-frame > .site-media-slot > video,
.hero--familia .hero__warm-frame > .site-media-slot > .site-media:not(.site-media--slide) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__familia-copy {
    text-align: left;
}

.hero--familia .hero__familia-copy.hero__text h1,
.hero--familia .hero__familia-copy.hero__text h1 span.site-edit-text {
    color: var(--hero-title-color, #FFFBF8) !important;
}

.hero--familia .hero__familia-copy.hero__text h1 em,
.hero--familia .hero__familia-copy.hero__text h1 em.site-edit-text {
    color: var(--hero-accent-color, #D4A090) !important;
    font-style: italic;
}

.hero--familia .hero__familia-copy.hero__text > p.site-edit-text {
    color: var(--hero-subtitle-color, #E8DDD4) !important;
}

/* ---- About ---- */
.about {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: stretch;
}

.about__image {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
}

.about__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
}

.about__image--video {
    background: #000;
}

.about__image .site-media-slot {
    position: absolute;
    inset: 0;
}

.about__image .site-media {
    width: 100%;
    height: 100%;
}

.about__image .site-media--youtube,
.about__image .site-media--file {
    position: absolute;
    inset: 0;
}

.about__image .site-media--youtube iframe,
.about__image .site-media--file video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
    background: #000;
}

.about__badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    background: var(--navy);
    color: var(--gold);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.about__content h2 { margin-bottom: 12px; }

.about__lead {
    font-size: 1.0625rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.about__content p { margin-bottom: 16px; }

.about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 16px;
}

.about__action {
    margin-top: 0;
}

.value-card {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.value-card i {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.value-card h4 { margin-bottom: 6px; color: var(--navy); }
.value-card p { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

/* ---- Areas ---- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.area-card {
    padding: 32px 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.area-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.area-card--featured {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-color: transparent;
}
.area-card--featured h3,
.area-card--featured p { color: var(--white); }
.area-card--featured .area-card__icon {
    background: rgba(197,160,89,0.2);
    color: var(--gold-light);
}

.area-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197,160,89,0.1);
    border-radius: var(--radius);
    font-size: 1.25rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.area-card h3 { margin-bottom: 10px; }
.area-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ---- Differentials ---- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.diff-item {
    text-align: center;
    padding: 24px;
}

.diff-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.diff-item h4 { color: var(--white); margin-bottom: 8px; }
.diff-item p { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

/* ---- Testimonials ---- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.testimonial__stars {
    color: var(--gold);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.testimonial p {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial footer {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.testimonial footer strong { color: var(--navy); }

/* ---- Blog ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    padding: 28px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.blog-card__cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(197,160,89,0.12);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.blog-card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-card p { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-card time { font-size: 0.75rem; color: var(--gray-300); }

/* ---- Contact ---- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: stretch;
}

.contact__info h2 { margin-bottom: 16px; }
.contact__info > p { margin-bottom: 32px; }

.contact__items { display: flex; flex-direction: column; gap: 16px; }

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.contact__item:hover { border-color: var(--gold); }

.contact__item i {
    font-size: 1.25rem;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.contact__item strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--navy);
}

.contact__item span { font-size: 0.875rem; color: var(--gray-500); }

.contact__form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.form-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.form-steps__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    opacity: 0.45;
    transition: var(--transition);
}

.form-steps__item.active,
.form-steps__item.done {
    opacity: 1;
}

.form-steps__item span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.form-steps__item.active span,
.form-steps__item.done span {
    background: var(--navy);
    color: var(--white);
}

.form-steps__item.done span {
    background: var(--gold);
}

.form-steps__item p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.form-steps__line {
    width: 40px;
    height: 2px;
    background: var(--gray-100);
    flex-shrink: 0;
}

.form-step {
    display: none !important;
    flex: 1;
    min-height: 0;
}

.form-step.active {
    display: flex !important;
    flex-direction: column;
    animation: formStepIn 0.35s ease;
}

.form-step[hidden] {
    display: none !important;
}

@keyframes formStepIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step .form-group:last-of-type {
    margin-bottom: 24px;
}

.form-step__actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    margin-top: auto;
}

.contact .btn--outline {
    color: var(--navy);
    border-color: var(--gray-100);
    background: var(--off-white);
}

.contact .btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

.form-group textarea { resize: vertical; min-height: 88px; }

.form-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-radio {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-radio input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    box-shadow: none;
    appearance: none;
}

.form-radio span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--off-white);
    transition: var(--transition);
}

.form-radio input:checked + span {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    color: var(--navy);
}

.form-radio span i { color: #25D366; }

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-feedback {
    margin-top: 16px;
    font-size: 0.875rem;
    text-align: center;
    min-height: 20px;
}
.form-feedback--success { color: #2E7D32; }
.form-feedback--error { color: #C62828; }

/* ---- CTA Final ---- */
.cta-bar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 64px 0;
}

.cta-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(42vw, 420px);
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-bar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-bar__content {
    flex: 1;
    min-width: 0;
    max-width: 620px;
}

.cta-bar__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.cta-bar__title,
.cta-bar h3 {
    color: #FFFFFF !important;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-bar__subtitle,
.cta-bar p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 500px;
}

.cta-bar__action {
    flex-shrink: 0;
}

.cta-bar__btn {
    min-width: 210px;
    justify-content: center;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    overflow: hidden;
    --footer-text: rgba(255, 255, 255, 0.72);
    --footer-text-soft: rgba(255, 255, 255, 0.48);
    --footer-heading: #FFFFFF;
    --footer-line: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
    color: var(--footer-text);
}

.footer__accent {
    position: relative;
    z-index: 2;
    height: 1px;
    background: var(--footer-line);
}

.footer__inner {
    position: relative;
    z-index: 2;
    padding: 56px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(120px, 0.75fr) minmax(220px, 1fr);
    gap: 48px;
    align-items: start;
}

.footer__brand {
    max-width: 340px;
}

.footer__logo-wrap {
    display: block;
    margin-bottom: 20px;
}

.footer__logo {
    height: 48px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.08);
}

.footer__tagline,
.footer__tagline.site-edit-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--footer-text) !important;
    max-width: 300px;
}

.footer__heading,
.footer h4,
.footer__heading.site-edit-text {
    position: relative;
    color: var(--footer-heading) !important;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.footer__heading::after,
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 1px;
    background: var(--gold);
    opacity: 0.85;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__nav a {
    display: block;
    padding: 7px 0;
    font-size: 0.875rem;
    color: var(--footer-text);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: #FFFFFF;
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity var(--transition);
}

.footer__contact-link:hover {
    opacity: 0.92;
}

.footer__contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-light);
    font-size: 0.875rem;
}

.footer__contact-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.footer__contact-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--footer-text-soft);
}

.footer__contact-value,
.footer__contact-value.site-edit-text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #FFFFFF !important;
    word-break: break-word;
}

.footer__bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--footer-line);
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    font-size: 0.75rem;
}

.footer__copyright,
.footer__copyright .site-edit-text {
    color: var(--footer-text-soft) !important;
    line-height: 1.5;
}

.footer__oab {
    color: rgba(255, 255, 255, 0.34);
    text-align: right;
    line-height: 1.5;
    white-space: nowrap;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2fe072, #25D366);
    color: var(--white);
    font-size: 1.75rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 10px 28px rgba(37, 211, 102, 0.35),
        0 0 0 0 rgba(37, 211, 102, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: pulse-wa 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 14px 36px rgba(37, 211, 102, 0.45),
        0 0 0 0 rgba(37, 211, 102, 0.35);
    animation: none;
}

@keyframes pulse-wa {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(37, 211, 102, 0.35),
            0 0 0 0 rgba(37, 211, 102, 0.28);
    }
    50% {
        box-shadow:
            0 10px 28px rgba(37, 211, 102, 0.35),
            0 0 0 12px rgba(37, 211, 102, 0);
    }
}

/* ---- Blog Pages ---- */
.page-hero {
    background: var(--navy);
    padding: calc(var(--header-h) + 60px) 0 60px;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); }

.blog-list { padding: 60px 0; }
.blog-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-page { padding: 60px 0; }
.article-page__content {
    max-width: 760px;
    margin: 0 auto;
}
.article-page__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}
.article-page__body {
    font-size: 1.0625rem;
    line-height: 1.8;
}
.article-page__body h2,
.article-page__body h3 { margin: 32px 0 16px; }
.article-page__body p { margin-bottom: 20px; }

/* ---- Admin ---- */
.admin-body {
    background: var(--off-white);
    min-height: 100vh;
}
.admin-header {
    background: var(--navy);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header h1 { color: var(--white); font-size: 1.25rem; }
.admin-header a { color: var(--gold-light); font-size: 0.875rem; }
.admin-container { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.admin-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}
.admin-table th { font-weight: 600; color: var(--navy); }
.admin-actions { display: flex; gap: 8px; }
.admin-actions a,
.admin-actions button {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.btn-delete { background: #FFEBEE; color: #C62828; }
.btn-edit { background: var(--off-white); color: var(--navy); }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}
.login-box {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.login-box h2 { text-align: center; margin-bottom: 32px; }

/* ---- Preview banner ---- */
.site-preview-banner {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--navy);
    color: var(--white);
    border-bottom: 3px solid var(--gold);
}

.site-preview-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.site-preview-banner__inner i {
    color: var(--gold);
    margin-right: 8px;
}

.site-preview-banner__link {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.site-preview-banner__link:hover {
    color: var(--gold-light);
}

.site-preview-banner--synced {
    border-bottom-color: #2e9e5e;
}

.site-preview-banner--synced .site-preview-banner__inner i {
    color: #6ee7a8;
}

/* Ancoras no preview/editor — compensa header + banner (site completo) */
body.site-preview-mode:not(.site-preview-section-focus) #inicio,
body.site-preview-mode:not(.site-preview-section-focus) #sobre,
body.site-preview-mode:not(.site-preview-section-focus) #areas,
body.site-preview-mode:not(.site-preview-section-focus) #diferenciais,
body.site-preview-mode:not(.site-preview-section-focus) #depoimentos,
body.site-preview-mode:not(.site-preview-section-focus) #contato,
body.site-preview-mode:not(.site-preview-section-focus) #cta-final {
    scroll-margin-top: 120px;
}

.site-preview-mode .site-editor-highlight {
    outline: 3px solid var(--gold);
    outline-offset: 6px;
    transition: outline 0.2s ease;
}

/* Lápis de edição (modo Elementor no iframe do editor) */
body.site-editor-iframe [data-edit-id] {
    cursor: default;
}

/* position:relative só em containers/inline — não em blocos de texto (quebra o mobile) */
body.site-editor-iframe span.site-edit-text[data-edit-id],
body.site-editor-iframe em[data-edit-id],
body.site-editor-iframe strong[data-edit-id],
body.site-editor-iframe a.nav__link[data-edit-id],
body.site-editor-iframe .header__logo[data-edit-id],
body.site-editor-iframe .hero__image-frame[data-edit-id],
body.site-editor-iframe .hero__arch-frame[data-edit-id],
body.site-editor-iframe .hero__visual-frame[data-edit-id],
body.site-editor-iframe .hero__warm-frame[data-edit-id],
body.site-editor-iframe .about__image[data-edit-id],
body.site-editor-iframe .about__round-frame[data-edit-id],
body.site-editor-iframe .about__soft-frame[data-edit-id],
body.site-editor-iframe .footer__brand[data-edit-id],
body.site-editor-iframe .hero__badge[data-edit-id],
body.site-editor-iframe .section__label[data-edit-id],
body.site-editor-iframe .value-card[data-edit-id],
body.site-editor-iframe .area-card[data-edit-id],
body.site-editor-iframe .testimonial[data-edit-id],
body.site-editor-iframe .diff-item[data-edit-id],
body.site-editor-iframe .hero__trust > div[data-edit-id],
body.site-editor-iframe .btn[data-edit-id] {
    position: relative;
}

body.site-editor-iframe h1[data-edit-id],
body.site-editor-iframe h2[data-edit-id],
body.site-editor-iframe h3[data-edit-id],
body.site-editor-iframe h4[data-edit-id],
body.site-editor-iframe p[data-edit-id] {
    position: relative;
}

body.site-editor-iframe .hero__bg[data-edit-id] {
    position: absolute !important;
    inset: 0;
    z-index: 0;
}

body.site-editor-iframe .header__logo[data-edit-id],
body.site-editor-iframe .hero__image-frame[data-edit-id],
body.site-editor-iframe .hero__arch-frame[data-edit-id],
body.site-editor-iframe .hero__visual-frame[data-edit-id],
body.site-editor-iframe .hero__warm-frame[data-edit-id],
body.site-editor-iframe .about__image[data-edit-id],
body.site-editor-iframe .about__round-frame[data-edit-id],
body.site-editor-iframe .about__soft-frame[data-edit-id],
body.site-editor-iframe .footer__brand[data-edit-id] {
    overflow: hidden;
}

body.site-editor-iframe .header__logo[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__image-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__arch-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__visual-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__warm-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .about__image[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .about__round-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .about__soft-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .footer__brand[data-edit-id] .site-edit-pencil {
    top: 6px;
    right: 6px;
    transform: none;
    z-index: 20;
}

body.site-editor-iframe .header__logo[data-edit-id] {
    display: inline-flex;
}

body.site-editor-iframe.site-preview-focus-hero .hero,
body.site-editor-iframe.site-preview-section-focus .hero {
    overflow: visible;
}

body.site-editor-iframe .hero__card[data-edit-id] {
    position: absolute !important;
}

body.site-editor-iframe.site-editor-device-mobile .hero__card[data-edit-id] {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    margin: 16px auto 0 !important;
    width: 100% !important;
    max-width: 300px !important;
}

body.site-editor-iframe.site-editor-device-mobile .hero {
    overflow: visible !important;
}

body.site-editor-iframe.site-editor-device-mobile .hero__card[data-edit-id] strong,
body.site-editor-iframe.site-editor-device-mobile .hero__card[data-edit-id] span {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

body.site-editor-iframe.site-editor-device-mobile .hero__card[data-edit-id] strong {
    color: var(--navy) !important;
}

body.site-editor-iframe.site-editor-device-mobile .hero__card[data-edit-id] span {
    color: var(--gray-500) !important;
}

body.site-editor-iframe .about__badge[data-edit-id] {
    position: absolute !important;
    bottom: 16px;
    right: 16px;
    z-index: 2;
}

body.site-editor-iframe .about__badge[data-edit-id] .site-edit-pencil {
    top: 4px;
    right: 4px;
    transform: none;
    z-index: 20;
}

body.site-editor-iframe:not(.site-editor-element-mode) [data-edit-id]:not(.hero__bg):hover {
    outline: 1px dashed rgba(197, 160, 89, 0.45);
    outline-offset: 2px;
}

body.site-editor-iframe.site-editor-element-mode [data-edit-id]:not(.site-editor-element-active):not(.hero__bg) {
    outline: none !important;
    opacity: 1 !important;
    pointer-events: none;
}

body.site-editor-iframe.site-editor-device-mobile.site-editor-element-mode [data-edit-id]:not(.site-editor-element-active):not(.hero__bg) {
    outline: 1px dashed rgba(197, 160, 89, 0.3) !important;
    outline-offset: 2px;
}

/* Fundo do banner sempre visível ao editar outros elementos */
body.site-editor-iframe.site-editor-element-mode .hero__bg[data-edit-id] {
    opacity: 1 !important;
    pointer-events: none;
    outline: none !important;
}

body.site-editor-iframe.site-editor-element-mode .site-editor-element-active {
    outline: 3px solid var(--gold) !important;
    outline-offset: 6px;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.site-editor-iframe .hero__arch-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__visual-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__warm-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .about__round-frame[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .about__soft-frame[data-edit-id] .site-edit-pencil {
    z-index: 30;
    top: 8px;
    right: 8px;
}

body.site-editor-iframe .hero__arch-frame[data-edit-id],
body.site-editor-iframe .about__round-frame[data-edit-id] {
    overflow: visible;
}

body.site-editor-iframe .about__soft-frame[data-edit-id] {
    overflow: hidden !important;
}

body.site-editor-iframe .hero__warm-frame[data-edit-id] {
    overflow: hidden !important;
    max-width: 100%;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 125% !important;
}

body.site-editor-iframe .hero__arch-frame[data-edit-id] > .site-media-slot {
    overflow: hidden;
    border-radius: 220px 220px 28px 28px;
    width: 100%;
    height: 100%;
}

body.site-editor-iframe .about__round-frame[data-edit-id] > .site-media-slot {
    overflow: hidden;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

body.site-editor-iframe .hero__warm-frame[data-edit-id] > .site-media-slot,
body.site-editor-iframe .about__soft-frame[data-edit-id] > .site-media-slot {
    overflow: hidden;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.site-editor-iframe .hero__warm-frame[data-edit-id] > .site-media-slot {
    border-radius: 32px;
}

body.site-editor-iframe .about__soft-frame[data-edit-id] > .site-media-slot {
    border-radius: 24px;
}

.site-edit-pencil {
    position: absolute;
    top: 4px;
    right: 4px;
    left: auto;
    z-index: 10;
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: rgba(197, 160, 89, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    opacity: 0.85;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.15s, background 0.15s;
}

/* Textos inline: lápis colado ao trecho editável (ex: "resultados") */
body.site-editor-iframe em[data-edit-id],
body.site-editor-iframe strong[data-edit-id],
body.site-editor-iframe span.site-edit-text[data-edit-id] {
    display: inline-block;
    vertical-align: baseline;
    max-width: 100%;
}

body.site-editor-iframe em[data-edit-id] .site-edit-pencil,
body.site-editor-iframe strong[data-edit-id] .site-edit-pencil,
body.site-editor-iframe span.site-edit-text[data-edit-id] .site-edit-pencil {
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
}

/* Links do menu — lápis ao lado do texto do botão */
body.site-editor-iframe a.nav__link[data-edit-id] {
    display: inline-block;
    vertical-align: middle;
}

body.site-editor-iframe .nav__link:not(.nav__link--cta) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.site-editor-iframe a.nav__link[data-edit-id] .site-edit-pencil {
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
}

/* Badge e rótulos de seção */
body.site-editor-iframe .hero__badge[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .section__label[data-edit-id] .site-edit-pencil {
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
}

/* Blocos de texto (parágrafo, título de seção) */
body.site-editor-iframe p[data-edit-id] .site-edit-pencil,
body.site-editor-iframe h1[data-edit-id] .site-edit-pencil,
body.site-editor-iframe h2[data-edit-id] .site-edit-pencil,
body.site-editor-iframe h3[data-edit-id] .site-edit-pencil,
body.site-editor-iframe h4[data-edit-id] .site-edit-pencil,
body.site-editor-iframe .hero__text h1 > span[data-edit-id] .site-edit-pencil {
    top: 4px;
    right: 4px;
    transform: none;
}

body.site-editor-iframe.site-editor-element-mode [data-edit-id]:not(.site-editor-element-active):not(.hero__bg) .site-edit-pencil {
    opacity: 0.55;
    pointer-events: auto;
}

.site-edit-pencil:hover {
    opacity: 1;
    background: rgba(197, 160, 89, 0.9);
}

body.site-editor-iframe [data-edit-container="1"] {
    position: relative;
}

.site-edit-container-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 25;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(10, 22, 40, 0.88);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 0.92;
    pointer-events: auto;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
}

.site-edit-container-btn:hover {
    opacity: 1;
    background: rgba(19, 32, 56, 0.96);
    transform: scale(1.04);
}

body.site-editor-iframe .site-editor-container-active {
    outline: 3px solid #42A5F5;
    outline-offset: -3px;
}

body.site-editor-iframe.site-editor-container-mode [data-edit-container="1"]:not(.site-editor-container-active) .site-edit-container-btn {
    opacity: 0.72;
}

body.site-editor-iframe.site-editor-element-mode [data-edit-container="1"]:not(.site-editor-container-active) .site-edit-container-btn {
    opacity: 0.72;
}

/* Preview do editor — sem banner duplicado no iframe */
body.site-preview-mode.site-editor-iframe {
    --preview-banner-h: 0px;
}

/* Preview do editor — layout desktop no preview */
.site-preview-mode {
    --preview-banner-h: 46px;
    --preview-chrome-h: calc(var(--preview-banner-h) + var(--header-h));
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

.site-preview-mode .header__menu-btn {
    display: none !important;
}

.site-preview-mode .nav {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.site-preview-mode .nav__list {
    flex-direction: row !important;
}

/* Preview mobile no editor — simula celular real */
body.site-preview-mode.site-editor-device-mobile .header__menu-btn {
    display: flex !important;
}

body.site-preview-mode.site-editor-device-mobile .nav {
    position: fixed !important;
    top: var(--header-h) !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--white) !important;
    padding: 24px !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-120%) !important;
    opacity: 0 !important;
    transition: all var(--transition) !important;
    pointer-events: none !important;
    z-index: 999 !important;
}

body.site-preview-mode.site-editor-device-mobile .nav--open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

body.site-preview-mode.site-editor-device-mobile .nav__list {
    flex-direction: column !important;
    gap: 0 !important;
}

body.site-preview-mode.site-editor-device-mobile .nav__link {
    display: block !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--gray-100) !important;
}

body.site-preview-mode.site-editor-device-mobile .nav__link--cta {
    text-align: center !important;
    margin-top: 12px !important;
    border: none !important;
}

body.site-preview-mode.site-editor-device-mobile:not(.site-preview-section-focus) #inicio.hero {
    padding-top: calc(var(--header-h) + 24px) !important;
}

/* Sobre no editor mobile — mesmo layout do site real (sem encavalamento) */
body.site-editor-iframe.site-editor-device-mobile .about {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 28px !important;
    align-items: stretch !important;
}

body.site-editor-iframe.site-editor-device-mobile .about__image {
    order: 1;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px !important;
    height: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

body.site-editor-iframe.site-editor-device-mobile .about__image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.site-editor-iframe.site-editor-device-mobile .about__content {
    order: 2;
    position: static !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    z-index: auto !important;
}

.site-preview-mode .header .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.site-preview-mode .header__inner {
    width: 100%;
}

.site-preview-mode .header {
    top: var(--preview-banner-h);
}

.site-preview-mode .site-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2001;
}

/* Site completo (aba Tudo): evita Início encavalado com banner + menu no iframe */
body.site-preview-mode:not(.site-preview-section-focus) #inicio.hero {
    padding-top: calc(var(--preview-chrome-h) + 48px);
    min-height: auto;
    align-items: flex-start;
}

/* ---- Preview isolado (aba Menu, Início, etc.) ---- */
.site-preview-section-focus,
.site-preview-header-only {
    overflow-x: hidden;
}

.site-preview-section-focus main,
.site-preview-header-only main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.site-preview-section-focus .site-preview-banner,
.site-preview-header-only .site-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2001;
}

.site-preview-section-focus [id] {
    scroll-margin-top: 0 !important;
}

/* Esconde seções via data-preview-focus (renderizado no servidor) */
body[data-preview-focus="menu"] main > section,
body[data-preview-focus="menu"] .footer,
body[data-preview-focus="menu"] .whatsapp-float,
body[data-preview-focus="inicio"] main > section:not(#inicio),
body[data-preview-focus="sobre"] main > section:not(#sobre),
body[data-preview-focus="areas"] main > section:not(#areas),
body[data-preview-focus="diferenciais"] main > section:not(#diferenciais),
body[data-preview-focus="depoimentos"] main > section:not(#depoimentos),
body[data-preview-focus="contato"] main > section:not(#contato),
body[data-preview-focus="cta-final"] main > section:not([id="cta-final"]),
body[data-preview-focus]:not([data-preview-focus="menu"]):not([data-preview-focus="rodape"]) .footer,
body[data-preview-focus]:not([data-preview-focus="menu"]):not([data-preview-focus="rodape"]) .whatsapp-float {
    display: none !important;
}

/* Garante que a seção alvo fica visível no preview isolado */
body[data-preview-focus="inicio"] #inicio,
body[data-preview-focus="sobre"] #sobre,
body[data-preview-focus="areas"] #areas,
body[data-preview-focus="diferenciais"] #diferenciais,
body[data-preview-focus="depoimentos"] #depoimentos,
body[data-preview-focus="contato"] #contato,
body[data-preview-focus="cta-final"] #cta-final {
    display: block !important;
}

/* Chamada final: compensa só o banner fixo do preview */
body[data-preview-focus="cta-final"].site-preview-section-focus main {
    padding-top: var(--preview-banner-h) !important;
}

body[data-preview-focus="cta-final"] #cta-final {
    width: 100%;
}

body[data-preview-focus="rodape"] .header,
body[data-preview-focus="rodape"] main,
body[data-preview-focus="rodape"] .whatsapp-float {
    display: none !important;
}

body[data-preview-focus="rodape"] .footer {
    display: block !important;
}

body[data-preview-focus="rodape"] {
    background: var(--navy);
}

.site-preview-focus-rodape .footer {
    min-height: auto;
}

.site-preview-focus-rodape .footer__inner {
    padding-top: calc(var(--preview-banner-h) + 24px);
}

/* Aba Menu — só a barra do topo, sem scroll nem vão branco */
.site-preview-header-only {
    background: var(--white);
    min-height: calc(var(--preview-banner-h) + var(--header-h));
    max-height: calc(var(--preview-banner-h) + var(--header-h));
    overflow: hidden;
}

.site-preview-header-only main {
    height: 0 !important;
    overflow: hidden !important;
}

.site-preview-header-only .header {
    display: block !important;
    position: fixed;
    top: var(--preview-banner-h);
    left: 0;
    right: 0;
}

.site-preview-header-only footer {
    display: none !important;
}

/* Abas de seção — só a seção editada; menu só na aba Menu ou em Tudo */
.site-preview-section-focus:not(.site-preview-header-only) {
    background: var(--off-white);
}

.site-preview-section-focus:not(.site-preview-header-only):not(.site-preview-focus-rodape) .header {
    display: none !important;
}

/* Compensa só o banner fixo do preview (sem menu) */
.site-preview-section-focus:not(.site-preview-header-only):not(.site-preview-focus-rodape) main {
    padding-top: var(--preview-banner-h) !important;
}

/* Início isolado: sem menu; padding do hero ajustado ao preview */
body[data-preview-focus="inicio"] #inicio.hero,
.site-preview-focus-hero #inicio.hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 40px !important;
}

/* Demais seções: sem forçar altura extra */
.site-preview-section-focus main > section[id],
.site-preview-section-focus main > #cta-final {
    min-height: auto !important;
    margin: 0 !important;
}

.site-preview-section-focus .site-editor-focus-only {
    min-height: auto !important;
    width: 100%;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero__content { grid-template-columns: 1fr; gap: 40px; }
    .hero__image { max-width: 480px; margin: 0 auto; }
    .about { grid-template-columns: 1fr; }
    .about__image {
        min-height: 480px;
        height: auto;
        max-width: 420px;
        margin: 0 auto;
    }
    .about__values { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer__brand { grid-column: 1 / -1; max-width: none; }
    .footer__tagline { max-width: 520px; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }

    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .section__header { margin-bottom: 32px; }
    .section__header p { margin-top: 10px; }

    .header__logo img { height: 42px; max-width: 160px; object-fit: contain; object-position: left center; }

    .header__menu-btn { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        z-index: 999;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav__link--cta {
        text-align: center;
        margin-top: 12px;
        border: none;
    }

    .btn { white-space: normal; text-align: center; }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 24px) 0 48px;
    }

    .hero__content { gap: 28px; }
    .hero__text h1 { margin-bottom: 16px; }
    .hero__text p {
        font-size: 1rem;
        max-width: none;
        margin-bottom: 24px;
    }

    .hero__badge {
        font-size: 0.75rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .hero__trust > div {
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.45;
    }

    .hero__trust > div:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .hero__image {
        width: 100%;
        max-width: 100%;
    }

    .hero__image-frame img { height: 320px; }
    .hero__image-frame .site-media--file video { height: 320px; }
    .hero__image-frame .site-media--youtube { max-height: 320px; }

    .hero__card {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 16px auto 0;
        width: 100%;
        max-width: 300px;
    }

    .about {
        gap: 28px;
        display: flex;
        flex-direction: column;
    }

    .about__image {
        min-height: 280px;
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 0 auto;
        order: 1;
        flex-shrink: 0;
    }

    .about__content {
        order: 2;
        width: 100%;
    }

    .about__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about__values {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about__lead { font-size: 1rem; }

    .areas-grid { grid-template-columns: 1fr; gap: 16px; }
    .area-card {
        padding: 24px 20px;
    }
    .area-card:hover { transform: none; }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .diff-item { padding: 20px 8px; }

    .testimonials { gap: 16px; }
    .testimonial { padding: 24px 20px; }

    .blog-grid { gap: 16px; }
    .blog-card { padding: 22px 20px; }

    .contact { gap: 28px; }
    .contact__form { padding: 24px 20px; }

    .form-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .form-steps__line { width: 20px; }
    .form-steps__item p { font-size: 0.6875rem; }

    .form-row { grid-template-columns: 1fr; }
    .form-step__actions { grid-template-columns: 1fr; }

    .cta-bar { padding: 52px 0; }
    .cta-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 28px;
    }
    .cta-bar__title,
    .cta-bar h3 { font-size: 1.375rem; }
    .cta-bar__action,
    .cta-bar__btn { width: 100%; }

    .footer__inner { padding: 48px 0 36px; }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer__brand { grid-column: auto; }
    .footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }
    .footer__oab { text-align: left; white-space: normal; }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 48px 0; }

    .hero__trust {
        gap: 10px 8px;
    }

    .hero__trust > div {
        font-size: 0.7rem;
    }

    .hero__image-frame img { height: 280px; }
    .hero__image-frame .site-media--file video { height: 280px; }
    .hero__image-frame .site-media--youtube { max-height: 280px; }

    .form-steps__item span {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .form-steps__line { width: 14px; }

    .area-card__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 16px;
    }
}
