/* Rod Cain Massage Therapy — site styles
   Colors and fonts carried over from the previous WordPress theme. */
:root {
  --ink: #333334;
  --ink-soft: #555558;
  --brown: #5E3C30;
  --terracotta: #B66341;
  --terracotta-dark: #9A5233;
  --sage: #82A489;
  --sage-dark: #5F8467;
  --green: #2E8B57;          /* logo green */
  --paper: #FFFFFF;
  --paper-warm: #F7F3EF;
  --footer: #444444;
  --line: #E4DDD6;
  --head: "Oswald", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: .02em;
}
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 22px; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
section { padding: 64px 0; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px;
}
.brand { display: block; padding: 17px 0; } /* ~20% of the logo height above and below */
.brand img { width: 190px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .08em;
  font-size: 15px; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--terracotta); }
.nav a.book, .btn {
  background: var(--terracotta); color: #fff !important; margin-left: 6px;
}
.nav a.book:hover, .btn:hover { background: var(--ink); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  min-width: 48px; min-height: 44px; font-family: var(--head); font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav a.book { margin: 12px 0 0; text-align: center; border: 0; }
  .brand { padding: 14px 0; }
  .brand img { width: 160px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--head);
  text-transform: uppercase; letter-spacing: .1em; font-size: 16px;
  padding: 14px 28px; border-radius: 4px; margin: 0;
}
.btn.ghost { background: transparent; color: var(--terracotta) !important; border: 2px solid var(--terracotta); }
.btn.ghost:hover { background: var(--terracotta); color: #fff !important; }

/* ---------- Home slider ---------- */
.slider { position: relative; background: var(--brown); aspect-ratio: 1440 / 486; overflow: hidden; }
.slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.slider img.on { opacity: 1; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.slider-dots button {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.slider-dots button::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.2);
}
.slider-dots button[aria-current="true"]::before { background: #fff; }
@media (max-width: 700px) { .slider-dots { bottom: 2px; } .slider-dots button { width: 26px; height: 26px; } }

/* ---------- Bands ---------- */
.band { background: var(--brown); color: #fff; padding: 18px 0; text-align: center; }
.band h1 { margin: 0; font-weight: 300; }
.band.sage { background: var(--sage); }
.warm { background: var(--paper-warm); }

.intro-line {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .12em;
  color: var(--terracotta); font-size: 17px; margin: 14px 0 24px;
}
.intro-line .sep { color: var(--line); margin: 0 6px; }
.intro-line .it { white-space: nowrap; }
@media (max-width: 600px) {
  .intro-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .intro-line .sep { display: none; }
}
.lead { max-width: 760px; margin: 0 auto; font-size: 18px; color: var(--ink-soft); }
.lead.wide { max-width: none; }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 36px; }
.fact { background: #2E7D4F; color: #fff; border-radius: 14px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: center; }
.fact strong { display: block; font-family: var(--head); font-weight: 400; font-size: 26px; color: #fff; line-height: 1.2; margin-bottom: 4px; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-bottom: 3px solid var(--terracotta);
  border-radius: 6px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
}
.svc h3 { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 18px;
}
.price-list li:last-child { border-bottom: 0; }
.price-list b { font-family: var(--head); font-weight: 400; color: var(--brown); font-size: 22px; }
.svc p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.svc .btn { align-self: flex-start; margin-top: auto; }
.note { font-size: 15px; color: var(--ink-soft); margin-top: 20px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Conditions ---------- */
.conditions { columns: 3 220px; column-gap: 32px; margin: 28px auto 0; padding: 0; list-style: none; text-align: center; }
.conditions li { padding: 4px 0; break-inside: avoid; }

/* ---------- Cards / news ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.card {
  background: #fff; padding: 22px; box-shadow: 0 0 21px rgba(0,0,0,.08);
  border-bottom: 2px solid var(--terracotta); border-radius: 4px;
}
.card .cat { text-transform: uppercase; color: var(--sage-dark); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.card h3 { font-size: 20px; text-transform: uppercase; margin: 8px 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.card .date { font-style: italic; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; align-items: center; }
.split img { border-radius: 6px; }
.split.top { align-items: start; }
.split.top h2 { margin-top: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.gallery figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.quote {
  margin: 0; background: #fff; border-left: 0; padding: 26px 28px;
  box-shadow: 0 0 21px rgba(0,0,0,.07); border-radius: 4px; border-top: 3px solid var(--sage);
}
.quote p { margin: 0 0 12px; font-size: 19px; font-style: italic; }
.quote cite { font-style: normal; font-family: var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--brown); font-size: 15px; }
.stars { color: #B98A2E; letter-spacing: 3px; font-size: 15px; display: block; margin-bottom: 8px; }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Scrolling reviews (homepage) ---------- */
.reviews-strip { padding-bottom: 40px; }
.rating-line { margin: 0; color: var(--ink-soft); }
.rating-line .stars { display: inline; margin: 0 6px 0 0; }
.ticker { overflow: hidden; margin-top: 24px; padding: 10px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 22px; width: max-content; animation: ticker 75s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker:focus .ticker-track { animation-play-state: paused; }
.tq {
  margin: 0; width: 340px; flex: none; text-align: left; background: #fff;
  border-top: 3px solid var(--sage); border-radius: 4px; padding: 22px 24px;
  box-shadow: 0 0 21px rgba(0,0,0,.08);
}
.tq p { margin: 0 0 10px; font-style: italic; font-size: 17px; }
.tq cite { font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--brown); font-size: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}

/* ---------- Page header ---------- */
.page-head { background: var(--paper-warm); padding: 26px 0 22px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 8px; }
.page-head p { margin: 0 auto; max-width: none; color: var(--ink-soft); }
.page-head p .s { white-space: nowrap; }  /* desktop: keep each sentence on one line */
@media (max-width: 800px) {
  .page-head { padding: 22px 0 18px; }
  .page-head p .s { white-space: normal; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
.contact-grid dl { margin: 0; }
.contact-grid dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); margin-top: 18px; }
.contact-grid dd { margin: 4px 0 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 6px; background: var(--paper-warm); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 48px 0 24px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.site-footer h4, .site-footer .foot-h { font-family: var(--head); font-weight: 400; line-height: 1.25; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; color: #fff; }
.site-footer h4.accent, .site-footer .foot-h.accent { color: #E39A78; }
.site-footer a { color: #A9C7AF; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .small { font-size: 14px; color: #C9C9C9; border-top: 1px solid #5a5a5a; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .slider img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Staff cards ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.staff-card { background: var(--paper-warm); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.staff-card img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center top; display: block; }
.staff-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.staff-card h2 { font-size: 24px; margin: 0 0 4px; color: var(--brown); text-transform: uppercase; letter-spacing: .04em; }
.staff-card .rating { font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; }
.staff-card .rating .stars { display: inline; color: var(--terracotta); font-size: 15px; letter-spacing: 0; margin: 0; }
.staff-card p { font-size: 16px; margin: 0 0 12px; }
.staff-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Blog ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-tools { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.news-tools input { width: 100%; max-width: 560px; font: 400 17px var(--body); padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.news-tools input:focus { outline: 3px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button { font: 400 14px var(--head); text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.news-count { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 16px 0 0; }
.news-cards .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-cards .card .thumb { display: block; aspect-ratio: 16 / 10; background: var(--paper-warm); }
.news-cards .card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cards .card .txt { padding: 18px 20px 22px; }
.news-cards .card p { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }
.news-cards mark { background: #F3E2B8; color: inherit; padding: 0 1px; }
.news-empty { text-align: center; grid-column: 1 / -1; color: var(--ink-soft); }
/* single post */
.post .page-head h1 { text-transform: none; letter-spacing: .01em; }
.post-meta { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 !important; }
.post-meta a { color: var(--sage-dark); text-decoration: none; }
.post-wrap { max-width: 780px; }
.post-img { margin: 0 0 24px; }
.post-img img { width: 100%; height: auto; border-radius: 10px; display: block; }
.post-body h2 { font-size: 24px; margin: 28px 0 10px; }
.post-body h3 { font-size: 20px; margin: 24px 0 8px; }
.post-body li { margin-bottom: 6px; }
.post-note { background: var(--paper-warm); border-left: 4px solid var(--terracotta); padding: 12px 16px; font-size: 15px; border-radius: 4px; margin: 0 0 24px; }
.post-foot { margin-top: 36px; }
.post-img img { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; }

/* ---------- Studio mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 230px; gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: 14px; letter-spacing: .02em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.mosaic .m-large { grid-column: span 2; grid-row: span 2; }
.mosaic .m-wide, .mosaic .m-half { grid-column: span 2; }
@media (max-width: 800px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 170px; gap: 8px; }
  .mosaic .m-large { grid-row: span 2; }
  .mosaic .m-half { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { .mosaic img { transition: none; } }

/* ---------- Studio banner + pair ---------- */
.studio-banner { margin: 0 0 28px; }
.studio-banner img { width: 100%; height: auto; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: center; border-radius: 8px; display: block; }
@media (max-width: 700px) { .studio-banner { margin-bottom: 22px; } .studio-banner img { aspect-ratio: 2 / 1; } }
.studio-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.studio-pair figure { margin: 0; }
.studio-pair img { width: 100%; aspect-ratio: 1 / 0.9; object-fit: cover; border-radius: 8px; display: block; }
.studio-pair figcaption { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: 18px; color: var(--brown); margin-top: 12px; text-align: center; }
@media (max-width: 700px) { .studio-pair { grid-template-columns: 1fr; gap: 22px; } }
/* News page: the whole card is clickable (the headline link stretches over it) */
.news-cards .card, .link-cards .card { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.news-cards .card h3 a::after, .link-cards .card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-cards .card:hover, .link-cards .card:hover { box-shadow: 0 6px 26px rgba(0,0,0,.14); transform: translateY(-2px); }
.news-cards .card:hover h3 a, .link-cards .card:hover h3 a { color: var(--terracotta); }
.news-cards .card:focus-within, .link-cards .card:focus-within { outline: 3px solid var(--sage); outline-offset: 2px; }
.news-cards .card h3 a:focus-visible, .link-cards .card h3 a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .news-cards .card, .link-cards .card { transition: none; } .news-cards .card:hover, .link-cards .card:hover { transform: none; } }

/* Studio page intro text under the photos */
.lead-block { max-width: 820px; margin: 36px auto 0; }
.lead-block p { margin: 0 0 14px; }

/* ---------- Referral partners ---------- */
.partner-cat { font-size: 22px; margin: 36px 0 14px; color: var(--brown); }
.partner-cat:first-child { margin-top: 0; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.partner-card { background: var(--paper-warm); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.partner-card h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.partner-card .pp-cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin: 0 0 6px; }
.partner-card p { font-size: 15px; margin: 0 0 8px; }
.partner-card .pp-who { color: var(--ink-soft); font-style: italic; }
.partner-card .pp-info { color: var(--ink-soft); }
.partner-card .pp-link { font-weight: 700; }
.partner-foot { margin-top: 36px; }

/* Referral partners card on the Staff page */
.partner-promo .promo-top { aspect-ratio: 4 / 4.4; background: var(--brown); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.partner-promo .promo-kicker { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #e8c3b0; margin: 0 0 10px; }
.partner-promo .promo-title { font-family: 'Oswald', sans-serif; font-size: 40px; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; margin: 0; color: #fff; }
