
/* ==============================
   QUINTA DO CASCO
   Homepage responsiva
   ============================== */

:root {
    --green: #493442;
    --green-dark: #30232D;
    --green-light: #EAE1E5;

    --cream: #F5F0E7;
    --white: #FFFFFF;

    --brown: #B85F45;
    --brownish: #E6C879;

    --text: #454747;
    --text-light: #696765;
    --border: #E2DAD1;

    --container: 1200px;
    --radius: 12px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}


/* TIPOGRAFIA */

h1,
h2,
h3 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brown);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* BOTÕES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--brown);
}

.btn-primary:hover {
    background: #984832;
}

.btn-light {
    color: var(--green-dark);
    background: var(--cream);
}

.btn-light:hover {
    background: var(--white);
}

.btn-outline {
    color: var(--green);
    border-color: var(--green);
    background: transparent;
}

.btn-outline:hover {
    color: var(--white);
    background: var(--green);
}


/* HEADER */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding:10px;
}

.header-content {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo img {
    width: 300px;
    max-height: 100px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.88rem;
    font-weight: 600;
}

.main-nav a:hover,
.footer-column a:hover {
    color: var(--brown);
}


/* HERO */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--green-dark);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(48, 35, 45, 0.2) 0%,
            rgba(48, 35, 45, 0.5) 30%,
            rgba(48, 35, 45, 0.08) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero .eyebrow {
    color: var(--brownish);
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 24px;
}

.hero-content > p {
    max-width: 540px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-caption {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 22px;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}


/* HISTÓRIA */

.history {
    background: var(--cream);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.history-image {
    position: relative;
}

.history-image > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
}

.history-badge {
    position: absolute;
    right: -20px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 28px;
    color: var(--green-dark);
    background: var(--brownish);
    border-radius: var(--radius);
}

.history-badge strong {
    font-size: 2.6rem;
    line-height: 1;
}

.history-badge span {
    margin-top: 8px;
    font-size: 0.78rem;
}

.history-content h2 {
    margin-bottom: 24px;
}

.history-content p {
    margin-bottom: 16px;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.text-link:hover {
    color: var(--brown);
}


/* CABEÇALHOS DAS SECÇÕES */

.section-heading {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p {
    max-width: 540px;
    margin-inline: auto;
}


/* ANIMAIS */

.animals {
    background: var(--white);
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.animal-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(48, 35, 45, 0.09);
}

.animal-card > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.animal-info {
    padding: 26px;
}

.animal-type {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brown);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.animal-info h3 {
    margin-bottom: 14px;
}

.animal-info p {
    font-size: 0.94rem;
}

.section-footer {
    margin-top: 44px;
    text-align: center;
}


/* MISSÃO */

.mission {
    background: var(--green-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.mission-content > h2 {
    margin-bottom: 24px;
}

.mission-content > p {
    margin-bottom: 32px;
}

.mission-points {
    display: grid;
    gap: 24px;
}

.mission-point {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
}

.point-number {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--green);
    border: 1px solid #C9B8C1;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.mission-point h3 {
    margin-bottom: 8px;
}

.mission-point p {
    font-size: 0.92rem;
}

.mission-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
}


/* COMO AJUDAR */

.help {
    background: var(--cream);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.help-card {
    padding: 36px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.help-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green);
    background: var(--green-light);
    border-radius: 50%;
    font-size: 1.5rem;
}

.help-card h3 {
    margin-bottom: 14px;
}

.help-card p {
    font-size: 0.94rem;
}


/* TESTEMUNHO */

.testimonial {
    padding: 100px 0;
    color: var(--white);
    background: var(--green-dark);
}

.testimonial-content {
    max-width: 850px;
    text-align: center;
}

.testimonial .eyebrow {
    color: var(--brownish);
}

.testimonial blockquote {
    margin: 20px 0 28px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.testimonial-author {
    color: #E0D6DC;
    font-size: 0.9rem;
}


/* CTA FINAL */

.final-cta {
    padding: 80px 0;
    color: var(--text);
    background: var(--brownish);
}

.final-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.final-cta .eyebrow {
    color: var(--green-dark);
}

.final-cta h2 {
    max-width: 720px;
    margin-bottom: 18px;
}

.final-cta p {
    color: var(--text);
}

.final-cta .btn {
    flex-shrink: 0;
}


/* FOOTER */

.site-footer {
    padding: 64px 0 0;
    color: var(--white);
    background: var(--green-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-brand img {
    width: 180px;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 20px;
    color: #D0C5CC;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer-column a,
.footer-column p {
    color: #D0C5CC;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    color: #D0C5CC;
    font-size: 0.8rem;
}

.emoji{
    font-size: 30px;;
}

/* ACESSIBILIDADE */

a:focus-visible {
    outline: 3px solid var(--brownish);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* TABLET */

@media (max-width: 1000px) {

    .header-content {
        flex-wrap: wrap;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 18px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 20px;
    }

    .history-grid,
    .mission-grid {
        gap: 48px;
    }

    .history-image > img {
        height: 440px;
    }

    .animal-grid {
        gap: 18px;
    }

    .animal-info {
        padding: 20px;
    }

    .animal-card > img {
        height: 220px;
    }

    .mission-image img {
        height: 520px;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        width: min(100% - 36px, var(--container));
    }

    .section {
        padding: 68px 0;
    }

    .header-content {
        gap: 16px;
    }

    .logo img {
        width: 130px;
    }

    .header-cta {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .main-nav {
        gap: 12px 20px;
    }

    .main-nav a {
        font-size: 0.82rem;
    }

    .hero {
        min-height: 620px;
    }

    .hero-image {
        object-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(48, 35, 45, 0.88),
            rgba(48, 35, 45, 0.48)
        );
    }

    .hero-content {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
    }

    .hero-caption {
        left: 18px;
        right: 18px;
        font-size: 0.68rem;
    }

    .history-grid,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-image > img {
        height: 360px;
    }

    .history-badge {
        right: 12px;
        bottom: 12px;
    }

    .animal-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }

    .animal-card > img {
        height: 260px;
    }

    .mission-image {
        order: -1;
    }

    .mission-image img {
        height: 360px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .help-card {
        padding: 28px;
    }

    .testimonial {
        padding: 72px 0;
    }

    .final-cta {
        padding: 64px 0;
    }

    .final-cta-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
