/*
Theme Name: Solace Medical
Theme URI: https://solacemed.example
Author: Solace Medical Center
Author URI: https://solacemed.example
Description: A warm, patient-first medical center theme converted from the Solace Medical Center landing page design. Includes a custom homepage layout, a Doctors post type for managing your specialist roster, and Customizer controls for contact details and hero/CTA copy.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solace-medical
Tags: custom-logo, custom-menu, featured-images, translation-ready, block-styles
*/

/* ============ TOKENS ============ */
:root{
  --cream:#FAF6EE;
  --cream-deep:#F2EBDD;
  --ink:#16241F;
  --ink-soft:#4A5750;
  --teal:#0F3D36;
  --teal-light:#2F6F61;
  --coral:#E2674A;
  --coral-deep:#C94F35;
  --coral-tint:#FBE6DD;
  --gold:#C98E2E;
  --gold-tint:#F8EAD0;
  --sage-tint:#E3ECE3;
  --mist:#EAF0EC;
  --white:#FFFFFF;
  --line:rgba(22,36,31,0.12);
  --shadow:0 24px 50px -20px rgba(15,61,54,0.25);
  --radius-card:22px;
  --blob-1: 58% 42% 63% 37% / 41% 56% 44% 59%;
  --blob-2: 38% 62% 41% 59% / 55% 40% 60% 45%;
  --blob-3: 64% 36% 33% 67% / 47% 53% 52% 48%;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto;}
a{color:inherit; text-decoration:none;}
h1,h2,h3{font-family:'Fraunces',serif; margin:0; color:var(--ink); letter-spacing:-0.01em;}
p{margin:0;}
ul{margin:0; padding:0; list-style:none;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
section{position:relative;}

.eyebrow{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--coral-deep);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:26px; height:2px;
  background:var(--coral);
  border-radius:2px;
}
.stat-mono{
  font-family:'Space Mono',monospace;
  font-weight:700;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:15px 28px;
  border-radius:100px;
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn svg{width:16px; height:16px;}
.btn-primary{background:var(--coral); color:var(--white); box-shadow:0 14px 30px -10px rgba(226,103,74,0.55);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 18px 34px -8px rgba(226,103,74,0.6);}
.btn-outline{background:transparent; border-color:var(--line); color:var(--ink);}
.btn-outline:hover{border-color:var(--teal); background:var(--mist);}
.btn-dark{background:var(--white); color:var(--teal);}
.btn-dark:hover{transform:translateY(-2px);}
.btn-sm{padding:11px 22px; font-size:14px;}

/* reveal animation */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(250,246,238,0.7);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  background:rgba(250,246,238,0.94);
  border-bottom-color:var(--line);
  box-shadow:0 8px 24px -16px rgba(22,36,31,0.2);
}
.nav-wrap{
  max-width:1180px; margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.logo{display:flex; align-items:center; gap:10px; font-family:'Fraunces',serif; font-weight:600; font-size:21px; color:var(--teal);}
.logo svg{width:34px; height:34px; flex-shrink:0;}
.logo img{max-height:38px; width:auto; display:block;}
.nav-links{display:flex; align-items:center; gap:34px; font-size:14.5px; font-weight:500; color:var(--ink-soft);}
.nav-links a{position:relative; padding:4px 0; transition:color .2s ease;}
.nav-links a:hover{color:var(--teal);}
.nav-links a::after{content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--coral); transition:width .25s ease;}
.nav-links a:hover::after{width:100%;}
.nav-links li{display:inline-block;}
.nav-cta{display:flex; align-items:center; gap:14px;}
.nav-toggle{display:none; background:none; border:none; width:40px; height:40px; align-items:center; justify-content:center; border-radius:10px;}
.nav-toggle span{display:block; width:20px; height:2px; background:var(--ink); position:relative;}
.nav-toggle span::before,.nav-toggle span::after{content:""; position:absolute; left:0; width:20px; height:2px; background:var(--ink); transition:transform .25s ease;}
.nav-toggle span::before{top:-6px;}
.nav-toggle span::after{top:6px;}

/* ============ HERO ============ */
.hero{
  padding:64px 0 0;
  overflow:hidden;
}
.hero-inner{
  max-width:1180px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(2.5rem, 4.6vw, 4rem);
  font-weight:600;
  line-height:1.07;
  margin-bottom:22px;
}
.hero-copy h1 em{font-style:normal; color:var(--coral); font-weight:600;}
.hero-copy p{
  font-size:18px; color:var(--ink-soft); max-width:480px; margin-bottom:34px;
}
.hero-cta-row{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:30px;}
.hero-trust{display:flex; align-items:center; gap:12px; font-size:13.5px; color:var(--ink-soft);}
.hero-trust .stars{color:var(--gold); letter-spacing:1px;}

.hero-media{position:relative; min-height:420px;}
.hero-media-shape{
  position:relative;
  border-radius:var(--blob-1);
  overflow:hidden;
  aspect-ratio:1/1.02;
  background:linear-gradient(160deg,var(--sage-tint),var(--mist));
  box-shadow:var(--shadow);
}
.hero-media-shape img{width:100%; height:100%; object-fit:cover;}
.hero-badge{
  position:absolute; left:-30px; bottom:38px;
  background:var(--white);
  border-radius:18px;
  padding:16px 20px;
  display:flex; align-items:center; gap:13px;
  box-shadow:0 18px 40px -14px rgba(22,36,31,0.3);
  max-width:230px;
}
.hero-badge .badge-icon{
  width:42px; height:42px; border-radius:50%;
  background:var(--coral-tint); color:var(--coral-deep);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.hero-badge .badge-icon svg{width:20px; height:20px;}
.hero-badge .badge-num{font-size:19px; line-height:1.1; color:var(--teal);}
.hero-badge .badge-label{font-size:12px; color:var(--ink-soft); margin-top:2px;}
.hero-dot-deco{position:absolute; top:6%; right:-3%; width:90px; height:90px; opacity:0.5;}

/* feature strip */
.feature-strip{
  max-width:1180px; margin:64px auto 0; padding:0 32px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  transform:translateY(40px);
  margin-bottom:-40px;
}
.feature-card{
  background:var(--white);
  border-radius:var(--radius-card);
  padding:26px 22px;
  box-shadow:0 22px 44px -28px rgba(22,36,31,0.28);
  border:1px solid var(--line);
  transition:transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{transform:translateY(-6px); box-shadow:0 30px 50px -24px rgba(22,36,31,0.32);}
.feature-icon{
  width:46px; height:46px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.feature-icon svg{width:22px; height:22px;}
.feature-card:nth-child(1) .feature-icon{background:var(--sage-tint); color:var(--teal);}
.feature-card:nth-child(2) .feature-icon{background:var(--coral-tint); color:var(--coral-deep);}
.feature-card:nth-child(3) .feature-icon{background:var(--gold-tint); color:var(--gold);}
.feature-card:nth-child(4) .feature-icon{background:var(--mist); color:var(--teal-light);}
.feature-card h3{font-size:16.5px; font-weight:600; margin-bottom:8px; font-family:'Inter',sans-serif;}
.feature-card p{font-size:14px; color:var(--ink-soft); margin-bottom:12px;}
.feature-link{font-size:13.5px; font-weight:600; color:var(--teal); display:inline-flex; align-items:center; gap:5px;}
.feature-link svg{width:13px; height:13px; transition:transform .2s ease;}
.feature-card:hover .feature-link svg{transform:translateX(3px);}

/* ============ AMENITIES ============ */
.amenities{padding:160px 0 100px;}
.amenities-inner{
  display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;
}
.amenities-copy h2{font-size:clamp(1.9rem,2.8vw,2.5rem); font-weight:600; line-height:1.18; margin-bottom:20px; max-width:480px;}
.amenities-copy h2 span{color:var(--teal-light);}
.amenities-copy > p{color:var(--ink-soft); max-width:480px; margin-bottom:30px;}
.check-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px 22px; margin-bottom:34px;}
.check-item{display:flex; align-items:flex-start; gap:11px; font-size:14.5px; color:var(--ink);}
.check-item .check-ico{
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  background:var(--teal); color:var(--white);
  display:flex; align-items:center; justify-content:center; margin-top:1px;
}
.check-item .check-ico svg{width:11px; height:11px;}

.amenities-media{position:relative;}
.amenities-shape{
  border-radius:var(--blob-2); overflow:hidden;
  aspect-ratio:4/3.6;
  box-shadow:var(--shadow);
  background:linear-gradient(150deg,var(--gold-tint),var(--cream-deep));
}
.amenities-shape img{width:100%; height:100%; object-fit:cover;}
.float-badge{
  position:absolute; background:var(--teal); color:var(--white);
  border-radius:18px; padding:20px 22px; box-shadow:0 20px 40px -16px rgba(15,61,54,0.5);
  text-align:center; min-width:108px;
}
.float-badge.b1{top:-26px; right:24px;}
.float-badge.b2{bottom:-22px; left:-26px; background:var(--white); color:var(--ink);}
.float-badge .stat-mono{display:block; font-size:25px; line-height:1; margin-bottom:5px;}
.float-badge.b1 .stat-mono{color:var(--gold-tint);}
.float-badge.b2 .stat-mono{color:var(--coral-deep);}
.float-badge .stat-label{font-size:11.5px; opacity:0.85; line-height:1.3;}

/* ============ SERVICES ============ */
.services{background:var(--mist); padding:100px 0;}
.section-head{text-align:center; max-width:620px; margin:0 auto 56px;}
.section-head .eyebrow{justify-content:center;}
.section-head h2{font-size:clamp(1.9rem,2.8vw,2.5rem); font-weight:600; line-height:1.2;}
.services-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.service-card{
  background:var(--white); border-radius:18px; padding:30px 24px;
  border:1px solid var(--line); transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.service-card:hover{transform:translateY(-6px); box-shadow:0 26px 44px -26px rgba(22,36,31,0.3); background:var(--white);}
.service-icon{
  width:50px; height:50px; border-radius:14px; background:var(--sage-tint); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-icon svg{width:24px; height:24px;}
.service-card h3{font-family:'Inter',sans-serif; font-size:17px; font-weight:600; margin-bottom:8px;}
.service-card p{font-size:13.8px; color:var(--ink-soft); margin-bottom:14px;}
.service-card .feature-link{color:var(--coral-deep);}
.services-more{text-align:center; margin-top:46px;}

/* ============ RECORD ============ */
.record{padding:110px 0;}
.record-statement{max-width:760px; margin:0 auto 64px; text-align:center;}
.record-statement h2{font-size:clamp(1.8rem,3.4vw,2.7rem); font-weight:500; line-height:1.3;}
.record-statement h2 .hl{color:var(--coral-deep); font-weight:600;}
.record-statement h2 .hl2{color:var(--ink-soft);}
.record-media{display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center; position:relative;}
.record-imgs{display:grid; grid-template-columns:1.1fr 1fr; gap:18px; position:relative;}
.record-img-shape{border-radius:var(--blob-3); overflow:hidden; box-shadow:var(--shadow); background:var(--sage-tint);}
.record-img-shape.tall{aspect-ratio:3/4;}
.record-img-shape.short{aspect-ratio:3/3.6; margin-top:50px;}
.record-img-shape img{width:100%; height:100%; object-fit:cover;}
.rating-pill{
  position:absolute; top:-22px; right:30px; background:var(--white); border-radius:50px;
  padding:10px 18px; display:flex; align-items:center; gap:8px; box-shadow:0 16px 34px -16px rgba(22,36,31,0.32);
  font-size:13.5px; font-weight:700; z-index:3;
}
.rating-pill svg{width:16px; height:16px; color:var(--gold);}
.quote-card{
  background:var(--teal); color:var(--white); border-radius:20px; padding:34px;
}
.quote-card .qmark{font-family:'Fraunces',serif; font-size:50px; color:var(--coral); line-height:0.5; display:block; margin-bottom:14px;}
.quote-card p.quote-text{font-family:'Fraunces',serif; font-size:19px; line-height:1.5; font-weight:500; margin-bottom:22px;}
.quote-author{display:flex; align-items:center; gap:13px;}
.quote-avatar{width:44px; height:44px; border-radius:50%; overflow:hidden; flex-shrink:0; background:var(--teal-light);}
.quote-avatar img{width:100%; height:100%; object-fit:cover;}
.quote-author .qa-name{font-weight:600; font-size:14.5px;}
.quote-author .qa-role{font-size:12.5px; opacity:0.7;}

/* ============ DOCTORS ============ */
.doctors{background:var(--sage-tint); padding:100px 0;}
.doctors-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:26px;}
.doctor-card{text-align:center;}
.doctor-shape{
  border-radius:var(--blob-1); overflow:hidden; aspect-ratio:3/3.3; margin-bottom:18px;
  box-shadow:0 22px 40px -22px rgba(22,36,31,0.3);
  background:var(--mist);
  position:relative;
}
.doctor-shape img{width:100%; height:100%; object-fit:cover;}
.doctor-socials{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%) translateY(10px);
  display:flex; gap:8px; opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.doctor-card:hover .doctor-socials{opacity:1; transform:translateX(-50%) translateY(0);}
.doctor-socials a{
  width:30px; height:30px; border-radius:50%; background:var(--white); color:var(--teal);
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px -4px rgba(0,0,0,0.25);
}
.doctor-socials svg{width:13px; height:13px;}
.doctor-card h3{font-family:'Inter',sans-serif; font-size:16.5px; font-weight:600; margin-bottom:4px;}
.doctor-card .doc-role{font-size:13px; color:var(--coral-deep); font-weight:600;}

/* ============ CTA BANNER ============ */
.cta-banner{background:var(--teal); padding:90px 0; overflow:hidden; position:relative;}
.cta-pulse{position:absolute; bottom:0; left:0; width:100%; opacity:0.18; pointer-events:none;}
.cta-inner{position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;}
.cta-inner h2{color:var(--white); font-size:clamp(1.7rem,2.8vw,2.3rem); font-weight:600; max-width:520px; line-height:1.25; margin-bottom:10px;}
.cta-inner p.sub{color:rgba(255,255,255,0.7); font-size:15px; max-width:480px;}
.cta-right{display:flex; align-items:center; gap:24px; flex-wrap:wrap;}
.cta-phone{display:flex; align-items:center; gap:12px; color:var(--white);}
.cta-phone .phone-ico{width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center;}
.cta-phone .phone-ico svg{width:19px; height:19px;}
.cta-phone .phone-label{font-size:11.5px; opacity:0.65;}
.cta-phone .phone-num{font-family:'Space Mono',monospace; font-weight:700; font-size:16px;}

/* ============ FOOTER ============ */
.site-footer{background:var(--ink); color:rgba(255,255,255,0.72); padding:80px 0 0;}
.footer-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:50px; padding-bottom:60px; border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-brand .logo{color:var(--white);}
.footer-brand p{font-size:14.5px; margin:18px 0 22px; max-width:300px; line-height:1.7;}
.footer-newsletter{display:flex; gap:10px; margin-bottom:22px;}
.footer-newsletter input{
  flex:1; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.15); border-radius:10px;
  padding:12px 14px; color:var(--white); font-size:13.5px; font-family:inherit;
}
.footer-newsletter input::placeholder{color:rgba(255,255,255,0.4);}
.footer-newsletter button{
  background:var(--coral); color:var(--white); border:none; border-radius:10px; padding:0 18px; font-weight:600; font-size:13.5px;
}
.footer-socials{display:flex; gap:10px;}
.footer-socials a{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; transition:background .2s ease;
}
.footer-socials a:hover{background:var(--coral);}
.footer-socials svg{width:15px; height:15px;}
.footer-col h4{color:var(--white); font-family:'Inter',sans-serif; font-size:14.5px; font-weight:600; margin-bottom:20px; letter-spacing:0.02em;}
.footer-col ul li{margin-bottom:13px; font-size:14px;}
.footer-col ul li a{transition:color .2s ease;}
.footer-col ul li a:hover{color:var(--white);}
.footer-contact li{display:flex; align-items:flex-start; gap:10px; font-size:13.8px;}
.footer-contact svg{width:16px; height:16px; margin-top:2px; flex-shrink:0; color:var(--coral);}
.footer-bottom{
  max-width:1180px; margin:0 auto; padding:26px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  font-size:13px; color:rgba(255,255,255,0.45);
}
.footer-bottom a{margin-left:18px; transition:color .2s ease;}
.footer-bottom a:hover{color:var(--white);}

/* ============ BLOG / PAGE CONTENT (added for WordPress) ============ */
.site-main{padding:70px 0 100px;}
.page-header{max-width:760px; margin:0 auto 50px; text-align:center;}
.page-header h1{font-size:clamp(2rem,4vw,2.8rem); font-weight:600;}
.entry-content{max-width:760px; margin:0 auto;}
.entry-content p{margin-bottom:20px; color:var(--ink-soft);}
.entry-content h2,.entry-content h3{margin:34px 0 16px;}
.entry-content img{border-radius:var(--radius-card); margin:20px 0;}
.entry-content a{color:var(--teal); text-decoration:underline;}
.post-list{max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:50px;}
.post-card .post-thumb{border-radius:var(--radius-card); overflow:hidden; margin-bottom:20px; aspect-ratio:16/9;}
.post-card .post-thumb img{width:100%; height:100%; object-fit:cover;}
.post-card h2{font-size:1.7rem; margin-bottom:10px;}
.post-card .post-meta{font-size:13px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:14px;}
.post-card p{color:var(--ink-soft); margin-bottom:14px;}
.pagination{display:flex; justify-content:center; gap:10px; margin-top:20px;}
.pagination a,.pagination span{padding:10px 16px; border-radius:100px; border:1.5px solid var(--line); font-size:14px; font-weight:600;}
.pagination .current{background:var(--teal); color:var(--white); border-color:var(--teal);}
.no-results{text-align:center; max-width:600px; margin:0 auto; color:var(--ink-soft);}

/* WordPress core utility classes */
.alignleft{float:left; margin:0 24px 20px 0;}
.alignright{float:right; margin:0 0 20px 24px;}
.aligncenter{display:block; margin:0 auto 20px;}
.wp-caption{max-width:100%;}
.wp-caption-text{font-size:13px; color:var(--ink-soft); margin-top:8px;}
.screen-reader-text{position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden;}
.skip-link{position:absolute; left:-9999px; top:0; z-index:999999; background:var(--teal); color:var(--white); padding:14px 20px; border-radius:0 0 10px 0;}
.skip-link:focus{left:0;}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .nav-links{display:none;}
  .nav-toggle{display:flex;}
  .hero-inner{grid-template-columns:1fr; gap:48px;}
  .hero-media{order:-1; min-height:340px; max-width:420px; margin:0 auto;}
  .hero-copy p{max-width:100%;}
  .feature-strip{grid-template-columns:repeat(2,1fr); margin-bottom:-20px; transform:translateY(20px);}
  .amenities{padding:120px 0 80px;}
  .amenities-inner{grid-template-columns:1fr; gap:90px;}
  .amenities-media{max-width:420px; margin:0 auto;}
  .services-grid{grid-template-columns:repeat(2,1fr);}
  .record-media{grid-template-columns:1fr; gap:80px;}
  .doctors-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 600px){
  .wrap, .nav-wrap, .hero-inner, .feature-strip, .footer-bottom{padding-left:20px; padding-right:20px;}
  .hero{padding-top:34px;}
  .feature-strip{grid-template-columns:1fr;}
  .services-grid{grid-template-columns:1fr;}
  .doctors-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr; gap:36px;}
  .check-grid{grid-template-columns:1fr;}
  .cta-inner{flex-direction:column; align-items:flex-start;}
  .float-badge.b2{left:0;}
  .hero-badge{left:0; bottom:-20px;}
}
