/* ============================================================
   IRIS PHYSIO — Sitewide Visual Redesign
   Originally built for the homepage from the Stitch export
   (stitch-reference/screen.png), now applied across the whole
   site. Scoped under body.site-theme. Content, headings, and
   copy are untouched — this file only restyles layout, colour,
   spacing and imagery.
============================================================ */

.site-theme {
  --sr-bg:         #ECE5F0;
  --sr-bg-alt:     #F6F1F8;
  --sr-plum:       #381F3C;
  --sr-plum-hover: #2a1730;
  --sr-rose:       #B98089;
  --sr-rose-hover: #a06d76;
  --sr-icon-bg:    #ECE4F1;
  --sr-border:     #ded0e3;
  --iris-flower-img: url("../images/iris-decor.png");
  background: var(--sr-bg);

  /* Remap the site's original design-system tokens so every page
     that already styles itself with var(--purple) etc. (inline
     styles and base style.css alike) picks up the new palette
     automatically, with no per-page markup changes needed. */
  --purple:       var(--sr-plum);
  --purple-dark:  var(--sr-plum-hover);
  --purple-xdark: var(--sr-plum);
  --bg:           var(--sr-bg);
  --bg-soft:      var(--sr-bg-alt);
  --lavender-pale: var(--sr-icon-bg);
  --border:       var(--sr-border);
  --shadow-sm: 0 2px 8px rgba(56,31,60,0.08);
  --shadow-md: 0 4px 24px rgba(56,31,60,0.13);
  --shadow-lg: 0 10px 48px rgba(56,31,60,0.2);
}

/* ── Remove decorative dash/dot ornament from section tags ── */
.site-theme .section-tag { color: var(--text-muted); font-weight: 600; }
.site-theme .section-tag::before,
.site-theme .section-tag::after { display: none; }
.site-theme .divider { display: none; }

/* ── Buttons: plum primary + rose secondary ───────────────── */
.site-theme .btn-primary {
  background: var(--sr-plum);
  box-shadow: none;
  border-radius: 9px;
}
.site-theme .btn-primary:hover { background: var(--sr-plum-hover); box-shadow: none; transform: translateY(-1px); }
.site-theme .btn-rose {
  background: var(--sr-rose);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 9px;
}
.site-theme .btn-rose:hover { background: var(--sr-rose-hover); transform: translateY(-1px); }
.site-theme .btn-secondary { color: var(--sr-plum); border-color: var(--sr-plum); border-radius: 9px; }
.site-theme .btn-secondary:hover { background: var(--sr-plum); color: #fff; }

/* ── Navbar: blends with page background ──────────────────── */
.site-theme .navbar {
  background: rgba(236,229,240,0.9);
  border-bottom: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-theme .navbar.scrolled { box-shadow: 0 4px 24px rgba(56,31,60,0.1); }
.site-theme .navbar-inner { height: 96px; }
.site-theme .navbar-logo-img { height: 96px; }
.site-theme .mobile-menu { top: 96px; max-height: calc(100vh - 96px); background: var(--sr-bg); }
.site-theme .nav-item > a { font-weight: 500; }
.site-theme .nav-item > a:hover,
.site-theme .nav-item:hover > a { color: var(--sr-plum); background: rgba(56,31,60,0.06); }
.site-theme .nav-item > a.active { color: var(--sr-plum); background: transparent; font-weight: 600; }
.site-theme .dropdown { background: #fff; }
.site-theme .dropdown a:hover { color: var(--sr-plum); background: var(--sr-icon-bg); }

.site-theme .navbar-social { gap: 10px; margin-right: 6px; }
.site-theme .navbar-social a {
  background: transparent;
  border: 1px solid var(--sr-plum);
  color: var(--sr-plum);
}
.site-theme .navbar-social a:hover { background: var(--sr-plum); color: #fff; }
.site-theme .navbar-cta { margin-left: 28px; }

@media (max-width: 768px) {
  .site-theme .navbar-inner { height: 64px; }
  .site-theme .navbar-logo-img { height: 48px; }
  .site-theme .mobile-menu { top: 64px; max-height: calc(100vh - 64px); }
}

/* ── Hero: light split layout with real treatment photo ───── */
.site-theme .hero {
  min-height: 0;
  padding: 148px 28px 96px;
  background: var(--sr-bg);
}
.site-theme .hero::before { display: none; }
.site-theme .hero::after {
  content: '';
  position: absolute;
  top: 100px;
  right: 52%;
  width: 200px;
  height: 400px;
}
.site-theme .hero::after { background-image: var(--iris-flower-img); background-repeat: no-repeat; background-size: contain; opacity: 0.18; pointer-events: none; }
.site-theme .hero-inner { gap: 56px; align-items: start; }
.site-theme .hero h1 { color: var(--sr-plum); }
.site-theme .hero h1 em { color: var(--sr-plum); font-style: normal; }
.site-theme .hero .section-tag { color: var(--text-muted); }
.site-theme .hero .lead { color: var(--text-muted); }
.site-theme .hero-proof { border-top-color: var(--sr-border); }
.site-theme .hero-proof-num { color: var(--sr-plum); }
.site-theme .hero-proof-label { color: var(--text-muted); }

.site-theme .hero-visual { width: 100%; }
.site-theme .hero-image-wrap {
  width: 100%;
  aspect-ratio: 6/5.6;
  background: var(--sr-icon-bg);
  box-shadow: none;
  border: none;
  border-radius: 10px;
}
.site-theme .hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .site-theme .hero { padding: 88px 20px 64px; }
}

/* ── About: keep content, tone background to new palette ──── */
.site-theme .section-bg { background: var(--sr-bg-alt); }
.site-theme .home-about-badge { color: var(--sr-plum); border: 1px solid var(--sr-border); }
.site-theme .home-about-list li span { color: var(--sr-plum); }
.site-theme .home-img-grid { box-shadow: 0 10px 30px rgba(56,31,60,0.12); }

/* ── Specialists: light photo cards, name-first ordering ──── */
.site-theme .physio-card {
  background: #fff;
  border: 1px solid var(--sr-border);
  box-shadow: 0 2px 14px rgba(56,31,60,0.07);
  border-radius: 14px;
}
.site-theme .physio-card:hover { box-shadow: 0 8px 28px rgba(56,31,60,0.14); }
.site-theme .physio-card-img { height: auto; aspect-ratio: 3 / 4; }
.site-theme .physio-card-img img { object-position: top; }
.site-theme .physio-name { font-size: 1.05rem; margin-bottom: 4px; color: var(--sr-plum); }
.site-theme .physio-role { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 2px; }
.site-theme .physio-location { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.site-theme .physio-card-cta {
  background: var(--sr-icon-bg);
  border: 1px solid var(--sr-border);
}
.site-theme .physio-cta-plus { font-size: 2rem; color: var(--sr-plum); margin-bottom: 16px; }
.site-theme .physio-cta-title { margin-bottom: 12px; color: var(--sr-plum); }

section[aria-labelledby="team-heading"].site-theme,
.site-theme section[aria-labelledby="team-heading"] { position: relative; overflow: hidden; }
.site-theme section[aria-labelledby="team-heading"]::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 4%;
  width: 150px;
  height: 300px;
  background-image: var(--iris-flower-img);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
}

/* ── Services: icon-topped card grid ───────────────────────── */
.site-theme .services-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.site-theme .service-icon-card {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(56,31,60,0.07);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
}
.site-theme .service-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(56,31,60,0.14);
  border-color: var(--sr-rose);
}
.site-theme .service-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sr-icon-bg);
  color: var(--sr-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.site-theme .service-icon-badge svg { width: 34px; height: 34px; }
.site-theme .service-icon-tag {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  margin-top: 6px;
}
.site-theme .service-icon-title {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: var(--sr-plum);
}
.site-theme .service-icon-link { display: none; }

.site-theme section[aria-labelledby="services-heading"] { position: relative; overflow: hidden; }
.site-theme section[aria-labelledby="services-heading"]::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 150px;
  height: 300px;
  background-image: var(--iris-flower-img);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  transform: scaleX(-1);
}

@media (max-width: 1024px) {
  .site-theme .services-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .site-theme .services-icon-grid { grid-template-columns: 1fr; }
}

/* ── Stats bar & CTA banner: plum accent ──────────────────── */
.site-theme .stats-bar { background: var(--sr-plum); }
.site-theme .cta-banner { background: var(--sr-plum); }
.site-theme .cta-banner::before { background: radial-gradient(circle, rgba(185,128,137,0.18) 0%, transparent 65%); }
.site-theme .cta-banner h2 em { color: var(--sr-rose); font-style: normal; }
.site-theme .cta-banner .section-tag { background: transparent !important; color: var(--sr-rose) !important; }
.site-theme .cta-actions .btn-ghost { border-color: rgba(255,255,255,0.5); }
.site-theme .btn-light { color: var(--sr-plum); }
.site-theme .btn-light:hover { background: var(--sr-bg-alt); }

/* ── Testimonials: soften corners to match new rhythm ─────── */
.site-theme .testimonial-card {
  border-radius: 14px;
  border-color: var(--sr-border);
}
.site-theme .testimonial-avatar { background: var(--sr-plum); }
.site-theme .testimonial-name { color: var(--sr-plum); }

/* ── Blog cards: photo top + dark plum content panel ──────── */
.site-theme .blog-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 6px 24px rgba(56,31,60,0.14);
}
.site-theme .blog-card:hover { box-shadow: 0 10px 32px rgba(56,31,60,0.2); border-color: transparent; }
.site-theme .blog-card-image { height: 180px; background: var(--sr-icon-bg); }
.site-theme .blog-card-body { background: var(--sr-plum); }
.site-theme .blog-tag { background: rgba(255,255,255,0.14); color: #fff; }
.site-theme .blog-date { color: rgba(255,255,255,0.5); }
.site-theme .blog-card-body h3 { color: #fff; }
.site-theme .blog-card-body p { color: rgba(255,255,255,0.62); }
.site-theme .blog-read-more { color: var(--sr-rose); text-decoration: underline; }

.site-theme section[aria-labelledby="blog-heading"] { position: relative; overflow: hidden; }
.site-theme section[aria-labelledby="blog-heading"]::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 300px;
  background-image: var(--iris-flower-img);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
}

/* ── Footer: light layout matching reference ──────────────── */
.site-theme .footer {
  background: var(--sr-bg);
  border-top: 1px solid var(--sr-border);
  padding: 48px 0 28px;
}
.site-theme .footer-grid { margin-bottom: 32px; gap: 40px; }
/* Some page templates put .footer-grid/.footer-bottom directly inside
   .footer without a .container wrapper, leaving them flush against the
   viewport edge. Give them the same max-width/centring/padding as
   .container would, but only when they're a direct child of .footer
   (pages that DO have the .container wrapper are unaffected). */
.site-theme .footer > .footer-grid,
.site-theme .footer > .footer-bottom {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}
.site-theme .footer-logo { width: 190px; margin-bottom: 12px; filter: none !important; }
.site-theme .footer-brand-desc { color: var(--text-muted); }
.site-theme .footer-social { margin-top: 16px; }
.site-theme .footer-social a {
  background: transparent;
  border: 1px solid var(--sr-plum);
  color: var(--sr-plum);
}
.site-theme .footer-social a:hover { background: var(--sr-plum); color: #fff; }
.site-theme .footer-col h5 {
  color: var(--sr-plum);
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.site-theme .footer-col a { color: var(--text-muted); }
.site-theme .footer-col a:hover { color: var(--sr-plum); }
.site-theme .footer-contact-item { color: var(--text-muted); }
.site-theme .footer-contact-item a { color: var(--text-muted) !important; }
.site-theme .footer-bottom { border-top-color: var(--sr-border); }
.site-theme .footer-bottom p { color: var(--text-light); }
.site-theme .footer-bottom-links a { color: var(--text-light); }
.site-theme .footer-bottom-links a:hover { color: var(--sr-plum); }

/* ============================================================
   Sitewide inner-page components (about, services, team, booking,
   contact, blog posts, location pages, Iris Health). These pages
   share the navbar/footer/button/card system above and only need
   their own page-level components covered here.
============================================================ */

/* ── Inner-page hero band ─────────────────────────────────── */
.site-theme .page-hero { padding: 152px 28px 72px; }
.site-theme .page-hero-sm { padding: 140px 28px 48px; }
.site-theme .page-hero::before { background: radial-gradient(circle, rgba(185,128,137,0.18) 0%, transparent 65%); }
.site-theme .page-hero .section-tag { color: var(--text-muted); }
@media (max-width: 768px) {
  .site-theme .page-hero { padding: 96px 20px 56px; }
  .site-theme .page-hero-sm { padding: 84px 20px 32px; }
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.site-theme .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.site-theme .breadcrumb a { color: var(--text-muted); font-weight: 500; }
.site-theme .breadcrumb a:hover { color: var(--sr-plum); }
.site-theme .breadcrumb .sep { color: var(--text-light); }

/* ── Generic content card (about mission/values, team quals) ─ */
.site-theme .card {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.site-theme .card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.site-theme .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sr-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.site-theme .card h3, .site-theme .card h4 { color: var(--sr-plum); }

/* ── Blog article template ────────────────────────────────── */
.site-theme .blog-article { max-width: 760px; margin: 0 auto; }
.site-theme .blog-article-header { text-align: center; margin-bottom: 40px; }
.site-theme .blog-article-header .blog-card-meta { justify-content: center !important; }
.site-theme .blog-article-body h2 { margin-top: 40px; margin-bottom: 16px; }
.site-theme .blog-article-body h3 { margin-top: 28px; margin-bottom: 12px; color: var(--sr-plum); }
.site-theme .blog-article-body p { margin-bottom: 4px; }
.site-theme .article-list { list-style: none; padding: 0; margin: 20px 0; }
.site-theme .article-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--sr-border);
  color: var(--text);
}
.site-theme .article-list li:last-child { border-bottom: none; }
.site-theme .article-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sr-rose);
}
.site-theme .blog-cta-box {
  background: var(--sr-plum);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 36px 0;
  text-align: center;
}
.site-theme .blog-cta-box h3 { color: #fff; margin-bottom: 12px; }
.site-theme .blog-cta-box p { color: rgba(255,255,255,0.72); margin-bottom: 20px; }

/* ── Service condition/surgery lists (services, pre-op pages) ─ */
.site-theme .service-list { list-style: none; padding: 0; margin: 16px 0 0; }
.site-theme .service-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--sr-border);
  color: var(--text);
  line-height: 1.5;
}
.site-theme .service-list li:last-child { border-bottom: none; }
.site-theme .service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sr-rose);
}
.site-theme .blog-cta-box .btn-primary { background: #fff; color: var(--sr-plum); }
.site-theme .blog-cta-box .btn-primary:hover { background: var(--sr-icon-bg); }
.site-theme .blog-references { border-top-color: var(--sr-border) !important; }
.site-theme .blog-article-footer { margin-top: 32px; }

/* ── Footer brand variant (used on most inner pages) ──────── */
.site-theme .footer-brand { max-width: 280px; }
.site-theme .footer-logo-img { width: 190px; margin-bottom: 14px; filter: none !important; }
.site-theme .footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }
.site-theme .footer-brand .footer-social { margin-top: 16px; }

/* ── Team page cards ───────────────────────────────────────── */
.site-theme .team-card {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-theme .team-card-photo { aspect-ratio: 3/4; overflow: hidden; }
.site-theme .team-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.site-theme .team-card-body { padding: 24px 26px 28px; }
.site-theme .team-card-body h3 { color: var(--sr-plum); margin-bottom: 4px; }
.site-theme .team-card-role { display: block; font-size: 0.85rem; font-weight: 600; color: var(--sr-rose-hover); margin-bottom: 14px; }
.site-theme .team-card-body p { font-size: 0.925rem; }
.site-theme .team-card-quals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.site-theme .team-card-quals span {
  background: var(--sr-icon-bg);
  color: var(--sr-plum);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Form card (booking / contact) ────────────────────────── */
.site-theme .form-card {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 44px 40px;
}
.site-theme .form-group input:focus,
.site-theme .form-group select:focus,
.site-theme .form-group textarea:focus { border-color: var(--sr-rose); }
@media (max-width: 640px) {
  .site-theme .form-card { padding: 28px 22px; }
}

/* ── Steps list (booking page sidebar) ────────────────────── */
.site-theme .steps-list { display: flex; flex-direction: column; gap: 24px; }
.site-theme .step-list-item { display: flex; gap: 16px; align-items: flex-start; }
.site-theme .step-list-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sr-plum);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-theme .step-list-item h4 { margin-bottom: 4px; font-size: 1rem; }
.site-theme .step-list-item p { font-size: 0.9rem; margin: 0; }

/* ── Contact info rows (contact page) ─────────────────────── */
.site-theme .contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.site-theme .contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sr-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.site-theme .contact-info-item h4 { margin-bottom: 4px; }
.site-theme .contact-info-item p { margin: 0; font-size: 0.925rem; }

/* ── Blog article hero image ──────────────────────────────── */
.site-theme .blog-hero-image {
  margin: 24px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.site-theme .blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
