/* ============================================================
   LIFE SAVER CPR ACADEMY — Custom Theme
   Primary: Red #dc2626 | Navy: #1e3a5f | Accent: #f97316
   ============================================================ */

:root {
    --primary:        #dc2626;
    --primary-dark:   #b91c1c;
    --primary-light:   #ef4444;
    --accent:         #f97316;
    --accent-dark:    #ea580c;

    /* Navy brand colors */
    --navy:           #1e3a5f;
    --navy-dark:      #0f2744;
    --navy-light:      #2d4a6f;

    /* Neutrals */
    --bg:             #111111;
    --bg-alt:         #0d0d0d;
    --card:           #1a1a1a;
    --card-navy:      #162032;
    --border:         #2a2a2a;
    --border-light:   #3a3a3a;
    --white:          #ffffff;
    --gray:           #9ca3af;
    --text:           #ffffff;

    /* Typography */
    --font-head:      'Barlow Condensed', sans-serif;
    --font-body:      'Barlow', sans-serif;

    /* RGB for alpha */
    --primary-rgb:    220,38,38;
    --navy-rgb:       30,58,95;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* TOPBAR */
.topbar { background: var(--navy-dark); padding: 0.5rem 0; font-size: 0.85rem; color: var(--white); }
.topbar .container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar span { color: var(--gray); }
.topbar .sep { color: var(--border-light); }
.topbar-phone { color: var(--primary) !important; font-weight: 700; text-decoration: none; margin-left: auto; }
.topbar-phone:hover { color: var(--primary-light) !important; }

/* NAVBAR */
.navbar { background: var(--navy-dark); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; padding: 1rem 0; }
.nav-inner { display: flex; align-items: center; gap: 1rem; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-primary { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }
.logo-secondary { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--white); letter-spacing: 2px; text-transform: uppercase; margin-top: -2px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; margin-left: auto; }
.nav-links { display: flex; list-style: none; gap: 0.5rem; margin-left: auto; }
.nav-links a { color: var(--white); font-weight: 500; padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--primary); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; border-top: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-inner { position: relative; }
}

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--card) 50%, var(--navy-dark) 100%); padding: 80px 0; position: relative; overflow: hidden; min-height: 500px; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(220,38,38,0.12) 0%, transparent 70%); }
.hero-badge { display: inline-block; background: var(--primary); color: var(--white); font-weight: 700; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 1rem; }
.hero-content .accent { color: var(--primary); }
.hero-sub { font-size: 1.2rem; color: var(--gray); max-width: 600px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all 0.2s; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-cta-primary { background: var(--primary); color: var(--white); border-color: var(--primary); padding: 1rem 2rem; font-size: 1.1rem; }
.btn-cta-outline { background: transparent; color: var(--white); border-color: var(--white); padding: 1rem 2rem; font-size: 1.1rem; }

/* WHY STRIP */
.why-strip { background: var(--navy); padding: 2rem 0; border-bottom: 2px solid var(--primary); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.why-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.why-icon { font-size: 2rem; flex-shrink: 0; }
.why-item strong { display: block; color: var(--white); font-size: 0.95rem; }
.why-item span { color: var(--gray); font-size: 0.85rem; }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-header p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: all 0.3s; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--white); }
.service-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* CTA BANNER */
.cta-banner { background: var(--navy); padding: 5rem 0; text-align: center; border-top: 3px solid var(--primary); border-bottom: 3px solid var(--primary); }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.cta-banner p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* REVIEWS */
.reviews-section { background: var(--bg-alt); }
.rating-display { font-size: 1.1rem; color: var(--gray); margin-top: 0.5rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.review-stars { color: var(--primary); font-size: 1.2rem; margin-bottom: 0.75rem; }
.review-card p { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.reviewer { color: var(--gray); font-size: 0.85rem; }

/* LOCATION */
.location-section { padding: 5rem 0; background: var(--bg); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.location-info h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; }
.loc-item { color: var(--gray); font-size: 1rem; margin-bottom: 0.75rem; }
.loc-item a { color: var(--primary); }
.loc-item a:hover { color: var(--primary-light); }
.map-embed iframe { border-radius: 12px; }

@media (max-width: 768px) {
    .location-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.footer { background: var(--navy-dark); border-top: 3px solid var(--primary); padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo-primary { font-size: 1.4rem; }
.footer-brand p { color: var(--gray); margin-top: 0.5rem; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--gray); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { color: var(--gray); font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--gray); font-size: 0.85rem; }
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; }
}
