/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary: #2563eb; /* Blue */
  --secondary: #14b8a6; /* Teal */
  --accent: #22c55e; /* Green */
  --dark: #0f172a;
  --gray: #475569;
  --light-gray: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

p {
  line-height: 1.75;
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================
   LAYOUT
========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

section:first-of-type {
  padding-top: 60px;
}

section:not(.hero):not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 10%,
    var(--border) 90%,
    transparent 100%
  );
}

section.alt::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(226, 232, 240, 0.8) 10%,
    rgba(226, 232, 240, 0.8) 90%,
    transparent 100%
  );
}

section.alt {
  background: var(--light-gray);
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 700;
}

.brand-text .tagline {
  font-size: 12px;
  color: var(--gray);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--gray);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

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

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 1001;
  position: relative;
  width: 32px;
  height: 32px;
}

.hamburger:hover {
  color: var(--primary);
}

.hamburger:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.main-nav .btn-primary {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #0d9488;
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #1d4ed8;
}

/* =========================
   PAGE HEADER
========================= */
.page-header {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.5),
    rgba(15, 23, 42, 0.3)
  );
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Hero backgrounds for specific pages */
.page-header.hero-about {
  background-image: url("../assets/images/hero/hero-about.jpg");
}

.page-header.hero-services {
  background-image: url("../assets/images/hero/hero-services.jpg");
}

.page-header.hero-patient-resources {
  background-image: url("../assets/images/hero/hero-patient-resources.jpg");
}

.page-header.hero-contact {
  background-image: url("../assets/images/hero/hero-contact.jpg");
  position: relative;
  padding: 60px 0;
}

.page-header.hero-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.2) 100%
  );
  z-index: 0;
}

.page-header.hero-contact .container {
  position: relative;
  z-index: 1;
}

.page-header.hero-contact h2,
.page-header.hero-contact p {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =========================
   HERO SECTION (HOME)
========================= */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.hero-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

.hero-text p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-features {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 600px;
}

.hero-feature-card {
  flex: 1;
  min-width: 160px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-feature-card-1 {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-feature-card-2 {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.25) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.hero-feature-card-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-feature-item {
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  display: block;
  text-align: center;
  line-height: 1.4;
}

.hero-feature-separator {
  display: none;
}

.btn-hero-primary {
  font-size: 16px;
  padding: 14px 28px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-hero-secondary {
  font-size: 16px;
  padding: 14px 28px;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-image: url("../assets/images/hero/hero-clinic-welcome.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--light-gray);
  position: relative;
  display: block;
  z-index: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(37, 99, 235, 0.03) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* =========================
   SPLIT LAYOUT
========================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.team-preview .split {
  align-items: center;
}

.resources-image,
.about-image,
.service-image,
.staff-image,
.facility-image {
  height: 360px;
  border-radius: var(--radius);
  background: var(--light-gray);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Clinic History Section */
.clinic-history {
  background: var(--white);
  padding: 80px 0;
}

.history-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--dark);
  font-weight: 700;
}

.history-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 16px;
}

.history-image {
  height: 400px;
  border-radius: var(--radius);
  background: var(--light-gray);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Service images */
.service-image {
  min-height: 300px;
}

/* Staff images */
.staff-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

/* Facility images */
.facility-image {
  height: 320px;
}

/* =========================
   FORMS
========================= */
form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================
   CONTACT PAGE
========================= */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 700;
}

.form-intro {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.7;
}

.appointment-form .form-group {
  margin-bottom: 24px;
}

.appointment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.appointment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit-contact {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.form-privacy-note {
  background: var(--light-gray);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.form-note {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  font-style: italic;
}

.contact-info-wrapper {
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.contact-info-wrapper h3 {
  font-size: 24px;
  margin-bottom: 28px;
  color: var(--dark);
  font-weight: 700;
}

.contact-info-block {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
}

.contact-info-block p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

/* =========================
   FAQ
========================= */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.faq-item h4 {
  margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.site-footer h4,
.site-footer h5 {
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-contact p {
  margin-bottom: 12px;
  color: #cbd5f5;
  line-height: 1.6;
}

.footer-hours {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 14px;
}

.footer-hours p {
  font-size: 13px;
  color: #cbd5f5;
  margin-bottom: 0;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: #cbd5f5;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-footer-cta {
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================
   CARDS & GRIDS
========================= */
.card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  text-align: center;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.service-card h4 {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 700;
}

.service-description {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 15px;
}

.service-audience {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

.section-cta .btn-secondary {
  padding: 14px 32px;
  font-size: 16px;
}

/* Staff Section */
.staff-section {
  background: var(--white);
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.staff-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.staff-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  flex-shrink: 0;
}

.staff-card-content {
  padding: 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.staff-card-content h4 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
}

.staff-card-content .staff-role {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.staff-description {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-top: auto;
  flex-grow: 1;
}

/* Doctor Grid */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.medical-team {
  background: var(--white);
  padding: 80px 0;
}

.doctor-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0;
  background-size: cover;
  background-position: center 20%;
  box-shadow: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.doctor-card:hover .doctor-photo {
  transform: scale(1.02);
}

.doctor-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doctor-info h4 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
}

.doctor-role {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.doctor-info p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 15px;
  margin: 0;
}

/* Service Category */
.service-category {
  padding: 60px 0;
}

.service-category:last-of-type {
  padding-bottom: 80px;
}

.service-category h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--dark);
}

.service-category p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-category ul {
  list-style: none;
  padding-left: 0;
}

.service-category li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray);
  line-height: 1.7;
}

.service-category li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Facility Grid */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.facility-item {
  text-align: center;
}

.facility-image {
  height: 280px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  border-radius: var(--radius);
}

.facility-item:hover .facility-image {
  transform: scale(1.02);
}

.facility-title {
  font-size: 20px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.facility-description {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  text-align: left;
}

.facility-caption {
  font-size: 15px;
  color: var(--gray);
  font-weight: 600;
  margin-top: 12px;
}

.facility-preview {
  background: var(--light-gray);
  padding: 100px 0;
}

.facility-cta-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.facility-cta-content h3 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark);
  font-weight: 700;
  text-align: left;
}

.facility-cta-intro {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: left;
}

.facility-cta-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.facility-cta-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facility-cta-feature strong {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
}

.facility-cta-feature span {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.facility-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.facility-cta-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.facility-cta-image-item {
  text-align: center;
}

.facility-cta-image-item .facility-image {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.facility-cta-image-item:hover .facility-image {
  transform: scale(1.02);
}

.location-info {
  text-align: center;
  margin-top: 50px;
}

.location-address {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.location-hours {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 16px;
}

/* CTA Sections */
.services-cta,
.about-cta,
.resources-cta {
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  padding: 60px 20px;
  border-radius: var(--radius);
}

.services-cta h3,
.about-cta h3,
.resources-cta h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--dark);
}

.services-cta p,
.about-cta p,
.resources-cta p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
}

/* Section Headings */
h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--dark);
  font-weight: 700;
}

.section-intro {
  max-width: 700px;
  margin: 0 0 40px 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.services-preview h3 {
  text-align: left;
}

/* Values Grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-item {
  text-align: center;
  padding: 48px 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.value-item h4 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 700;
}

.value-item p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 15px;
}

/* Philosophy Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.philosophy-item {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.philosophy-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.philosophy-item h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 700;
}

.philosophy-item p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 15px;
}

/* Resources Section */
.resources-section {
  padding: 60px 0;
}

.resources-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--dark);
}

.resources-text p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.resources-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.resources-text li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray);
  line-height: 1.7;
}

.resources-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.resource-note {
  font-style: italic;
  color: var(--gray);
  font-size: 14px;
  margin-top: 16px;
}

/* Visit List */
.visit-list {
  list-style: none;
  padding-left: 0;
  max-width: 700px;
  margin: 0;
  text-align: left;
}

.visit-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.8;
  font-size: 16px;
}

.visit-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
}

/* Map Section */
.map-section {
  margin-top: 60px;
}

.map-section {
  padding: 60px 0;
}

.map-section h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 700;
}

.visit-info {
  padding: 60px 0;
}

.visit-info h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 700;
}

.visit-info h4 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--dark);
  font-weight: 700;
}

.emergency-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
}

.map-container {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

  .google-map {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
  }

  @media (max-width: 900px) {
    .google-map {
      height: 300px;
    }
  }

.map-placeholder {
  height: 400px;
  background: var(--light-gray);
  border-radius: var(--radius);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  position: relative;
  overflow: hidden;
}

.map-label {
  text-align: center;
  z-index: 1;
}

.map-label p {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.map-label span {
  font-size: 14px;
  color: var(--gray);
}

/* =========================
   ADDITIONAL POLISH
========================= */
.team-preview {
  background: var(--light-gray);
}

.team-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 400px;
  border-radius: var(--radius);
  background: var(--light-gray);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-image: url("../assets/images/doctors/doctor-primary.jpg");
  flex-shrink: 0;
  margin: 0 auto;
}

.team-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--dark);
  font-weight: 700;
}

.team-text p {
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
  font-size: 16px;
}

.team-credentials {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.credential-card {
  flex: 1;
  min-width: 140px;
  min-height: 90px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.credential-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.credential-card-1 {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.credential-card-2 {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.15) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.credential-card-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.credential-card strong {
  display: block;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 24px;
}

.credential-card span {
  display: block;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.values {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 100px 0;
}

.values h3 {
  margin-bottom: 20px;
}

.value-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  text-align: center;
  line-height: 1;
}

.services-preview {
  background: var(--light-gray);
}

.trust {
  background: var(--white);
  padding: 60px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.trust-item {
  padding: 24px;
}

.trust-item strong {
  display: block;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-item span {
  color: var(--gray);
  font-size: 14px;
}

.location-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   FLOATING CTA BUTTON
========================= */
.floating-cta {
  display: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 35px 0;
  }

  .map-section {
    padding: 35px 0;
  }

  .visit-info {
    padding: 35px 0;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
    order: 1;
  }

  .contact-info-wrapper {
    position: static;
    order: 2;
    padding: 30px 20px;
  }

  .map-section {
    padding: 40px 0;
    order: 3;
  }

  .visit-info {
    order: 4;
    padding: 40px 0;
  }

  .appointment-form .form-group {
    margin-bottom: 20px;
  }

  .btn-submit-contact {
    width: 100%;
    padding: 16px 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
  }
  
  .hero {
    padding: 50px 0;
  }

  /* Hero section mobile order: image first, then cards, then text, then CTA */
  .hero-image-wrapper {
    order: 1;
    margin-bottom: 20px;
    width: 100%;
    display: block;
  }

  .hero-image-wrapper .hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    background-image: url("../assets/images/hero/hero-clinic-welcome.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-features {
    order: 2;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 30px;
  }

  .hero-feature-card {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
  }

  .hero-feature-item {
    font-size: 11px;
    line-height: 1.3;
  }

  .hero-text {
    order: 3;
  }

  .hero-cta {
    order: 4;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .main-nav.active {
    display: flex;
    max-height: 500px;
    padding: 20px;
  }

  .main-nav a {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--light-gray);
    color: var(--primary);
    font-weight: 700;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav .btn-primary {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border: none;
  }

  .main-nav .btn-primary:hover {
    background: #1d4ed8;
    color: var(--white);
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding: 6px;
    position: relative;
    z-index: 1001;
  }

  .hamburger.active {
    color: var(--primary);
  }

  .hamburger span {
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    pointer-events: none;
  }

  .hamburger .icon-menu {
    opacity: 1;
    transform: rotate(0deg);
  }

  .hamburger .icon-close {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
  }

  .hamburger.active .icon-menu {
    opacity: 0;
    transform: rotate(-90deg);
  }

  .hamburger.active .icon-close {
    opacity: 1;
    transform: rotate(0deg);
  }

  /* Floating Book Appointment Button for Mobile */
  .floating-cta {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
  }

  .floating-cta:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
    color: var(--white);
  }

  .floating-cta:active {
    transform: translateY(0);
  }

  @keyframes pulse {
    0%, 100% {
      box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    }
    50% {
      box-shadow: 0 8px 32px rgba(37, 99, 235, 0.6);
    }
  }

  section {
    padding: 40px 0;
  }

  section:first-of-type {
    padding-top: 20px;
  }

  .hero {
    padding: 35px 0;
  }

  .hero-container {
    gap: 25px;
  }

  p {
    line-height: 1.8;
  }

  .section-intro {
    line-height: 1.75;
  }

  .page-header {
    padding: 35px 20px 25px;
  }

  .page-header.hero-contact {
    padding: 30px 20px 20px;
  }

  .page-header h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .page-header p {
    font-size: 15px;
  }

  .values {
    padding: 40px 0;
  }

  .facility-preview {
    padding: 40px 0;
  }

  .service-category {
    padding: 40px 0;
  }

  .resources-section {
    padding: 40px 0;
  }

  .services-cta,
  .about-cta,
  .resources-cta {
    padding: 40px 20px;
  }

  .page-header {
    padding: 40px 20px 30px;
  }

  .page-header.hero-contact {
    padding: 35px 20px 25px;
  }

  .page-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .page-header p {
    font-size: 14px;
    line-height: 1.6;
  }

  h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .doctor-grid,
  .facility-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

    .clinic-history .split {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .history-text {
    order: 1;
  }

  .history-text h3 {
    margin-bottom: 16px;
  }

  .history-image {
    order: 2;
    height: 280px;
    width: 100%;
  }

  .philosophy-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .doctor-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .doctor-info {
    padding: 20px;
  }

  .staff-card-image {
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .facility-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .facility-description {
    font-size: 14px;
    text-align: center;
  }

  .facility-cta-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
    display: flex;
    flex-direction: column;
  }

  .facility-cta-images {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
  }

  .facility-cta-image-item {
    text-align: center;
    width: 100%;
  }

  .facility-cta-image-item .facility-image {
    height: 220px;
    min-height: 220px;
    width: 100%;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
  }

  .facility-caption {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
  }

  .facility-cta-content {
    order: 2;
  }

  .facility-cta-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: left;
  }

  .facility-cta-intro {
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.7;
    text-align: left;
  }

  .facility-cta-features {
    gap: 20px;
    margin-bottom: 32px;
  }

  .facility-cta-feature strong {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .facility-cta-feature span {
    font-size: 13px;
    line-height: 1.6;
  }

  .facility-cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .facility-cta-actions a {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 14px 24px;
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta a {
    width: 100%;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .hero-text h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .hero-cta {
    flex-direction: column;
    margin-bottom: 24px;
    gap: 12px;
  }

  .hero-cta a {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Hero features already handled above with order property */

  /* Hero image styles handled above in hero-image-wrapper */

  .team-preview {
    padding: 50px 0;
  }

  .team-preview .split {
    display: flex;
    flex-direction: column;
  }

  .team-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 100%;
    order: 1;
    margin-bottom: 24px;
    display: block;
    background-image: url("../assets/images/doctors/doctor-primary.jpg");
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
  }

  .team-credentials {
    order: 2;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 24px;
  }

  .credential-card {
    flex: 1;
    min-width: 0;
    min-height: 70px;
    padding: 12px 10px;
  }

  .credential-card strong {
    font-size: 14px;
  }

  .credential-card span {
    font-size: 10px;
    min-height: 28px;
  }

  .team-text {
    order: 3;
    text-align: center;
  }

  .team-text h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .team-text p {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .team-text .btn-secondary {
    margin: 0 auto;
  }

  .credential-card {
    width: 100%;
    min-width: 100%;
    min-height: 80px;
    padding: 16px 20px;
  }

  .credential-card strong {
    font-size: 16px;
  }

  .credential-card span {
    font-size: 11px;
  }

  .team-text .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .value-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .value-item {
    padding: 32px 24px;
  }

  .value-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .value-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .value-item p {
    font-size: 14px;
    line-height: 1.7;
  }

  .card-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .service-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .service-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .service-description {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-audience {
    font-size: 12px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .section-cta {
    margin-top: 40px;
  }

  .section-cta .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }

  .footer-grid {
    gap: 30px;
  }

  .site-footer {
    padding: 50px 0 20px;
  }

  .footer-cta {
    margin-top: 20px;
    padding-top: 20px;
  }

  .btn-footer-cta {
    padding: 12px 20px;
    font-size: 14px;
  }
}
