/* =========================================================
   Unity SCS – static rebuild of unityscs.com.au
   Single-page site for Unity Support Coordination.
   ========================================================= */

:root {
  /* Colours */
  --navy: #0B3C6D;
  --purple: #7B2CBF;
  --green: #7AC943;
  --lime: #B8E63A;
  --blue: #00AEEF;
  --orange: #F7931E;
  --text: #333333;
  --black: #000000;
  --white: #FFFFFF;
  --light-grey: #F7F8FA;
  --nav-blue: #EEF6FF;
  --menu-hover: #707070;

  --card-green-bg: #F3FFF4;   --card-green-border: #DDE8D2;
  --card-blue-bg: #EEF6FF;    --card-blue-border: #DCEBF3;
  --card-purple-bg: #F5F0FF;  --card-purple-border: #E8DDF1;

  --btn-gradient: linear-gradient(135deg, #B8E63A 0%, #7AC943 100%);

  /* Fonts */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --font-button: "Work Sans", sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Layout */
  --container: 1200px;
  --gap: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.icon-sprite { display: none; }

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

h1, h2, h3 { margin: 0; }

p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }

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

section[id] { scroll-margin-top: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 20px);
  margin: 0 auto;
  padding: 0 10px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  left: 10px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transition: top .2s;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- Shared type ---------- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--navy);
}
.section-title.center { text-align: center; }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--purple);
}

p,
.approach-item p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Heading divider (blue / purple / orange dashes under headings) ---------- */
.heading-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
}
.heading-divider span { height: 3px; border-radius: 65px; }
.heading-divider .line { width: 25px; }
.heading-divider .blue { background: var(--blue); }
.heading-divider .purple { background: var(--purple); }
.heading-divider .dot { width: 15px; background: var(--orange); }
.heading-divider .dot-2 { width: 8px; }

.heading-divider.center { justify-content: center; }
.heading-divider.center .dot { width: 12px; }
.heading-divider.center .dot-2 { width: 5px; }

/* Centred section headings: 20px gap, divider, then 30px to the content */
.services .heading-divider,
.approach .heading-divider,
.why .heading-divider { margin: 20px 0 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
  transition: opacity .3s, transform .3s;
}
.btn:hover { opacity: .9; }
.btn-gradient { background-image: var(--btn-gradient); }

/* ---------- Icon lists ---------- */
.icon-list li {
  display: flex;
  align-items: flex-start;
}
.icon-list li > span {
  padding-left: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  min-height: 88px;
}

.logo-tab {
  flex: 0 0 181px;
  padding: 10px;
  background: var(--white);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
}
.logo-tab img { width: 161px; }

.nav-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 2px 10px 10px; /* lets the nav pill line up with the content edge */
}

.nav-pill {
  width: 888px;
  max-width: 100%;
  min-height: 60px;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--gap);
  border-radius: 0 28px 28px 0;
  background-image: linear-gradient(90deg, rgba(2, 1, 1, 0) 0%, var(--nav-blue) 100%);
}

.menu { display: flex; align-items: center; }
.menu a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
  transition: color .3s;
}
.menu a:hover { color: var(--menu-hover); }

.btn-call {
  padding: 12px 20px;
  border-radius: 28px;
}
.btn-call .icon { width: 15px; height: 15px; }

.menu-toggle,
.menu-close,
.nav-panel-head { display: none; }

.menu-toggle,
.menu-close {
  width: 45px;
  height: 46px;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: color .3s;
}
.menu-toggle:hover,
.menu-close:hover { color: rgba(0, 0, 0, .5); }
.menu-toggle .icon,
.menu-close .icon { display: block; margin: 0 auto; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, .5);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  margin-top: -140px;
  /* Full screen height, image covers, anchored bottom-left */
  min-height: 100vh;
  display: flex;
  background: url("../assets/banner.jpg-3-scaled.jpeg") left bottom / cover no-repeat;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero-content {
  width: 45%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Highlighted words inside headings/text */
.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-purple { color: var(--purple); }
.hero-location .icon { width: 24px; height: 24px; margin-right: 6px; color: var(--purple); }
.hero-location li span { font-weight: 700; }

.btn-hero {
  padding: 15px 25px;
  border-radius: 12px;
}
.btn-hero .icon { width: 15px; height: 15px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-inner {
  display: flex;
  gap: var(--gap);
  padding-top: 60px;
  padding-bottom: 60px;
}

.about-image {
  flex: 0 0 43.384%;
  padding: 10px;
}
.about-image picture { display: block; }
.about-image img { width: 100%; }

.about-text {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.about-text p + p { margin-top: -20px; } /* paragraphs sit together, as in one text block */
.about-text p:last-child { margin-bottom: 0.9rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 20px 0 70px; }
.services .container,
.approach .container,
.why .container { padding-left: 20px; padding-right: 20px; max-width: calc(var(--container) + 20px); }

.services .section-title { padding: 0 10px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 35px;
  border: 1px solid;
  border-radius: 24px;
}
.card-green  { background: var(--card-green-bg);  border-color: var(--card-green-border);  --accent: var(--green); }
.card-blue   { background: var(--card-blue-bg);   border-color: var(--card-blue-border);   --accent: var(--blue); }
.card-purple { background: var(--card-purple-bg); border-color: var(--card-purple-border); --accent: var(--purple); }

.service-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.service-head img { width: 23.6%; flex-shrink: 0; } /* 70px at desktop */
.service-head h3 {
  flex: 1;
  margin: 8px 0 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--accent);
}

.check-list { padding-left: 15px; }
.check-list li + li { margin-top: 10px; }
.check-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  margin-right: 9px; /* 26px icon column, as live */
  color: var(--accent);
}

/* =========================================================
   OUR APPROACH
   ========================================================= */
.approach { padding: 0 0 60px; }
.approach .container { padding-left: 10px; padding-right: 10px; }
.approach .section-title { padding: 0 10px; margin-top: 8px; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 60px;
}

.approach-item {
  padding: 10px;
  text-align: center;
}
.approach-item img { width: 45%; margin: 0 auto; }
.approach-item h3 {
  margin: 14px 0 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.goal-banner {
  margin-top: var(--gap);
  background: var(--light-grey);
  border-radius: 28px;
  display: flex;
  justify-content: center;
}
.goal-inner {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.goal-inner img {
  width: 77px;
  padding: 10px;
  flex-shrink: 0;
}
.goal-inner h2 {
  flex: 1;
  padding: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why { padding: 30px 0 60px; }
.why .container { padding-left: 10px; padding-right: 10px; }
.why .section-title { padding: 0 10px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 30px;
}

.why-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 28px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .01) 20%, var(--light-grey) 100%);
}
.why-item img { width: 30%; margin-right: 10px; flex-shrink: 0; }
.why-item h3 {
  margin: 8px 0 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 20px 0 60px; }

.contact-inner { display: flex; }

.contact-info {
  flex: 0 0 35%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: var(--purple);
  border: 1px solid var(--card-purple-border);
  border-radius: 28px 0 0 28px;
  color: var(--white);
}
.contact-info p,
.contact-info a { color: var(--white); }
.contact-info a:hover { text-decoration: underline; }

.contact-intro { padding: 10px; }
.contact-intro h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 0;
}
.contact-intro p:last-child { margin-bottom: 0.9rem; }
.contact-intro .heading-divider { margin: 20px 0; }

.contact-item { padding: 10px; }
.contact-item h3 {
  margin: 8px 0 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

.contact-form-wrap {
  flex: 1;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--card-purple-border);
  border-left: 0;
  border-radius: 0 28px 28px 0;
}

.referral-form { padding: 10px 10px 0; }

.referral-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.referral-form fieldset + fieldset { margin-top: 20px; }

.referral-form legend {
  padding: 0;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--black);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.field.full { grid-column: 1 / -1; }

.referral-form input,
.referral-form select,
.referral-form textarea {
  width: 100%;
  height: 47px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background-color: var(--card-purple-bg);
  border: 1px solid var(--card-purple-border);
  border-radius: 12px;
  outline: none;
  transition: border-color .3s;
  -moz-appearance: textfield;
}
.referral-form input::-webkit-outer-spin-button,
.referral-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.referral-form input::placeholder,
.referral-form textarea::placeholder { color: rgba(51, 51, 51, .51); opacity: 1; }

.referral-form select {
  height: 48px;
  padding-right: 44px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23cccccc' d='M4.516 7.548c.436-.446 1.043-.481 1.576 0L10 11.295l3.908-3.747c.533-.481 1.141-.446 1.574 0 .436.445.408 1.197 0 1.615-.406.418-4.695 4.502-4.695 4.502a1.095 1.095 0 0 1-1.576 0S4.924 9.581 4.516 9.163c-.409-.418-.436-1.17 0-1.615z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.referral-form select:invalid { color: rgba(51, 51, 51, .51); }
.referral-form select option { color: var(--black); }

.referral-form textarea {
  height: 80px;
  resize: vertical;
  display: block;
}

.referral-form input:focus,
.referral-form select:focus,
.referral-form textarea:focus { border-color: var(--purple); }

.referral-form .is-invalid { border-color: #e2584d !important; }

.hp { position: absolute; left: -9999px; }

.btn-submit {
  width: 100%;
  height: 48px;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background-color: var(--lime);
  color: var(--white);
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .3s;
}
.btn-submit:hover { opacity: .9; }
.btn-submit:disabled { opacity: .6; cursor: wait; }

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .icon {
  width: 30px;
  height: 30px;
  color: #101010;
  margin: 0 auto 15px;
  display: block;
}
.form-error {
  margin-top: 15px;
  color: #e2584d;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--light-grey);
  padding: 25px 0 10px;
}
/* Footer text sits in a 48% column, offset 23% + 20px from the left */
.site-footer p {
  width: 48%;
  margin: 0 0 0.9rem calc(23% + 20px);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}
.site-footer a { font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }

/* =========================================================
   SMALL DESKTOP  (1025–1199px): tighten the inline menu so it fits
   ========================================================= */
@media (min-width: 1025px) and (max-width: 1199px) {
  .nav-wrap { min-width: 0; }
  .nav-pill { width: auto; flex: 1; }
  .menu a { padding: 0 9px; }
  .why-item img { width: 26%; }
}

/* =========================================================
   TABLET  (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  /* Contact: two form columns */
  .form-grid { grid-template-columns: repeat(2, 1fr); }

  /* Off-canvas menu */
  .logo-tab { flex-basis: 160px; }
  .logo-tab img { width: 140px; }
  .nav-pill { width: auto; flex: 1; }
  .menu-toggle { display: block; margin-right: auto; }

  .main-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    width: 100%;
    max-width: 350px;
    overflow-y: auto;
    background: var(--white);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .4s ease, visibility .4s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }
  .nav-panel-logo { margin: 5px 0; padding: 5px; }
  .nav-panel-logo img { max-width: 160px; max-height: 60px; width: auto; }
  .menu-close { display: block; margin: 12px; }

  .menu { flex-direction: column; align-items: stretch; }
  .menu a { height: auto; padding: 10px 15px; }

  .services-grid,
  .approach-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .services-grid { gap: 30px 40px; }
  .why-grid { gap: 20px 30px; }
}

/* Tablet only (768–1024px): full-width header – logo left, menu button + Call Us right */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-row { min-height: 0; }
  .nav-pill { min-height: 0; }
  .menu-toggle { margin-right: 0; }
  .goal-inner img { width: 73px; }
}

/* Contact panels stack once the form gets too narrow beside the info panel */
@media (max-width: 900px) {
  .contact-inner { flex-direction: column; }
  .contact-info {
    flex: none;
    padding: 30px;
    border-width: 1px 1px 0 1px;
    border-radius: 28px 28px 0 0;
  }
  .contact-form-wrap {
    padding: 20px;
    border: 1px solid var(--card-purple-border);
    border-top: 0;
    border-radius: 0 0 28px 28px;
  }
}

/* =========================================================
   MOBILE  (≤767px)
   ========================================================= */
@media (max-width: 767px) {
  .section-title { font-size: 32px; }

  /* Header */
  .header-row { min-height: 0; }
  .logo-tab { flex: 0 0 45%; }
  .logo-tab img { width: 100%; max-width: 250px; }
  .nav-wrap { flex: 0 0 48%; padding: 0 0 0 20px; }
  .nav-pill { justify-content: flex-end; flex: 1; }
  .menu-toggle { margin-right: 0; }
  .btn-call { display: none; }
  .nav-panel-logo img { max-width: 150px; max-height: 120px; }

  /* Hero */
  /* 90vh on phones; image still covers and stays anchored bottom-left */
  .hero { min-height: 90vh; background-position: left bottom; }
  .hero-inner { padding-top: 0; padding-bottom: 40px; }
  .hero-content { width: 100%; margin-bottom: 40px; } /* extra space below the content */
  .hero .section-title { margin-top: 100px; }

  /* About */
  .about-inner { flex-direction: column; padding-top: 0; padding-bottom: 60px; }
  .about-image, .about-text { flex: none; width: 100%; }

  /* Services */
  .services { padding-bottom: 60px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .approach-grid,
  .why-grid { grid-auto-rows: auto; }
  .service-card { padding: 20px; }
  .service-head { flex-direction: column; align-items: flex-start; gap: 7px; }
  .service-head img { width: 25%; }
  .service-head h3 { flex: none; align-self: stretch; margin: 7px 0; font-size: 20px; }
  /* As live: only the first card's list loses its indent and sits tight under the heading */
  .card-green .check-list { padding-left: 0; margin-top: -26px; }

  /* Approach */
  .approach .section-title { margin-top: 20px; }
  .approach-grid { grid-template-columns: 1fr; gap: 20px; }
  .approach-item img { width: 24%; }
  .approach-item:first-child { padding-bottom: 32px; }
  .goal-banner { padding: 20px; }
  .goal-inner { width: 100%; flex-direction: column; padding: 0 10px; }
  .goal-inner img { width: 24%; padding: 0; margin: 10px 0 -10px; }
  .goal-inner h2 { text-align: center; font-size: 18px; line-height: 1.2; padding: 0 0 10px; }

  /* Why choose */
  .why { padding-top: 20px; }
  .why .section-title { margin-top: 10px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-item { flex-direction: column; text-align: center; }
  .why-item img { width: 24%; margin: 0 0 6px; }
  .why-item h3 { align-self: stretch; }

  /* Contact */
  .contact-inner { flex-direction: column; }
  .contact-info {
    flex: none;
    padding: 15px;
    border-width: 1px 1px 0 1px;
    border-radius: 28px 28px 0 0;
  }
  .contact-form-wrap {
    padding: 10px;
    border: 1px solid var(--card-purple-border);
    border-top: 0;
    border-radius: 0 0 28px 28px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .referral-form legend { font-size: 20px; margin-bottom: 30px; }
  .btn-submit { width: auto; }

  /* Footer: extra space above and below the text on phones */
  .site-footer { padding: 45px 0 30px; }
  .site-footer p { width: 100%; margin-left: 0; }
}

/* Large phones / small tablets (560–767px): use the extra width */
@media (min-width: 560px) and (max-width: 767px) {
  .approach-grid,
  .why-grid,
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-item img,
  .why-item img { width: 30%; }
  .about-image { max-width: 520px; margin: 0 auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
