/* ===== PRIME PULMONARY & SLEEP CARE ===== */
/* Brand: Navy #2b3252, Coral #ef5455, White, Light Gray */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- RESET & VARIABLES ---------- */
:root {
  --navy: #2b3252;
  --coral: #ef5455;
  --coral-dark: #d94344;
  --dark: #1a1e33;
  --text: #343434;
  --text-light: #6b7280;
  --light-bg: #f5f6fa;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(43,50,82,0.08);
  --shadow-md: 0 4px 20px rgba(43,50,82,0.1);
  --shadow-lg: 0 10px 40px rgba(43,50,82,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--coral-dark); text-decoration: none; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.3; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(43,50,82,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.97);
}

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

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 58px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.logo-text span { color: var(--coral); }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(43,50,82,0.06);
  color: var(--coral);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle::after {
  content: '';
  border: solid var(--navy);
  border-width: 0 1.5px 1.5px 0;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: var(--transition);
  margin-top: -2px;
}
.dropdown:hover .dropdown-toggle::after { transform: rotate(-135deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border: 1px solid rgba(43,50,82,0.06);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover {
  background: var(--light-bg);
  color: var(--coral);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--coral);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.header-cta:hover {
  background: var(--coral-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239,84,85,0.3);
}

/* ---------- HERO / BANNER ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,30,51,0.88) 0%, rgba(43,50,82,0.65) 50%, rgba(43,50,82,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 0;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-content h1 span { color: var(--coral); }
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,84,85,0.3);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,50,82,0.3);
}

/* ---------- SECTION STYLING ---------- */
.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--coral); }
.section-header p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}
.section-navy .section-header p { color: rgba(255,255,255,0.7); }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43,50,82,0.05);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--coral);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}
.testimonial-card p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--light-bg);
}
.testimonial-author-info h6 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.testimonial-author-info span {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- PROVIDER ---------- */
.provider-card {
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
}
.provider-card .doctor-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 4px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.provider-card .doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.provider-card:hover .doctor-image img { transform: scale(1.06); }
.provider-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.provider-card p { font-size: 15px; opacity: 0.8; }

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43,50,82,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--coral);
  transition: var(--transition);
  border-radius: 0 0 4px 0;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(239,84,85,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-body);
  color: var(--navy);
}
.service-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}
.service-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .read-more:hover { gap: 10px; }

/* ---------- TREATMENT GRID ---------- */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43,50,82,0.05);
  transition: var(--transition);
}
.treatment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.treatment-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3d4570);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}
.treatment-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.treatment-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.65;
}

/* ---------- ABOUT / BIO PAGE ---------- */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.bio-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.bio-photo img { width: 100%; height: auto; }
.bio-content h1 {
  font-size: 38px;
  margin-bottom: 4px;
}
.bio-content .subtitle {
  font-size: 17px;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 24px;
}
.bio-content p { margin-bottom: 16px; }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.credential-item {
  padding: 24px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--coral);
}
.credential-item h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 6px;
}
.credential-item p {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0;
}

/* ---------- SERVICE DETAIL PAGE ---------- */
.page-hero {
  background: var(--navy);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: var(--coral); }

.content-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  margin-top: 40px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
}
.content-section ul {
  margin: 16px 0 24px 24px;
  list-style: none;
}
.content-section ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
}
.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.content-cta {
  margin-top: 48px;
  padding: 36px;
  background: var(--light-bg);
  border-radius: var(--radius);
  text-align: center;
}
.content-cta h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.content-cta p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 20px;
}
.contact-info-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--navy);
}
.contact-info-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.contact-info-card a { color: var(--coral); font-weight: 500; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-about .logo-text {
  font-size: 22px;
  margin-bottom: 16px;
  display: block;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.7;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--coral); padding-left: 4px; }
.footer-contact p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 16px;
}
.footer-contact a { color: rgba(255,255,255,0.9); }
.footer-contact a:hover { color: var(--coral); }
.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  opacity: 0.5;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 999;
  }
  .main-nav.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-content h1 { font-size: 32px; }
  .hero { min-height: 420px; }
  .bio-section { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo { position: static; max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .hero-content { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .treatment-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .credentials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .treatment-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
