/*
Theme Name: Yspeerd
Description: Een frisse website voor dressuur, fokkerij en sportpaarden.
Version: 0.5.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: yspeerd
*/
:root{--ink:#27373e;--brand:#4a595f;--dark:#34464e;--pale:#edf1f2;--line:#d9e0e2;--accent:#c6d5dc}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;color:var(--ink);background:white;font:1rem/1.7 Arial,Helvetica,sans-serif}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.12}h1{font-size:clamp(2.5rem,5vw,5.8rem);letter-spacing:-.035em}h2{font-size:clamp(2rem,3.2vw,3.4rem);letter-spacing:-.025em}h3{font-size:1.65rem}a{color:inherit;text-underline-offset:5px}a:hover{text-decoration:underline}button,input{font:inherit}img{display:block;max-width:100%;height:auto}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #286fa1;outline-offset:4px}.site-header{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1.5rem 5vw;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;flex-direction:column;line-height:1.2}.brand strong{font-family:Georgia,serif;font-size:2.25rem;letter-spacing:.04em}.brand span{font-size:.75rem;letter-spacing:.08em;margin-top:.4rem}.brand img{max-width:240px;max-height:80px;width:auto}nav ul{list-style:none;display:flex;gap:2rem;margin:0;padding:0}nav a{text-decoration:none;font-size:.9rem}.account-link{font-size:.9rem;border:1px solid var(--line);padding:.55rem 1.1rem;text-decoration:none}.hero{display:grid;grid-template-columns:1fr 1.08fr;background:var(--brand);color:#fff;min-height:650px}.hero-copy{padding:5.5rem 5vw;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.eyebrow{display:block;text-transform:uppercase;font-size:.78rem;letter-spacing:.15em;font-weight:600;margin-bottom:1.6rem}.hero p{font-size:1.1rem;max-width:390px;line-height:1.8;color:#eef2f3}.button{display:inline-block;border:1px solid var(--brand);background:var(--brand);color:white;padding:.9rem 1.5rem;text-decoration:none;cursor:pointer;line-height:1.4}.button.light{background:white;color:var(--dark);border-color:white}.button:hover{filter:brightness(.93);text-decoration:none}.hero-note{margin-top:3.8rem;font-size:.78rem;letter-spacing:.1em;color:#dde4e7}.hero-image{overflow:hidden;background:#30404a}.hero-image img{width:100%;height:100%;object-fit:cover}.section{padding:6rem 7vw}.intro{display:grid;grid-template-columns:1fr 2fr;gap:3rem}.intro>div{max-width:760px}.intro p{max-width:630px}.horse-section{background:var(--pale)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:2rem;margin-bottom:2rem}.section-heading h2{margin:0}.text-link{font-size:.95rem}.horse-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem}.horse-card{background:#fff}.horse-card>a{display:block;text-decoration:none;height:100%}.horse-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.horse-card-body{padding:1.6rem}.horse-card .eyebrow{margin-bottom:.8rem}.horse-card h3{margin-bottom:.6rem}.horse-card p{font-size:.9rem}.profile-link{font-size:.9rem;border-bottom:1px solid var(--brand)}.market-note{margin:2.5rem 0 0;color:#4a595f;font-size:.9rem}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3rem;margin-top:3rem}.service-grid article{border-top:1px solid var(--line);padding-top:1.5rem}.service-grid span{font-size:.85rem;color:var(--brand)}.service-grid h3{margin:1.5rem 0 1rem}.site-footer{background:var(--dark);color:#fff;padding:5rem 7vw;display:grid;grid-template-columns:1.6fr 1fr;gap:4rem}.site-footer h2{max-width:570px}.site-footer strong{font:2rem Georgia,serif}.site-footer p{color:#e1e8eb}.copyright{background:var(--dark);color:#d1dde2;border-top:1px solid #71818a;padding:1.5rem 7vw;font-size:.8rem}.page-heading{margin-bottom:3rem;max-width:850px}.horse-detail{display:grid;grid-template-columns:1.2fr 1fr;gap:4rem;margin-top:2rem}.horse-facts h1{font-size:clamp(2.5rem,4vw,4rem)}.horse-main-image{width:100%;height:auto}.horse-description{margin-top:2rem}.horse-facts dl{margin:2rem 0}.horse-facts dl div{display:grid;grid-template-columns:1fr 1.3fr;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--line)}dd{margin:0}dt{color:#57686f}.price-panel{padding:2rem;background:var(--pale);margin-bottom:2rem}.price-panel .eyebrow{margin-bottom:.8rem}.horse-price{font:2rem Georgia,serif;margin:0}.video-gate{margin-top:2rem;background:var(--pale);padding:1.5rem}.video-gate p{font-size:.9rem;margin:1rem 0 0}.video-gate iframe,.horse-video{width:100%;aspect-ratio:16/9;height:auto;border:0}.empty-state{grid-column:1/-1;border:1px solid var(--line);padding:3rem;background:white;max-width:100%}.empty-state p{max-width:650px;margin:0}.photo-empty{min-height:260px;background:var(--pale);display:grid;place-items:center;color:var(--brand);border-bottom:1px solid var(--line)}.reading{max-width:1000px;margin:auto;min-height:50vh}.skip-link{position:absolute;top:-100px;left:1rem;background:white;color:var(--ink);padding:1rem;z-index:99}.skip-link:focus{top:1rem}.wp-block-gallery{margin:2rem 0}.wp-block-image img{height:auto}.pagination{margin-top:3rem}@media(max-width:1000px){.site-header{flex-wrap:wrap;gap:1rem}nav{order:3;width:100%}nav ul{gap:1.5rem;flex-wrap:wrap}.hero{min-height:520px}.hero-copy{padding:4rem 5vw}.section{padding:4rem 5vw}.horse-detail{gap:2rem}.horse-grid{gap:1rem}.brand strong{font-size:1.9rem}}@media(max-width:650px){.hero{grid-template-columns:1fr}.hero-copy{padding:3.5rem 6vw}.hero-image{height:330px}.hero-note{margin-top:2rem}.hero h1{font-size:3.25rem}.intro,.horse-detail,.site-footer{grid-template-columns:1fr;gap:2rem}.horse-grid,.service-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:1rem}.section{padding:3.5rem 6vw}.site-footer{padding:3.5rem 6vw}.hero .eyebrow{margin-bottom:1.2rem}nav ul{gap:.8rem 1.2rem}.horse-facts{order:-1}.brand span{max-width:220px;font-size:.7rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Original supplied logo sheets displayed through a frame; assets remain unchanged. */
.logo-window{display:block!important;position:relative;width:140px;height:104px;overflow:hidden;flex-shrink:0;margin:0!important;line-height:0;background:#fff}
.logo-window .logo-sheet,.brand .logo-window .logo-sheet{position:absolute;width:360px!important;height:auto!important;max-width:none!important;max-height:none!important;left:-46px;top:-46px}
.logo-window.logo-inverse{background:#4a595f;width:140px;height:112px;margin-bottom:1.5rem!important}
.logo-window.logo-inverse .logo-sheet{left:-38px;top:-66px}
.site-footer{background:#4a595f}.copyright{background:#4a595f}

.ysp-application{max-width:600px}.ysp-application label{display:block;margin-bottom:.4rem}.ysp-application input:not([type="hidden"]){width:100%;padding:.8rem;border:1px solid var(--line);background:#fff;border-radius:0}

.stable-photo{grid-column:1/-1;margin:1rem 0 0;overflow:hidden}.stable-photo img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center 45%}@media(max-width:650px){.stable-photo img{aspect-ratio:1/1}}

/* Match the stable photo to the adjacent copy block. */
.intro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem 3rem;align-items:stretch}
.intro>.eyebrow{grid-column:1/-1;margin-bottom:0}
.intro>.stable-copy{grid-column:1;min-width:0;max-width:none}
.intro>.stable-copy p:last-child{margin-bottom:0}
.intro>.stable-photo{grid-column:2;position:relative;min-width:0;min-height:0;margin:0;align-self:stretch}
.intro>.stable-photo img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 45%}
@media(max-width:650px){.intro{grid-template-columns:1fr;gap:1.5rem}.intro>.stable-copy,.intro>.stable-photo{grid-column:1}.intro>.stable-photo img{position:static;height:auto;aspect-ratio:1/1}}

/* Consistent rectangular thumbnails, independent of upload dimensions. */
.horse-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),320px));justify-content:start;align-items:start}
.horse-card{width:100%;max-width:320px;min-width:0;overflow:hidden}
.horse-card-photo{width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--pale);position:relative}
.horse-card .horse-card-photo img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto;object-fit:cover;object-position:center;margin:0}
.horse-card-photo>.photo-empty{width:100%;height:100%;min-height:0;border:0}
@media(max-width:650px){.horse-grid{grid-template-columns:minmax(0,320px)}}

/* The featured image selected in the editor sidebar also stays compact on the horse profile. */
.horse-detail>div{min-width:0}
.horse-detail-photo{width:100%;max-width:320px;aspect-ratio:4/3;overflow:hidden;background:var(--pale)}
.horse-detail-photo>.horse-main-image{display:block;width:100%!important;height:100%!important;max-width:320px!important;max-height:240px!important;object-fit:cover;object-position:center;margin:0}
.horse-detail-photo>.photo-empty{width:100%;height:100%;min-height:0;border:0}

.service-page{max-width:1320px;margin:auto}
.service-content .service-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:center;margin:0 0 4rem}
.service-content .wp-block-column{min-width:0;margin:0}
.service-text p{margin-bottom:0}
.service-picture figure{margin:0}
.service-picture img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center}
.service-contact{padding:3rem;background:var(--pale);margin-top:2rem}
.service-grid h3 a{text-decoration:none}
.service-grid h3 a:hover{text-decoration:underline}
@media(max-width:650px){.service-content .service-row{grid-template-columns:1fr;gap:1.5rem;margin-bottom:3rem}.service-content .service-text{order:-1}.service-contact{padding:2rem}}

.corien-biography{padding-top:3rem;margin-top:2rem;border-top:1px solid var(--line)}.corien-biography li{margin-bottom:1rem}.biography-sources{font-size:.875rem;line-height:1.8;color:var(--brand)}

.contact-page{max-width:1440px;margin:auto}.contact-page .page-heading{max-width:860px}
.contact-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:4rem;align-items:center;margin-bottom:4rem}
.contact-stable{margin:0;overflow:hidden}.contact-stable img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center 45%}
.contact-details{min-width:0}.contact-details h2{margin-bottom:2rem}.contact-details dl{margin:0 0 2rem}.contact-details dl>div{border-top:1px solid var(--line);padding:1rem 0;display:grid;grid-template-columns:100px minmax(0,1fr);gap:1.25rem}.contact-details address{font-style:normal}.contact-details dd{overflow-wrap:anywhere}
.contact-route{background:var(--brand);color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:3rem;margin-bottom:3rem}.contact-route .eyebrow{color:#e2eaee}.contact-route p{max-width:420px}.route-form{display:flex;flex-direction:column;gap:.65rem}.route-form label{font-size:1rem}.route-form input:not([type=hidden]),.route-form select{width:100%;min-width:0;background:#fff;color:var(--ink);font:inherit;padding:.75rem;border:1px solid #d0dbe0;border-radius:0}.route-form button{align-self:flex-start;margin-top:.75rem}.route-form p{font-size:.875rem;margin:.5rem 0 0;color:#e1e8eb}
.contact-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.contact-gallery figure{margin:0}.contact-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}.contact-extra{margin-top:3rem}
@media(max-width:850px){.contact-overview{gap:2rem}.contact-route{gap:2rem;padding:2rem}}
@media(max-width:650px){.contact-overview,.contact-route{grid-template-columns:1fr}.contact-overview{margin-bottom:2.5rem}.contact-gallery{grid-template-columns:1fr}.contact-route{padding:1.75rem}.contact-details dl>div{grid-template-columns:90px minmax(0,1fr);gap:.75rem}}

.about-page{max-width:1040px;margin:auto}.about-content{max-width:850px}.about-content h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:3rem 0 1.25rem}.about-content p{font-size:1.0625rem;line-height:1.85;margin-bottom:1.5rem}.about-page>.button{margin-top:1.5rem}

.horse-summary{font-size:1rem!important;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 1.25rem}.horse-facts .horse-summary{margin-top:1.25rem}

.site-header{flex-wrap:wrap}.site-header nav{min-width:0}.site-header nav ul{flex-wrap:wrap;gap:.75rem 1.25rem}
.news-page{max-width:1440px;margin:auto}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;margin-bottom:3rem}.news-card{border:1px solid var(--line);min-width:0}.news-photo{display:block}.news-photo img{width:100%;aspect-ratio:4/3;object-fit:cover}.news-card-copy{padding:1.75rem}.news-card time,.news-article time{font-size:.875rem;color:var(--brand)}.news-card h2{font-size:1.9rem;margin:1rem 0}.news-card h2 a{text-decoration:none}.news-card h2 a:hover{text-decoration:underline}.news-excerpt p{margin-bottom:1.25rem}.news-article{max-width:1040px;margin:auto}.news-article .page-heading{margin-top:2rem}.news-article h1{font-size:clamp(2.5rem,5vw,4.5rem);margin-top:1rem;overflow-wrap:anywhere}.news-featured{margin:2rem 0}.news-featured img{width:100%;height:auto}.news-body{font-size:1.0625rem;line-height:1.85}.news-page .page-numbers{display:inline-block;padding:.5rem .75rem;margin-right:.3rem}.news-page .page-numbers.current{background:var(--pale)}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
@media(max-width:900px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.news-grid{grid-template-columns:1fr}}

.breeding-details{border-top:1px solid var(--line);padding-top:3rem;margin-top:3rem}.breeding-details>p{max-width:850px}.breeding-details>.wp-block-image{margin:2rem 0 3rem}.breeding-details>.wp-block-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.breeding-mares{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-bottom:3rem}.mare-profile{padding:2rem;border:1px solid var(--line);background:var(--pale);min-width:0}.mare-profile h3{font-size:2rem;margin-bottom:1rem}.mare-profile p:last-child{margin-bottom:0}.mare-profile a{overflow-wrap:anywhere}.foal-expectation{padding-top:1rem;border-top:1px solid #c6d5dc}.breeding-photo-row{display:grid!important;grid-template-columns:1fr 1fr;gap:1.5rem!important;margin:0!important}.breeding-photo-row .wp-block-column{min-width:0}.breeding-photo-row figure{margin:0}.breeding-photo-row img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}@media(max-width:650px){.breeding-mares,.breeding-photo-row{grid-template-columns:1fr}.mare-profile{padding:1.5rem}}
