/* ==========================================================================
   AGP Jardins — estilos principais
   Mobile first · sem dependências externas · fontes do sistema
   Desenvolvido pela Yperion Tech
   ========================================================================== */

:root {
    --verde: #2e7d32;
    --verde-escuro: #174a2d;
    --verde-claro: #81c784;
    --verde-suave: #e6efe3;
    --fundo: #f7f5ed;
    --branco: #ffffff;
    --texto: #243028;
    --texto-suave: #4a564d;
    --borda: #dcdccf;
    --whatsapp: #1f7a3d;

    --fonte: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --raio: 14px;
    --raio-sm: 10px;
    --sombra: 0 1px 2px rgba(23, 74, 45, .06), 0 6px 20px rgba(23, 74, 45, .07);
    --header-h: 64px;
    --container: 1160px;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fundo);
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

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

/* <picture> só escolhe o formato (WebP ou JPG); o layout continua no <img> */
picture {
    display: contents;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--verde-escuro);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    letter-spacing: -.01em;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--verde);
    text-underline-offset: .18em;
}

a:hover {
    color: var(--verde-escuro);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--verde);
    outline-offset: 3px;
    border-radius: 4px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

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

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 200;
    padding: .75rem 1rem;
    background: var(--verde-escuro);
    color: var(--branco);
    font-weight: 700;
    border-radius: var(--raio-sm);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: var(--branco);
}

main:focus {
    outline: none;
}

section[id] {
    scroll-margin-top: var(--header-h);
}

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .7rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-lg {
    min-height: 54px;
    padding: .85rem 1.5rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--verde);
    color: var(--branco);
}

.btn-primary:hover {
    background: var(--verde-escuro);
    color: var(--branco);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--branco);
}

.btn-whatsapp:hover {
    background: var(--verde-escuro);
    color: var(--branco);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .85);
    color: var(--branco);
}

.btn-ghost:hover {
    background: var(--branco);
    color: var(--verde-escuro);
}

/* ---------- Cabeçalho ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--borda);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo oficial: altura fixa, largura proporcional (287 × 128) */
.brand-logo {
    width: auto;
    height: 48px;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    min-width: 44px;
    padding: .5rem .75rem;
    border: 1px solid var(--borda);
    border-radius: var(--raio-sm);
    background: var(--branco);
    color: var(--verde-escuro);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.menu-toggle-bars {
    position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-bars::before {
    top: -6px;
}

.menu-toggle-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    color: var(--texto);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--raio-sm);
}

.nav-list a:hover {
    color: var(--verde);
    background: var(--verde-suave);
}

/* Menu móvel (sem JavaScript, css/noscript.css mantém o menu visível) */
@media (max-width: 899.98px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: .75rem 1.125rem 1.25rem;
        background: var(--branco);
        border-bottom: 1px solid var(--borda);
        box-shadow: 0 12px 24px rgba(23, 74, 45, .12);
    }

    .site-nav:not(.is-open) {
        display: none;
    }

    .nav-list {
        display: grid;
        gap: .15rem;
        margin-bottom: .75rem;
    }

    .nav-list a {
        padding-inline: .5rem;
        font-size: 1.05rem;
    }

    .btn-header {
        width: 100%;
    }
}

/* ---------- Seção principal ---------- */

.hero {
    position: relative;
    isolation: isolate;
    margin-top: var(--header-h);
    color: var(--branco);
    background: var(--verde-escuro);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 640px);
    padding-block: 4.5rem 3rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}

.hero h1 {
    color: var(--branco);
}

.hero-text {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    color: rgba(255, 255, 255, .92);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* No celular a foto vira fundo, com sobreposição para garantir contraste */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 44, 27, .62);
}

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

.eyebrow {
    margin-bottom: .6rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--verde);
}

.eyebrow-light {
    color: var(--verde-claro);
}

/* ---------- Seções ---------- */

.section {
    padding-block: 3.5rem;
}

.section-head {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.section-head p:last-child {
    color: var(--texto-suave);
    margin-bottom: 0;
}

/* ---------- Diferenciais ---------- */

.features {
    background: var(--branco);
    padding-block: 2.5rem;
}

.feature-list {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--verde-suave);
    color: var(--verde);
    grid-row: span 2;
}

.feature h3 {
    margin-bottom: .25rem;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--texto-suave);
    font-size: .95rem;
}

/* ---------- Serviços ---------- */

.service-grid {
    display: grid;
    gap: 1rem;
}

.service-card {
    padding: 1.5rem;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    border-top: 4px solid var(--verde);
}

.service-card > p {
    color: var(--texto-suave);
}

.check-list {
    display: grid;
    gap: .45rem;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--verde-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* ---------- Galeria ---------- */

.works {
    background: var(--branco);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    grid-auto-flow: dense;
    gap: .6rem;
}

.gallery-item {
    aspect-ratio: 3 / 4;
    min-width: 0;
}

.gallery-item-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--raio-sm);
    background: var(--verde-suave);
}

.gallery-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    transition: transform .4s ease;
}

.gallery-link:hover img {
    transform: scale(1.03);
}

.gallery-link:focus-visible {
    outline-offset: 2px;
}

/* ---------- Sobre ---------- */

.about-inner {
    display: grid;
    gap: 2rem;
}

.about-content > p {
    max-width: 40rem;
}

.check-list-columns {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--verde-escuro);
}

.about-media {
    border-radius: var(--raio);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
}

/* ---------- Chamada final ---------- */

.cta {
    padding-block: 3.5rem;
    background: var(--verde-escuro);
    color: var(--branco);
    text-align: center;
}

.cta-inner {
    max-width: 44rem;
}

.cta h2 {
    color: var(--branco);
}

.cta p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.75rem;
}

.cta .btn-whatsapp {
    background: var(--branco);
    color: var(--verde-escuro);
}

.cta .btn-whatsapp:hover {
    background: var(--verde-claro);
    color: var(--verde-escuro);
}

.cta :focus-visible,
.hero :focus-visible {
    outline-color: var(--branco);
}

/* ---------- Contato ---------- */

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
}

.contact-item h3 {
    margin-bottom: .1rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--texto-suave);
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
}

/* ---------- Rodapé ---------- */

.site-footer {
    padding-block: 2.5rem 6rem; /* espaço extra para o botão flutuante */
    background: #10301e;
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

.footer-brand {
    margin-bottom: .25rem;
    font-size: 1.3rem;
    color: var(--branco);
}

.footer-brand strong {
    color: var(--verde-claro);
}

.footer-slogan {
    margin-bottom: 1.25rem;
}

.footer-meta {
    margin-bottom: .25rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .78);
}

/* E-mail da desenvolvedora: discreto, mas com área de toque confortável */
.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 255, 255, .78);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    overflow-wrap: anywhere;
}

.footer-link:hover {
    color: var(--branco);
    text-decoration-color: currentColor;
}

.site-footer :focus-visible {
    outline-color: var(--verde-claro);
}

/* ---------- Botão flutuante do WhatsApp ---------- */

.whatsapp-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--branco);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: opacity .25s, transform .25s, visibility .25s;
}

.whatsapp-float:hover {
    background: var(--verde-escuro);
    color: var(--branco);
}

.whatsapp-float .icon {
    width: 30px;
    height: 30px;
}

.whatsapp-float.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

/* ---------- Lightbox ---------- */

.lightbox {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--branco);
}

.lightbox::backdrop {
    background: rgba(8, 20, 12, .92);
}

.lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem .75rem 1.5rem;
}

.lightbox-img {
    width: auto;
    max-width: 100%;
    max-height: calc(100% - 3rem);
    object-fit: contain;
    border-radius: var(--raio-sm);
}

.lightbox-caption {
    max-width: 40rem;
    margin: .75rem 0 0;
    font-size: .95rem;
    text-align: center;
    color: rgba(255, 255, 255, .88);
}

.lightbox-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: var(--branco);
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, .28);
}

.lightbox-btn:focus-visible {
    outline-color: var(--branco);
}

.lightbox-close {
    top: .75rem;
    right: .75rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: .5rem;
}

.lightbox-next {
    right: .5rem;
}

/* ==========================================================================
   Telas maiores
   ========================================================================== */

@media (min-width: 560px) {
    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

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

    .contact-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (min-width: 720px) {
    .container {
        padding-inline: 1.75rem;
    }

    .section {
        padding-block: 5rem;
    }

    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .9rem;
    }

    .gallery-item-tall {
        grid-row: span 3;
    }
}

@media (min-width: 900px) {
    :root {
        --header-h: 72px;
    }

    .brand-logo {
        height: 56px;
    }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-list {
        display: flex;
        gap: .1rem;
    }

    .btn-header {
        min-height: 44px;
        padding: .55rem 1.1rem;
    }

    /* Desktop: texto à esquerda e foto vertical emoldurada à direita */
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        align-items: center;
        gap: 3.5rem;
        min-height: auto;
        padding-block: 4rem;
    }

    .hero-media {
        position: relative;
        inset: auto;
        z-index: 0;
        height: min(72vh, 600px);
        border-radius: var(--raio);
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    }

    .hero-media::after {
        content: none;
    }

    .feature-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .feature-icon {
        grid-row: auto;
        margin-bottom: .9rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

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

    .gallery-item-tall {
        grid-row: span 2;
    }

    .about-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        align-items: center;
        gap: 4rem;
    }

    .about-media {
        aspect-ratio: 4 / 5;
    }

    .cta {
        padding-block: 5rem;
    }

    .lightbox-prev {
        left: 1.5rem;
    }

    .lightbox-next {
        right: 1.5rem;
    }

    .lightbox-close {
        top: 1.25rem;
        right: 1.5rem;
    }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .gallery-link:hover img {
        transform: none;
    }
}
