/* =========================================================
   COOPERVILLE COOPERATIVA HABITACIONAL
   STYLE.CSS
   ========================================================= */

/* =========================================================
   RESET E BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #26362f;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 84px 0;
}

.section-light {
    background: #f6f8f6;
}

.section-heading {
    margin-bottom: 36px;
}

.section-heading h2,
.about-text h2,
.contact-section h2 {
    color: #0e5a3f;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-heading p,
.about-text p {
    color: #65736d;
    font-size: 1rem;
}

.heading-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-end;
}

.section-label {
    display: inline-block;
    color: #bd9136;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    margin-bottom: 10px;
}

.light-label {
    color: #efd084;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #0e5a3f;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 90, 63, 0.18);
}

.btn-primary:hover {
    background: #0a4934;
}

.btn-light {
    background: rgba(255, 255, 255, 0.94);
    color: #0e5a3f;
}

.btn-light:hover {
    background: #ffffff;
}

.btn-gold {
    background: #c49a3d;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(196, 154, 61, 0.22);
}

.btn-gold:hover {
    background: #ad842d;
}

.btn-outline {
    min-height: 44px;
    border: 1px solid #0e5a3f;
    color: #0e5a3f;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: 0.25s ease;
    background: #ffffff;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #0e5a3f;
    color: #ffffff;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 80, 56, 0.08);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.04);
}

.header-container {
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.logo-symbol {
    width: 64px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-symbol.logo-real {
    background: transparent;
    border: none;
    overflow: hidden;
}

.logo-symbol.logo-real img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.logo-text strong {
    font-size: 1.52rem;
    color: #0e5a3f;
    letter-spacing: 0.03em;
    font-weight: 800;
}

.logo-text span {
    margin-top: 4px;
    font-size: 0.69rem;
    text-transform: uppercase;
    color: #68756f;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #244a3a;
    font-weight: 650;
    font-size: 0.95rem;
    position: relative;
    padding: 30px 0 28px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 0;
    height: 2px;
    background: #c49a3d;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #0e5a3f;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #0e5a3f;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    font-size: 1.5rem;
    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 40, 27, 0.88) 0%,
            rgba(0, 40, 27, 0.68) 45%,
            rgba(0, 40, 27, 0.18) 100%
        ),
        url("images/cooperville_2021.jpg") center center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.06),
            rgba(0, 0, 0, 0.16)
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(255, 255, 255, 0.04),
            rgba(0, 0, 0, 0.18)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 760px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.hero-small {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: #efd084;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.98;
    max-width: 760px;
    font-weight: 650;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
    letter-spacing: -0.03em;
}

.hero h1 strong {
    display: block;
    font-weight: 900;
}

.hero h2 {
    margin-top: 24px;
    color: #f0c96b;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    line-height: 1.25;
    max-width: 700px;
}

.hero p {
    max-width: 620px;
    font-size: 1.08rem;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.93);
}

.hero-buttons {
    margin-top: 31px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   ACESSO RÁPIDO
   ========================================================= */

.quick-access {
    background: #ffffff;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-card {
    min-height: 246px;
    border-radius: 17px;
    background: #ffffff;
    border: 1px solid #e3ebe6;
    box-shadow: 0 10px 30px rgba(29, 65, 50, 0.07);
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    transition: 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-7px);
    border-color: rgba(14, 90, 63, 0.28);
    box-shadow: 0 16px 36px rgba(29, 65, 50, 0.13);
}

.quick-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6f1;
    font-size: 1.8rem;
}

.quick-card h3 {
    color: #123f30;
    font-size: 1rem;
    margin-bottom: 9px;
}

.quick-card p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #728079;
}

.card-arrow {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e5de;
    background: #ffffff;
    color: #0e5a3f;
    font-weight: 700;
}


/* =========================================================
   COMUNICADOS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    min-height: 260px;
    background: #ffffff;
    border: 1px solid #e3ebe6;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(32, 66, 52, 0.06);
    transition: 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(32, 66, 52, 0.11);
}

.news-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.news-date {
    color: #89968f;
    font-size: 0.81rem;
}

.news-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8f0df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.news-card h3 {
    color: #153f31;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-card p {
    color: #6b7972;
    font-size: 0.93rem;
    min-height: 95px;
}

.news-card > a {
    color: #0e5a3f;
    font-weight: 700;
    font-size: 0.92rem;
}


/* =========================================================
   SOBRE
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
}

.about-text p {
    margin-bottom: 17px;
}

.about-text .btn {
    margin-top: 10px;
}

.about-image {
    min-height: 470px;
    position: relative;
    border-radius: 22px;
    overflow: visible;
}

.about-image > img {
    height: 470px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(24, 61, 46, 0.13);
}

.about-image.image-placeholder {
    background:
        linear-gradient(
            135deg,
            #eaf2ed,
            #dcebe2
        );
    border-radius: 22px;
}

.about-quote {
    position: absolute;
    right: -30px;
    bottom: 30px;
    width: 275px;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.about-quote span {
    font-size: 1.4rem;
}

.about-quote p {
    margin-top: 8px;
    color: #344d42;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    line-height: 1.55;
}


/* =========================================================
   OBRAS E MELHORIAS
   ========================================================= */

.projects-section {
    background: #fbfcfb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4ece7;
    box-shadow: 0 10px 28px rgba(32, 66, 52, 0.07);
    transition: 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 34px rgba(32, 66, 52, 0.12);
}

.project-image {
    height: 220px;
    background:
        linear-gradient(
            135deg,
            #e4eee8,
            #f3f7f4
        );
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-content {
    padding: 19px 19px 21px;
}

.project-content h3 {
    color: #163f31;
    margin-bottom: 4px;
}

.project-content p {
    color: #77847e;
    font-size: 0.88rem;
}


/* =========================================================
   GALERIA
   ========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    background: #dce9e1;
    box-shadow: 0 8px 22px rgba(28, 60, 47, 0.06);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* =========================================================
   SERVIÇOS
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.service-card {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: #ffffff;
    border: 1px solid #e2ebe5;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(28, 60, 47, 0.05);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 60, 47, 0.1);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef6f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-card h3 {
    color: #174130;
    font-size: 0.94rem;
}

.service-card p {
    color: #7c8983;
    font-size: 0.76rem;
    line-height: 1.4;
    margin-top: 3px;
}


/* =========================================================
   CONTATO
   ========================================================= */

.contact-section {
    padding: 72px 0;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #0a4a34 0%,
            #063c2b 55%,
            #072f23 100%
        );
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-section h2 {
    color: #ffffff;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.79);
    max-width: 530px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item > span {
    font-size: 1.4rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 0.9rem;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
    background: #063323;
    color: #ffffff;
}

.footer-grid {
    padding: 55px 0 45px;
    display: grid;
    grid-template-columns: 1.55fr 0.8fr 0.8fr 1fr;
    gap: 42px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-logo img {
    width: 72px !important;
    height: 58px !important;
    object-fit: contain;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    font-size: 1.3rem;
}

.footer-logo small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
}

.footer-brand > p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.66);
    max-width: 350px;
    font-size: 0.88rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    font-size: 0.98rem;
    margin-bottom: 13px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.67);
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-message {
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
}

.footer-message p {
    color: #dfbb64;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
}

.footer-message strong {
    display: block;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.header-scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.missing-image {
    background:
        linear-gradient(
            135deg,
            #eaf2ed,
            #dfe9e1
        );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 17px;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-message {
        grid-column: 1 / -1;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 24px;
    }
}


/* =========================================================
   MENU MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-container {
        min-height: 72px;
    }

    .logo-text strong {
        font-size: 1.25rem;
    }

    .logo-text span {
        font-size: 0.56rem;
    }

    .logo-symbol {
        width: 54px;
        height: 48px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 22px;
        background: #ffffff;
        border-top: 1px solid #e6ece8;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid #edf1ef;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: 590px;
        background-position: 60% center;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 39, 25, 0.15);
    }

    .hero-content {
        z-index: 3;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 10px;
    }

    .about-quote {
        right: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 680px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 60px 0;
    }

    .heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        min-height: 570px;
        text-align: left;
        background-position: 68% center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.96rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-card {
        min-height: 220px;
        padding: 22px 13px 18px;
    }

    .quick-icon {
        width: 50px;
        height: 50px;
        font-size: 1.45rem;
    }

    .quick-card h3 {
        font-size: 0.9rem;
    }

    .quick-card p {
        font-size: 0.77rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 235px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 145px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 90px;
    }

    .about-image {
        min-height: 380px;
        margin-bottom: 115px;
    }

    .about-image > img {
        height: 380px;
    }

    .about-quote {
        bottom: -95px;
        left: 14px;
        right: 14px;
        width: auto;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-message {
        grid-column: auto;
    }

    .footer-bottom-content {
        padding: 17px 0;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 420px) {

    .logo-text span {
        display: none;
    }

    .logo-text strong {
        font-size: 1.14rem;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 180px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 210px;
    }
}

/* =========================================================
   ITEM ATIVO DO MENU
   ========================================================= */

.main-nav a.active-link {
    color: #0e5a3f;
}

.main-nav a.active-link::after {
    width: 100%;
}