/* ===========================================================
   KEZABU CARE — SHARED STYLESHEET
   This one file controls the look of every page on the site.
   It's organised top to bottom in the order you'll usually
   read it: variables, reset, layout, components, page sections,
   then responsive (mobile) adjustments at the very end.
   =========================================================== */

/* -----------------------------------------------------------
   1. COLOUR & FONT VARIABLES
   Change a colour here and it updates everywhere it's used.
   ----------------------------------------------------------- */
:root {
  --color-purple: #3d1e78; /* headings, nav, primary text accents */
  --color-purple-light: #ede7fa; /* soft section backgrounds */
  --color-orange: #f2791c; /* buttons, links, calls to action */
  --color-orange-dark: #d9660f; /* button hover */
  --color-cream: #fbf9f6; /* page background */
  --color-charcoal: #2e2a33; /* body text */
  --color-white: #ffffff;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1100px;
  --radius: 10px;
}

/* -----------------------------------------------------------
   2. RESET
   Browsers add their own default spacing/sizing — this removes
   the inconsistencies so our own CSS behaves predictably.
   ----------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.6;
}

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

a {
  color: var(--color-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Visible keyboard focus outline — important for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-purple);
  line-height: 1.25;
}

h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------
   3. LAYOUT HELPERS
   ----------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.vision-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 260px;
}

.vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  pointer-events: none;
}

/* A very light veil keeps the vision copy easy to read while preserving
   the footprints and shoreline as the visual focus. */
.vision-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 249, 246, 0.34);
  z-index: 0;
  pointer-events: none;
}

.vision-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .vision-section {
    padding-bottom: 140px;
  }
}

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

.text-center {
  text-align: center;
}

/* -----------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
}

.btn-secondary:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------
   5. HEADER & NAVIGATION
   ----------------------------------------------------------- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
}

.logo-icon {
  position: relative;
  height: 54px;
  width: auto;
  aspect-ratio: 768 / 593;
  flex-shrink: 0;
}

.logo-icon-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-wing {
  position: absolute;
}

/* Lower/side wing */
.logo-wing-1 {
  left: 31.4%;
  top: 32%;
  width: 24.9%;
  height: 25.6%;
  transform-origin: 85% 78%;
  animation: flutter-wing-1 3.4s ease-in-out infinite;
}

/* Upper wing */
.logo-wing-2 {
  left: 39.2%;
  top: 0%;
  width: 21.2%;
  height: 47%;
  transform-origin: 62% 95%;
  animation: flutter-wing-2 3.4s ease-in-out infinite;
}

/* Real text wordmark — sharp at any size, unlike a picture of text */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.logo-name .name-kezabu {
  color: var(--color-purple);
}

.logo-name .name-care {
  color: var(--color-orange);
}

.logo-tagline {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.68rem;
  color: var(--color-purple);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

@keyframes flutter-wing-1 {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
  }
  50% {
    transform: rotate(-7deg) scaleX(0.95);
  }
}

@keyframes flutter-wing-2 {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
  }
  50% {
    transform: rotate(7deg) scaleX(0.95);
  }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-purple);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Marks the nav link for the page currently being viewed */
.main-nav a.active {
  color: var(--color-orange);
  font-weight: 700;
  box-shadow: 0 2px 0 0 var(--color-orange);
  padding-bottom: 4px;
}

.header-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-orange);
  white-space: nowrap;
}

/* -----------------------------------------------------------
   6. HERO SECTION
   ----------------------------------------------------------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bird {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 300px;
  height: auto;
  transform: translateX(60px) rotate(-6deg);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.hero h1,
.hero p.subhead,
.hero .btn-group {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .hero-bird {
    width: 160px;
    top: 4px;
    transform: translateX(20px) rotate(-6deg);
    opacity: 0.14;
  }
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 16px auto;
}

.hero p.subhead {
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-size: 1.15rem;
}

.hero .btn-group {
  justify-content: center;
}

/* Compact intro used at the top of INNER pages (About, Services, etc.)
   — same idea as .hero but with less padding, since these pages don't
   need the big homepage "opening moment" spacing. */
.page-intro {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
}

.page-intro h1 {
  max-width: 700px;
  margin: 0 auto 12px auto;
}

.page-intro p.subhead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Whenever a .section immediately follows a .page-intro, cut its top
   padding down — otherwise the intro's own bottom padding plus the
   section's top padding stack up into a big empty gap. */
.page-intro + .section {
  padding-top: 16px;
}

/* -----------------------------------------------------------
   7. TRUST STRIP
   ----------------------------------------------------------- */
.trust-strip {
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 20px 0;
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

/* -----------------------------------------------------------
   8. CARDS (used for services, steps, etc.)
   ----------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(61, 30, 120, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.card:hover {
  background-color: var(--color-purple-light);
  box-shadow: 0 8px 20px rgba(61, 30, 120, 0.14);
  transform: translateY(-3px);
}

/* Photo shown at the top of a card, above the heading */
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Photo placed within a plain text section (not a card) — e.g. Home
   "Why Kezabu Care" or an About page paragraph. */
.section-image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  margin: 24px auto 0 auto;
}

/* -----------------------------------------------------------
   9. CALLOUT (e.g. "For support coordinators")
   ----------------------------------------------------------- */
.callout {
  background-color: var(--color-purple);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

.callout h3 {
  color: var(--color-white);
}

.callout a {
  color: var(--color-orange);
  font-weight: 600;
}

/* -----------------------------------------------------------
   9b. STEPS (used on How It Works)
   Each step is a number badge + a card, stacked vertically with
   a connecting line behind the numbers to suggest a timeline.
   ----------------------------------------------------------- */
.steps {
  max-width: 720px;
  margin: 40px auto 0 auto;
  position: relative;
}

/* The vertical connecting line running behind the number badges */
.steps::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 21px;
  width: 2px;
  background: var(--color-purple-light);
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.step-number {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cream ring so the connecting line tucks neatly behind the badge */
  box-shadow: 0 0 0 4px var(--color-cream);
}

/* The card that lightens and lifts slightly on hover */
.step-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(61, 30, 120, 0.07);
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.step-card:hover {
  background-color: var(--color-purple-light);
  box-shadow: 0 8px 20px rgba(61, 30, 120, 0.14);
  transform: translateY(-3px);
}

.step-text h3 {
  margin-bottom: 4px;
}

.step-text p {
  margin-bottom: 0;
}

/* Circular photo "blob" — cropping every photo into the same size
   circle means it no longer matters whether the original photo was
   tall or wide, so steps with photos always line up evenly. */
.step-thumb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-purple-light);
}

@media (max-width: 700px) {
  .step-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-thumb {
    align-self: center;
    width: 72px;
    height: 72px;
  }
}

/* -----------------------------------------------------------
   10. FOOTER
   ----------------------------------------------------------- */
.site-footer {
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
}

/* -----------------------------------------------------------
   11. RESPONSIVE — MOBILE ADJUSTMENTS
   Anything below 700px screen width follows these rules instead.
   ----------------------------------------------------------- */
@media (max-width: 700px) {
  h1 {
    font-size: 1.9rem;
  }

  .site-header .container {
    justify-content: center;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Registered NDIS provider reassurance panel */
.ndis-provider {
  padding: 28px 0 6px;
}

.ndis-provider-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(61, 30, 120, 0.18);
  border-radius: 18px;
  background: var(--color-purple-light);
}

.ndis-provider-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-purple);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
}

.ndis-provider-kicker {
  margin: 0 0 5px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-purple);
}

.ndis-provider-text {
  margin: 0;
}

@media (max-width: 640px) {
  .ndis-provider-card {
    align-items: flex-start;
    padding: 20px;
  }

  .ndis-provider-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Social media links (footer) ===== */
.social-links {
  text-align: center;
  margin: 0;
}

.social-links p {
  margin: 0 0 8px;
  font-weight: bold;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--color-orange, #f28c28);
}

/* ===== Header phone button ===== */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-orange);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover {
  background: #e0701a;
}

.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-orange);
}

/* ===== Footer NDIS badge ===== */
.footer-registration {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-basis: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}
.footer-registration img {
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}

/* Registration ID and ABN: one per line, never split mid-number */
.footer-reg-ids span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 700px) {
  /* Centre the NDIS badge and IDs on phones */
  .footer-registration {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Team photos (Home hero + Contact intro) ===== */
.team-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 40px auto 0;
}

/* Home: the team "stands" on the purple strip below the hero */
.hero:has(.team-photo--hero) {
  padding-bottom: 0;
}
.team-photo--hero {
  margin-bottom: -3px; /* close the hairline gap above the purple strip */
}

/* Contact: soften the cut-off at the bottom of the photo */
.team-photo--contact {
  max-width: 560px;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
