/* Providence Medical Group Colors */
:root {
  --providence-blue: #0537a4;
  --providence-dark-blue: #003087;
  --providence-light-blue: #4a90e2;
  --providence-accent: #00a3e0;
  --text-dark: #333333;
  --text-light: #666666;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --success-green: #28a745;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--providence-dark-blue);
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  margin-top: 0;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  margin-top: 1.5rem;
}

a {
  color: var(--providence-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--providence-accent);
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--providence-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
  background-color: var(--providence-blue);
  color: var(--white);
  padding: 0.75rem 0;
}

.header-top-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-contacts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.header-contact-item a {
  color: var(--white);
  text-decoration: none;
}

.header-contact-item a:hover {
  text-decoration: underline;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.doctor-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--providence-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doctor-info h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--providence-dark-blue);
}

.doctor-info .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Navigation Styles */
.main-nav {
  background-color: var(--background-light);
  border-top: 1px solid var(--border-color);
}

.main-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--providence-blue);
  background-color: var(--white);
  border-bottom-color: var(--providence-blue);
}

/* Dropdown Menu Styles */
.main-nav .has-dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 250px;
  z-index: 1000;
  border-top: 2px solid var(--providence-blue);
}

.main-nav .has-dropdown:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu a {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

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

/* Main Content Styles */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section p {
  margin-bottom: 1.5rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

/* Checklist Styles */
.checklist {
  list-style: none;
  margin: 1.5rem 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--background-light);
  border-left: 4px solid var(--providence-blue);
  border-radius: 4px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--providence-blue);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  background-color: var(--white);
}

.checklist li.printable {
  page-break-inside: avoid;
}

/* Workflow Steps */
.workflow-container {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.workflow-step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  position: relative;
}

.workflow-step a {
  display: block;
  padding: 2rem 1.5rem;
  background-color: var(--background-light);
  border-top: 4px solid var(--providence-blue);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.workflow-step a:hover {
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.workflow-step.active a {
  background-color: var(--providence-blue);
  border-top-color: var(--providence-dark-blue);
}

.workflow-step.active .step-number {
  background-color: var(--white);
  color: var(--providence-blue);
}

.workflow-step.active h3 {
  color: var(--white);
}

.workflow-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--providence-blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.workflow-step h3 {
  color: var(--providence-dark-blue);
  margin-bottom: 0.5rem;
  margin-top: 0;
  transition: color 0.3s ease;
}

.workflow-step .step-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.25rem;
  font-family: 'Barlow', sans-serif;
  transition: color 0.3s ease;
}

.workflow-step.active .step-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.workflow-step::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--providence-blue);
  pointer-events: none;
}

.workflow-step:last-child::after {
  display: none;
}

/* Section with Icon */
.section-with-icon {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 8px;
}

.section-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--providence-blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
}

.section-content {
  flex: 1;
}

.section-content h3 {
  margin-top: 0;
}

.section-content p {
  margin-bottom: 1.5rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.equipment-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 8px;
}

.equipment-item img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.equipment-item h4 {
  color: var(--providence-blue);
  margin-bottom: 0.5rem;
}

/* Medication List */
.medication-columns {
  columns: 2;
  column-gap: 2rem;
  margin: 1rem 0;
}

.medication-columns li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.alert-info {
  background-color: #d1ecf1;
  border-left-color: #0c5460;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border-left-color: #856404;
  color: #856404;
}

.alert-success {
  background-color: #d4edda;
  border-left-color: var(--success-green);
  color: #155724;
}

/* Contact Information */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  padding: 2rem;
  background-color: var(--background-light);
  border-top: 4px solid var(--providence-blue);
  border-radius: 8px;
}

.contact-card h3 {
  color: var(--providence-blue);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--providence-dark-blue);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--providence-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Header adjustments */
  .header-top-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header-contacts {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-main {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .logo-container {
    flex-direction: column;
  }

  .doctor-headshot {
    width: 100px;
    height: 100px;
  }

  /* Navigation - larger touch targets */
  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }

  .main-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    min-height: 44px; /* Minimum touch target size */
  }

  /* Mobile dropdown - click to expand instead of hover */
  .main-nav .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .main-nav .has-dropdown.active .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border-top: none;
  }

  .main-nav .dropdown-menu a {
    padding-left: 2rem;
    background-color: var(--background-light);
  }

  /* Content spacing */
  .main-content {
    padding: 1.5rem 1rem;
  }

  .content-section {
    margin-bottom: 2rem;
  }

  /* Workflow steps */
  .workflow-container {
    flex-direction: column;
    gap: 1rem;
  }

  .workflow-step::after {
    display: none;
  }

  .workflow-step a {
    padding: 1.5rem 1rem;
  }

  /* Buttons - larger touch targets */
  .btn {
    padding: 1rem 1.5rem;
    display: block;
    text-align: center;
  }

  /* Medication list */
  .medication-columns {
    columns: 1;
  }

  /* Section icons */
  .section-with-icon {
    flex-direction: column;
  }

  .section-icon {
    margin: 0 auto;
  }

  /* Equipment grid */
  .equipment-grid {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .site-footer {
    margin-top: 2rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .header-top {
    font-size: 0.85rem;
  }

  .doctor-headshot {
    width: 80px;
    height: 80px;
  }

  .doctor-info h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .workflow-step .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .main-nav,
  .site-footer {
    display: none;
  }

  .checklist li {
    page-break-inside: avoid;
  }

  .checkbox {
    border: 2px solid #000;
    background-color: #fff;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  /* Hide video iframe and show URL instead */
  .video-container {
    position: static;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0.5rem 0;
    height: auto;
    background-color: transparent;
  }

  .video-container iframe {
    display: none;
  }

  .video-container::after {
    content: "Video available at: https://www.youtube.com/watch?v=fOpTJ5OAm9o";
    display: block;
    padding: 1rem;
    border: 2px solid #000;
    background-color: #f5f5f5;
    font-family: monospace;
    word-break: break-all;
  }
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  background-color: #000;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--providence-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--providence-dark-blue);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--providence-accent);
}

.btn-secondary:hover {
  background-color: var(--providence-light-blue);
}

/* Add spacing above button paragraphs */
.section-content p:has(.btn),
.content-section p:has(.btn) {
  margin-top: 1rem;
}
