/* ============================================================
     Beat Again CPR | styles.css
     AHA Authorized Training Site | Houston, TX | (832) 802-1660
     ============================================================ */

  @import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&family=Pacifico&display=swap');

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px; color: #333; background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { color: #fff; background: #0ABAB5; }
  a { color: #3A6B35; text-decoration: none; transition: color .2s; }
  a:hover { color: #0ABAB5; }
  img { max-width: 100%; height: auto; display: block; }

  /* Layout */
  .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
  .section-heading { text-align: center; margin-bottom: 40px; }
  .section-heading h2 { font-size: 2.2rem; font-weight: 700; color: #3A6B35; margin-bottom: 8px; }
  .section-heading p  { font-size: 1.1rem; color: #858585; }

  /* Navbar */
  .header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: #0ABAB5; z-index: 1000;
    border-bottom: 1px solid #7DE0DD; transition: box-shadow .3s;
  }
  .header-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.2); }
  .nav-container {
    max-width: 1140px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
  }
  .nav-brand { background: none; border: none; cursor: pointer; padding: 0; }
  .brand-text { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: #3A6B35; }
  .nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .toggle-bar { width: 24px; height: 2px; background: #fff; transition: all .3s; }
  .nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
  .nav-link {
    background: none; border: none; color: #B8EBE9;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem; font-weight: 600; text-transform: uppercase;
    cursor: pointer; padding: 8px 14px; border-radius: 5px;
    transition: all .2s; white-space: nowrap;
  }
  .nav-link:hover, .nav-link.active { color: #3A6B35; background: rgba(255,255,255,.25); }

  /* Hero Slider */
  .hero-slider { margin-top: 64px; position: relative; }
  .slider-container {
    position: relative; width: 100%; height: 500px; overflow: hidden;
    background: url('images/building.jpg') center center / cover no-repeat;
  }
  .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center;
    opacity: 0; transition: opacity .8s ease;
    pointer-events: none; background: rgba(0,0,0,.5);
  }
  .slide-active { opacity: 1; pointer-events: auto; z-index: 1; }
  .slide-content { max-width: 1140px; margin: 0 auto; padding: 0 40px; color: #fff; }
  .slide-title { font-size: 3rem; font-weight: 700; margin-bottom: 4px; text-shadow: 1px 1px 2px rgba(0,0,0,.2); }
  .slide-subtitle { font-size: 1.3rem; font-weight: 400; opacity: .9; margin-bottom: 16px; }
  .slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
  }
  .dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.2); cursor: pointer; transition: all .3s; padding: 0;
  }
  .dot-active { background: #fff; }
  .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.2); color: #fff; font-size: 1.8rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center;
    justify-content: center; transition: all .3s; opacity: 0; line-height: 1;
  }
  .slider-container:hover .slider-arrow { opacity: 1; }
  .slider-arrow:hover { background: rgba(255,255,255,.4); }
  .slider-prev { left: 20px; }
  .slider-next { right: 20px; }

  /* AHA Badge — rectangular */
  .aha-badge {
    position: absolute; top: 24px; right: 24px;
    width: 220px; height: auto; border-radius: 6px;
    object-fit: contain; z-index: 10; pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
  }

  /* Action Panel */
  .action-panel { background: #0ABAB5; padding: 30px 0; }
  .action-panel-content { text-align: center; color: #3A6B35; }
  .action-panel-content h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; }
  .action-panel-content p  { font-size: 1.2rem; opacity: .95; }
  .action-panel-content a  { color: #3A6B35; text-decoration: underline; font-weight: 600; }
  .action-panel-content a:hover { opacity: .8; }

  /* Intro */
  .intro-section { background: #fff; padding: 70px 0; }
  .intro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
  .intro-card { text-align: center; padding: 30px 20px; border-radius: 8px; transition: transform .3s, box-shadow .3s; }
  .intro-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .intro-icon { font-size: 2.8rem; margin-bottom: 16px; }
  .intro-card h3 { font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 10px; }
  .intro-card p  { color: #858585; line-height: 1.6; font-size: .95rem; }

  /* Stats */
  .stats-section { background: linear-gradient(135deg, #0ABAB5 0%, #3A6B35 100%); }
  .stats-overlay { background: rgba(0,0,0,.15); padding: 60px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
  .stat-item { display: flex; flex-direction: column; align-items: center; color: #fff; }
  .stat-icon  { font-size: 2rem; margin-bottom: 8px; }
  .stat-value { font-size: 2.8rem; font-weight: 700; }
  .stat-label { font-size: 1rem; opacity: .9; margin-top: 4px; }

  /* Reviews */
  .reviews-section { background: #fff; padding: 70px 0; }
  .reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .review-card-static { text-align: center; padding: 20px; background: #f0f0f0; border-radius: 8px; }
  .review-author-name { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 12px; }
  .review-text-static  { font-size: .95rem; line-height: 1.6; color: #777; }

  /* Course Sections */
  .course-section { padding: 70px 0; background: #fff; }
  .course-section.has-banner { padding-top: 0; }
  .course-accent { background: #f0fafa; }
  .course-banner { width: 100%; height: 280px; overflow: hidden; margin-bottom: 40px; }
  .course-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #bls  .course-banner-img { object-fit: contain; background: #000; }
  #acls .course-banner-img,
  #pals .course-banner-img { object-fit: contain; background: #000; }
  #heartsaver .course-banner-img { object-fit: contain; background: #fff; }

  /* Pricing */
  .pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px; max-width: 900px; margin: 0 auto;
  }
  .pricing-card {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 24px 20px; text-align: center; transition: transform .3s, box-shadow .3s;
  }
  .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(10,186,181,.12); border-color: #0ABAB5; }
  .pricing-name  { font-size: 1rem; font-weight: 700; color: #333; margin-bottom: 10px; }
  .pricing-price { font-size: 1.8rem; font-weight: 700; color: #3A6B35; margin-bottom: 4px; }
  .pricing-note  { font-size: .85rem; color: #999; font-style: italic; margin-top: 4px; }

  /* Contact */
  .contact-section { padding: 70px 0; background: #fff; }
  .contact-grid-simple {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center; margin-bottom: 40px;
  }
  .contact-info { display: flex; flex-direction: column; gap: 24px; font-style: normal; }
  .contact-item { display: flex; gap: 16px; align-items: flex-start; }
  .contact-icon { font-size: 1.6rem; flex-shrink: 0; width: 40px; text-align: center; }
  .contact-item h4 { font-size: 1rem; font-weight: 700; color: #333; margin-bottom: 2px; }
  .contact-item p  { color: #666; line-height: 1.5; margin: 0; }
  .contact-caricature { display: flex; justify-content: center; }
  .caricature-img { width: 100%; max-width: 420px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
  .map-container { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

  /* Footer */
  .footer { background: #2c2c2c; color: #ccc; padding: 50px 0 0; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #444; }
  .footer-brand { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: #0ABAB5; margin-bottom: 12px; }
  .footer-col p  { line-height: 1.6; font-size: .95rem; }
  .footer-col h4 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
  .footer-col ul { list-style: none; padding: 0; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul button { background: none; border: none; color: #ccc; font-family: 'Source Sans Pro',sans-serif; font-size: .95rem; cursor: pointer; padding: 0; transition: color .2s; }
  .footer-col ul button:hover { color: #0ABAB5; }
  .footer-col a { color: #ccc; }
  .footer-col a:hover { color: #0ABAB5; }
  .footer-bottom { text-align: center; padding: 20px 0; font-size: .9rem; color: #888; }

  /* Scroll-to-top */
  .scroll-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    background: #0ABAB5; color: #3A6B35; border: none; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer; z-index: 999;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: background .3s;
  }
  .scroll-top.visible { display: flex; }
  .scroll-top:hover { background: #008A86; }

  /* Responsive — 992px */
  @media (max-width: 992px) {
    .intro-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .slide-title { font-size: 2.4rem; }
  }

  /* Responsive — 768px */
  @media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
      display: none; flex-direction: column;
      position: absolute; top: 64px; left: 0; right: 0;
      background: #0ABAB5; padding: 16px; gap: 2px;
      border-top: 1px solid #7DE0DD;
    }
    .nav-open { display: flex; }
    .nav-link { width: 100%; text-align: left; padding: 12px 16px; }
    .aha-badge { width: 160px; }
    .slider-container { height: 420px; }
    .slide-title { font-size: 2rem; }
    .slide-subtitle { font-size: 1.1rem; }
    .slide-content { padding: 0 24px; }
    .intro-grid { grid-template-columns: 1fr; gap: 16px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
    .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
    .stat-value { font-size: 2.2rem; }
    .contact-grid-simple { grid-template-columns: 1fr; gap: 30px; }
    .caricature-img { max-width: 320px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-heading h2 { font-size: 1.8rem; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .action-panel-content h1 { font-size: 1.8rem; }
    .course-banner { height: 220px; }
  }

  /* Responsive — 480px */
  @media (max-width: 480px) {
    .aha-badge { width: 120px; top: 12px; right: 12px; }
    .slider-container { height: 380px; }
    .slide-title { font-size: 1.6rem; }
    .slide-subtitle { font-size: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.8rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .brand-text { font-size: 1.3rem; }
    .section-heading h2 { font-size: 1.5rem; }
    .intro-section, .reviews-section, .course-section, .contact-section { padding: 50px 0; }
    .course-banner { height: 180px; margin-bottom: 30px; }
  }