/* ==========================================================================
   Florida Cardiovascular Associates - Main Stylesheet
   Mobile-First, Responsive & Modern Medical Practice Design
   ========================================================================== */

:root {
  --primary: #c8102e;
  --primary-dark: #960c22;
  --primary-light: #fbebee;
  --primary-gradient: linear-gradient(135deg, #c8102e 0%, #8e0b20 100%);
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s ease-in-out;
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Top Alert / Quick Bar
   ========================================================================== */
.top-bar {
  background-color: var(--secondary);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--primary);
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.top-bar-item a {
  color: #ffffff;
  font-weight: 600;
}

.top-bar-item a:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.top-bar-item svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem 0;
}

.brand-logo-img {
  height: 82px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.logo-shield {
  width: 48px;
  height: 52px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.25);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.35);
  background: var(--primary-dark);
}

.nav-cta-secondary {
  background: var(--secondary);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.nav-cta-secondary:hover {
  background: var(--secondary-light);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--secondary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #2c1218 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.22) 0%, rgba(200, 16, 46, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(200, 16, 46, 0.2);
  border: 1px solid rgba(200, 16, 46, 0.4);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: #ef4444;
  display: block;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  color: #ffffff;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h4 {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.825rem;
  color: #94a3b8;
  margin: 0;
}

/* Hero Doctor Card */
.hero-doctor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  color: var(--text-main);
  border-top: 5px solid var(--primary);
  text-align: center;
  position: relative;
}

.doctor-avatar-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.doctor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background-color: #e2e8f0;
}

.doctor-badge-floating {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}

.doctor-badge-floating svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.hero-doctor-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.hero-doctor-card .doctor-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero-doctor-card .doctor-creds {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-doctor-card .quick-contact-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.hero-doctor-card .quick-contact-call:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   4 Pillars Banner (PREVENT. DETECT. TREAT. LIVE.)
   ========================================================================== */
.pillars-section {
  background-color: #ffffff;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-page);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.pillar-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.pillar-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Section Layouts & General Components
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.badge-tag svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(200, 16, 46, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-icon-box svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-us-section {
  background: #ffffff;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-page);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.why-us-item:hover {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.why-us-check {
  width: 36px;
  height: 36px;
  background-color: var(--secondary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-us-item:hover .why-us-check {
  background-color: var(--primary);
}

.why-us-check svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.why-us-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.why-us-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.why-us-visual {
  position: relative;
}

.visual-badge-card {
  background: var(--secondary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.visual-badge-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: rgba(200, 16, 46, 0.2);
  border-radius: 50%;
}

.visual-badge-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.visual-badge-header .badge-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-badge-header .badge-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.visual-badge-card h3 {
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.25;
}

.visual-badge-card blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.visual-badge-card .highlight-tag {
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Call To Action / Take Charge Banner
   ========================================================================== */
.cta-banner {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 650px;
}

.cta-content h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cta-content p {
  font-size: 1.1rem;
  color: #ffe4e6;
  margin: 0;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background-color: #f8fafc;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.phone-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.phone-badge-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

.phone-badge-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   Location & Office Info Section
   ========================================================================== */
.location-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.office-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.office-header {
  margin-bottom: 2rem;
}

.office-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.office-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.detail-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.detail-text p, .detail-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.detail-text a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-height: 380px;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ==========================================================================
   Doctor Biography / About Page Elements
   ========================================================================== */
.about-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0;
}

.bio-card-horizontal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.bio-image-col {
  text-align: center;
}

.bio-portrait {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 4px solid #ffffff;
  margin: 0 auto 1.25rem;
  background-color: #f1f5f9;
}

.credentials-badge-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.credentials-badge-box h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.credentials-badge-box ul li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credentials-badge-box ul li svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
  flex-shrink: 0;
}

.bio-content-col h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.bio-subtitle {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bio-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.bio-text p {
  margin-bottom: 1.25rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.philosophy-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.philosophy-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.philosophy-card h4 svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* ==========================================================================
   Services Page Detailed Cards
   ========================================================================== */
.service-detail-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  transition: var(--transition);
}

.service-detail-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.3);
}

.service-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.service-detail-content p {
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.service-pill {
  background: var(--bg-alt);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact & Appointment Form Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.form-success-alert {
  display: none;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 4rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-page);
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   Footer & Bottom Bar
   ========================================================================== */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-logo {
  display: inline-flex;
  background-color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.footer-brand-logo .brand-logo-img {
  height: 46px;
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-brand .brand-subtitle {
  color: #94a3b8;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.emergency-notice {
  background-color: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #fca5a5;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Responsive Media Queries (Mobile First Breakpoints)
   ========================================================================== */

/* Tablet & Mobile Nav */
@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }

  .main-nav.nav-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta-btn {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    padding: 0.85rem;
    font-size: 1rem;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats-row {
    text-align: center;
  }

  .hero-doctor-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .bio-card-horizontal {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: -2rem;
  }

  .bio-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .top-bar {
    text-align: center;
  }

  .top-bar .container {
    justify-content: center;
    gap: 0.4rem;
  }

  .brand-logo-img {
    height: 60px;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid-3, .cards-grid-2, .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-detail-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .service-detail-icon {
    width: 54px;
    height: 54px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
