/* ─── NTEC Theme — Main Stylesheet ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --green:    #1c3a2e;
  --green-d:  #142a21;
  --green-l:  #2a5240;
  --gold:     #c9a84c;
  --gold-l:   #e0c06a;
  --cream:    #f7f3ee;
  --cream-d:  #ede7df;
  --white:    #ffffff;
  --gray:     #6b7280;
  --gray-l:   #f3f4f6;
  --text:     #1a1a1a;
  --radius:   10px;
  --shadow:   0 4px 20px rgba(0,0,0,.10);
  --shadow-md:0 8px 32px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--green-d);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-badge {
  background: var(--gold);
  color: var(--green-d);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: .35rem .7rem;
  border-radius: 6px;
  letter-spacing: .05em;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.2; font-family: 'Cormorant Garamond', serif; }
.logo-text span { color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--gold); }
.nav-quiz {
  color: var(--gold) !important;
  font-weight: 600 !important;
}
.nav-quiz:hover { color: var(--gold-l) !important; }
.btn-nav {
  background: var(--gold);
  color: var(--green-d) !important;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--gold-l) !important; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--green-d); padding: 2.5rem 0 1.5rem; margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .85rem; line-height: 1.5; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,.4); font-size: .78rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--green-d); }
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-l); }
.btn-sm { padding: .5rem 1.1rem; font-size: .83rem; }

/* ─── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-d) 0%, var(--green) 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: .75rem;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ─── Section ────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 2.2rem; color: var(--green); }
.section-head p { color: var(--gray); margin-top: .5rem; font-size: 1rem; }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); }

/* ─── Horses: Filter Bar ────────────────────────────────────── */
.horses-filter-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--cream-d);
  padding: 1rem 0;
  position: sticky;
  top: 60px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.horses-filter-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-pill {
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 500;
  border: 2px solid var(--cream-d);
  color: var(--gray);
  background: var(--white);
  transition: all .2s;
}
.filter-pill:hover { border-color: var(--green); color: var(--green); }
.filter-pill.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ─── Horses: Listing Grid ──────────────────────────────────── */
.horses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  padding: 2rem 0;
}
.horse-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.horse-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.horse-card.hidden { display: none; }

/* Card photo */
.horse-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-d);
}
.horse-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.horse-card:hover .horse-card-photo img { transform: scale(1.04); }
.horse-card-nophoto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .88rem;
}

/* Status badge */
.horse-status-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--gold);
  color: var(--green-d);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
  z-index: 5;
}
.horse-status-badge.sold     { background: #6b7280; color: #fff; }
.horse-status-badge.reserved { background: #8b5cf6; color: #fff; }

/* Card info */
.horse-card-info {
  padding: 1.1rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.horse-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .25rem;
  line-height: 1.2;
}
.horse-card-meta {
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: .2rem;
}
.horse-card-sub {
  font-size: .82rem;
  color: var(--green-l);
  font-weight: 500;
  margin-bottom: .9rem;
}
.horse-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--cream-d);
}
.horse-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}
.horse-card-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  transition: color .2s;
}
.horse-card:hover .horse-card-cta { color: var(--green); }

.horses-empty { text-align:center; padding:3rem 0; color:var(--gray); }
.horses-empty a { color:var(--green); text-decoration:underline; }

/* ─── Single Horse: Detail Page ─────────────────────────────── */
.breadcrumb-bar {
  background: var(--cream);
  padding: .7rem 0;
  font-size: .82rem;
  color: var(--gray);
  border-bottom: 1px solid var(--cream-d);
}
.breadcrumb-bar a { color: var(--green); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { margin: 0 .4rem; color: var(--gray); }

.horse-detail-wrap { padding: 2.5rem 0; }
.horse-detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

/* Gallery main viewer */
.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
}
.gallery-main-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-main-slide.active { opacity: 1; }
.gallery-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-video-wrap {
  width: 100%;
  height: 100%;
}
.gallery-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.gallery-main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
}
.gallery-main-arrow:hover { background: rgba(0,0,0,.8); }
.gallery-main-arrow.prev { left: .75rem; }
.gallery-main-arrow.next { right: .75rem; }

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  padding: 0;
  background: none;
  flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-video-icon { position: relative; width: 100%; height: 100%; }
.thumb-video-icon img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .9rem;
}

/* Info panel */
.horse-detail-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.horse-detail-name {
  font-size: 2.4rem;
  color: var(--green);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.horse-detail-specs {
  border: 1px solid var(--cream-d);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--cream-d);
  font-size: .88rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--cream); }
.spec-row-label { color: var(--gray); font-weight: 500; }
.spec-row-value { color: var(--text); font-weight: 600; text-align: right; }
.horse-detail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.25rem;
}
.horse-detail-cta { margin-bottom: 1.5rem; }
.horse-detail-desc {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-d);
  max-width: 780px;
}
.horse-detail-desc h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.horse-detail-desc p {
  font-size: .95rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: .75rem;
}

/* Inquiry section */
.horse-inquiry-section { padding: 3.5rem 0; }
.horse-inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.horse-inquiry-left h2 { font-size: 2rem; color: var(--green); margin: .5rem 0 1rem; }
.horse-inquiry-left p { color: var(--gray); font-size: .92rem; line-height: 1.7; margin-bottom: 1.25rem; }
.inquiry-bullets { display: flex; flex-direction: column; gap: .5rem; }
.inquiry-bullets li { font-size: .88rem; color: var(--green-l); font-weight: 500; }
.inquiry-form { background: var(--white); padding: 2rem; border-radius: 14px; box-shadow: var(--shadow); }
.inquiry-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inquiry-form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.inquiry-form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gray); }
.inquiry-form-group input,
.inquiry-form-group select,
.inquiry-form-group textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border .2s;
}
.inquiry-form-group input:focus,
.inquiry-form-group select:focus,
.inquiry-form-group textarea:focus { border-color: var(--green); }

/* ─── Horse Finder Form ─────────────────────────────────────── */
.horse-finder {
  background: var(--green);
  padding: 3rem 0;
  color: #fff;
}
.horse-finder .section-head h2 { color: #fff; }
.horse-finder .section-head p { color: rgba(255,255,255,.7); }

.finder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.5rem;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.finder-group { display: flex; flex-direction: column; gap: .4rem; }
.finder-group label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.finder-group input,
.finder-group select,
.finder-group textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border .2s;
}
.finder-group input::placeholder,
.finder-group textarea::placeholder { color: rgba(255,255,255,.4); }
.finder-group input:focus,
.finder-group select:focus,
.finder-group textarea:focus { border-color: var(--gold); }
.finder-group select option { background: var(--green-d); color: #fff; }
.finder-group.full { grid-column: 1 / -1; }

/* Discipline checkboxes */
.discipline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  grid-column: 1 / -1;
}
.discipline-checks label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,.85);
  cursor: pointer;
}
.discipline-checks input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); }

.finder-submit { text-align: center; }

/* ─── Inquire Modal ──────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
}
.modal-box h3 { font-size: 1.6rem; color: var(--green); margin-bottom: .25rem; }
.modal-box p.modal-sub { font-size: .88rem; color: var(--gray); margin-bottom: 1.5rem; }
.modal-form-group { margin-bottom: 1rem; }
.modal-form-group label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gray); margin-bottom: .4rem; }
.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border .2s;
}
.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus { border-color: var(--green); }
.modal-horse-name {
  font-size: .88rem;
  color: var(--green);
  font-weight: 600;
  background: var(--cream);
  border-radius: 6px;
  padding: .5rem .8rem;
  margin-bottom: 1.25rem;
}

/* ─── Sold Horses ────────────────────────────────────────────── */
.sold-horses { padding: 3.5rem 0; background: var(--cream); }
.sold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.sold-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  position: relative;
}
.sold-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: grayscale(30%); }
.sold-card-info { padding: .75rem 1rem .9rem; }
.sold-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--green); }
.sold-card-detail { font-size: .75rem; color: var(--gray); margin-top: .15rem; }
.sold-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 50px;
}
.view-archive-card {
  background: var(--green);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  min-height: 140px;
}
.view-archive-card span { color: rgba(255,255,255,.7); font-size: .8rem; }
.view-archive-card strong { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; display: block; margin-top: .3rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media(max-width: 1100px) {
  .horse-detail-grid { grid-template-columns: 1fr 360px; gap: 2rem; }
}
@media(max-width: 900px) {
  .horses-grid { grid-template-columns: 1fr 1fr; }
  .finder-grid { grid-template-columns: 1fr 1fr; }
  .horse-detail-grid { grid-template-columns: 1fr; }
  .horse-inquiry-wrap { grid-template-columns: 1fr; }
}
@media(max-width: 640px) {
  .site-nav { display: none; }
  .horses-grid { grid-template-columns: 1fr; }
  .finder-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2rem; }
  .sold-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .horse-detail-name { font-size: 1.9rem; }
  .inquiry-form-row { grid-template-columns: 1fr; }
  .inquiry-form { padding: 1.5rem 1.25rem; }
  .horses-filter-wrap { position: static; box-shadow: none; }
}
