/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --color-navy: #173B63;
    --color-navy-deep: #0A1D2E;
    --color-blue: #0B84E5;
    --color-teal: #5FBFC4;
    --color-teal-dark: #3AA8AE;
    --color-green: #22A447;
    --color-green-hover: #1b8a39;
    --color-whatsapp: #25D366;
    --color-white: #FFFFFF;
    --color-bg-soft: #F5F8FA;
    --color-border: #E6ECEF;
    --color-text: #4B5563;
    --color-muted: #7A8694;
    --color-star: #F5B301;

    --font-family: 'Poppins', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-pill: 9999px;
    --shadow-card: 0 8px 28px rgba(15, 39, 64, 0.06);
    --header-h: 88px;
    --container: 1180px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-navy);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

button {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.highlight { color: var(--color-green); }

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-teal);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-label.light { color: var(--color-teal); }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.section-title.light { color: var(--color-white); }

.section-subtitle {
    margin-top: 0.85rem;
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.6;
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--color-green);
    color: var(--color-white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(34, 164, 71, 0.28);
}

.btn:hover {
    background: var(--color-green-hover);
    transform: translateY(-1px);
}

.btn i { font-size: 1.25rem; }

.btn-header {
    padding: 0.75rem 1.35rem;
    font-size: 0.9375rem;
    height: 48px;
    background: var(--color-whatsapp);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.btn-header:hover {
    background: #1ebe57;
}

.btn-hero {
    padding: 0.95rem 1.85rem;
    font-size: 1rem;
    min-height: 56px;
    gap: 0.65rem;
}

.btn-hero .ph-arrow-right {
    font-size: 1.05rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(15, 39, 64, 0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo-fallback {
    display: none;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-navy);
}

.logo-fallback i {
    color: var(--color-teal);
    font-size: 1.55rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-navy);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover { color: var(--color-teal-dark); }

.nav-link.active { font-weight: 600; }

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-green);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-navy);
    cursor: pointer;
    z-index: 1001;
}

/* ==========================================================================
   Hero — full-bleed image + white curved panel (matches mockup)
   ========================================================================== */
.hero {
    margin-top: var(--header-h);
    position: relative;
    min-height: clamp(560px, calc(100vh - var(--header-h)), 700px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-white);
}

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

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-curve {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-curve svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-curve path {
    fill: var(--color-white);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
}

.hero-content {
    max-width: 540px;
    padding: 3.5rem 0 4rem;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4.8vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: var(--color-navy);
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions { margin-bottom: 2.75rem; }

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.trust-icon {
    color: var(--color-blue);
    font-size: 1.35rem;
    display: flex;
}

.trust-item span {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-navy);
}

.hero-badge {
    position: absolute;
    bottom: 2rem;
    right: max(1.5rem, calc((100vw - var(--container)) / 2));
    z-index: 3;
    background: var(--color-white);
    padding: 0.8rem 1.35rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px rgba(15, 39, 64, 0.14);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-icon {
    color: var(--color-blue);
    font-size: 1.45rem;
    display: flex;
}

.hero-badge span {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    padding: 5.5rem 0;
    background: var(--color-bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.15rem;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.15rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(95, 191, 196, 0.12);
    color: var(--color-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.service-card h3 {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-navy);
}

/* ==========================================================================
   Results / Before-After
   ========================================================================== */
.results {
    position: relative;
    padding: 5.5rem 0;
    background:
        linear-gradient(120deg, rgba(10, 29, 46, 0.88), rgba(15, 39, 64, 0.78)),
        url('https://images.unsplash.com/photo-1493663284031-b7e3aefcae8e?auto=format&fit=crop&w=1600&q=70') center / cover;
    overflow: hidden;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.results-text {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 440px;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-md);
    overflow: hidden;
    user-select: none;
    touch-action: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: #1a1a1a;
}

.ba-before,
.ba-after {
    position: absolute;
    inset: 0;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after {
    width: 50%;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.95);
}

.ba-label {
    position: absolute;
    top: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
}

.ba-label.antes {
    left: 1rem;
    background: rgba(60, 60, 60, 0.78);
}

.ba-label.depois {
    right: 1rem;
    background: var(--color-green);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 44px;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-white);
}

.ba-handle-knob {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
    padding: 5.5rem 0;
    background: var(--color-white);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.process-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
}

.process-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(95, 191, 196, 0.45);
    background: rgba(95, 191, 196, 0.08);
    color: var(--color-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
}

.process-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-teal);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.55;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    color: var(--color-teal);
    font-size: 1.5rem;
    opacity: 0.85;
}

/* ==========================================================================
   Why CinRenova
   ========================================================================== */
.why {
    padding: 5.5rem 0;
    background: var(--color-bg-soft);
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.why-text {
    margin: 1rem 0 2rem;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 480px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 1.05rem 1.2rem;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.why-item:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.why-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.why-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-navy);
    line-height: 1.4;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 5.5rem 0;
    background: var(--color-white);
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease;
}

.testimonial-card:hover { transform: translateY(-3px); }

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-top h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.stars {
    color: var(--color-star);
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.testimonial-card > p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    font-style: italic;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 2rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #D5DEE5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
    background: var(--color-green);
    transform: scale(1.15);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    position: relative;
    padding: 4.5rem 0;
    background:
        linear-gradient(110deg, rgba(10, 29, 46, 0.92), rgba(15, 39, 64, 0.82)),
        url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1600&q=70') center / cover;
}

.final-cta-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.final-cta-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.final-cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    max-width: 560px;
}

.final-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.final-cta-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.final-cta-info p {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.final-cta-info i { color: var(--color-teal); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-navy-deep);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .logo-fallback {
    color: var(--color-white);
}

.footer-logo .logo-fallback i {
    color: var(--color-teal);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--color-white); }

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Motion
   ========================================================================== */
.hero-content,
.service-card,
.process-step,
.why-content,
.why-item,
.testimonial-card {
    animation: fadeUp 0.7s ease both;
}

.hero-badge { animation: floatBadge 4s ease-in-out infinite; }
.service-card:nth-child(2) { animation-delay: 0.05s; }
.service-card:nth-child(3) { animation-delay: 0.1s; }
.service-card:nth-child(4) { animation-delay: 0.15s; }
.service-card:nth-child(5) { animation-delay: 0.2s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .header-cta { display: none; }
    .mobile-toggle { display: block; }

    .navbar {
        position: fixed;
        top: var(--header-h);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: var(--color-white);
        transition: left 0.3s ease;
        padding: 2rem;
        z-index: 999;
    }

    .navbar.active { left: 0; }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }

    .nav-link { font-size: 1.125rem; }

    .hero-media {
        position: relative;
        inset: auto;
        height: 280px;
        order: -1;
        border-radius: 0 0 28px 28px;
        overflow: hidden;
    }

    .hero-curve { display: none; }

    .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-container {
        padding-top: 0.5rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: none;
        padding: 2rem 0 3.5rem;
    }

    .hero-description { max-width: 40rem; }

    .trust-indicators { justify-content: center; }

    .hero-badge {
        position: absolute;
        bottom: auto;
        top: 230px;
        right: 1rem;
        left: auto;
    }

    .hero-container,
    .results-container,
    .why-container,
    .final-cta-container {
        grid-template-columns: 1fr;
        display: grid;
    }

    .final-cta-container {
        text-align: center;
        justify-items: center;
    }

    .final-cta-actions { align-items: center; }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 420px;
    }

    .process-arrow {
        height: auto;
        transform: rotate(90deg);
    }

    .testimonials-track {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .testimonial-card:nth-child(n + 2) {
        display: none;
    }

    .testimonials-track.show-2 .testimonial-card { display: none; }
    .testimonials-track.show-2 .testimonial-card:nth-child(2) { display: block; }
    .testimonials-track.show-3 .testimonial-card { display: none; }
    .testimonials-track.show-3 .testimonial-card:nth-child(3) { display: block; }
}

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

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

    .footer-nav { justify-content: center; }
}

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

    .hero-badge {
        right: 1rem;
        bottom: -0.5rem;
        top: auto;
        padding: 0.65rem 1rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 320px;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: flex-start;
    }
}
