:root {
    --plum: #24132f;
    --plum-2: #3a1c4e;
    --gold: #c8a25d;
    --gold-light: #e6d1a3;
    --cream: #f6f2eb;
    --ink: #1b1720;
    --muted: #6a626d;
    --white: #fff;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    line-height: 1.1;
    font-weight: 500
}

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

.skip {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 99;
    background: #fff;
    padding: .75rem 1rem
}

.skip:focus {
    top: 1rem
}

.site-header {
    height: 88px;
    padding: 0 max(4vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    z-index: 10;
    width: 100%;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.brand {
    display: flex;
    align-items: center
}

.brand img,
.footer-brand img {
    display: block;
    width: 130px;
    height: auto
}

.site-header nav {
    display: flex;
    gap: 1.15rem;
    align-items: center;
    font-size: .78rem
}

.site-header nav a {
    opacity: .82;
    white-space: nowrap
}

.site-header nav a:hover,
.site-header nav a:focus {
    opacity: 1;
    color: var(--gold-light)
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, .45);
    padding: .65rem 1rem
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    padding: .55rem .75rem
}

.hero {
    height: min(900px, 100svh);
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25, 11, 34, .96) 0%, rgba(25, 11, 34, .8) 43%, rgba(25, 11, 34, .18) 78%, rgba(25, 11, 34, .12))
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 90vw);
    margin-left: max(calc((100vw - var(--max))/2), 5vw);
    padding-top: 80px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .72rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 1.2rem
}

.eyebrow.dark {
    color: #7d5d35
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    letter-spacing: -.035em;
    margin-bottom: 1.4rem
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    max-width: 650px;
    color: rgba(255, 255, 255, .8)
}

.actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 2rem
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: .75rem 1.25rem;
    font-weight: 600;
    font-size: .86rem;
    border: 1px solid transparent;
    transition: .2s
}

.button:hover {
    transform: translateY(-2px)
}

.button.gold {
    background: var(--gold);
    color: #21172a
}

.button.ghost {
    border-color: rgba(255, 255, 255, .55);
    color: #fff
}

.button.plum {
    background: var(--plum);
    color: #fff
}

.authority-seal {
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
    font-size: .78rem;
    letter-spacing: .03em;
    max-width: 600px;
    color: rgba(255, 255, 255, .72)
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 2rem;
    right: 4vw;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65)
}

.scroll-cue span {
    color: var(--gold);
    font-size: 1.2rem;
    margin-left: .5rem
}

.section {
    padding: clamp(5rem, 9vw, 8.5rem) max(5vw, 24px)
}

.section>* {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto
}

.section-intro {
    margin-bottom: 3rem
}

.section-intro>div {
    max-width: 820px
}

.section-intro h2,
.narrow-copy h2,
.consultation h2,
.courses h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    margin-bottom: 0
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(36, 19, 47, .15)
}

.audience-card {
    background: #fff;
    padding: clamp(2rem, 4vw, 4rem);
    min-height: 430px;
    display: flex;
    flex-direction: column
}

.audience-card.professional {
    background: var(--plum);
    color: #fff
}

.number {
    color: var(--gold);
    font-size: .75rem;
    letter-spacing: .12em
}

.audience-card h3 {
    font-size: 2.35rem;
    margin: 3rem 0 1rem
}

.audience-card p {
    max-width: 520px;
    color: var(--muted)
}

.professional p {
    color: rgba(255, 255, 255, .72)
}

.text-link {
    margin-top: auto;
    font-weight: 600;
    color: #7d5d35
}

.professional .text-link {
    color: var(--gold-light)
}

.text-link span {
    margin-left: .4rem
}

.about,
.education-history {
    background: #fff
}

.narrow-copy {
    max-width: 850px !important
}

.about {
    position: relative;
    isolation: isolate;
    overflow: hidden
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/about-horse-science.png") center 54% / min(96vw, 1080px) auto no-repeat;
    opacity: .24;
    pointer-events: none
}

.about>.narrow-copy {
    position: relative
}

.narrow-copy>p:not(.eyebrow),
.consultation-layout p {
    font-size: 1.06rem;
    color: var(--muted)
}

.consultation {
    background: #eee8df
}

.consultation-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start
}

.consultation-panel {
    background: #fff;
    padding: clamp(1.75rem, 3vw, 3rem);
    border-top: 3px solid var(--gold)
}

.consultation-panel h3 {
    font-size: 1.8rem
}

.consultation-panel ul,
.topics ul {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none
}

.consultation-panel li,
.topics li {
    position: relative;
    padding: .7rem 0 .7rem 1.5rem;
    border-top: 1px solid rgba(36, 19, 47, .12)
}

.consultation-panel li::before,
.topics li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold)
}

.consultation-close {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(36, 19, 47, .16)
}

.consultation-close p {
    max-width: 720px;
    margin: 0
}

.professional-consulting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2.5rem;
    background: #fff;
    border-top: 3px solid var(--gold);
    scroll-margin-top: 6rem
}

.professional-consulting h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    margin: .5rem 0 1rem
}

.professional-consulting p:not(.eyebrow) {
    max-width: 700px;
    color: var(--muted);
    margin: 0
}

.professional-consulting .button {
    flex-shrink: 0
}

.method {
    background: #8c6a38;
    color: #fff;
    padding: clamp(5rem, 8vw, 8rem) max(calc((100vw - var(--max))/2), 5vw);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 8vw
}

.method h2 {
    font-size: clamp(2.5rem, 4vw, 4rem)
}

.method ol {
    list-style: none;
    margin: 0;
    padding: 0
}

.method li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .35)
}

.method li span {
    font-size: .72rem;
    letter-spacing: .15em
}

.method strong {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 500
}

.method li p {
    margin: .3rem 0 0;
    color: rgba(255, 255, 255, .78)
}

.case-study {
    background: var(--cream)
}

.case-layout {
    display: grid;
    grid-template-columns: minmax(240px, 312px) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center
}

.case-photo {
    display: block;
    position: relative;
    max-width: 312px;
    border: 1px solid rgba(36, 19, 47, .18);
    box-shadow: 24px 24px 0 rgba(200, 162, 93, .18);
    overflow: hidden
}

.case-photo img {
    display: block;
    width: 100%;
    height: auto
}

.case-photo-action {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(36, 19, 47, .94);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    font-size: .9rem
}

.case-photo:hover .case-photo-action,
.case-photo:focus .case-photo-action {
    background: var(--plum-2)
}

.case-copy h2 {
    font-size: clamp(2.4rem, 4.3vw, 4.4rem);
    max-width: 790px
}

.case-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 700px
}

.case-copy .button {
    margin: 1rem 0 1.3rem
}

.case-copy small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    max-width: 560px;
    line-height: 1.5
}

.experts {
    background: var(--plum);
    color: #fff
}

.experts-intro {
    max-width: 860px !important;
    margin-left: max(calc((100vw - var(--max))/2), 0) !important
}

.experts-intro h2 {
    font-size: clamp(2.6rem, 4.4vw, 4.5rem)
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem
}

.expert-card {
    background: #321941;
    border-top: 2px solid var(--gold);
    padding: clamp(1.8rem, 3vw, 3rem)
}

.expert-photo {
    display: block;
    width: 380px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    border-bottom: 3px solid var(--gold)
}

.monogram {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(200, 162, 93, .6);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    margin-bottom: 2rem
}

.role {
    color: var(--gold-light);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em
}

.expert-card h3 {
    font-size: 2rem
}

.expert-card p {
    color: rgba(255, 255, 255, .7)
}

.course-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(36, 19, 47, .15)
}

.course-grid article {
    background: #fff;
    padding: clamp(2rem, 4vw, 4rem)
}

.course-grid article:nth-child(2) {
    background: var(--plum);
    color: #fff
}

.course-grid h3 {
    font-size: 2.2rem;
    margin: 2rem 0 1rem
}

.course-grid p {
    color: var(--muted)
}

.course-grid article:nth-child(2) p {
    color: rgba(255, 255, 255, .7)
}

.launch-note {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem !important;
    padding: 2rem;
    background: #e9e0d2
}

.launch-note p {
    margin: 0;
    max-width: 650px
}

.content-highlight {
    padding: clamp(5rem, 9vw, 8rem) max(calc((100vw - var(--max))/2), 5vw);
    background: var(--plum-2);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 8vw;
    align-items: center
}

.content-highlight h2 {
    font-size: clamp(3rem, 5vw, 5rem)
}

.content-highlight p {
    color: rgba(255, 255, 255, .72);
    font-size: 1.08rem
}

.topics {
    padding: clamp(2rem, 4vw, 3.2rem);
    border: 1px solid rgba(200, 162, 93, .45);
    background: rgba(255, 255, 255, .05)
}

.topics>span {
    color: var(--gold-light);
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase
}

.topics li {
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .82)
}

.final-cta {
    text-align: center;
    padding: clamp(6rem, 12vw, 11rem) 5vw;
    background: linear-gradient(rgba(31, 15, 42, .96), rgba(31, 15, 42, .96)), url('./assets/hero-horse.png') center/cover;
    color: #fff
}

.final-cta h2 {
    font-size: clamp(3rem, 5.6vw, 5.5rem);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto
}

.final-cta>p:not(.eyebrow) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, .72)
}

.final-cta .actions {
    justify-content: center;
    margin-top: 2.2rem
}

footer {
    background: #140b1a;
    color: rgba(255, 255, 255, .68);
    padding: 4rem max(calc((100vw - var(--max))/2), 5vw);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    font-size: .8rem
}

.footer-brand {
    display: block
}

.footer-brand small {
    display: block;
    max-width: 330px;
    margin-top: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none
}

footer>div:not(.brand) {
    display: flex;
    flex-direction: column;
    gap: .55rem
}

footer strong {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    margin-bottom: .5rem
}

@media(max-width:1100px) {
    .site-header nav {
        gap: .7rem;
        font-size: .72rem
    }

    .site-header {
        padding-left: 24px;
        padding-right: 24px
    }

    .brand img {
        width: 132px
    }
}

@media(max-width:900px) {
    .menu-toggle {
        display: block
    }

    .site-header nav {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: rgba(25, 11, 34, .98);
        padding: 1.4rem 24px;
        flex-direction: column;
        align-items: stretch;
        font-size: .9rem
    }

    .site-header nav.open {
        display: flex
    }

    .site-header nav a {
        padding: .35rem 0
    }

    .nav-cta {
        padding: .65rem 1rem
    }

    .audience-grid,
    .consultation-layout,
    .method,
    .case-layout,
    .expert-grid,
    .course-grid,
    .content-highlight,
    footer {
        grid-template-columns: 1fr
    }

    .method {
        gap: 3rem
    }

    .case-photo {
        margin: 0 auto 1rem
    }

    .consultation-close,
    .launch-note,
    .professional-consulting {
        align-items: flex-start;
        flex-direction: column
    }

    .consultation-close .button,
    .launch-note .button,
    .professional-consulting .button {
        width: 100%
    }

    .hero {
        min-height: 780px
    }

    .hero-content {
        padding-top: 110px
    }

    .scroll-cue {
        display: none
    }
}

@media(max-width:520px) {
    .hero h1 {
        font-size: 2.75rem
    }

    .actions {
        flex-direction: column
    }

    .actions .button {
        width: 100%
    }

    .audience-card h3 {
        font-size: 2rem
    }

    .method strong {
        font-size: 1.35rem
    }

    .section {
        padding-left: 20px;
        padding-right: 20px
    }
}

/* ===== Última publicação do blog ===== */
.latest-post {
    padding: clamp(3rem, 8vw, 6rem) 1.25rem;
    background: var(--cream);
}

.latest-post-inner {
    max-width: var(--max);
    margin-inline: auto;
}

.latest-post-heading {
    margin-bottom: 2rem;
}

.latest-post-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.latest-post-heading h2 {
    margin: 0;
    color: var(--plum);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

/* ----- Card ----- */
.post-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(36, 19, 47, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px -25px rgba(36, 19, 47, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px -25px rgba(36, 19, 47, 0.45);
}

.post-card-media {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, var(--plum), var(--plum-2));
    overflow: hidden;
}

.latest-post-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .latest-post-image {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    background: var(--plum);
    color: var(--gold-light);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.post-card-date {
    color: var(--muted);
    font-size: 0.875rem;
}

.post-card-title {
    margin: 0;
    color: var(--plum);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.2;
}

.post-card-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    --webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: var(--gold);
    color: var(--plum);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, gap 0.25s ease;
}

.post-card-link:hover,
.post-card-link:focus-visible {
    background: var(--gold-light);
    gap: 0.95rem;
}

.post-card-link:focus-visible {
    outline: 3px solid var(--plum-2);
    outline-offset: 3px;
}

/* ----- Sem imagem destacada ----- */
.post-card--no-image {
    grid-template-columns: 1fr;
    border-left: 6px solid var(--gold);
}

/* ----- Carregando (skeleton) ----- */
.post-card--loading .post-card-media,
.skeleton-line {
    background: linear-gradient(90deg, #ece6dc 25%, #f6f2eb 50%, #ece6dc 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-line {
    height: 1rem;
    border-radius: 6px;
}

.skeleton-line--title {
    height: 2rem;
    width: 85%;
}

.skeleton-line--short {
    width: 55%;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* ----- Mensagem de erro / vazio ----- */
.latest-post-status {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--gold);
    border-radius: 16px;
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .post-card {
        grid-template-columns: 1fr;
    }

    .post-card-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .post-card-link {
        align-self: stretch;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .post-card,
    .latest-post-image,
    .post-card-link {
        transition: none;
    }

    .post-card--loading .post-card-media,
    .skeleton-line {
        animation: none;
    }
}