/* ============================================================
   ROSEVILLE PULMONARY AND SLEEP — Global Styles
   Primary color: #1a5c5a (teal, from logo)
   Accent:        #e8f4f3
   Text:          #1a2e2e
   ============================================================ */

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

:root {
  --teal:        #1a5c5a;
  --teal-dark:   #123f3d;
  --teal-light:  #2a7876;
  --teal-pale:   #e8f4f3;
  --teal-mid:    #c2e0de;
  --text:        #1a2e2e;
  --text-muted:  #4a6363;
  --text-light:  #7a9595;
  --bg:          #ffffff;
  --bg-soft:     #f7fbfb;
  --border:      #d0e8e6;

  --font-head:   'Raleway', sans-serif;
  --font-body:   'Source Sans 3', sans-serif;

  --radius:      8px;
  --shadow-sm:   0 1px 3px rgba(26,92,90,0.08);
  --shadow-md:   0 4px 16px rgba(26,92,90,0.12);
  --shadow-lg:   0 8px 32px rgba(26,92,90,0.16);

  --max-w:       1100px;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal-dark);
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }
a  { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--teal-pale); color: var(--teal); }
.nav-links a.active { background: var(--teal-pale); color: var(--teal); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--teal-pale); color: var(--teal); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--teal);
}
.nav-toggle svg { display: block; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.65rem 1rem; width: 100%; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal-mid);
    margin-left: 1rem;
    padding: 0;
    background: var(--bg-soft);
  }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  color: #fff;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.btn-primary:hover { background: var(--teal-pale); border-color: var(--teal-pale); color: var(--teal-dark); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover { background: var(--teal-pale); }

/* ── CARDS ── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.card-link:hover { color: var(--teal-dark); }
.card-link::after { content: '→'; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); }

/* ── SYMPTOMS / CONDITIONS TAGS ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--teal-pale);
  color: var(--teal-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--teal-mid);
}

/* ── TWO-COLUMN SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.split-text h2 { margin-bottom: 1rem; }

/* ── QUOTE BLOCK ── */
.quote-block {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}
.quote-block::before {
  content: '"';
  font-family: var(--font-head);
  font-size: 8rem;
  line-height: 0.7;
  color: rgba(255,255,255,0.12);
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  pointer-events: none;
}
.quote-block blockquote {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
}
.quote-attr {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  font-style: normal;
}
.quote-attr span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}

/* ── BG VARIANTS ── */
.bg-soft { background: var(--bg-soft); }
.bg-teal  { background: var(--teal-pale); }

/* ── PROCEDURE PAGE ── */
.procedure-hero {
  background: var(--teal-pale);
  border-bottom: 1px solid var(--teal-mid);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.procedure-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.procedure-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }
.procedure-body { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.info-box {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--teal); margin-bottom: 0.5rem; }

.detail-list { list-style: none; padding: 0; }
.detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.detail-list li:last-child { border-bottom: none; }
.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ── ABOUT PAGE ── */
.about-hero { background: var(--teal-pale); padding: clamp(3rem, 7vw, 6rem) 0; }
.dr-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 640px) { .dr-card { grid-template-columns: 1fr; } }
.dr-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--teal-mid);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.dr-photo-placeholder svg { opacity: 0.5; }
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.affil-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.affil-chip::before { content: '🏥'; }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.contact-card h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 36px; height: 36px;
  background: var(--teal-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.1rem; }
.contact-item-text span { font-size: 0.95rem; color: var(--text-muted); font-style: italic; }
.placeholder-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: #7a6000;
  margin-top: 0.5rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--text-light); }

/* ── FOOTER ── */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); opacity: 0.85; }
footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
