:root {
    --green: #15933a;
    --green-dark: #075e24;
    --green-bright: #45db68;
    --ink: #101820;
    --muted: #66717e;
    --line: #e6e9ed;
    --surface: #ffffff;
    --soft: #f5f7f6;
    --max: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(21, 147, 58, 0.35);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(230, 233, 237, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--max), calc(100% - 48px));
    height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark,
.brand-symbol {
    width: 48px;
    height: 48px;
    color: var(--green-dark);
}

.brand-name {
    color: #111820;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.brand-name span {
    color: var(--green-dark);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 38px);
    margin-left: auto;
    color: #555f6b;
    font-size: 0.92rem;
    font-weight: 500;
}

.desktop-nav a {
    position: relative;
    padding: 31px 0 26px;
    transition: color 160ms ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.contact-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    border-radius: 8px;
    background: var(--green-dark);
    color: white;
    font-weight: 600;
}

.contact-button {
    padding: 0 22px;
    white-space: nowrap;
}

.is-pending {
    cursor: not-allowed;
    opacity: 0.58;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    cursor: pointer;
}

.mobile-nav {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 0.93rem;
    font-weight: 600;
}

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

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: #07120d url("/assets/img/home/hero-joao-pessoa.webp") center / cover no-repeat;
    isolation: isolate;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 15, 11, 0.96) 0%, rgba(4, 15, 11, 0.82) 32%, rgba(4, 15, 11, 0.28) 65%, rgba(4, 15, 11, 0.04) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 42%);
}

.hero-inner {
    width: min(var(--max), calc(100% - 96px));
    min-height: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(610px, 58vw);
    color: white;
}

.eyebrow,
.section-label {
    margin: 0 0 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--green-bright);
}

.hero-text {
    max-width: 570px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.55;
}

.primary-button {
    margin-top: 28px;
    min-height: 54px;
    padding: 0 24px;
    background: var(--green);
    box-shadow: 0 14px 30px rgba(11, 96, 38, 0.28);
    transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover {
    background: #1aa744;
    transform: translateY(-2px);
}

.hero-place {
    position: absolute;
    top: 34px;
    right: max(48px, calc((100% - var(--max)) / 2));
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.88rem;
}

.hero-place i {
    margin-top: 2px;
}

.hero-place strong,
.hero-place small {
    display: block;
}

.hero-place small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.64rem;
}

.business-section {
    padding: 20px 0 26px;
    background: white;
}

.business-grid {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.business-card {
    scroll-margin-top: 104px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 7px 22px rgba(16, 24, 32, 0.06);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #edf0f2;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.business-card:hover .card-image img {
    transform: scale(1.025);
}

.business-badge {
    position: absolute;
    bottom: -36px;
    left: 26px;
    width: 82px;
    height: 82px;
    display: grid;
    place-content: center;
    border: 4px solid white;
    border-radius: 50%;
    background: white;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
    text-align: center;
}

.badge-symbol {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.business-badge span {
    display: block;
    margin-top: -3px;
    font-size: 0.46rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.rent .business-badge {
    color: var(--green-dark);
}

.motors .business-badge {
    color: #12171c;
}

.construtora .business-badge {
    color: #681d18;
}

.card-body {
    min-height: 188px;
    padding: 52px 28px 22px;
    display: flex;
    flex-direction: column;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.card-title-row h2 {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.card-title-row i {
    color: #52606d;
    font-size: 0.9rem;
}

.card-body > p {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.48;
}

.values {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
}

.values-grid {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-item {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 30px;
}

.value-item + .value-item {
    border-left: 1px solid var(--line);
}

.value-item > i {
    flex: 0 0 38px;
    color: var(--green-dark);
    font-size: 2.25rem;
    text-align: center;
}

.value-item h2,
.value-item p {
    margin: 0;
}

.value-item h2 {
    font-size: 0.95rem;
}

.value-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.about-section {
    scroll-margin-top: 82px;
    padding: 84px 0;
    background: var(--soft);
}

.about-inner {
    width: min(1140px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 72px;
}

.section-label {
    margin-bottom: 14px;
    color: var(--green-dark);
}

.about-inner h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.about-inner > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.site-footer {
    scroll-margin-top: 82px;
    background: #06120d;
    color: white;
}

.footer-inner {
    width: min(var(--max), calc(100% - 64px));
    min-height: 190px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-symbol {
    width: 42px;
    height: 42px;
    color: var(--green-bright);
}

.footer-brand strong {
    font-size: 1.75rem;
    letter-spacing: -0.045em;
}

.footer-brand em {
    color: var(--green-bright);
    font-style: normal;
}

.footer-inner p {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 18px;
}

.footer-contacts a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 160ms ease;
}

.footer-contacts a:hover {
    color: white;
}

.admin-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-link:hover {
    color: white;
}

@media (max-width: 1120px) {
    .header-inner {
        width: min(var(--max), calc(100% - 32px));
    }

    .desktop-nav,
    .contact-button {
        display: none;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

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

    .business-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }

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

    .value-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .value-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 70px;
    }

    .brand-mark,
    .brand-symbol {
        width: 40px;
        height: 40px;
    }

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

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero {
        background-position: 68% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(4, 15, 11, 0.94) 0%, rgba(4, 15, 11, 0.78) 58%, rgba(4, 15, 11, 0.28) 100%);
    }

    .hero-inner {
        width: calc(100% - 40px);
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.6rem);
    }

    .hero-text {
        max-width: 92%;
        font-size: 1rem;
    }

    .hero-place {
        top: 24px;
        right: 20px;
    }

    .hero-place small {
        display: none;
    }

    .business-section {
        padding: 16px 0 22px;
    }

    .business-grid,
    .values-grid,
    .about-inner,
    .footer-inner {
        width: calc(100% - 32px);
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .card-image {
        aspect-ratio: 16 / 9;
    }

    .card-body {
        min-height: 180px;
        padding: 50px 22px 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item,
    .value-item:nth-child(3),
    .value-item:nth-child(4) {
        min-height: 96px;
        padding: 18px 14px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .value-item:first-child {
        border-top: 0;
    }

    .about-section {
        padding: 64px 0;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-inner > p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .footer-inner {
        min-height: auto;
        padding: 48px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-contacts {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
