/*
Theme Name: Aussie Health
Description: Aussie Health Insurance Theme
Version: 2.0
*/

/* =============================================
   FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --navy:       #1a2e52;
  --navy-light: #223669;
  --green:      #3a9e3f;
  --green-hover:#2e8032;
  --light-bg:   #eef3f9;
  --white:      #ffffff;
  --text:       #1e2d40;
  --muted:      #5a6b80;
  --border:     #d0dce8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; font-family: inherit; }

/* =============================================
   HEADER — TOP BAR
   ============================================= */
.ahi-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,46,82,0.09);
}

/* Top bar with email/phone/buttons */
.ahi-topbar {
  background: #f4f7fb;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.ahi-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ahi-topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #3a5070;
  transition: color .2s;
}
.ahi-topbar-link:hover { color: var(--navy); }
.ahi-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.ahi-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}
.ahi-btn-navy { background: var(--navy); color: #fff; }
.ahi-btn-navy:hover { background: var(--navy-light); color: #fff; }
.ahi-btn-green { background: var(--green); color: #fff; }
.ahi-btn-green:hover { background: var(--green-hover); color: #fff; }
.ahi-btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.ahi-btn-outline:hover { background: var(--navy); color: #fff; }

/* Main nav bar */
.ahi-navbar { background: var(--white); }
.ahi-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

/* Logo */
.ahi-logo { display: flex; align-items: center; flex-shrink: 0; }
.ahi-logo img { height: 54px; width: auto; }

/* Nav links */
.ahi-nav { display: flex; }
.ahi-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ahi-nav-list li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 5px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.ahi-nav-list li a:hover,
.ahi-nav-list li a.active {
  background: var(--light-bg);
  color: var(--navy);
}
.ahi-nav-list li a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  border-radius: 5px 5px 0 0;
}

/* Hamburger */
.ahi-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.ahi-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
.ahi-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ahi-hamburger.active span:nth-child(2) { opacity: 0; }
.ahi-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SECTION
   ============================================= */
.ahi-hero {
  background: linear-gradient(135deg, #dce8f5 0%, #eef3f9 60%, #d4e8d0 100%);
  padding: 70px 48px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.ahi-hero-left { max-width: 480px; }
.ahi-hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.ahi-hero-left h1 span { color: var(--navy-light); }
.ahi-hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.ahi-hero-sub u { color: var(--navy); }
.ahi-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ahi-btn-lg {
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  border: none;
  transition: background .2s;
}

/* Quote Card */
.ahi-quote-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 28px 32px;
  min-width: 320px;
  max-width: 360px;
  color: white;
  box-shadow: 0 8px 32px rgba(26,46,82,0.25);
  flex-shrink: 0;
}
.ahi-quote-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.ahi-quote-field {
  background: white;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* =============================================
   TRUST BAR
   ============================================= */
.ahi-trust {
  background: white;
  padding: 28px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ahi-trust p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.ahi-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.ahi-ins-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.ahi-medibank { color: #e30613; }
.ahi-bupa { color: #003087; }
.ahi-hcf { color: #0071b9; background: #e6f2fb; padding: 6px 14px; border-radius: 4px; font-size: 16px; }
.ahi-nib { background: #00a651; color: white; padding: 6px 16px; border-radius: 4px; font-size: 18px; }

/* =============================================
   CARDS SECTION
   ============================================= */
.ahi-section { padding: 60px 48px; }
.ahi-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ahi-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.ahi-card:hover {
  box-shadow: 0 8px 24px rgba(26,46,82,0.12);
  transform: translateY(-3px);
}
.ahi-card-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  object-fit: cover;
}
.ahi-card-body { padding: 20px; }
.ahi-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.ahi-card-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ahi-card-link:hover { color: var(--green); }

/* =============================================
   HOW IT WORKS
   ============================================= */
.ahi-how {
  background: var(--light-bg);
  padding: 60px 48px;
  text-align: center;
}
.ahi-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 48px;
  display: block;
  text-align: center;
  position: relative;
}
.ahi-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 12px auto 0;
  border-radius: 2px;
}
.ahi-steps {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ahi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}
.ahi-step-icon {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(26,46,82,0.1);
  border: 3px solid var(--border);
}
.ahi-step p { font-size: 15px; font-weight: 500; }
.ahi-step-arrow {
  font-size: 28px;
  color: var(--border);
  margin: 0 20px;
  margin-bottom: 40px;
}

/* =============================================
   LEARNING HUB
   ============================================= */
.ahi-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 160px);
  gap: 12px;
}
.ahi-hub-item { border-radius: 8px; overflow: hidden; cursor: pointer; }
.ahi-hub-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: transform .3s;
}
.ahi-hub-item:hover .ahi-hub-bg { transform: scale(1.03); }
.ahi-hub-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: rgba(26,46,82,0.75);
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.3;
}
.ahi-hub-featured { grid-column: 4; grid-row: 1 / 3; }
.ahi-hub-featured .ahi-hub-bg {
  background: linear-gradient(to bottom, #1a2e52, #223669);
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
}
.ahi-play-btn {
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}
.ahi-feat-label { font-size: 16px; font-weight: 700; color: white; text-align: center; }
.ahi-feat-sub { font-size: 12px; color: rgba(255,255,255,0.7); text-align: center; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.ahi-testi { padding: 60px 48px; background: white; }
.ahi-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.ahi-testi-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.ahi-stars { color: #f5a623; font-size: 20px; margin-bottom: 12px; }
.ahi-testi-card blockquote {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
}
.ahi-testi-card cite { font-size: 13px; font-weight: 700; color: var(--navy); font-style: normal; }

/* =============================================
   CTA SECTION
   ============================================= */
.ahi-cta {
  background: linear-gradient(135deg, #eef3f9 0%, #d4e8d0 100%);
  padding: 60px 48px;
  text-align: center;
}
.ahi-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 28px;
}
.ahi-cta h2 span { color: var(--green); font-style: italic; }
.ahi-cta-btns { display: flex; gap: 16px; justify-content: center; }

/* =============================================
   FOOTER
   ============================================= */
.ahi-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 28px 48px;
}
.ahi-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ahi-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ahi-footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; transition: color .2s; }
.ahi-footer-links a:hover { color: white; }
.ahi-footer-socials { display: flex; gap: 10px; }
.ahi-social-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: background .2s;
}
.ahi-social-btn:hover { background: rgba(255,255,255,0.3); }
.ahi-footer-bottom {
  text-align: center;
  padding-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.ahi-footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ahi-topbar-inner,
  .ahi-navbar-inner { padding: 0 20px; }
  .ahi-navbar-inner { height: 60px; }
  .ahi-hamburger { display: flex; }
  .ahi-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(26,46,82,0.12);
    padding: 12px 20px 20px;
    z-index: 9998;
  }
  .ahi-nav.open { display: block; }
  .ahi-nav-list { flex-direction: column; gap: 4px; }
  .ahi-nav-list li a { padding: 10px 14px; }
}

@media (max-width: 900px) {
  .ahi-hero { flex-direction: column; padding: 40px 20px; }
  .ahi-quote-card { min-width: unset; width: 100%; }
  .ahi-cards-grid { grid-template-columns: 1fr; }
  .ahi-hub-grid { grid-template-columns: 1fr 1fr; }
  .ahi-hub-featured { grid-column: unset; grid-row: unset; }
  .ahi-testi-grid { grid-template-columns: 1fr; }
  .ahi-section,
  .ahi-how,
  .ahi-testi,
  .ahi-cta { padding: 40px 20px; }
  .ahi-steps { flex-direction: column; }
  .ahi-step-arrow { transform: rotate(90deg); margin: 0; }
  .ahi-footer { padding: 24px 20px; }
  .ahi-trust { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .ahi-topbar-inner { flex-wrap: wrap; gap: 8px; }
  .ahi-topbar-actions { margin-left: 0; }
  .ahi-hero-left h1 { font-size: 30px; }
}