/* TLC Farms Equine Rehabilitation - static recreation of the old Twenty Seventeen (dark) theme */
:root {
  --bg: #222;
  --bg-head: #262626;
  --bg-soft: #2e2e2e;
  --line: #3a3a3a;
  --text: #eee;
  --muted: #bdbdbd;
  --link: #f0f0f1;
  --cyan: #0693e3;
  --wide: 1100px;
  --read: 760px;
  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: #fff; text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 800; margin: 1.6em 0 .6em; }
h1 { font-size: 2rem; } h2 { font-size: 1.55rem; } h3 { font-size: 1.25rem; } h5 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
p, ul, ol, figure { margin: 0 0 1.4em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em auto; max-width: var(--read); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--bg-head); border-bottom: 1px solid var(--line); }
.brand { max-width: var(--wide); margin: 0 auto; padding: 28px 20px; display: flex; align-items: center; gap: 28px; position: relative; }
.logo img { width: 92px; height: 92px; }
.site-title { margin: 0; font-size: clamp(1.25rem, 3.3vw, 2.15rem); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.site-title a { color: #fff; text-decoration: none; }
.main-nav { border-top: 1px solid var(--line); background: var(--bg); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
#primary-menu { max-width: var(--wide); margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; justify-content: center; }
#primary-menu > li { position: relative; margin: 0; }
#primary-menu a { display: block; padding: 16px 16px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; }
#primary-menu a:hover, #primary-menu a:focus, #primary-menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--cyan); }
.has-sub > a::after { content: ""; display: inline-block; margin-left: .55em; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sub-toggle { display: none; }
.sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 290px; background: var(--bg-head); border: 1px solid var(--line); z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.sub-menu a { padding: 12px 16px; text-transform: none; letter-spacing: .02em; font-size: .9rem; font-weight: 400; border-bottom: 1px solid var(--line); }
.sub-menu li:last-child a { border-bottom: 0; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: #fff; padding: 12px 14px; border-radius: 4px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }

/* ---------- hero + titles ---------- */
.hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.12) 70%); z-index: 2; pointer-events: none; }
.hero-in { position: relative; z-index: 3; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 20px 38px; }
.hero .entry-title { margin: 0; font-size: clamp(1.8rem, 5vw, 3.1rem); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-home { min-height: clamp(500px, 76vh, 700px); align-items: center; text-align: center; }
.hero-home::after { background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,.45)); }
.hero-home .hero-in { padding: 60px 20px; }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-home .eyebrow { margin: 0 0 1.1rem; font-size: .85rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.hero-title { margin: 0 auto; max-width: 1040px; font-size: clamp(1.7rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: .05em; text-transform: uppercase; font-weight: 800; text-shadow: 0 3px 16px rgba(0,0,0,.75); }
.hero-title strong + br { display: none; }
.hero-title strong { display: block; color: #fff; font-size: .62em; letter-spacing: .3em; margin-bottom: .45em; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 2.2rem 0 0; }
.btn { display: inline-block; padding: .95em 2.2em; background: var(--cyan); color: #fff; border: 2px solid var(--cyan); text-decoration: none; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; border-radius: 2px; transition: background .15s, color .15s, border-color .15s; }
.btn:hover, .btn:focus { background: #fff; border-color: #fff; color: #000; }
.btn-ghost { background: rgba(0,0,0,.35); border-color: #fff; }
.container { max-width: var(--wide); margin: 0 auto; padding: 36px 20px 64px; }
.entry-title.plain { max-width: var(--read); margin: 0 auto 1.4rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }

/* ---------- content ---------- */
.entry-content > * { max-width: var(--read); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .slider, .entry-content > .wp-block-gallery, .entry-content > .wp-block-columns.alignwide, .entry-content > .t-slider { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; }
.has-text-align-center { text-align: center; }
.entry-content h2 { margin-top: 1.4em; }
.has-vivid-cyan-blue-background-color { background: var(--cyan); }
.has-black-color { color: #000; } .has-white-color { color: #fff; }
.has-medium-font-size { font-size: 1.35rem; }
.entry-content > h1.has-vivid-cyan-blue-background-color, .entry-content > h2.has-vivid-cyan-blue-background-color, .entry-content > h3.has-vivid-cyan-blue-background-color { padding: .9em 1em; border-radius: 3px; max-width: var(--wide); }
.entry-content > h1.has-vivid-cyan-blue-background-color { font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin-top: 0; }
.entry-content > p.has-vivid-cyan-blue-background-color { padding: .75em 1em; border-radius: 3px; text-align: center; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-top: 2em; }
.entry-content > p.has-vivid-cyan-blue-background-color a { color: #000; text-decoration: none; display: block; }
.wp-block-columns { display: flex; gap: 32px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-image img { margin: 0 auto; border-radius: 2px; }
.wp-block-image figcaption, .wp-element-caption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .6em; }
.wp-block-image.single { max-width: var(--read); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.wp-block-gallery .wp-block-image { margin: 0; }
.wp-block-gallery a { display: block; }
.wp-block-gallery img { width: 100%; aspect-ratio: var(--ar, auto); object-fit: cover; }
.wp-block-gallery.cols-3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.wp-block-gallery.cols-3 > .wp-block-image { flex: 0 1 calc((100% - 28px) / 3); }
.wp-block-gallery.cols-3 img { aspect-ratio: 4 / 3; }
.wp-block-gallery a:hover img { opacity: .88; }
.wp-block-buttons { display: flex; justify-content: center; }
.entry-content > .wp-block-group { background: var(--bg-soft); padding: 28px 16px; margin-top: 2em; margin-bottom: 2em; }
.wp-block-button__link { display: inline-block; padding: .8em 2em; border: 2px solid #fff; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; border-radius: 2px; transition: background .15s, color .15s; }
.wp-block-button__link:hover { background: #fff; color: #000; }
.wp-block-separator { max-width: var(--read); }

/* ---------- sliders ---------- */
.slider { position: relative; background: #111; margin-bottom: 2em; }
.slides { position: relative; height: clamp(300px, 56vw, 560px); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: center; justify-content: center; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.s-prev, .s-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 64px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.s-prev { left: 0; } .s-next { right: 0; }
.s-prev:hover, .s-next:hover { background: rgba(0,0,0,.75); }
.s-dots { display: flex; gap: 8px; justify-content: center; padding: 12px 0; background: #111; flex-wrap: wrap; }
.s-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid #aaa; background: transparent; cursor: pointer; }
.s-dots button[aria-current="true"] { background: var(--cyan); border-color: var(--cyan); }

/* ---------- testimonials ---------- */
.testimonial { display: flex; gap: 22px; align-items: flex-start; background: var(--bg-soft); border-left: 4px solid var(--cyan); padding: 22px 24px; border-radius: 2px; }
.t-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; }
.t-title { margin: 0 0 .5em; font-size: 1.2rem; }
.t-body p { margin-bottom: .9em; }
.t-by { margin: 0; color: var(--muted); }
.stars { color: #f5b301; letter-spacing: .1em; margin-left: .4em; }
.t-list { display: grid; gap: 22px; max-width: var(--read); margin: 0 auto; }
.t-slider { position: relative; margin-bottom: 1em; }
.t-slides { position: relative; }
.t-slide { display: block; margin-bottom: 20px; }
.js .t-slider .t-slide { display: none; margin-bottom: 0; }
.js .t-slider .t-slide.is-active { display: block; }
.t-controls { display: none; justify-content: center; gap: 14px; margin-top: 14px; }
.js .t-controls { display: flex; }
.t-controls button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--bg-soft); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.t-controls button:hover { border-color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-head); border-top: 1px solid var(--line); padding: 44px 20px 24px; color: var(--muted); font-size: .95rem; }
.foot-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.copy { max-width: var(--wide); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.28); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .brand { padding: 18px 16px; gap: 16px; }
  .logo img { width: 64px; height: 64px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  #primary-menu { display: block; padding: 0; }
  #primary-menu > li { border-top: 1px solid var(--line); position: relative; }
  #primary-menu a { padding: 15px 20px; }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 56px; height: 49px; background: transparent; border: 0; border-left: 1px solid var(--line); cursor: pointer; }
  .sub-toggle::after { content: ""; display: block; margin: 0 auto; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-2px); }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .sub-menu { position: static; display: none; min-width: 0; border: 0; box-shadow: none; background: #1b1b1b; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { padding-left: 36px; }
  .hero { min-height: 300px; }
  .hero-home { min-height: 520px; }
  .hero-home .eyebrow { letter-spacing: .18em; font-size: .75rem; }
  .hero-title strong { letter-spacing: .2em; }
  .wp-block-columns { flex-direction: column; gap: 0; }
  .wp-block-column[style*="flex-basis:20%"] { display: none; }
  .wp-block-gallery.cols-3 > .wp-block-image { flex-basis: calc((100% - 14px) / 2); }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .testimonial { flex-direction: column; align-items: center; text-align: left; }
  body { font-size: 16px; }
}
@media (max-width: 480px) { .wp-block-gallery.cols-3 > .wp-block-image { flex-basis: 100%; } .wp-block-gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .slide, .hero-slide, }
