/* ============================================================
   Horizon Support Services — NDIS Provider
   Design: capable / calm / local
   Macedon Ranges palette: mint, teal, slate
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg:         #f6f9f8;
  --bg-alt:     #edf3f1;
  --cards:      #ffffff;
  --text:       #2d3748;
  --text-muted: #5a6c7d;
  --accent:     #1a7a5c;
  --accent-dim: #15644a;
  --border:     #dde8e4;
  --border-subtle: #e8efec;

  --font-heading: 'Montserrat', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --max-width: 1040px;
  --radius: 5px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* --- Atmosphere Layer — Subtle Grain --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

.text-accent { color: var(--accent); }

/* -- Micro-Label (uppercase section marker) -- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(246, 249, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 48px);
  height: 62px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 40px 24px;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   HERO — Left-anchored text, full-width
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  width: 100%;
  gap: 48px;
}

.hero-text {
  flex: 0 0 auto;
  max-width: 580px;
}

.hero-text h1 {
  margin-bottom: 10px;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual placeholder — subtle geometric texture referencing landscape */
.hero-visual {
  flex: 0 0 340px;
  height: 340px;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(26,122,92,0.06) 0%, rgba(26,122,92,0.01) 40%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 60% 40%, rgba(26,122,92,0.05) 0%, transparent 70%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-visual::after {
  content: '';
  display: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(64px, 10vw, 100px) 0;
}
.section--alt {
  background: var(--bg-alt);
}

.section h2 {
  margin-bottom: 8px;
}

/* ============================================================
   ABOUT — Asymmetric, left-biased text
   ============================================================ */
.about-text {
  max-width: 660px;
  margin-top: 28px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:first-of-type {
  font-size: 1.05rem;
  color: var(--text);
}

/* ============================================================
   HOW IT WORKS — Signature Horizontal Stepper
   ============================================================ */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 48px;
  position: relative;
}

/* Connecting progress line */
.stepper::before {
  content: '';
  position: absolute;
  top: 24px; /* half of 48px circle */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cards);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-circle {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(26,122,92,0.08);
}

.step-circle span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 200px;
}

/* ============================================================
   SERVICES — Tag Cloud
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: var(--cards);
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.tag:hover {
  border-color: var(--accent);
  background: rgba(26,122,92,0.04);
  color: var(--accent);
}

.services-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   SERVICE AREA — Clean list
   ============================================================ */
.suburbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 28px;
}

.suburbs-list li {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.contact-card {
  background: var(--cards);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-card svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-card a:hover {
  color: var(--accent);
}

.contact-card .contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 3px;
}

.contact-card span:last-child {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-nda {
  margin-top: 28px;
  max-width: 620px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(26,122,92,0.03);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* ============================================================
   MOBILE STICKY CONTACT BAR
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--cards);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}

.mobile-bar .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9rem;
}

/* ============================================================
   ANIMATIONS (for main.js IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  /* Stepper: 2x2 grid */
  .stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 8px;
  }

  .stepper::before {
    display: none; /* no connecting line on tablet layout */
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.active {
    display: block;
  }

  .nav-inner {
    height: 56px;
  }

  .mobile-nav {
    top: 56px;
  }

  /* Stepper: single column */
  .stepper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stepper::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    align-items: flex-start;
  }

  .step-circle {
    margin-bottom: 0;
  }

  .step-desc {
    max-width: none;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tag-cloud {
    gap: 8px;
  }

  .tag {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .contact-card {
    padding: 18px;
  }

  .about-text {
    max-width: 100%;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  /* Show sticky mobile bar */
  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 68px;
  }
}
