/*
Theme: Landing Page Hípica Fred Amaral
Descrição: Identidade visual e componentes da campanha de hipismo e equitação.
*/

:root {
    --forest: #153b32;
    --forest-dark: #0b2922;
    --forest-soft: #dfe9e3;
    --terracotta: #ad5c38;
    --terracotta-dark: #844128;
    --gold: #c89c59;
    --sand: #f4eddf;
    --cream: #fbf8f1;
    --ink: #1e2824;
    --copy: #52605a;
    --muted: #738079;
    --white: #ffffff;
    --line: rgba(21, 59, 50, 0.13);
    --shadow-soft: 0 28px 75px rgba(17, 43, 35, 0.13);
    --shadow-card: 0 16px 45px rgba(17, 43, 35, 0.09);
    --radius-xl: 38px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 13px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;
    --font-h1: clamp(2.75rem, 5.1vw, 5.2rem);
    --font-h2: clamp(2.2rem, 4vw, 3.8rem);
    --font-h3: clamp(1.35rem, 1.8vw, 1.7rem);
    --font-copy: clamp(1rem, 1.08vw, 1.08rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--copy);
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration: none; }
a:hover, a:focus { color: var(--terracotta); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
section { position: relative; padding: 104px 0; }
.container { max-width: 1180px; }
.grecaptcha-badge { visibility: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 22px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
}
h1 { font-size: var(--font-h1); letter-spacing: -0.045em; }
h2 { font-size: var(--font-h2); letter-spacing: -0.035em; }
h3 { font-size: var(--font-h3); line-height: 1.15; }
p { margin: 0 0 1.35rem; color: var(--copy); font-size: var(--font-copy); }

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .62rem .95rem;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(173, 92, 56, .24);
    border-radius: 999px;
    color: var(--terracotta-dark);
    background: rgba(173, 92, 56, .09);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section-tag-dark { border-color: var(--line); color: var(--forest); background: var(--forest-soft); }
.section-tag-light { border-color: rgba(255,255,255,.22); color: var(--white); background: rgba(255,255,255,.08); }
.section-heading { max-width: 850px; margin: 0 auto 3.2rem; }
.section-subtitle { max-width: 780px; margin: 0 auto; color: var(--muted); }

.btn {
    border-radius: 999px;
    padding: .95rem 1.5rem;
    font-size: .92rem;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover, .btn:focus { transform: translateY(-2px); }
.btn-primary {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    box-shadow: 0 14px 32px rgba(173, 92, 56, .25);
}
.btn-primary:hover, .btn-primary:focus { color: var(--white); box-shadow: 0 18px 38px rgba(173, 92, 56, .34); }
.btn-outline-dark { border: 1.5px solid var(--forest); color: var(--forest); background: transparent; }
.btn-outline-dark:hover, .btn-outline-dark:focus { border-color: var(--forest); color: var(--white); background: var(--forest); }
.btn-light { border: 0; color: var(--forest); background: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.btn-light:hover, .btn-light:focus { color: var(--terracotta-dark); background: var(--white); }
.text-link { padding: .25rem 0; color: var(--forest); background: transparent; font-weight: 800; cursor: pointer; }
.text-link i { margin-left: .35rem; transition: transform .2s ease; }
.text-link:hover i { transform: translateX(5px); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 248, 241, .96);
    backdrop-filter: blur(16px);
    box-shadow: 0 9px 32px rgba(17, 43, 35, .06);
}
.header-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-logo { width: 126px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.btn-header { flex: 0 0 auto; }

.hero-section {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 96px 0 124px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(244,237,223,.98), rgba(251,248,241,.92)),
        url("../img/arte.jpg") center / cover no-repeat;
}
.hero-section::before { content: ""; position: absolute; width: 46%; height: 100%; top: 0; right: 0; background: rgba(21,59,50,.04); border-radius: 0 0 0 140px; }
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { max-width: 700px; }
.hero-text { max-width: 620px; font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.45rem; }
.hero-note { color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-note i { margin-right: .45rem; color: var(--terracotta); }
.hero-image-box {
    position: relative;
    width: min(100%, 590px);
    margin-left: auto;
    border: 10px solid rgba(255,255,255,.78);
    border-radius: 46% 46% var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.hero-image { width: 100%; min-height: 560px; border-radius: inherit; object-fit: cover; object-position: center 42%; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); }
.hero-glow-one { width: 260px; height: 260px; top: -100px; left: -90px; background: rgba(200,156,89,.18); }
.hero-glow-two { width: 180px; height: 180px; right: 38%; bottom: -80px; background: rgba(173,92,56,.12); }

.proof-strip { z-index: 4; margin-top: -48px; padding: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.proof-item { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.55rem 1.7rem; }
.proof-item:not(:last-child)::after { content: ""; position: absolute; top: 24%; right: 0; width: 1px; height: 52%; background: var(--line); }
.proof-item > i { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-content: center; border-radius: 50%; color: var(--terracotta); background: var(--sand); }
.proof-item strong { display: block; color: var(--forest); font-size: .92rem; }
.proof-item span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.intro-section { background: var(--cream); }
.image-stack { position: relative; width: min(100%, 620px); padding: 0 62px 62px 0; }
.image-stack-main { width: 100%; min-height: 440px; border-radius: var(--radius-xl); object-fit: cover; box-shadow: var(--shadow-card); }
.image-stack-detail { position: absolute; right: 0; bottom: 0; width: 245px; height: 190px; border: 8px solid var(--cream); border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow-card); }

.lessons-section { background: var(--white); }
.lesson-card { position: relative; height: 100%; min-height: 330px; padding: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.lesson-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.lesson-number { position: absolute; top: 8px; right: 18px; color: rgba(21,59,50,.07); font-family: var(--font-display); font-size: 5.5rem; font-weight: 700; line-height: 1; }
.lesson-icon { position: relative; width: 58px; height: 58px; display: grid; margin-bottom: 1.5rem; place-content: center; border-radius: 18px; color: var(--white); background: var(--forest); font-size: 1.35rem; }
.lesson-card h3, .lesson-card p { position: relative; }
.lesson-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.lesson-extra { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; margin-top: 1.2rem; padding: 1.35rem 1.5rem; color: var(--white); background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(132,65,40,.2); }
.lesson-extra > div:first-child { width: 50px; height: 50px; display: grid; place-content: center; border-radius: 50%; background: rgba(255,255,255,.13); font-size: 1.2rem; }
.lesson-extra strong, .lesson-extra span { display: block; color: var(--white); }
.lesson-extra strong { font-family: var(--font-display); font-size: 1.5rem; }
.lesson-extra span { opacity: .82; font-size: .85rem; }
.ride-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.ride-gallery figure { position: relative; min-height: 310px; margin: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.ride-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ride-gallery figure:hover img { transform: scale(1.035); }
.ride-gallery figcaption { position: absolute; left: 18px; bottom: 18px; padding: .55rem .85rem; color: var(--white); background: rgba(11,41,34,.86); border-radius: 999px; font-size: .75rem; font-weight: 700; backdrop-filter: blur(8px); }

.section-dark { overflow: hidden; color: var(--white); background: linear-gradient(125deg, rgba(11,41,34,.98), rgba(21,59,50,.91)), url("../img/hipismo.jpg") center / cover no-repeat; }
.section-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 36px 36px; }
.section-dark .container { position: relative; z-index: 2; }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.76); }
.progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.progress-grid .info-card { padding: 1.55rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); background: rgba(255,255,255,.08); backdrop-filter: blur(9px); }
.progress-grid strong { display: block; margin-bottom: .45rem; color: var(--white); font-family: var(--font-display); font-size: 1.5rem; }
.progress-grid p { margin: 0; font-size: .86rem; }
.info-number { display: block; margin-bottom: .7rem; color: #e4bd82; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }

.structure-section { background: var(--sand); }
.structure-section .row p { margin-bottom: .4rem; }
.structure-gallery { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 235px); gap: 1rem; }
.structure-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.structure-gallery .gallery-large { grid-row: 1 / 3; }
.gallery-mosaic { display: grid; width: 100%; height: 100%; gap: 4px; background: var(--cream); }
.gallery-duo { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-trio { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0,1fr)); }
.gallery-trio img:first-child { grid-row: 1 / 3; }
.gallery-quad { grid-template-columns: repeat(4, minmax(0,1fr)); }
.structure-gallery img { width: 100%; height: 100%; min-width: 0; object-fit: cover; transition: transform .5s ease; }
.structure-gallery figure:hover img { transform: scale(1.035); }
.structure-gallery figcaption { position: absolute; left: 16px; bottom: 16px; padding: .55rem .8rem; color: var(--white); background: rgba(11,41,34,.84); border-radius: 999px; font-size: .72rem; font-weight: 700; backdrop-filter: blur(8px); }

.steps-section { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.step-card { position: relative; min-height: 275px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.step-card > span { position: absolute; top: 18px; right: 22px; color: rgba(21,59,50,.1); font-family: var(--font-display); font-size: 4rem; font-weight: 700; line-height: 1; }
.step-card > i { width: 54px; height: 54px; display: grid; margin-bottom: 1.35rem; place-content: center; color: var(--terracotta); background: var(--sand); border-radius: 50%; font-size: 1.25rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.contact-section { overflow: hidden; background: var(--forest); }
.contact-section::before { content: ""; position: absolute; width: 430px; height: 430px; left: -170px; bottom: -220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.contact-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.contact-copy h2 { color: var(--white); }
.contact-copy > p { color: rgba(255,255,255,.74); }
.contact-detail { display: flex; align-items: center; gap: .9rem; margin: 1.1rem 0; }
.contact-detail > i { width: 45px; height: 45px; display: grid; flex: 0 0 auto; place-content: center; color: var(--forest); background: #e9c894; border-radius: 50%; }
.contact-detail small { display: block; color: rgba(255,255,255,.58); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail a, .contact-detail strong { color: var(--white); font-weight: 800; }
.contact-detail a > i { margin-left: .35rem; font-size: .72rem; }
.contact-copy .service-area { max-width: 420px; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.contact-form { padding: 2.35rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.contact-form label { color: var(--forest-dark); font-size: .84rem; font-weight: 800; }
.contact-form .form-control { min-height: 54px; padding: .65rem .95rem; border: 1px solid rgba(21,59,50,.16); border-radius: var(--radius-sm); color: var(--ink); background: #fdfcf9; font-size: .95rem; }
.contact-form .form-control:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(173,92,56,.11); }
.contact-form textarea.form-control { min-height: 116px; resize: vertical; }
.privacy-consent { display: flex; align-items: flex-start; gap: .65rem; margin: .55rem 0 1.3rem; color: var(--muted) !important; font-size: .76rem !important; font-weight: 500 !important; cursor: pointer; }
.privacy-consent input { margin-top: .25rem; accent-color: var(--terracotta); }
.btn-block { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.form-note { display: block; margin-top: .85rem; color: var(--muted); text-align: center; }
.form-alert { margin-bottom: 1rem; padding: .8rem 1rem; color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 700; }

.site-footer { padding: 58px 0 26px; color: var(--copy); background: var(--cream); }
.footer-main { display: flex; align-items: center; gap: 1.4rem; }
.footer-logo { width: 105px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.footer-main p { flex: 1; margin: 0; font-size: .88rem; }
.footer-main a { font-size: .85rem; font-weight: 800; }
.footer-main a i { margin-right: .35rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

.animate-fade { opacity: 0; transform: translateY(24px); transition: opacity .72s ease, transform .72s ease; }
.animate-fade.is-visible { opacity: 1; transform: translateY(0); }

.thank-you-hero { min-height: 650px; }
.support-section { background: var(--sand); }
.support-contact-row .contact-card { height: 100%; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); text-align: center; }
.support-contact-row .contact-card > i { width: 52px; height: 52px; display: grid; margin: 0 auto 1rem; place-content: center; color: var(--terracotta); background: var(--sand); border-radius: 50%; }
.support-contact-row small, .support-contact-row a, .support-contact-row strong { display: block; }
.support-contact-row small { color: var(--muted); }
.support-contact-row a, .support-contact-row strong { color: var(--forest); font-weight: 800; }

@media (max-width: 991px) {
    section { padding: 82px 0; }
    .hero-section { min-height: auto; padding: 76px 0 100px; }
    .hero-section .text-center { margin-top: 3rem; }
    .hero-image-box { width: min(100%, 680px); margin: 0 auto; }
    .hero-image { min-height: 480px; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-item:not(:last-child)::after { top: auto; right: 12%; bottom: 0; width: 76%; height: 1px; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.8rem; }
}

@media (max-width: 767px) {
    .header-nav { min-height: 74px; }
    .header-logo { width: 96px; height: 62px; }
    .btn-header { padding: .72rem .95rem; font-size: .78rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-image { min-height: 390px; }
    .ride-gallery { grid-template-columns: 1fr; }
    .ride-gallery figure { min-height: 280px; }
    .progress-grid { grid-template-columns: 1fr; }
    .structure-gallery { grid-template-columns: 1fr; grid-template-rows: 350px 240px 240px; }
    .structure-gallery .gallery-large { grid-row: auto; }
    .steps-grid { grid-template-columns: 1fr; }
    .lesson-extra { grid-template-columns: auto 1fr; }
    .lesson-extra .btn { grid-column: 1 / -1; }
    .footer-main { align-items: flex-start; flex-direction: column; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575px) {
    section { padding: 66px 0; }
    h1 { font-size: clamp(2.7rem, 13.2vw, 4rem); }
    h2 { font-size: clamp(2.15rem, 10vw, 3rem); }
    .btn-header { max-width: 53vw; white-space: nowrap; }
    .hero-section { padding-top: 52px; padding-bottom: 78px; }
    .hero-image-box { border-width: 6px; }
    .hero-image { min-height: 330px; }
    .proof-strip { margin-top: -30px; }
    .image-stack { padding: 0 34px 48px 0; }
    .image-stack-main { min-height: 320px; }
    .image-stack-detail { width: 175px; height: 135px; border-width: 6px; }
    .lesson-card { min-height: auto; }
    .ride-gallery figure { min-height: 230px; }
    .structure-gallery { grid-template-rows: 285px 210px 210px; }
    .contact-form { padding: 1.3rem; border-radius: var(--radius-md); }
    .btn { white-space: normal; }
}

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