/* Homepage styles — ported from Astro index.astro <style is:global> */

/* Hero */
.hero {
  padding: 64px 40px 56px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 460px; }
.hero h1 {
  font-size: 65px;
  line-height: 1.02;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero .lede,
.hero .lede p {
  color: #4a4a4a;
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero-buttons { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-buttons .btn {
  text-align: center;
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 999px;
  width: 260px;
}
.hero-buttons .btn-peach {
  background: var(--home-hero-button-bg, var(--home-hero-sp-bg, var(--peach-btn)));
  color: var(--home-hero-button-text, var(--home-hero-sp-text, var(--blue-dark)));
}
.hero-buttons .btn-blue {
  background: var(--home-hero-button-bg, var(--home-hero-rp-bg, var(--blue)));
  color: var(--home-hero-button-text, var(--home-hero-rp-text, #fff));
}
.hero-image {
  border-radius: 20px;
  overflow: hidden;
  background: #e5e5e5;
  aspect-ratio: 5/3.4;
  background-image: url('../images/design/filld-aged-care-service-healthcare.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px -24px rgba(14, 63, 140, 0.28);
}
.hero--image-left {
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
}
.hero--image-left .hero-image { order: -1; }
.hero--image-left .hero-text {
  justify-self: start;
  max-width: 520px;
}

/* About row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  padding: 24px 0 64px;
  align-items: center;
}
.about-img {
  background: #d8d8d8;
  background-image: url('../images/design/about-home.webp');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  aspect-ratio: 5/3.6;
  box-shadow: 0 24px 50px -24px rgba(14, 63, 140, 0.22);
}
.about-row--image-right .about-img { order: 2; }
.about-row--image-right > div:last-child { order: 1; }

.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--home-hero-underline, #1f52a4);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}
.about-row p { margin: 0 0 16px; color: #333; font-size: 15px; }
.about-row p strong { color: #111; }

/* Who fill'd is for */
.who-section { padding: 16px 0 64px; }
.who-section h2 {
  font-size: 56px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.5px;
  color: #1f52a4;
}
.who-section .sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.who-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px;
}
.card {
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--home-who-card-bg, var(--peach));
}
.card.peach {
  --home-who-card-bg: var(--peach);
  --home-who-button-bg: #efd2b4;
  --home-who-button-text: #1a1a1a;
}
.card.blue {
  --home-who-card-bg: var(--blue-light);
  --home-who-button-bg: #6aabe5;
  --home-who-button-text: #fff;
}
.card h3 {
  margin: 0 0 10px; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700;
  color: var(--home-who-title, #1a1a1a);
}
.card .card-body { margin: 0 0 18px; font-size: 15px; color: var(--home-who-body, #333); flex-grow: 1; }
.card .card-body p { margin: 0 0 10px; font-size: 15px; color: var(--home-who-body, #333); }
.card .card-body p:last-child { margin-bottom: 0; }
.card .btn {
  font-size: 14px;
  margin-top: auto;
  background: var(--home-who-button-bg, #efd2b4);
  color: var(--home-who-button-text, #1a1a1a);
}

/* Be the first — dark blue panel */
.first-band {
  padding: 60px 24px;
  background: #fff;
  overflow: hidden;
}
.first-panel {
  max-width: 1240px;
  margin: 0 auto;
  background: #1f52a4;
  border-radius: 20px;
  padding: 56px 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(14, 63, 140, 0.45);
}
.first-panel h2 {
  font-size: 48px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: #fff;
  position: relative;
}
.first-panel-right { position: relative; }
.first-panel-right .first-body p {
  margin: 0 0 22px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  max-width: 460px;
  line-height: 1.55;
}
.first-panel-right .btn {
  background: #fff;
  color: var(--blue);
  padding: 13px 24px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.first-panel-right .btn:hover { transform: translateY(-1px); }

/* Reliable section */
.reliable { padding: 64px 0; }
.reliable h2 {
  font-size: 56px; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.02;
}
.reliable .intro,
.reliable .intro p { color: #333; max-width: none; white-space: normal; margin: 0 0 32px; font-size: 15px; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.service-grid .service-tile:last-child { grid-column: 2; }
.service-tile {
  background: #e3edfa;
  border: 0;
  border-radius: 20px;
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: center;
  font-size: 16px; font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
  transition: transform .15s, box-shadow .15s;
}
.service-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,95,191,0.10);
}
.service-tile .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff;
  color: #5ea4f0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-tile .icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.service-tile .icon img { width: 56px; height: 56px; object-fit: contain; }

/* Closing band */
.closing {
  padding: 0;
  background: #fff;
  margin-bottom: -1px;
}
.closing-panel {
  background: var(--home-closing-bg, #1f52a4);
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 96px 32px 100px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.closing-panel::before { display: none; }
.closing-panel h2 {
  font-size: 48px;
  margin: 0 0 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  position: relative;
  color: var(--home-closing-heading, #fff);
}
.closing-panel h2 .accent { color: var(--home-closing-heading, #fff); display: block; }
.closing-panel h2 .underline-accent {
  display: inline;
  text-decoration: underline;
  text-decoration-color: var(--home-closing-underline, #c5e5e7);
  text-decoration-thickness: 5px;
  text-underline-offset: 12px;
  text-decoration-skip-ink: auto;
}
.closing-actions { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.closing-panel .closing-actions .closing-book {
  padding: 13px 28px;
  font-weight: 700;
  background: var(--home-closing-book-bg, #fff);
  color: var(--home-closing-book-text, var(--blue));
  border-color: var(--home-closing-book-border, #fff);
}
.closing-panel .closing-actions .closing-book:hover { background: var(--home-closing-book-bg, #fff); opacity: .92; }
.closing-panel .btn {
  background: var(--home-closing-cta-bg, #fff);
  color: var(--home-closing-cta-text, #0e3f8c);
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  position: relative;
}
.closing-panel .btn:hover { transform: translateY(-1px); }

.first-band, .first-panel, .closing, .closing-panel { overflow: visible !important; }
.first-panel-right .signup-dropdown .signup-trigger { background: #fff; color: var(--blue); padding: 13px 24px; font-weight: 700; }
.closing-panel .signup-dropdown .signup-trigger {
  background: var(--home-closing-cta-bg, #fff);
  color: var(--home-closing-cta-text, var(--blue));
  padding: 13px 28px;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 980px) {
  .hero { padding: 40px 24px; gap: 32px; }
  .hero--image-left { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid .service-tile:last-child { grid-column: auto; }
  .hero h1 { font-size: 42px; }
  .closing-actions { flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 760px) {
  .hero, .about-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero--image-left .hero-image { order: 0; }
  .hero--image-left .hero-text { max-width: none; }
  .about-row .about-img { order: 2; }
  .about-row > div:last-child { order: 1; }
  .hero { padding-top: 32px; padding-bottom: 24px; }
  .hero h1 { font-size: 36px; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  .who-cards, .service-grid {
    grid-template-columns: 1fr;
  }
  .who-section h2,
  .reliable h2,
  .first-inner h2,
  .closing h2 { font-size: 28px; }
  .closing-panel h2 .underline-accent { text-underline-offset: 4px; text-decoration-thickness: 4px; text-decoration-skip-ink: none; }
  .first-band { padding: 24px 16px; }
  .first-panel {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 20px;
    border-radius: 20px;
  }
  .first-panel h2 { font-size: 32px; }
  .first-panel-right .btn { width: 100%; text-align: center; }
  .reliable { padding: 48px 0; }

  footer { padding: 32px 0 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 30px; }
  .who-section h2, .reliable h2, .first-inner h2, .closing h2 { font-size: 24px; }
}
