/*
Theme Name: Clinic Care
Theme URI: https://example.com/
Author: Mazi
Author URI: https://example.com/
Description: A specialist healthcare / clinic WordPress theme with a soft, editorial clinical aesthetic. Fully responsive header and footer, Customizer-driven typography and colors, and full Elementor page builder support. Built to be extended with service and post templates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: clinic-care
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* =========================================================
   0. CSS CUSTOM PROPERTIES (overridden inline by Customizer)
   ========================================================= */
:root{
  --font-heading: 'PP Pangaia', Georgia, serif;
  --font-body: 'Hanken Grotesk', Arial, sans-serif;

  --heading-size: 48px;
  --heading-size-mobile: 34px;
  --body-size: 16px;

  --color-primary: #ae2346;   /* buttons, accents */
  --color-brand: #E9516F;     /* logo / raspberry accent */
  --color-link: #ae2346;
  --color-text: #1b1c1c;
  --color-text-secondary: #5f5e5b;
  --color-background: #fbf9f8;
  --color-cream: #F2EDE4;
  --color-surface: #ffffff;
  --color-border: #ece6e6;

  --radius-full: 9999px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container-max: 1200px;
  --gutter: 24px;
}

/* =========================================================
   0b. CUSTOM FONT FACES
   ========================================================= */
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-Ultralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-UltralightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'PP Pangaia';
  src: url('assets/fonts/PPPangaia-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
  width: 100%;
}
img{ max-width: 100%; display: block; }
a{ color: var(--color-link); text-decoration: none; }
a:hover{ opacity: 0.85; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1{ font-size: var(--heading-size); font-weight: 700; letter-spacing: -0.02em; }
h2{ font-size: calc(var(--heading-size) * 0.67); }
h3{ font-size: calc(var(--heading-size) * 0.5); }
p{ margin: 0 0 1em; color: var(--color-text-secondary); }

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--color-brand); color: #fff; }
.btn-primary:hover{ box-shadow: 0 10px 24px -8px rgba(233,81,111,.5); opacity:1; transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: rgba(174,35,70,.3); color: var(--color-text-secondary); }
.btn-outline:hover{ border-color: var(--color-brand); opacity:1; }
.btn-white{ background:#fff; color: var(--color-brand); }
.btn-white:hover{ background:#f3f3f3; opacity:1; }

/* =========================================================
   2. SITE HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 20px rgba(0,0,0,.06); }

.site-header__inner{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.site-logo{ display:flex; flex-direction: column; line-height: 1; min-width: 0; flex-shrink: 1; overflow: hidden; }
.site-logo img{
  max-width: 100%;
  width: var(--logo-width, auto);
  height: var(--logo-height, 48px);
  object-fit: contain;
}
.site-logo__primary{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.site-logo__primary{
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--color-brand);
  letter-spacing: -0.01em;
}
.site-logo__secondary{
  display:flex; align-items:center; gap:4px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-brand);
  opacity:.8;
  margin-top: -2px;
}
.site-logo__secondary svg{ width:16px; height:16px; }

.header-actions{ display:flex; align-items:center; gap: 12px; flex-shrink: 0; }

.icon-btn{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(174,35,70,.3);
  background: transparent;
  color: var(--color-brand);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.icon-btn:hover{ background: rgba(174,35,70,.06); }

.header-cta{
  display:none;
  align-items:center; gap:8px;
  border:1px solid rgba(174,35,70,.3);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 14px; font-weight: 600;
  background: transparent;
}
.header-cta svg{ color: var(--color-brand); width:16px; height:16px; }

.menu-toggle{
  display:flex; align-items:center; gap:8px;
  background: var(--color-brand);
  color:#fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 14px; font-weight: 600;
}
.menu-toggle:hover{ box-shadow: 0 8px 20px -6px rgba(233,81,111,.5); }
.menu-toggle svg{ width:18px; height:18px; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] svg.icon-menu{ display:none; }
.menu-toggle svg.icon-close{ display:none; }
.menu-toggle[aria-expanded="true"] svg.icon-close{ display:block; }

/* Slide down panel */
.site-menu-panel{
  position: absolute;
  top: calc(100% - 10px);
  left: 16px; right: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--color-brand);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  z-index: 90;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.site-menu-panel.is-active{ opacity:1; transform: translateY(0); pointer-events: auto; }

.site-menu-panel__inner{
  padding: 48px;
  color:#fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-menu-panel h2{ color:#fff; font-size: 26px; margin-bottom: 12px; }
.site-menu-panel p{ color: rgba(255,255,255,.8); }
.site-menu-panel .phone-row{ display:flex; align-items:center; gap:16px; margin-top: 20px; }
.site-menu-panel .phone-row .icon-circle{
  width:48px; height:48px; border-radius:50%;
  background:#fff; color: var(--color-brand);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.site-menu-panel .phone-row a{ color:#fff; font-size: 22px; font-weight:700; }
.site-menu-panel .hours{ color: rgba(255,255,255,.7); font-size: 13px; margin-top: 8px; }
.site-menu-panel .panel-actions{ margin-top: 24px; display:flex; flex-direction:column; gap:14px; align-items:flex-start; }

.klarna-badge{
  display:flex; align-items:center; gap:12px;
  background:#fff; border-radius: 16px;
  padding: 10px 18px;
}
.klarna-badge__logo{
  display:flex; align-items:center; justify-content:center;
  background: #ffb3c7; color: #17120f;
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
  padding: 6px 12px; border-radius: 8px;
}
.klarna-badge__text{ color: var(--color-brand); font-size: 13px; font-weight: 600; line-height: 1.3; max-width: 120px; }

.panel-col h3{
  color:#fff; font-family: var(--font-heading);
  font-size: 22px; font-weight: 400; margin-bottom: 14px;
}
.panel-nav ul{ display:flex; flex-direction:column; gap: 4px; }
.panel-nav a{
  display:block; color: rgba(255,255,255,.95);
  padding: 10px 14px; margin-left:-14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-size: 15px;
}
.panel-nav ul li + li a{ margin-top: 2px; }
.panel-nav a:hover{ background: rgba(255,255,255,.18); opacity:1; }
.panel-nav .empty-note{ color: rgba(255,255,255,.6); font-size: 14px; }

@media (max-width: 1024px){
  .site-menu-panel__inner{ grid-template-columns: 1fr 1fr; }
  .panel-help{ grid-column: 1 / -1; }
}
@media (max-width: 782px){
  .site-menu-panel{ max-height: calc(100vh - 70px); }
  .site-menu-panel__inner{ grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .panel-help{ grid-column: auto; }
  .header-cta{ display:none !important; }
}
@media (min-width: 640px){
  .header-cta{ display:flex; }
}
@media (max-width: 480px){
  .site-header__inner{ padding: 12px var(--gutter); gap: 8px; }
  .site-logo__primary{ font-size: 22px; }
  .site-logo__secondary{ font-size: 12px; }
  .site-logo img{ height: min(var(--logo-height, 48px), 36px); }
  .icon-btn{ width: 36px; height: 36px; }
  .menu-toggle{ padding: 8px 16px; gap: 6px; }
  .menu-toggle span{ display: none; }
  .site-menu-panel{ left: 10px; right: 10px; max-height: calc(100vh - 60px); }
  .site-menu-panel__inner{ padding: 24px 18px; }
}

/* =========================================================
   3. SITE FOOTER
   ========================================================= */
.site-footer{
  background: var(--color-brand);
  color: #fff;
  padding-top: 72px;
}
.site-footer a{ color: rgba(255,255,255,.9); }
.site-footer a:hover{ color:#fff; opacity:1; }

.footer-top{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
}

.footer-brand .site-logo__primary,
.footer-brand .site-logo__secondary{ color:#fff; }
.footer-brand p{ color: rgba(255,255,255,.8); margin-top: 16px; max-width: 320px; }

.footer-logo{ display:inline-block; }
.footer-logo img,
.footer-logo .custom-logo{
  max-width: 100%;
  width: var(--footer-logo-width, auto);
  height: var(--footer-logo-height, 48px);
  object-fit: contain;
}

.footer-newsletter-toggle{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-heading);
  font-size: 20px;
  color:#fff;
  margin-top: 24px;
  cursor: pointer;
  background:none; border:none; padding:0;
}
.footer-social{ display:flex; gap:12px; margin-top: 20px; }
.footer-social a{
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.footer-social a:hover{ background:#fff; color: var(--color-brand); }

.footer-col h4{
  color:#fff;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .85;
}
.footer-col ul{ display:flex; flex-direction:column; gap: 10px; }
.footer-col .widget{ margin: 0 0 24px; }
.footer-col .widget:last-child{ margin-bottom:0; }

.footer-contact p{ display:flex; align-items:center; gap:8px; color: rgba(255,255,255,.9); margin-bottom: 10px; }
.footer-contact svg{ width:16px; height:16px; flex-shrink:0; }

.footer-badges{
  display:flex; flex-wrap:wrap; gap:16px;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--gutter) 40px;
}
.footer-badges img{ max-height: 64px; width:auto; border-radius: 8px; }
.footer-badges a{ display:block; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer-bottom__inner{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display:flex; flex-wrap:wrap; gap: 16px;
  align-items:center; justify-content:space-between;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.footer-legal-menu ul{ display:flex; gap: 24px; flex-wrap: wrap; }

/* =========================================================
   4. SEARCH
   ========================================================= */
.header-search{ position: relative; }

.header-search__panel{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background:#fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
  padding: 16px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all .25s ease;
  z-index: 95;
}
.header-search__panel.is-active{ opacity:1; transform: translateY(0); pointer-events: auto; }

.search-form{ display:flex; align-items:center; gap: 10px; }
.search-field{
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(174,35,70,.25);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background:#fff;
}
.search-field:focus{ outline: none; border-color: var(--color-brand); }
.search-submit{
  flex-shrink: 0;
  display:flex; align-items:center; justify-content:center;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
}
.search-submit:hover{ box-shadow: 0 8px 20px -6px rgba(233,81,111,.5); }
.search-submit__text{ display:none; }

.search-results-page{ padding: 48px 0 96px; }
.search-results-card{
  max-width: 760px;
  margin: 0 auto;
  background:#fff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
  padding: 48px;
}
.search-results-title{
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 40px;
  margin-bottom: 28px;
}
.search-results-card .search-form{ margin-bottom: 20px; }
.search-results-card .search-field{ padding: 14px 22px; }
.search-results-card .search-submit{
  width: auto; border-radius: var(--radius-full);
  padding: 14px 32px; gap: 8px;
}
.search-results-card .search-submit svg{ display:none; }
.search-results-card .search-submit__text{ display:inline; font-weight: 600; font-size: 15px; }

.search-results-count{ color: var(--color-text-secondary); font-size: 14px; margin-bottom: 20px; }

.search-results-list{ display:flex; flex-direction:column; }
.search-result{ padding: 18px 0; border-top: 1px solid #f0eeec; }
.search-result:first-child{ border-top: none; padding-top: 0; }
.search-result__title{
  display:block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-text);
  margin-bottom: 4px;
}
.search-result__title:hover{ color: var(--color-brand); }
.search-result__title strong{ font-weight: 700; }
.search-result__excerpt{ color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; }
.search-result__excerpt strong{ font-weight: 700; color: var(--color-text); }

.search-results-empty{ color: var(--color-text-secondary); font-size: 15px; }

@media (max-width: 600px){
  .search-results-card{ padding: 32px 24px; border-radius: 20px; }
  .search-results-title{ font-size: 30px; }
  .search-results-card .search-submit{ padding: 14px 20px; }
}

/* =========================================================
   5. FLOATING ACTIONS (share + back to top)
   ========================================================= */
.floating-actions{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.floating-btn{
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-brand);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(174,35,70,.5);
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.floating-btn:hover{ box-shadow: 0 14px 28px -6px rgba(174,35,70,.6); opacity:1; transform: translateY(-2px); }

.floating-back-to-top{
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
}
.floating-back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-share{ position: relative; display:flex; }

.floating-share__menu{
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.floating-share__menu.is-active{ opacity:1; transform: translateY(0); pointer-events: auto; }

.floating-share__icon{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display:flex; align-items:center; justify-content:center;
}
.floating-share__icon:hover{ background: var(--color-brand); color:#fff; opacity:1; }

.floating-share__tooltip{
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  white-space: nowrap;
  background: #1b1c1c;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.floating-share__tooltip.is-visible{ opacity: 1; transform: translateX(0); }

@media (max-width: 600px){
  .floating-actions{ right: 16px; bottom: 16px; gap: 10px; }
  .floating-btn{ width: 46px; height: 46px; }
  .floating-share__icon{ width: 40px; height: 40px; }
}

/* Floating "Book an appointment" card */
.floating-booking{
  position: fixed;
  z-index: 110;
  width: 210px;
  background: #fbe3d9;
  border-radius: 24px;
  padding: 22px 20px 24px;
  box-shadow: 0 20px 44px rgba(0,0,0,.16);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

/* Bottom corners */
.floating-booking--left,
.floating-booking--right{
  bottom: 24px;
  transform: translateY(16px);
}
.floating-booking--left.is-visible,
.floating-booking--right.is-visible{ transform: translateY(0); }

/* Vertically centered on the side */
.floating-booking--center-left,
.floating-booking--center-right{
  top: 50%;
  transform: translateY(-50%) translateX(var(--float-booking-offset, 0));
}
.floating-booking--center-left{ --float-booking-offset: -16px; }
.floating-booking--center-right{ --float-booking-offset: 16px; }
.floating-booking--center-left.is-visible,
.floating-booking--center-right.is-visible{ transform: translateY(-50%) translateX(0); }

.floating-booking.is-visible{ opacity: 1; }

.floating-booking--left,
.floating-booking--center-left{ left: 24px; }
.floating-booking--right,
.floating-booking--center-right{ right: 24px; }

.floating-booking__close{
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.6);
  color: var(--color-brand);
  display:flex; align-items:center; justify-content:center;
}
.floating-booking__close:hover{ background:#fff; opacity:1; }

.floating-booking__heading{
  font-family: var(--font-heading);
  color: var(--color-brand);
  font-size: 21px;
  line-height: 1.25;
  margin: 6px 30px 18px 0;
}

.floating-booking__btn{
  display:inline-flex; align-items:center; justify-content:center;
  border: 1.5px solid var(--color-brand);
  color: var(--color-brand);
  background: transparent;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
}
.floating-booking__btn:hover{ background: var(--color-brand); color:#fff; opacity:1; }

@media (max-width: 600px){
  .floating-booking{ width: 180px; padding: 18px 16px 20px; }
  .floating-booking__heading{ font-size: 18px; margin-bottom: 14px; }
  .floating-booking--left,
  .floating-booking--center-left{ left: 16px; }
  .floating-booking--right,
  .floating-booking--center-right{ right: 16px; }
  .floating-booking--hide-mobile{ display: none !important; }
}

/* =========================================================
   6. SERVICES (custom post type)
   ========================================================= */
.services-archive__header{ max-width: 640px; margin: 0 auto 40px; text-align: center; }
.services-archive__intro{ color: var(--color-text-secondary); margin-top: 12px; }

.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.service-card{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.service-card__link{ display:block; color: inherit; }
.service-card__link:hover{ opacity: 1; }
.service-card__image{ aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__image img{ width:100%; height:100%; object-fit: cover; display:block; }
.service-card__body{ padding: 22px 24px 26px; }
.service-card__title{ font-family: var(--font-heading); font-size: 22px; color: var(--color-text); margin-bottom: 8px; }
.service-card__excerpt{ color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.service-card__price{ color: var(--color-brand); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.service-card__cta{
  display:inline-flex; align-items:center; gap:6px;
  color: var(--color-brand); font-weight: 600; font-size: 14px;
}

/* Breadcrumb */
.service-breadcrumb{
  display:flex; align-items:center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--color-text-secondary);
  margin-bottom: 28px;
}
.service-breadcrumb a{ color: var(--color-text-secondary); }
.service-breadcrumb a:hover{ color: var(--color-brand); }
.service-breadcrumb .is-current{ color: var(--color-text); font-weight: 600; }

/* Hero */
.service-hero{ max-width: 760px; margin: 0 auto 36px; text-align: center; }
.service-hero__tags{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom: 16px; }
.service-tag{
  display:inline-flex; align-items:center;
  background: rgba(233,81,111,.1);
  color: var(--color-brand);
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.service-hero__title{
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--color-text);
  margin-bottom: 16px;
}
.service-hero__intro{ color: var(--color-text-secondary); font-size: 18px; line-height: 1.6; }

.service-hero__image{
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.1);
}
.service-hero__image img{ width:100%; height:auto; display:block; aspect-ratio: 16/8; object-fit: cover; }

/* Content + sidebar */
.single-service .service-detail{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.service-detail__main .entry-content{ font-size: 17px; line-height: 1.8; color: var(--color-text-secondary); }
.service-detail__main .entry-content h2{ font-family: var(--font-heading); color: var(--color-text); font-size: 28px; margin: 36px 0 16px; }
.service-detail__main .entry-content h3{ font-family: var(--font-heading); color: var(--color-text); font-size: 22px; margin: 28px 0 12px; }
.service-detail__main .entry-content p{ margin-bottom: 18px; }
.service-detail__main .entry-content ul,
.service-detail__main .entry-content ol{ margin: 0 0 18px 20px; }
.service-detail__main .entry-content li{ margin-bottom: 8px; }
.service-detail__main .entry-content img{ border-radius: 20px; }

.service-detail__card{
  background: linear-gradient(160deg, #fbe3d9 0%, #fdeee8 100%);
  border-radius: 28px;
  padding: 32px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 44px rgba(0,0,0,.08);
}

.service-detail__stats{
  display:flex; flex-direction: column; gap: 16px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(174,35,70,.15);
}
.service-detail__stat{ display:flex; align-items:baseline; justify-content:space-between; gap: 12px; }
.service-detail__stat-label{ color: var(--color-text-secondary); font-size: 13px; }
.service-detail__stat-value{ font-family: var(--font-heading); color: var(--color-brand); font-size: 22px; }

.service-detail__cta{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  margin-bottom: 20px;
}
.service-detail__cta svg{ flex-shrink:0; }

.service-detail__phone-row{ display:flex; align-items:center; gap: 14px; }
.service-detail__phone-row .icon-circle{
  width:44px; height:44px; border-radius:50%;
  background:#fff; color: var(--color-brand);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.service-detail__phone-label{ display:block; color: var(--color-text-secondary); font-size: 12px; margin-bottom: 2px; }
.service-detail__phone-number{ display:block; color: var(--color-brand); font-weight: 700; font-size: 16px; }

/* Clinics (custom post type) */
.clinic-detail__row{
  display:flex; align-items:flex-start; gap: 14px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(174,35,70,.15);
}
.clinic-detail__row .icon-circle{
  width:44px; height:44px; border-radius:50%;
  background:#fff; color: var(--color-brand);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.clinic-detail__address,
.clinic-detail__hours{ display:block; color: var(--color-text); font-size: 14px; line-height: 1.5; }
a.clinic-detail__address:hover{ color: var(--color-brand); }
.clinic-detail__cta{ width:100%; display:flex; align-items:center; justify-content:center; gap:8px; margin-top: 4px; }

.clinic-hero__video{ position: relative; }
.clinic-hero__video iframe{
  width:100%; aspect-ratio: 16/9; height:auto; display:block; border:0;
}

.clinic-card__tag{ display:inline-flex; margin-bottom: 10px; }
.clinic-card__address{ display:flex; align-items:flex-start; gap:6px; }
.clinic-card__address svg{ flex-shrink:0; margin-top: 3px; color: var(--color-brand); }

/* Team (custom post type) */
.service-tag--outline{
  background: transparent;
  border: 1.5px solid rgba(233,81,111,.35);
}

.team-grid{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-card{
  background: #fbe3d9;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.team-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.team-card__link{
  display:flex; align-items:center; justify-content:space-between; gap: 32px;
  color: inherit; padding: 40px 44px;
  height: 100%;
}
.team-card__link:hover{ opacity: 1; }

.team-card__content{ flex: 1 1 auto; min-width: 0; }
.team-card__name{ font-family: var(--font-heading); color: var(--color-brand); font-size: 30px; margin-bottom: 8px; }
.team-card__credentials{ color: var(--color-text); font-weight: 700; font-size: 14px; letter-spacing: .01em; margin-bottom: 18px; }
.team-card__interest-label{ color: var(--color-brand); font-weight: 600; font-size: 15px; margin-bottom: 10px; }

.team-card__tags{ display:flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.team-card__tag{
  display:inline-flex; align-items:center;
  background: var(--color-brand);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
}

.team-card__bio{ color: var(--color-text-secondary); font-size: 15px; line-height: 1.7; max-width: 560px; }

.team-card__photo{
  flex: 0 0 auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display:flex; align-items:center; justify-content:center;
}
.team-card__photo img{ width:100%; height:100%; object-fit: cover; display:block; }
.team-card__initials{
  font-family: var(--font-heading);
  font-size: 52px;
  color: var(--color-brand);
}

@media (max-width: 700px){
  .team-card__link{ flex-direction: column-reverse; align-items: flex-start; padding: 28px; gap: 20px; }
  .team-card__photo{ width: 110px; height: 110px; align-self: center; }
  .team-card__name{ font-size: 24px; }
}

/* Single team member */
.team-detail__hero{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto 48px;
}
.team-detail__photo{
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fbe3d9;
}
.team-detail__photo img{ width:100%; height:100%; object-fit: cover; display:block; }

.team-detail__name{ font-family: var(--font-heading); font-size: clamp(28px, 3.5vw, 40px); color: var(--color-text); margin: 6px 0 6px; }
.team-detail__role{ font-size: 17px; color: var(--color-text-secondary); margin-bottom: 4px; }
.team-detail__credentials{ color: var(--color-text-secondary); font-weight: 400; }
.team-detail__reg{ color: var(--color-text-secondary); font-size: 13px; margin-bottom: 16px; }

.team-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(174,35,70,.08);
  color: var(--color-brand);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.team-detail__consult-types{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 22px; }
.team-detail__cta{ display:inline-flex; }

.team-detail__meta-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto 48px;
  padding: 32px;
  background: #fbf3f0;
  border-radius: 24px;
}
.team-detail__meta-col h2{ font-family: var(--font-heading); font-size: 20px; color: var(--color-text); margin-bottom: 14px; }
.team-detail__list{ display:flex; flex-direction:column; gap: 8px; }
.team-detail__list li{
  position: relative;
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
}
.team-detail__list li::before{
  content:'';
  position:absolute; left:0; top:9px;
  width:6px; height:6px; border-radius:50%;
  background: var(--color-brand);
}
.team-detail__tags{ display:flex; gap:8px; flex-wrap:wrap; }

.team-detail__bio{
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.team-detail__cta-footer{
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}

@media (max-width: 700px){
  .team-detail__hero{ grid-template-columns: 1fr; }
  .team-detail__photo{ max-width: 220px; margin: 0 auto; }
  .team-detail__intro{ text-align:center; }
  .team-detail__consult-types{ justify-content:center; }
  .team-detail__meta-grid{ grid-template-columns: 1fr; padding: 24px; }
}

/* Related services */
.related-services{
  max-width: 1080px;
  margin: 80px auto 0;
  padding-top: 56px;
  border-top: 1px solid #f0eeec;
}
.related-services__title{
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 28px;
  text-align: center;
}
.related-services .service-card__body{ padding: 20px 22px 24px; }
.related-services .service-card__title{ font-size: 19px; }

@media (max-width: 900px){
  .single-service .service-detail{ grid-template-columns: 1fr; }
  .service-detail__card{ position: static; }
  .service-hero__image img{ aspect-ratio: 4/3; }
}

/* =========================================================
   6b. BLOG (default posts)
   ========================================================= */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(var(--blog-grid-columns, 3), 1fr);
  gap: var(--blog-grid-gap, 28px);
}

.post-card{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.post-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.post-card__link{ display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__link:hover{ opacity: 1; }
.post-card__image{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fbe3d9;
  display: flex; align-items: center; justify-content: center;
}
.post-card__image img{ width:100%; height:100%; object-fit: cover; display:block; }
.post-card__initials{ font-family: var(--font-heading); font-size: 44px; color: var(--color-brand); }
.post-card__body{ padding: 22px 24px 26px; display:flex; flex-direction:column; flex: 1 1 auto; }
.post-card__meta{ display:flex; align-items:center; gap:10px; margin-bottom: 10px; }
.post-card__category{
  color: var(--color-brand); font-size: 12px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.post-card__date{ color: var(--color-text-secondary); font-size: 12px; }
.post-card__title{ font-family: var(--font-heading); font-size: 21px; color: var(--color-text); margin-bottom: 8px; }
.post-card__excerpt{ color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.post-card__cta{
  display:inline-flex; align-items:center; gap:6px; margin-top: auto;
  color: var(--color-brand); font-weight: 600; font-size: 14px;
}

@media (max-width: 900px){
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .blog-grid{ grid-template-columns: 1fr; }
}

/* Single blog post */
.post-detail__header{ margin-bottom: 32px; }
.post-detail__meta{ color: var(--color-text-secondary); font-size: 14px; margin-top: 4px; }
.post-detail__image{ margin-bottom: 40px; }
.post-detail__content{
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.post-detail__content h2{ font-family: var(--font-heading); color: var(--color-text); font-size: 28px; margin: 36px 0 16px; }
.post-detail__content h3{ font-family: var(--font-heading); color: var(--color-text); font-size: 22px; margin: 28px 0 12px; }
.post-detail__content p{ margin-bottom: 18px; }
.post-detail__content ul,
.post-detail__content ol{ margin: 0 0 18px 20px; }
.post-detail__content li{ margin-bottom: 8px; }
.post-detail__content img{ border-radius: 20px; }
.post-detail__content blockquote{
  border-left: 3px solid var(--color-brand);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--color-text);
  font-style: italic;
}
.post-detail__tags{
  display:flex; gap:8px; flex-wrap:wrap;
  max-width: 760px; margin: 32px auto 0;
}
.post-detail__comments{ max-width: 760px; margin: 48px auto 0; }

/* =========================================================
   7. GENERIC PAGE CONTENT (placeholder — refine per template)
   ========================================================= */
.site-main{ padding: 64px 0; min-height: 40vh; }
.entry-title{ margin-bottom: 24px; }
