/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #2d3748;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.3;
  font-weight: 700;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --blue-primary: #1565c0;
  --blue-dark: #0d47a1;
  --blue-light: #e8f0fe;
  --blue-muted: #f0f5fc;
  --red-primary: #c62828;
  --red-dark: #b71c1c;
  --red-light: #fce8e8;
  --grey-dark: #263238;
  --grey-text: #4a5568;
  --grey-light: #f5f7fa;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1120px;
  --transition: 0.25s ease;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 100px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--grey-dark);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--blue-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-dark);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.25rem;
  color: var(--grey-dark);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--grey-text);
  line-height: 1.8;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== SHARED SECTION STYLES ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-inner h2 {
  font-size: 1.85rem;
  color: var(--grey-dark);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ===== WHY AEDs MATTER ===== */
.section-why {
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-red {
  background: var(--red-light);
  color: var(--red-primary);
}

.stat-icon-blue {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--grey-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.5;
}

.why-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.why-detail-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.why-detail-text h3 {
  font-size: 1.35rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.why-detail-text p {
  color: var(--grey-text);
  margin-bottom: 1rem;
}

.why-detail-text p:last-child {
  margin-bottom: 0;
}

/* ===== EDUCATION & PREPAREDNESS ===== */
.section-education {
  background: var(--grey-light);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.education-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.edu-point {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.edu-point:last-child {
  margin-bottom: 0;
}

.edu-point-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.edu-point-icon svg {
  width: 22px;
  height: 22px;
}

.edu-point h3 {
  font-size: 1.1rem;
  color: var(--grey-dark);
  margin-bottom: 0.35rem;
}

.edu-point p {
  font-size: 0.95rem;
  color: var(--grey-text);
}

/* ===== TRANSITION SECTION ===== */
.section-transition {
  background: var(--blue-muted);
  border-top: 3px solid var(--blue-primary);
  border-bottom: 3px solid var(--blue-primary);
}

.transition-inner {
  text-align: center;
  max-width: 720px;
}

.transition-inner h2 {
  color: var(--blue-dark);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.transition-inner p {
  font-size: 1.1rem;
  color: var(--grey-text);
  line-height: 1.8;
}

/* ===== SERVICES ===== */
.section-services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon-blue {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.service-icon-red {
  background: var(--red-light);
  color: var(--red-primary);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--grey-dark);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--grey-text);
  flex: 1;
  margin-bottom: 1.5rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-blue {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}

.btn-red {
  background: var(--red-primary);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow-sm);
}

/* ===== CONTACT ===== */
.section-contact {
  background: var(--blue-muted);
  border-top: 3px solid var(--blue-primary);
}

.contact-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-heading h2 {
  font-size: 1.85rem;
  color: var(--grey-dark);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.contact-heading .section-intro {
  max-width: 560px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--blue-primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--grey-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background: var(--blue-primary);
  color: var(--white);
  transition: all var(--transition);
  width: 100%;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--blue-dark);
  border-bottom: 3px solid var(--red-primary);
  box-shadow: var(--shadow-sm);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  font-size: 1.25rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--grey-text);
  font-size: 0.95rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--red-primary);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}

.contact-info-intro {
  font-size: 0.95rem;
  color: var(--grey-text);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  color: var(--grey-text);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-primary);
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--blue-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--grey-dark);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 80px;
  width: auto;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem 1.5rem;
  }

  .stat-card .stat-icon {
    margin: 0;
  }

  .why-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0.65rem 1rem;
  }

  .logo {
    height: 72px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--red-primary);
    box-shadow: var(--shadow-md);
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 2.5rem 1.25rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .section-inner {
    padding: 3.5rem 1.25rem;
  }

  .section-inner h2 {
    font-size: 1.5rem;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-logo {
    height: 60px;
  }
}
