/*
Theme Name: Olimpia Cred Solutions
Theme URI: https://olimpiacred.com/
Author: Olimpia Cred
Description: Tema WordPress one-page para Olimpia Cred, convertido a partir do projeto original com seções de serviços, crédito, consórcio, seguros, financiamento e contato.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: olimpia-cred
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --background: #f8faf9;
    --foreground: #173027;
    --card: #ffffff;
    --primary: #2684b7;
    --primary-dark: #17678f;
    --primary-foreground: #ffffff;
    --secondary: #eaf1f4;
    --muted: #eef3f4;
    --muted-foreground: #64747a;
    --accent: #f48b1f;
    --accent-foreground: #3b2104;
    --border: #dde6e8;
    --section-alt: #f1f5f6;
    --shadow: 0 16px 38px rgba(23, 48, 39, 0.08);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

h1,
h2,
h3,
h4,
.brand__text,
.footer-brand {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(2.55rem, 6vw, 4.4rem);
    line-height: 1.08;
    color: var(--primary-foreground);
}

h1 span,
.brand__text span,
.footer-brand span {
    color: var(--accent);
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.14;
}

h3 {
    margin: 0 0 24px;
    font-size: 1.35rem;
}

.container {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(23, 48, 39, 0.08);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(100% - 32px, 1180px);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-foreground);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
    color: var(--foreground);
}

.brand__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand__logo--color,
.site-header.is-scrolled .brand__logo--light,
.site-header.is-open .brand__logo--light {
    display: none;
}

.site-header.is-scrolled .brand__logo--color,
.site-header.is-open .brand__logo--color {
    display: block;
}

.brand__text {
    font-size: 1.35rem;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease;
}

.nav-item > .nav-link::after {
    content: "⌄";
    margin-left: 6px;
    font-size: 0.8rem;
}

.site-header.is-scrolled .nav-link,
.site-header.is-open .nav-link {
    color: var(--foreground);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.site-header.is-scrolled .nav-link:hover {
    background: var(--muted);
    color: var(--foreground);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--foreground);
    font-size: 0.9rem;
}

.nav-dropdown a:hover {
    background: var(--muted);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.site-header.is-scrolled .mobile-toggle span,
.site-header.is-open .mobile-toggle span {
    background: var(--foreground);
}

.site-header.is-open .mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, 1180px);
    margin: 0 auto 14px;
    padding: 10px;
    border-top: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--foreground);
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--muted);
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__image,
.hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    object-fit: cover;
}

.hero__overlay {
    background: linear-gradient(90deg, rgba(24, 105, 146, 0.92), rgba(38, 132, 183, 0.7), rgba(38, 132, 183, 0.06));
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 150px 0 96px;
}

.hero__copy {
    max-width: 760px;
}

.eyebrow,
.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 24px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 700;
}

.tag {
    background: rgba(38, 132, 183, 0.1);
    color: var(--primary);
}

.hero__text {
    max-width: 620px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.hero__actions,
.contact-grid,
.mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button--accent {
    background: var(--accent);
    color: var(--accent-foreground);
}

.button--outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.button--primary {
    background: var(--primary);
    color: #fff;
}

.button--whatsapp {
    width: 100%;
    border: 0;
    background: #25d366;
    color: #fff;
    cursor: pointer;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 1;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    animation: bounce 1.7s infinite;
}

.section {
    padding: 96px 0;
}

.section--alt {
    background: var(--section-alt);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading p,
.lead {
    color: var(--muted-foreground);
    font-size: 1.08rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.info-card,
.note-card,
.alert-card,
.contact-card,
.mini-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.service-card {
    padding: 28px;
    box-shadow: 0 8px 20px rgba(23, 48, 39, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(38, 132, 183, 0.1);
    color: var(--primary);
    font-size: 1.35rem;
}

.service-card h3 {
    margin-bottom: 8px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
}

.service-card p,
.info-card span,
.steps span,
.number-list span,
.note-card p,
.alert-card li,
.mini-card span,
.contact-card span,
.site-footer p,
.site-footer a,
.site-footer span {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: start;
}

.narrow {
    max-width: 820px;
}

.center {
    text-align: center;
}

.lead {
    margin: 0 0 28px;
}

.note-card,
.alert-card,
.info-card {
    padding: 22px;
}

.note-card strong,
.alert-card strong,
.info-card strong,
.mini-card strong,
.contact-card strong {
    display: block;
    margin-bottom: 8px;
}

.alert-card {
    margin-top: 20px;
    border-color: rgba(244, 139, 31, 0.28);
    background: rgba(244, 139, 31, 0.09);
}

.alert-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
}

.steps,
.number-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li,
.number-list li {
    position: relative;
    min-height: 42px;
    margin-bottom: 20px;
    padding-left: 58px;
}

.steps li::before,
.number-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.number-list li::before {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(244, 139, 31, 0.2);
    color: var(--accent-foreground);
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stack {
    display: grid;
    gap: 14px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.mini-card {
    padding: 20px;
    background: rgba(38, 132, 183, 0.05);
    border-color: rgba(38, 132, 183, 0.12);
}

.mini-card strong {
    color: var(--primary);
    font-size: 1.35rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 42px 0;
}

.contact-card {
    padding: 24px;
}

.whatsapp-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 34px rgba(37, 211, 102, 0.42);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 22, 0.62);
}

.modal__dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(10, 18, 22, 0.28);
}

.modal__dialog h2 {
    margin-bottom: 8px;
    font-size: 1.7rem;
}

.modal__dialog p {
    color: var(--muted-foreground);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--muted);
    cursor: pointer;
    font-size: 1.4rem;
}

.lead-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.lead-form label,
.lead-form legend {
    color: var(--foreground);
    font-size: 0.92rem;
    font-weight: 700;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"] {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.lead-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 132, 183, 0.15);
}

.lead-form fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.lead-form fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.form-error {
    min-height: 18px;
    margin: 0;
    color: #b42318;
    font-size: 0.88rem;
}

.site-footer {
    padding: 58px 0 28px;
    background: var(--foreground);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-brand {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.site-footer strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
}

.site-footer a,
.site-footer span {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fff;
}

.copyright {
    width: min(100% - 32px, 1180px);
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-size: 0.82rem;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
    transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes bounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .site-header.is-open .mobile-nav {
        display: block;
    }

    .service-grid,
    .two-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .two-columns {
        gap: 26px;
    }

    .hero__overlay {
        background: linear-gradient(90deg, rgba(24, 105, 146, 0.95), rgba(38, 132, 183, 0.78));
    }
}

@media (max-width: 680px) {
    .container,
    .site-header__inner,
    .mobile-nav,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

    .site-header__inner {
        min-height: 66px;
    }

    .brand__text {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 86vh;
    }

    .hero__content {
        padding: 116px 0 82px;
    }

    .section {
        padding: 72px 0;
    }

    .compact-grid,
    .mini-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero__actions {
        width: 100%;
    }

    .whatsapp-button {
        right: 16px;
        bottom: 16px;
    }
}
