*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #2c2420;
    --color-warm-brown: #5c4a3a;
    --color-gold: #c8956c;
    --color-gold-light: #ddb892;
    --color-cream: #faf6f1;
    --color-white: #ffffff;
    --color-text: #3a3330;
    --color-text-light: #6b5e56;
    --color-overlay: rgba(44, 36, 32, 0.55);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    padding: 0.6rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease, filter 0.4s ease;
}

.nav.scrolled .nav-logo img {
    height: 40px;
    filter: none;
}

.nav-logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.02em;
    transition: color 0.4s ease;
}

.nav.scrolled .nav-logo span {
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: background 0.3s ease;
}

.nav.scrolled .nav-hamburger span {
    background: var(--color-dark);
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('IMG_4913.jpeg') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 36, 32, 0.3) 0%,
        rgba(44, 36, 32, 0.45) 50%,
        rgba(44, 36, 32, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-affiliation {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--color-gold-light);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll .arrow {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-scroll .arrow::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ── Sections Common ── */
.section {
    padding: 6rem 2rem;
}

.section-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.2;
}

.section-divider {
    width: 50px;
    height: 1.5px;
    background: var(--color-gold);
    margin: 1.5rem auto 0;
}

/* ── About ── */
.about {
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -1.5rem;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-gold-light);
    z-index: -1;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.about-role {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ── Services ── */
.services {
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #ebe5df;
    transition: all 0.35s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(92, 74, 58, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ── Parallax Banner ── */
.parallax-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('IMG_5083.jpeg') center/cover no-repeat fixed;
    overflow: hidden;
}

.parallax-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    max-width: 700px;
}

.parallax-content blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-white);
    font-weight: 400;
    line-height: 1.5;
}

/* ── Gallery ── */
.gallery {
    background: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--tall img {
    height: 100%;
}

.gallery-item:not(.gallery-item--tall) img {
    height: 280px;
}

/* ── Horses ── */
.horses {
    background: var(--color-white);
}

.horses-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.horses-image img {
    width: 100%;
    object-fit: contain;
}

.horses-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.horses-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ── Contact ── */
.contact {
    background: var(--color-dark);
    color: var(--color-white);
}

.contact .section-label {
    color: var(--color-gold-light);
}

.contact .section-title {
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--color-gold-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-gold-light);
}

.contact-form {
    display: block;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-fields[hidden],
.contact-form-success[hidden],
.contact-form-error[hidden] {
    display: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-gold);
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.contact-form button[disabled] {
    opacity: 0.5;
    cursor: wait;
}

.contact-form-success,
.contact-form-error {
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    border: 1px solid;
}

.contact-form-success {
    color: var(--color-gold-light);
    background: rgba(221, 184, 146, 0.08);
    border-color: rgba(221, 184, 146, 0.35);
}

.contact-form-error {
    color: #ffc1c1;
    background: rgba(200, 80, 80, 0.1);
    border-color: rgba(220, 120, 120, 0.35);
}

.contact-form-field-error {
    color: #ffc1c1;
    font-size: 0.78rem;
    margin-top: -0.5rem;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: rgba(220, 120, 120, 0.55);
}

/* ── Certifications ── */
.certifications {
    background: var(--color-cream);
}

.cert-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.cert-lockup-center img {
    height: 150px;
    width: auto;
    display: block;
}

.cert-lockup-path img {
    height: 110px;
    width: auto;
    display: block;
}

.cert-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cert-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-badge {
    text-align: center;
    max-width: 280px;
}

.cert-badge h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.cert-badge .cert-abbr {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cert-badge p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.cert-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.2rem;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cert-link:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ── Footer Logo Lockup (in dark contact section) ── */
.footer-lockup {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.25rem;
}

.footer-lockup-center img {
    height: 85px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-lockup-path img {
    height: 83px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-lockup a:hover img {
    opacity: 1;
}

/* ── Footer ── */
.footer {
    background: #1e1a17;
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        height: 400px;
    }

    .horses-feature {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item:not(.gallery-item--tall) img,
    .gallery-item--tall img {
        height: 250px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-size: 0.9rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:not(.gallery-item--tall) img,
    .gallery-item--tall img {
        height: 220px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .parallax-banner {
        background-attachment: scroll;
        height: 300px;
    }

    .cert-lockup-center img {
        height: 140px;
    }

    .cert-lockup-path img {
        height: 80px;
    }
}
