/* ========================================
   ADALARD MANOR
   Main Stylesheet
========================================= */

:root {
    --navy: #17283d;
    --navy-dark: #0f1c2b;
    --steel: #8fa9bd;
    --steel-light: #d8e1e8;

    --base: #f1f0eb;
    --base-light: #f8f7f3;
    --panel: #e8ebec;

    --charcoal: #30353a;
    --muted: #626b72;
    --border: #c7cdd1;
    --white: #ffffff;

    --shadow: 0 10px 28px rgba(23, 40, 61, 0.12);
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--base-light);
    color: var(--charcoal);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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


/* ---------- GENERAL ---------- */

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.section-label {
    margin-bottom: 8px;
    color: #59748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.heading-rule {
    width: 60px;
    height: 2px;
    margin: 18px auto 28px;
    background: var(--steel);
}


/* ========================================
   HEADER
========================================= */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--base-light);
    border-bottom: 1px solid var(--border);
}

.header-top {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 16px;
    padding-bottom: 25px;
}

.site-name {
    display: inline-flex;
    flex-direction: column;
    color: var(--navy);
}

.site-name-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.site-name-sub {
    margin-top: 7px;
    color: #6f8495;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.location {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.location-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--steel);
    font-size: 0.65rem;
    border: 2px solid var(--steel);
    border-radius: 50%;
}

.main-nav {
    position: absolute;
    left: 50%;
    bottom: -27px;
    transform: translateX(-50%);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(700px, calc(100% - 40px));
    background: rgba(248, 247, 243, 0.98);
    border: 1px solid rgba(143, 169, 189, 0.25);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.main-nav a {
    position: relative;
    padding: 7px 34px;
    color: #56616b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.main-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background: #d5d8da;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy);
}


/* ========================================
   HERO
========================================= */

.hero {
    padding: 120px 0 90px;
    background:
        linear-gradient(
            135deg,
            var(--navy-dark) 0%,
            var(--navy) 58%,
            #29415a 100%
        );
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 70px;
}

.hero-copy {
    max-width: 660px;
    color: var(--base-light);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #b9cad7;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.06;
}

.hero p {
    max-width: 600px;
    margin: 0 0 30px;
    color: #e7edf1;
    font-size: 1.08rem;
    line-height: 1.85;
}

.primary-button,
.stall-button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: Georgia, "Times New Roman", serif;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.primary-button {
    background: var(--steel);
    color: var(--navy-dark);
}

.primary-button:hover,
.stall-button:hover {
    transform: translateY(-1px);
}

.hero-mark {
    justify-self: center;
    color: rgba(216, 225, 232, 0.18);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 18vw, 14rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    user-select: none;
}


/* ========================================
   STATS
========================================= */

.stats {
    background: var(--base);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 55px 0;
}

.stat {
    position: relative;
    min-width: 190px;
    text-align: center;
    padding: 0 34px;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: var(--border);
}

.stat-number {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.7rem;
    line-height: 1;
}

.stat-number::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    margin: 10px auto 8px;
    background: var(--steel);
}

.stat-label {
    color: #536d84;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}


/* ========================================
   WELCOME
========================================= */

.welcome {
    background:
        linear-gradient(
            180deg,
            var(--base-light) 0%,
            #ffffff 58%,
            #edf0f2 100%
        );
}

.welcome-inner {
    max-width: 850px;
    padding: 75px 0 80px;
    text-align: center;
}

.welcome h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.welcome p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #555f67;
    font-size: 1.02rem;
    line-height: 1.9;
}


/* ========================================
   PAGE BANNER
========================================= */

.page-banner {
    background:
        linear-gradient(
            180deg,
            var(--base-light) 0%,
            var(--base) 100%
        );
    border-bottom: 1px solid var(--border);
}

.page-banner-inner {
    padding: 90px 0 70px;
    text-align: center;
}

.page-banner h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 400;
}

.page-banner p {
    max-width: 690px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}


/* ========================================
   ABOUT
========================================= */

.about-section {
    padding: 90px 0;
    background: var(--base-light);
}

.about-owner {
    background: #e9edef;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 75px;
}

.owner-grid {
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
}

.about-copy h2 {
    margin: 0 0 24px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
}

.about-copy p {
    margin: 0 0 18px;
    color: #555f67;
    line-height: 1.9;
}

.about-panel {
    padding: 36px;
    background: var(--navy);
    color: var(--base-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-panel.subtle {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dfe5e9;
    box-shadow: none;
}

.about-panel-mark {
    margin-bottom: 26px;
    color: rgba(216, 225, 232, 0.45);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    line-height: 1;
}

.about-panel.subtle .about-panel-mark {
    margin: 0;
    color: rgba(23, 40, 61, 0.14);
    font-size: 8rem;
}

.about-panel dl {
    margin: 0;
}

.about-panel dl > div {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-panel dt {
    color: #b8c9d7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-panel dd {
    margin: 3px 0 0;
}


/* ========================================
   BREED DIRECTORY
========================================= */

.breed-directory {
    padding: 26px 0;
    background: var(--navy);
}

.breed-directory-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.breed-directory label {
    color: #dce5eb;
    font-family: Georgia, "Times New Roman", serif;
}

.breed-directory select {
    min-width: 260px;
    padding: 10px 38px 10px 13px;
    background: var(--base-light);
    color: var(--navy);
    border: 1px solid #aebcc7;
    border-radius: 6px;
    font: inherit;
}


/* ========================================
   HORSE SECTIONS
========================================= */

.horse-section {
    padding: 85px 0;
    background: var(--base-light);
}

.horse-section-alt {
    background: #e9edef;
}

.horse-section-header {
    max-width: 700px;
    margin-bottom: 42px;
}

.horse-section-header h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
}

.horse-section-header p {
    margin: 0;
    color: var(--muted);
}

.horse-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.horse-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(143, 169, 189, 0.28);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(23, 40, 61, 0.05);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.horse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(143, 169, 189, 0.5);
}

.horse-card h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 400;
}

.horse-meta {
    margin-bottom: 24px;
    color: #59748b;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.horse-details {
    margin: 0 0 28px;
}

.horse-details > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(199, 205, 209, 0.6);
}

.horse-details dt {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
}

.horse-details dd {
    margin: 0;
    color: #586168;
    font-size: 0.9rem;
}

.stall-button {
    align-self: flex-start;
    margin-top: auto;
    background: var(--navy);
    color: var(--base-light);
}

.stall-button:hover {
    background: #3e5c76;
}

.back-link {
    margin-top: 36px;
    text-align: right;
}

.back-link a {
    color: #59748b;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--navy);
}


/* ========================================
   CONTACT
========================================= */

.contact-section {
    padding: 90px 0;
    background: var(--base-light);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 80px;
}

.contact-card h2 {
    margin: 0 0 30px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
}

.contact-list {
    border-top: 1px solid var(--border);
}

.contact-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    color: var(--navy);
    font-weight: 700;
}

.contact-value {
    color: #59626a;
}

.contact-value a {
    color: #59748b;
}

.contact-value a:hover {
    color: var(--navy);
}

.contact-mark {
    color: rgba(23, 40, 61, 0.10);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 18vw, 13rem);
    line-height: 1;
    text-align: center;
    user-select: none;
}


/* ========================================
   FOOTER
========================================= */

.site-footer {
    background: #dfe5e9;
    border-top: 1px solid #c5ced4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 80px;
    padding-top: 65px;
    padding-bottom: 55px;
}

.footer-name {
    margin-bottom: 16px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.disclaimer {
    max-width: 380px;
    margin: 0;
    color: #59636b;
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-section h3 {
    position: relative;
    margin: 6px 0 26px;
    padding-bottom: 10px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55px;
    height: 2px;
    background: var(--steel);
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a,
.stable-info a {
    color: #506b81;
}

.footer-section a:hover,
.stable-info a:hover {
    color: var(--navy);
}

.stable-info {
    margin: 0;
}

.stable-info > div {
    margin-bottom: 18px;
}

.stable-info dt {
    color: var(--navy);
    font-weight: 700;
}

.stable-info dd {
    margin: 0;
    color: #59636b;
    font-size: 0.92rem;
}

.footer-bottom {
    border-top: 1px solid #b5c0c7;
    padding: 20px 0 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #69737b;
    font-size: 0.86rem;
}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {
    .hero-inner {
        grid-template-columns: 1fr 0.5fr;
        gap: 35px;
    }

    .horse-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .about-grid,
    .owner-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .owner-grid .about-copy {
        order: 1;
    }

    .owner-grid .about-panel {
        order: 2;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .header-top {
        min-height: auto;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0 50px;
        text-align: center;
    }

    .site-name {
        align-items: center;
    }

    .main-nav {
        bottom: -26px;
        width: calc(100% - 30px);
        justify-content: space-around;
    }

    .main-nav a {
        padding: 7px 10px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 100px 0 65px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-mark {
        display: none;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 30px 0;
        padding: 45px 0;
    }

    .stat {
        min-width: 50%;
        padding: 10px;
    }

    .stat::after {
        display: none;
    }

    .page-banner-inner {
        padding: 75px 0 55px;
    }

    .about-section,
    .horse-section,
    .contact-section {
        padding: 65px 0;
    }

    .breed-directory-inner {
        flex-direction: column;
        gap: 8px;
    }

    .breed-directory select {
        width: min(100%, 360px);
        min-width: 0;
    }

    .horse-grid {
        grid-template-columns: 1fr;
    }

    .horse-card {
        min-height: auto;
    }

    .contact-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0;
    }

    .footer-brand {
        grid-column: auto;
    }
}
