/*
Theme Name:  Arztpraxis Theme
Theme URI:   https://praxisstadtmauer.de
Author:      Ihre Praxis
Description: Professionelles, sauberes WordPress-Theme für Arztpraxen, Kliniken und medizinische Fachzentren.
Version:     2.1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medclean
Tags:        Hausarzt, Hausarztpraxis, Allgemeinmedizin, Großbottwar, Arztpraxis, Familienarzt, Praxis, Baden-Württemberg

Changelog:
1.0.0 – Initiale Version.
1.3.0 – 2026-07-26 – single-arzt.php hinzugefügt. Logo-Customizer aus
        functions.php entfernt (Größe fest in style.css: 160px/44px).
1.3.1 – 2026-07-26 – Logo-Fix per JS in main.js: style-Attribut direkt
        am img gesetzt, da srcset/sizes CSS !important überschreibt.
*/

/* ==============================
   CSS Custom Properties
   ============================== */
:root {
  /* Colors */
  --c-teal:        #00bcd4;
  --c-teal-dark:   #0097a7;
  --c-teal-light:  #e0f7fa;
  --c-navy:        #1a2e44;
  --c-navy-mid:    #2c4a6e;
  --c-white:       #ffffff;
  --c-off-white:   #f8fafb;
  --c-gray-light:  #eef2f5;
  --c-gray:        #8a9bb0;
  --c-gray-dark:   #4a5e74;
  --c-text:        #1a2e44;
  --c-border:      #dde4ec;
  --c-red:         #ef5350;
  --c-green:       #43a047;

  /* Typography */
  --f-heading: 'Raleway', 'Trebuchet MS', sans-serif;
  --f-body:    'Hind', 'Segoe UI', sans-serif;
  --f-accent:  'Raleway', sans-serif;

  /* Spacing & Layout */
  --max-w:     1200px;
  --header-h:  68px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(26,46,68,.08);
  --shadow-md:  0 6px 24px rgba(26,46,68,.12);
  --shadow-lg:  0 16px 48px rgba(26,46,68,.16);
  --shadow-teal:0 8px 32px rgba(0,188,212,.25);

  /* Transitions */
  --ease: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ==============================
   Reset & Base
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--c-teal-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ==============================
   Utility
   ============================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--c-teal); color: #fff;
  padding: 10px 20px; z-index: 9999;
  font-family: var(--f-accent);
}
.skip-link:focus { top: 0; }

/* Section Spacing */
.section { padding: 90px 0; }
.section--gray { background: var(--c-off-white); }
.section--navy { background: var(--c-navy); }
.section--teal { background: var(--c-teal); }

/* Section Header */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head--left { text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-teal);
  margin-bottom: 12px;
  position: relative;
  padding-left: 36px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 2px;
  background: var(--c-teal);
}
.section-title {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title--white { color: #fff; }
.section-sub {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--c-gray-dark);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75;
}
.section-sub--white { color: rgba(255,255,255,.75); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 30px;
  border-radius: 40px;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn--teal {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
  box-shadow: var(--shadow-teal);
}
.btn--teal:hover {
  background: var(--c-teal-dark);
  border-color: var(--c-teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,188,212,.35);
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.btn--outline-teal {
  background: transparent;
  color: var(--c-teal);
  border-color: var(--c-teal);
}
.btn--outline-teal:hover {
  background: var(--c-teal);
  color: #fff;
}
.btn--navy {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
}
.btn--navy:hover {
  background: var(--c-navy-mid);
  border-color: var(--c-navy-mid);
  color: #fff;
  transform: translateY(-2px);
}
.btn--lg { padding: 17px 38px; font-size: 0.88rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ==============================
   Top Bar
   ============================== */
.top-bar {
  background: var(--c-navy);
  color: rgba(255,255,255,.75);
  padding: 9px 0;
  font-size: 0.78rem;
  font-family: var(--f-accent);
  position: relative;
  z-index: 1001;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
}
.top-bar-item a { color: rgba(255,255,255,.75); }
.top-bar-item a:hover { color: var(--c-teal); }
.top-bar-item svg { width: 13px; height: 13px; color: var(--c-teal); flex-shrink: 0; }

/* ==============================
   Header
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top-Bar + Header zusammen sticky */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  max-width: 200px;
  height: 100%;
}

/* WordPress custom-logo fix – verhindert überdimensionales Logo */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.site-logo .custom-logo-link img,
.site-logo img.custom-logo {
  height: auto !important;
  width: 160px !important;
  max-width: 160px !important;
  max-height: 44px !important;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 46px; height: 46px;
  background: var(--c-teal);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-text .logo-name {
  font-family: var(--f-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-text .logo-tagline {
  font-family: var(--f-accent);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-gray);
}

/* Primary Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav li { list-style: none; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: 0 16px;
  height: var(--header-h);
  line-height: var(--header-h);
  font-family: var(--f-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-navy);
  transition: color var(--ease);
  position: relative;
  white-space: nowrap;
}
.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: var(--c-teal);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--ease);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--c-teal);
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-white);
  border-top: 3px solid var(--c-teal);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 800;
  overflow: hidden;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li a {
  display: block;
  padding: 12px 22px;
  font-family: var(--f-accent);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-gray-dark);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--ease), color var(--ease);
}
.primary-nav .sub-menu li:last-child a { border-bottom: none; }
.primary-nav .sub-menu li a:hover { background: var(--c-teal-light); color: var(--c-teal-dark); }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-accent);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-navy);
}
.header-phone svg { color: var(--c-teal); width: 18px; height: 18px; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-navy); border-radius: 2px;
  transition: var(--ease);
}

/* ==============================
   Hero Slider
   ============================== */
.hero {
  background: #000 !important;
  isolation: auto;
  position: relative;
  height: 520px;
  overflow: hidden;
  display: block;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: auto;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-slide.active {
  opacity: 1 !important;
}
.hero-inner { position: relative; z-index: 5; }
.hero-arrow  { z-index: 6; }
.hero-dots   { z-index: 6; }
.hero-bg     { display: none !important; }
.hero-bg-shapes { display: none !important; }

/* Pfeile */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.hero-arrow:hover {
  background: rgba(255,255,255,.3);
  border-color: #fff;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}


.hero-bg { display: none !important; }
.hero-content .hero-title,
.hero-content .hero-desc,
.hero-content .hero-feat {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-bg-shapes { display: none !important; }
.hero-bg-shapes::before { display: none !important; }
.hero-bg-shapes::after  { display: none !important; }

/* Hero kompakt */
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 0;
  max-width: 100%;
}
.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .hero-logo-wrap { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-content { max-width: 100%; }
  #arzt-profil-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-logo-wrap { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-slide { background-size: contain !important; background-position: center bottom !important; background-repeat: no-repeat !important; }
}

/* Services Strip – kleiner und klar unterhalb */
.services-strip {
  background: var(--c-navy);
  padding: 0;
  position: relative;
  z-index: 10;
  height: 18px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-right: none;
  transition: background var(--ease);
}
.strip-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-teal);
  flex-shrink: 0;
}
.strip-icon svg { width: 13px; height: 13px; }
.strip-text strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}
.strip-text span {
  font-size: 0.65rem;
  color: rgba(255,255,255,.6);
}

.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,188,212,.15);
  border: 1px solid rgba(0,188,212,.3);
  color: var(--c-teal);
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title span { color: #ffffff; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-features {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-accent);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.hero-feat svg { color: var(--c-teal); width: 16px; height: 16px; }

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-main-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-main-card img { width: 100%; height: auto; object-fit: contain; max-height: 480px; display: block; }
.hero-main-card-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0097a7 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-main-card-placeholder svg { width: 100px; height: 100px; color: rgba(255,255,255,.3); }

/* Floating cards */
.hero-float {
  position: absolute;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hero-float--stat {
  bottom: 30px; left: -30px;
  display: flex; align-items: center; gap: 14px;
}
.hero-float--badge {
  top: 30px; right: -20px;
  display: flex; align-items: center; gap: 10px;
}
.float-num {
  font-family: var(--f-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1;
}
.float-label {
  font-family: var(--f-accent);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.float-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-icon--teal { background: var(--c-teal-light); color: var(--c-teal); }
.float-icon--green { background: #e8f5e9; color: var(--c-green); }
.float-icon svg { width: 20px; height: 20px; }

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

/* ==============================
   Services Strip
   ============================== */
.services-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item:last-child { border-right: none; }
.strip-item:hover { background: rgba(255,255,255,.07); }

/* ==============================
   About Section
   ============================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 480px; object-fit: cover; }
.about-img-placeholder {
  width: 100%; height: 480px;
  background: linear-gradient(145deg, var(--c-teal-light) 0%, #b2ebf2 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
}
.about-img-placeholder svg { width: 80px; height: 80px; color: var(--c-teal); }

.about-img-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 180px; height: 180px;
  background: var(--c-teal);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.about-img-accent .accent-num {
  font-family: var(--f-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.about-img-accent .accent-text {
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: .85;
  margin-top: 4px;
}

.about-content { padding: 20px 0; }
.about-text {
  font-size: 1rem;
  color: var(--c-gray-dark);
  line-height: 1.8;
  margin: 24px 0 32px;
}
.about-text p + p { margin-top: 14px; }

.about-checks { margin-bottom: 36px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.check-icon {
  width: 24px; height: 24px;
  background: var(--c-teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; color: #fff; }
.check-text {
  font-size: 0.95rem;
  color: var(--c-gray-dark);
  line-height: 1.6;
}
.check-text strong { color: var(--c-navy); }

/* ==============================
   Stats Bar
   ============================== */
.stats-bar {
  background: var(--c-navy);
  padding: 20px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 8px;
  border-right: none;
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--c-teal);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-label {
  font-family: var(--f-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.6);
}

/* ==============================
   Services Cards
   ============================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--c-border);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: var(--c-teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background var(--ease);
}
.service-card:hover .service-icon { background: var(--c-teal); }
.service-icon svg {
  width: 28px; height: 28px;
  color: var(--c-teal);
  transition: color var(--ease);
}
.service-card:hover .service-icon svg { color: #fff; }

.service-title {
  font-family: var(--f-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.service-text {
  font-size: 0.9rem;
  color: var(--c-gray-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-link {
  font-family: var(--f-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--ease);
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 14px; height: 14px; }

/* ==============================
   Doctors Section
   ============================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.doctor-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: all var(--ease);
  text-align: center;
}
.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.doctor-photo {
  position: relative;
  background: linear-gradient(145deg, var(--c-teal-light), #b2ebf2);
  border-radius: 12px 12px 0 0;
}
.doctor-photo img { width: 100%; height: auto; display: block; border-radius: 12px 12px 0 0; }
.doctor-photo-icon { font-size: 4.5rem; }
.doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,68,.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  gap: 10px;
}
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-social-btn {
  width: 36px; height: 36px;
  background: var(--c-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-navy);
  transition: background var(--ease), color var(--ease);
}
.doctor-social-btn:hover { background: var(--c-teal); color: #fff; }
.doctor-social-btn svg { width: 15px; height: 15px; }

.doctor-body { padding: 22px 16px; }
.doctor-name {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 4px;
}
.doctor-spec {
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-teal);
  margin-bottom: 14px;
}
.doctor-btn {
  display: inline-block;
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gray-dark);
  border: 1.5px solid var(--c-border);
  padding: 7px 18px;
  border-radius: 40px;
  transition: all var(--ease);
}
.doctor-btn:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
  background: var(--c-teal-light);
}

/* ==============================
   Appointment / CTA Section
   ============================== */
.appointment-section {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.appointment-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,.15) 0%, transparent 70%);
}
.appointment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.appointment-content .section-head { text-align: left; }
.appointment-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin: 20px 0 32px;
}
.appointment-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.perk-icon {
  width: 32px; height: 32px;
  background: rgba(0,188,212,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-teal);
}
.perk-icon svg { width: 15px; height: 15px; }

/* Appointment Form Card */
.appointment-form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card-title {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--c-gray-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(0,188,212,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ==============================
   Testimonials
   ============================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testi-stars {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  color: #ffc107;
}
.testi-stars svg { width: 16px; height: 16px; }
.testi-text {
  font-size: 0.93rem;
  color: var(--c-gray-dark);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-teal-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-teal);
  flex-shrink: 0;
}
.testi-name {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-navy);
}
.testi-role {
  font-size: 0.78rem;
  color: var(--c-gray);
}

/* ==============================
   Hours & Contact
   ============================== */
.hours-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.hours-table tr { border-bottom: 1px solid var(--c-border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 13px 0;
  font-size: 0.92rem;
}
.hours-table td:first-child {
  font-family: var(--f-accent);
  font-weight: 700;
  color: var(--c-navy);
  width: 130px;
}
.hours-table td:last-child { color: var(--c-gray-dark); }
.hours-table .today td { color: var(--c-teal); }
.hours-table .today td:first-child { color: var(--c-teal); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.contact-card:hover { border-color: var(--c-teal); box-shadow: var(--shadow-sm); }
.cc-icon {
  width: 44px; height: 44px;
  background: var(--c-teal-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-teal);
  flex-shrink: 0;
}
.cc-icon svg { width: 20px; height: 20px; }
.cc-label {
  font-family: var(--f-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
  margin-bottom: 3px;
}
.cc-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-navy);
}
.cc-value a { color: var(--c-navy); }
.cc-value a:hover { color: var(--c-teal); }

/* ==============================
   Map
   ============================== */
.map-wrapper {
  height: 400px;
  background: var(--c-gray-light);
  position: relative;
  overflow: hidden;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ==============================
   Footer
   ============================== */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 16px;
  opacity: .75;
}
.footer-logo-name {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer-logo-sub {
  font-family: var(--f-accent);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-teal);
  margin-top: 2px;
}

.footer-col-title {
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-white);
  margin-bottom: 20px;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--c-teal); }
.footer-links a svg { width: 12px; height: 12px; opacity: .5; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.footer-contact-item svg { color: var(--c-teal); width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--c-teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a:hover { color: var(--c-teal); }
.footer-legal { display: flex; gap: 20px; }

/* ==============================
   Page Hero (inner pages)
   ============================== */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  padding: 72px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--c-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero p { font-size: 1rem; opacity: .8; max-width: 520px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--c-off-white);
  border-bottom: 1px solid var(--c-border);
  padding: 13px 0;
}
.breadcrumbs nav {
  font-family: var(--f-accent);
  font-size: 0.78rem;
  color: var(--c-gray);
}
.breadcrumbs a { color: var(--c-teal); }
.breadcrumbs span { margin: 0 8px; }

/* Entry Content */
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content h2 { font-family: var(--f-heading); font-size: 1.7rem; color: var(--c-navy); margin: 36px 0 14px; }
.entry-content h3 { font-family: var(--f-heading); font-size: 1.3rem; color: var(--c-navy); margin: 28px 0 10px; }
.entry-content p { margin-bottom: 16px; color: var(--c-gray-dark); line-height: 1.8; }
.entry-content ul { list-style: disc; margin: 16px 0 16px 24px; color: var(--c-gray-dark); }
.entry-content a { text-decoration: underline; }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .appointment-inner { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hours-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex; flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--c-white);
    padding: 16px 0 24px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
  }
  .primary-nav.is-open ul { flex-direction: column; width: 100%; }
  .primary-nav.is-open > ul > li > a { height: auto; line-height: 1; padding: 14px 24px; }
  .primary-nav.is-open .sub-menu { position: static; border-top: none; box-shadow: none; background: var(--c-off-white); padding-left: 16px; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { 
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .footer-grid > div:first-child { order: 1; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-grid > div:last-child  { order: 2; padding-top: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .top-bar-left { display: none; }
  .hero-features { flex-direction: column; gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .section { padding: 60px 0; }
}
