/* =====================================================
   FlexCare Support Australia — style.css
   Base styles: variables, reset, typography, layout,
   navigation, footer, buttons, cards, shared components
   ===================================================== */

:root{
  /* Brand palette — derived from FlexCare logo */
  --fc-blue:        #06469A;
  --fc-blue-dark:   #033065;
  --fc-blue-light:  #2E72CC;
  --fc-blue-pale:   #EAF1FB;
  --fc-green:       #67AB29;
  --fc-green-dark:  #4E8420;
  --fc-green-light: #8FC74C;
  --fc-green-pale:  #EFF7E6;

  --fc-cream:       #FBF9F4;
  --fc-ink:         #1B2430;
  --fc-ink-soft:    #4B5563;
  --fc-white:       #FFFFFF;
  --fc-border:      #E4E8EE;

  --fc-gradient: linear-gradient(120deg, var(--fc-blue) 0%, var(--fc-blue-light) 55%, var(--fc-green) 130%);
  --fc-gradient-soft: linear-gradient(135deg, var(--fc-blue-pale) 0%, var(--fc-green-pale) 100%);

  --fc-shadow-sm: 0 2px 10px rgba(6, 70, 154, 0.08);
  --fc-shadow-md: 0 10px 30px rgba(6, 70, 154, 0.12);
  --fc-shadow-lg: 0 20px 60px rgba(6, 70, 154, 0.18);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --container-w: 1200px;
}

/* ===================== CUSTOM SCROLLBAR ===================== */
::-webkit-scrollbar{
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track{
  background: var(--fc-blue-pale);
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--fc-blue), var(--fc-green));
  border-radius: var(--radius-pill);
  border: 3px solid var(--fc-blue-pale);
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, var(--fc-blue-dark), var(--fc-green-dark));
}

/* Firefox */
html{
  scrollbar-width: thin;
  scrollbar-color: var(--fc-blue) var(--fc-blue-pale);
}

/* ===================== CUSTOM TEXT SELECTION ===================== */
::selection{
  background: var(--fc-green);
  color: #fff;
}
::-moz-selection{
  background: var(--fc-green);
  color: #fff;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--fc-ink);
  background: var(--fc-cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fc-blue-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1{ font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3{ font-size: clamp(1.2rem, 2vw, 1.5rem); }
p{ margin: 0 0 1em; color: var(--fc-ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ margin:0; padding:0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-green-dark);
  background: var(--fc-green-pale);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow i{ color: var(--fc-green); }

.section{ padding: 70px 0; position: relative; }
.section--tight{ padding: 60px 0; }
.section--blue{ background: var(--fc-blue-pale); }
.section--dark{ background: var(--fc-blue-dark); color: #cfe0f7; }
.section--dark h2, .section--dark h3{ color: #fff; }
.section--dark p{ color: #b9cae6; }

.section-head{ max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head.left{ margin: 0 0 48px; text-align: left; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-primary{
  background: var(--fc-blue);
  color: #fff;
  box-shadow: var(--fc-shadow-md);
}
.btn-primary:hover{
  background: var(--fc-blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(6,70,154,0.28);
}
.btn-accent{
  background: var(--fc-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(103,171,41,0.3);
}
.btn-accent:hover{
  background: var(--fc-green-dark);
  transform: translateY(-3px);
}
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover{
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-outline-blue{
  background: transparent;
  border-color: var(--fc-blue);
  color: var(--fc-blue);
}
.btn-outline-blue:hover{ background: var(--fc-blue); color: #fff; }
.btn-sm{ padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(251,249,244,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fc-border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled{ box-shadow: var(--fc-shadow-sm); }

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 70px; width: auto; }
.brand-text{ font-family: var(--font-display); line-height: 1.1; }
.brand-text strong{ display:block; color: var(--fc-blue); font-size: 1.15rem; font-weight: 700; }
.brand-text span{ display:block; color: var(--fc-green-dark); font-size: 0.68rem; letter-spacing: 0.14em; font-weight: 700; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--fc-ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover{ color: var(--fc-blue); background: var(--fc-blue-pale); }
.nav-links a.active{ color: #fff; background: var(--fc-blue); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-cta a.phone{ display:flex; align-items:center; gap:8px; font-weight:700; color: var(--fc-blue); font-family: var(--font-display); font-size: 0.9rem; }
.nav-cta a.phone i{ color: var(--fc-green); }

.nav-toggle{
  display: none;
  background: var(--fc-blue);
  color: #fff;
  border: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-ndis{
  background: #6B2D8B;
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(107,45,139,0.3);
}
.nav-links a.nav-ndis:hover{
  background: #56247A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,45,139,0.4);
}
.nav-links a.nav-ndis.active{
  background: #56247A;
  color: #fff;
}

/* ---------- Mobile slide-in nav drawer ---------- */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(3, 48, 101, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1000;
}
.nav-overlay.open{ opacity: 1; visibility: visible; }

.nav-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 86vw;
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 30px;
  box-shadow: -10px 0 40px rgba(3, 48, 101, 0.25);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-drawer.open{ transform: translateX(0); }

.drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fc-border);
}
.drawer-head .brand img{ height: 42px; }
.drawer-head .brand-text strong{ font-size: 1rem; }
.drawer-head .brand-text span{ font-size: 0.6rem; }
.drawer-close{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--fc-blue-pale);
  color: var(--fc-blue);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.drawer-close:hover{ background: var(--fc-blue); color: #fff; transform: rotate(90deg); }

.drawer-links{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.drawer-links a{
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fc-ink);
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.drawer-links a i{ color: var(--fc-green); width: 20px; text-align: center; font-size: 0.95rem; }
.drawer-links a:hover, .drawer-links a.active{ background: var(--fc-blue-pale); color: var(--fc-blue); padding-left: 18px; }

.drawer-cta{ width: 100%; justify-content: center; margin-bottom: 24px; }

.drawer-contact{
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--fc-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-contact a{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fc-ink-soft);
  transition: color 0.25s;
}
.drawer-contact a:hover{ color: var(--fc-blue); }
.drawer-contact a i{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fc-green-pale);
  color: var(--fc-green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.drawer-contact .social-row{ margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--fc-blue-dark);
  color: #cfe0f7;
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:18px;}
.footer-brand img{ height: 80px; width: auto; }
.footer-brand strong{ color:#fff; font-family: var(--font-display); font-size: 1.1rem; display:block;}
.footer-brand span{ color: var(--fc-green-light); font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 700;}
.footer-col h4{ color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li{ margin-bottom: 12px; }
.footer-col ul li a{ color: #b9cae6; font-size: 0.92rem; transition: color 0.25s, padding-left 0.25s; display:inline-flex; align-items:center; gap:8px;}
.footer-col ul li a:hover{ color: var(--fc-green-light); padding-left: 4px; }
.footer-col ul li i{ color: var(--fc-green-light); font-size: 0.8rem; width: 14px; }
.footer-brand-desc{
  color: #b9cae6;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 0 22px;
}
.social-row{ display:flex; gap: 10px; margin-top: 18px; }
.social-row a{
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  transition: background 0.25s, transform 0.25s;
  color: #fff;
}
.social-row a:hover{ background: var(--fc-green); transform: translateY(-3px); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 0;
  font-size:0.85rem;
  color:#93a8c9;
  flex-wrap:wrap;
  gap:10px;
}

.mobile-break{
  display:none;
}

@media (max-width: 1024px){
  .mobile-break{
    display:block;
  }
}
.footer-bottom a{
  color:var(--fc-green-light);
  font-weight:600;
  text-decoration:none;
}

.footer-bottom a:hover{
  text-decoration:underline;
}

/* ---------- Cards ---------- */
.card{
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--fc-shadow-sm);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}
.card:hover{ transform: translateY(-8px); box-shadow: var(--fc-shadow-lg); }

/* ---------- Badges ---------- */
.badge-code{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--fc-blue);
  background: var(--fc-blue-pale);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* ---------- Decorative blobs ---------- */
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: 0;
  pointer-events: none;
}
.blob-shape{
  position:absolute;
  z-index:0;
  pointer-events:none;
  opacity: 0.85;
}

/* ---------- Floating elements ---------- */
.float-el{ animation: floatY 5s ease-in-out infinite; }
.float-el-slow{ animation: floatY 8s ease-in-out infinite; }
@keyframes floatY{
  0%, 100%{ transform: translateY(0px) rotate(0deg); }
  50%{ transform: translateY(-18px) rotate(3deg); }
}
@keyframes floatX{
  0%, 100%{ transform: translateX(0px); }
  50%{ transform: translateX(14px); }
}
@keyframes pulseSoft{
  0%, 100%{ transform: scale(1); opacity: 0.7; }
  50%{ transform: scale(1.08); opacity: 1; }
}
@keyframes spinSlow{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: 0.12s; }
.reveal-delay-2{ transition-delay: 0.24s; }
.reveal-delay-3{ transition-delay: 0.36s; }

/* ---------- Skip link / a11y ---------- */
.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--fc-blue); color:#fff;
  padding: 12px 18px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

a:focus-visible, button:focus-visible{
  outline: 3px solid var(--fc-green);
  outline-offset: 2px;
}

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--fc-blue);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--fc-shadow-md);
  border: none;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--fc-green); }
