/*
Theme Name: Medical Care
Theme URI: https://example.com
Author: Dr. Alexandru Marian
Author URI: https://example.com
Description: A clean, elegant medical professional website theme with homepage and blog support.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v3.0 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: medical-care
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0f1e2e;
  --navy-light: #1a3045;
  --accent: #c8a96e;
  --accent-light: #dfc89a;
  --bg: #f7f4ef;
  --bg-card: #ffffff;
  --text: #2c3e50;
  --text-light: #6b7a8a;
  --border: #e2ddd5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== NAVBAR ========== */
.ms-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.ms-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.ms-nav-logo span { color: var(--accent); }

.ms-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.ms-nav-links a {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
}

.ms-nav-links a:hover,
.ms-nav-links a.active {
  color: var(--navy);
}

/* ========== HERO ========== */
.ms-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.ms-hero-content {
  flex: 1;
  animation: ms-fadeUp 0.9s ease both;
}

.ms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 32px;
}

.ms-hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: ms-pulse 2s infinite;
  flex-shrink: 0;
}

.ms-hero-badge span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.ms-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.ms-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.ms-hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.8;
}

.ms-hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 44px;
}

.ms-stat-item { text-align: left; }

.ms-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.ms-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ========== BUTTONS ========== */
.ms-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.ms-btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15,30,46,0.25);
  color: #fff;
}

.ms-btn-primary svg { transition: transform 0.3s; }
.ms-btn-primary:hover svg { transform: translateX(4px); }

.ms-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}

.ms-btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.ms-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--navy);
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ms-btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.35);
  color: var(--navy);
}

/* ========== HERO VISUAL ========== */
.ms-hero-visual {
  flex: 0 0 420px;
  position: relative;
  animation: ms-fadeUp 1s ease 0.2s both;
}

.ms-hero-img-frame {
  width: 380px;
  height: 460px;
  background: var(--navy);
  border-radius: 24px 24px 24px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.25);
}

.ms-hero-img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.ms-hero-img-placeholder span {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Swap placeholder for a real photo: replace .ms-hero-img-placeholder with an <img> tag */
.ms-hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  animation: ms-float 4s ease-in-out infinite;
}

.ms-float-card.card-1 { bottom: 40px; left: -50px; }
.ms-float-card.card-2 { top: 30px; right: -30px; animation-delay: 2s; }

.ms-float-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-float-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ms-float-card-icon.green { background: #e8f5e9; }
.ms-float-card-icon.blue { background: #e3f2fd; }
.ms-float-card-icon svg { width: 18px; height: 18px; }

.ms-float-card-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy);
}

.ms-float-card-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* ========== SECTIONS ========== */
.ms-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.ms-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.ms-section-label-line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.ms-section-label span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.ms-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ms-section-sub {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 540px;
  font-weight: 300;
  line-height: 1.7;
}

/* ========== SPECIALTIES ========== */
.ms-specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.ms-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ms-spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ms-spec-card:hover::before { transform: scaleX(1); }

.ms-spec-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}

.ms-spec-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ms-spec-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.ms-spec-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
}

.ms-spec-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ========== BLOG ========== */
.ms-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.ms-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ms-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.ms-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

.ms-blog-card-img {
  height: 200px;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-blog-card-img .ms-img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15,30,46,0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.ms-blog-card-img svg {
  width: 40px;
  height: 40px;
  opacity: 0.15;
  color: #fff;
}

.ms-blog-card-img.color-1 { background: linear-gradient(135deg, #1a3045, #2c5282); }
.ms-blog-card-img.color-2 { background: linear-gradient(135deg, #2d3748, #4a5568); }
.ms-blog-card-img.color-3 { background: linear-gradient(135deg, #1a202c, #2d3748); }

.ms-blog-card-body { padding: 28px; }

.ms-blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ms-blog-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,169,110,0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.ms-blog-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.ms-blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.ms-blog-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

.ms-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  transition: gap 0.3s;
}

.ms-blog-read-more:hover { gap: 12px; }
.ms-blog-read-more svg { width: 14px; height: 14px; }

/* ========== CONTACT STRIP ========== */
.ms-contact-strip {
  background: var(--navy);
  max-width: 1020px;
  margin: 0 auto 80px;
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.ms-contact-strip::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(200,169,110,0.08);
}

.ms-contact-strip::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 40%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200,169,110,0.05);
}

.ms-contact-content { position: relative; z-index: 1; }

.ms-contact-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

.ms-contact-strip p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  font-weight: 300;
}

/* ========== BLOG PAGE ========== */
.ms-blog-page-hero {
  padding: 140px 40px 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ms-blog-page-hero .ms-section-label { justify-content: center; }
.ms-blog-page-hero .ms-section-title { font-size: 2.8rem; }

.ms-blog-page-hero .ms-section-sub {
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.ms-blog-full-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ms-blog-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  cursor: pointer;
}

.ms-blog-full-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
}

.ms-blog-full-card .ms-blog-card-img { height: 220px; }
.ms-blog-full-card .ms-blog-card-body { padding: 30px; flex: 1; }

.ms-blog-full-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.ms-blog-full-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

/* ========== SINGLE BLOG POST ========== */
.ms-single-post {
  max-width: 760px;
  margin: 120px auto 100px;
  padding: 0 40px;
}

.ms-single-post .ms-blog-meta {
  justify-content: center;
  margin-bottom: 24px;
}

.ms-single-post h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.ms-single-post .ms-post-content p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
}

.ms-single-post .ms-post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 40px 0 16px;
  font-weight: 600;
}

.ms-single-post .ms-post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 600;
}

.ms-single-post .ms-post-content ul,
.ms-single-post .ms-post-content ol {
  margin: 16px 0 20px 24px;
}

.ms-single-post .ms-post-content li {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 8px;
}

.ms-single-post .ms-post-content strong {
  color: var(--navy);
  font-weight: 500;
}

.ms-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 48px;
  transition: gap 0.3s;
}

.ms-back-link:hover { gap: 14px; }
.ms-back-link svg { width: 16px; height: 16px; }

/* ========== FOOTER ========== */
.ms-footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.8rem;
}

.ms-footer .ms-accent-dot { color: var(--accent); }

/* ========== ANIMATIONS ========== */
@keyframes ms-fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ms-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes ms-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .ms-hero { flex-direction: column; text-align: center; }
  .ms-hero-visual { flex: none; }
  .ms-hero-stats { justify-content: center; }
  .ms-hero-content .ms-btn-primary { display: flex; width: fit-content; margin: 0 auto; }
  .ms-hero-desc { max-width: 100%; }
  .ms-specialties-grid { grid-template-columns: 1fr; }
  .ms-blog-grid { grid-template-columns: 1fr; }
  .ms-blog-full-grid { grid-template-columns: 1fr; }
  .ms-contact-strip { flex-direction: column; text-align: center; padding: 50px 30px; }
  .ms-blog-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ms-single-post h1 { font-size: 2rem; }
  .ms-nav { padding: 16px 24px; }
  .ms-nav-links { gap: 20px; }
  .ms-nav-links a { font-size: 0.78rem; letter-spacing: 0.8px; }
  .ms-hero-visual { width: 100%; max-width: 380px; }
  .ms-hero-img-frame { width: 100%; }
  .ms-float-card { display: none; }
}

@media (max-width: 480px) {
  .ms-hero h1 { font-size: 2.4rem; }
  .ms-section-title { font-size: 1.9rem; }
  .ms-blog-page-hero .ms-section-title { font-size: 2rem; }
  .ms-single-post { margin-top: 100px; }
  .ms-single-post h1 { font-size: 1.7rem; }
}
