/* Active Life Support Services — shared stylesheet */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-dark: #0d0d0f;
  --color-dark-alt: #1a1b1f;
  --color-text: #17181a;
  --color-text-muted: #55575c;
  --color-white: #ffffff;
  --color-accent: #1f5fb0;
  --color-accent-dark: #164883;
  --color-accent-warm: #e8752c;
  --radius-pill: 999px;
  --radius-card: 18px;
  --max-width: 1160px;
  --header-height: 76px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--color-text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-dark p { color: rgba(255,255,255,0.75); }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-primary:hover { background: #000; }

.btn-white {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-white:hover { background: #eee; }

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(0,0,0,0.05); }

.section-dark .btn-outline:hover,
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-block { width: 100%; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header .container {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img { height: 40px; width: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.15s ease, translate 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
}

.dropdown li a:hover { background: var(--color-bg-alt); }

.nav-cta { display: none; }

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

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  display: block;
}

/* Mobile full-screen menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu-top {
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.mobile-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
}

.mobile-menu nav > ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.mobile-menu a, .mobile-menu-item-label {
  font-size: 1.4rem;
  font-weight: 500;
}

.mobile-menu .mobile-home {
  background: var(--color-bg-alt);
  padding: 6px 16px;
  border-radius: 8px;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 22px;
  margin-top: 22px;
}

.mobile-submenu.open { display: flex; }

.mobile-submenu a { font-size: 1.15rem; color: var(--color-text-muted); }

.mobile-dropdown-toggle.active { text-decoration: underline; color: var(--color-accent); }

/* Hero */

.hero {
  position: relative;
  color: var(--color-white);
  background: linear-gradient(160deg, #1a2230 0%, #0d0d0f 55%, #000000 100%);
  padding: 90px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/hero-collage.jpg');
  background-repeat: no-repeat;
  background-position: 0% center;
  background-size: auto 115%;
  animation: hero-pan 38s ease-in-out infinite alternate;
}

@media (min-width: 640px) {
  .hero-bg { background-size: auto 160%; }
}

@keyframes hero-pan {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; background-position: center center; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(31,95,176,0.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(232,117,44,0.25), transparent 50%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  max-width: 780px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}

.hero .lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 32px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero .button-row { margin-bottom: 40px; }

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-row span {
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero .social-row span,
.section-dark .social-row span {
  color: rgba(255,255,255,0.8);
}

.social-icons { display: flex; gap: 12px; }

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-icons a:hover { background: rgba(255,255,255,0.25); }

.social-icons svg { width: 20px; height: 20px; fill: var(--color-white); }

.section-dark .social-icons a,
.section-alt .social-icons a,
.footer .social-icons a {
  background: var(--color-dark);
}

/* Page header (for inner pages) */

.page-hero {
  background: linear-gradient(160deg, #1a2230 0%, #0d0d0f 60%, #000 100%);
  color: var(--color-white);
  padding: 80px 0 64px;
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 680px; }
.page-hero .lede { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 1.1rem; }

/* Section headings */

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head .lede { font-size: 1.15rem; }

/* Placeholder media block (used instead of photography) */

.media-block {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #24314a, #101319);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 55%);
}

.media-block .media-icon {
  width: 46px;
  height: 46px;
  opacity: 0.55;
  z-index: 1;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.media-block.tone-1 { background: linear-gradient(135deg, #1f5fb0, #0d1b2f); }
.media-block.tone-2 { background: linear-gradient(135deg, #3a4a63, #10131a); }
.media-block.tone-3 { background: linear-gradient(135deg, #e8752c, #40230c); }
.media-block.tone-4 { background: linear-gradient(135deg, #2f6f5e, #0c1a15); }

/* Services grid */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card .media-block { border-radius: 0; aspect-ratio: 16/11; }

.service-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.service-card-body p { flex: 1; }

/* Gallery strip */

.gallery-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
}

.gallery-strip .media-block {
  flex: 0 0 220px;
  aspect-ratio: 3/4;
  scroll-snap-align: start;
}

.gallery-strip .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-strip .play-icon span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-strip .play-icon svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }

.gallery-label {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.9);
  z-index: 1;
}

/* Badges (NDIS / accreditation) */

.badge-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px;
  line-height: 1.2;
}

.badge.ndis { background: #6a1b7a; color: #fff; }

/* CTA section */

.cta-section { text-align: center; }
.cta-section .section-head { margin: 0 auto 30px; }
.cta-section .button-row { justify-content: center; }

/* Footer */

.footer {
  background: var(--color-white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 46px; width: auto; }
.footer-tagline { max-width: 420px; margin: 0; }

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.footer-columns h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-columns ul { display: flex; flex-direction: column; gap: 12px; }
.footer-columns a, .footer-columns p { color: var(--color-text-muted); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label { font-weight: 600; font-size: 0.92rem; }

.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-success {
  display: none;
  background: #e7f5ec;
  border: 1px solid #b7e2c4;
  color: #1c6b3a;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-success.visible { display: block; }

/* Contact info cards */

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: 24px;
}

.contact-info-card h4 { margin-bottom: 6px; font-size: 1rem; }
.contact-info-card p { margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* Utility */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */

@media (min-width: 720px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .desktop-nav { display: block; }
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
