/*!
Theme Name: ABPTCare NDIS Theme
Theme URI: https://abptcare.com.au/
Author: Chemwatch Design Team
Author URI: https://chemwatch.net
Description: Custom WordPress theme for ABPTCare built on Underscores.
Version: 1.1.0
Text Domain: abptcare-ndis
*/

/* =========================================
   LOCAL FONTS
========================================= */

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('./assets/fonts/roboto-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('./assets/fonts/roboto-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* =================================================
   CSS CASCADE LAYERS — DO NOT REORDER
================================================= */
@layer reset, tokens, base, layout, components, pages, overrides;

/* =================================================
   RESET
================================================= */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  img { max-width: 100%; display: block; }
}

/* =================================================
   TOKENS
================================================= */
@layer tokens {
   :root {
/*Fonts */
    --font-heading: 'Inter', sans-serif;
--font-body: 'Roboto', sans-serif;


    /* BRAND */
   --color-primary: #1f2a44;        /* Deep navy (main logo color) */
--color-primary-dark: #162033;   /* Darker hover */
--color-primary-soft: #e9edf4;   /* Light section backgrounds */
--color-accent: #5c6f91;         /* Soft steel blue accent */
    /* NEUTRALS */
    --color-light: #f7f7f9;   /* page background */
    --color-surface: #ffffff; /* cards, forms */
    --color-border: rgba(0,0,0,0.06);


    /* TEXT */
    --color-dark: #1f2937;   /* headings */
    --color-text: #4b5563;   /* body */

--footer-bg: #1f2a44; /* deep slate */


    /* EFFECTS */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --mobile-header-height: 88px; /* adjust if needed */

    /*Shadow and Blur */
--shadow-accent: rgba(31,42,68,.18);
    --shadow-brand: rgba(31,42,68,.18);
--shadow-brand-strong: rgba(31,42,68,.28);

 /* SURFACE SYSTEM */
  --surface-base: #ffffff;
  --surface-muted: #f8fafc;

  /* SHADOW SYSTEM */
  --shadow-soft: 0 10px 30px rgba(31,42,68,.06);
  --shadow-medium: 0 20px 60px rgba(31,42,68,.10);
  --shadow-large: 0 35px 90px rgba(31,42,68,.12);

  /* BORDER SYSTEM */
  --border-soft: 1px solid rgba(31,42,68,.08);

  /* OVERLAYS */
  --overlay-dark: rgba(20,20,20,.65);
  --overlay-brand: rgba(31,42,68,.75);
  --overlay-light: rgba(0,0,0,.45);

  /* CARD OVERLAY GRADIENT */
  --overlay-card-strong: rgba(0,0,0,.85);
  --overlay-card-mid: rgba(0,0,0,.6);
  --overlay-card-soft: rgba(0,0,0,.2);
  --overlay-card-fade: rgba(0,0,0,.05);

  /* TEXT EFFECTS */
  --text-shadow-soft: 0 10px 40px rgba(0,0,0,.35);

/* =========================================
   HERO SYSTEM
========================================= */

/* Hero Text Colors */
--hero-title-color: #ffffff;
--hero-title-soft: rgba(255,255,255,.92);
--hero-subtitle-color: rgba(255,255,255,.85);

/* Hero Text Shadows */
--hero-title-shadow: 0 10px 40px rgba(0,0,0,.35);
--hero-title-shadow-strong: 0 15px 60px rgba(0,0,0,.45);

/* Hero Overlay */
--hero-overlay-dark: rgba(20,20,20,.65);
--hero-overlay-brand: rgba(31,42,68,.75);
 --hero-overlay-start: rgba(20,20,20,.65);
    --hero-overlay-end: rgba(31,42,68,.75);


/* Hero Glass Card */
--hero-glass-bg: rgba(255,255,255,.18);
--hero-glass-blur: blur(14px);
--hero-glass-border: 1px solid rgba(255,255,255,.25);

/* =========================================
   HERO BUTTON SYSTEM
========================================= */

/* Background */
--hero-btn-bg: var(--surface-base);
--hero-btn-bg-hover: var(--color-primary-dark);

/* Text */
--hero-btn-text: var(--color-primary);

/* Shadow */
--hero-btn-shadow: var(--elevation-2);
--hero-btn-shadow-hover: var(--elevation-4);

/* Optional brightness */
--hero-btn-hover-brightness: 1.05;


  /* MODAL */
  --modal-backdrop: rgba(0,0,0,.6);

  /* SURFACE SYSTEM */
--surface-base: #ffffff;
--surface-muted: #f8fafc;
--surface-glass: rgba(255,255,255,.2);

/* SHADOW SYSTEM */
--shadow-small: 0 12px 30px rgba(31,42,68,.05);
--shadow-medium: 0 18px 45px rgba(31,42,68,.12);
--shadow-large: 0 35px 90px rgba(31,42,68,.18);

/* MODAL */
--modal-backdrop-soft: rgba(20,20,20,.45);

/* GLASS EFFECT */
--glass-blur: blur(12px);

/* =========================================
   DESIGN SYSTEM SCALE
========================================= */

/* SPACING SCALE */
--space-xxs: 0.5rem;
--space-xs: 0.75rem;
--space-sm: 1rem;
--space-md: 1.5rem;
--space-lg: 2rem;
--space-xl: 3rem;
--space-2xl: 4rem;
--space-3xl: 6rem;
--space-4xl: 8rem;

/* RADIUS SCALE */
--radius-sm: 12px;
--radius-md: 18px;
--radius-lg: 24px;
--radius-xl: 32px;
--radius-2xl: 40px;
--radius-pill: 999px;

/* SHADOW ELEVATION */
--elevation-1: 0 8px 20px rgba(31,42,68,.06);
--elevation-2: 0 15px 35px rgba(31,42,68,.10);
--elevation-3: 0 25px 60px rgba(31,42,68,.16);
--elevation-4: 0 40px 100px rgba(31,42,68,.22);

/* OVERLAY SYSTEM */
--overlay-hero-dark: rgba(20,20,20,.65);
--overlay-hero-brand: rgba(31,42,68,.75);
--overlay-card-strong: rgba(0,0,0,.85);
--overlay-card-mid: rgba(0,0,0,.6);
--overlay-card-soft: rgba(0,0,0,.2);
--overlay-card-fade: rgba(0,0,0,.05);

/* GLASS */
--glass-bg: rgba(255,255,255,.2);
--glass-blur: blur(12px);

/* TEXT SHADOW */
--text-shadow-soft: 0 10px 40px rgba(0,0,0,.35);


--text-muted-opacity: .85;
  



  }
}

/* =================================================
   BASE
================================================= */
@layer base {
  body, button, input, select, textarea {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    background: #f5f7fb;

  }

  h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
  }

  a { color: var(--color-primary); text-decoration: none; }
  a:hover { color: var(--color-primary-dark); }
}

/* =================================================
   LAYOUT
================================================= */
@layer layout {
  .container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  main.home-page {
    width: 100%;
  }

  .hero-section,
  .about-section,
  .services-section,
  .home-contact {
    width: 100%;
  }

  header, main, section, footer { display: block; }

  .site-header,
  .site-footer {
    position: relative;
    isolation: isolate;
  }

  .site-header .header-inner {
  max-width: auto;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
  /* =================================================
     SECTION SPACING
  ================================================= */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section.alt {
    background: var(--color-primary-soft);
  }
}

/* =================================================
   COMPONENTS
================================================= */
@layer components {

  /* Buttons */
  button,
  input[type="submit"],
  .btn {
    background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.75rem;
  transition: background .25s ease, transform .2s ease;
  }

  button:hover,
  input[type="submit"]:hover,
  .btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  }

  


  /* NAV BASE */
  .main-navigation {
    display: block;
  }
 
 .site-logo img {
  height: 70px;          /* desktop size */
  width: auto;
  display: block;
}

@media (max-width: 991px) {
  .site-logo img {
    height: 50px;        /* mobile size */
  }
}
  .site-header {
    height: var(--mobile-header-height);
  }

    .site-header .header-inner {
    height: 100%;
    align-items: center;
  }

  .main-menu {
    display: flex;
    flex-direction: row;         /* ✅ desktop default */
    align-items: center;         /* ✅ desktop default */
    justify-content: flex-end;   /* ✅ desktop default */
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

   .main-menu a {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
  }

  .main-menu a:hover,
  .main-menu .current-menu-item > a {
    color: var(--color-primary);
  }
.card,
.service-card,
.form-card,
.contact-card {
  background: var(--color-surface); /* white */
  border-radius: var(--radius-md);

  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);

  padding: 2rem;
}
input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(246,78,92,0.15);
}
.section {
  padding: var(--space-3xl) 0;
}

.section.alt {
  background: var(--color-primary-soft);
}

  /* HAMBURGER — DESKTOP DEFAULT */
  .site-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }

  /* =========================
     DESKTOP HARD RESET (FIX)
  ========================= */
 

  /* FOOTER */
  .site-footer {
  background: var(--footer-bg, #0f172a);
  color: #e5e7eb;
}

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4.5rem 1.25rem;
     max-width: 1200px;
  margin-inline: auto;
  }
.site-footer {
  background: var(--footer-bg);
  color: #e5e7eb;
}

.site-footer,
.site-footer p,
.site-footer strong {
  color: var(--surface-base);
}



  @media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; }
  }

  .site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .footer-heading {
    color: #ffffff;
}
.site-footer a {
    color: #f1f5f9;
}

.site-footer a:hover {
    color: #ffffff;
}


/* =================================================
   PREMIUM FOOTER
================================================= */

.site-footer {
   width: 100%;
  background: var(--footer-bg);
  color: rgba(255,255,255,.85);
   padding-top: 5rem;
}

.site-footer .container {
  max-width: 1300px;   /* wider than default */
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer {
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(255,255,255,.04),
      transparent 60%
    ),
    var(--footer-bg);
}

.footer-top {
   display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.footer-description {
  margin-top: 1rem;
  line-height: 1.7;
  opacity: .85;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-menu li {
  margin-bottom: .6rem;
}

.footer-menu a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: all .25s ease;
}

.footer-menu a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact a {
  color: rgba(255,255,255,.9);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1.75rem;
   background: var(--surface-base);
  color: var(--color-primary) !important; 
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.footer-btn:hover {
   background: var(--color-primary-dark);
  color: var(--surface-base);   /* 🔥 force white text */
  transform: translateY(-3px);
}

.footer-trust {
  margin-top: 1.5rem;
  font-size: .9rem;
  opacity: .8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 2rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,.8);
  margin-left: 1rem;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

}



/* =================================================
   PAGES
================================================= */
@layer pages {
 body.home section:not(.hero-section) {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
}

/* =================================================
   OVERRIDES
================================================= */
@layer overrides {

@media (min-width: 992px) {

   .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-base);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
   width: 100%;
    padding: 0 5vw;              /* fluid side spacing like Seasons */
    min-height: 180px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}


  .site-header .header-inner {
    width: 100%;
    max-width: none;          /* 🔑 remove box */
    padding-inline: clamp(1.25rem, 4vw, 3rem);
  }



    /* LEFT NAV */
    .left-nav {
      justify-self: start;
    }

    .left-nav .main-menu {
      display: flex;
      gap: 34px;
      align-items: center;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .left-nav .main-menu > li > a {
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      font-weight: 400;
      letter-spacing: 0.4px;
      color: var(--color-dark);
      text-decoration: none;
      transition: color .25s ease;
    }

    .left-nav .main-menu > li > a:hover {
      color: var(--color-primary);
    }

    /* CENTER LOGO */
    .site-branding {
      justify-self: center;
    }

    .site-title {
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 1.85rem;
      letter-spacing: -0.02em;
      color: var(--color-dark);
      text-decoration: none;
    }
    /* =========================================
   LOGO STYLING
========================================= */

.site-branding {
  display: flex;
  justify-self: center;
  align-items: center;
}

.site-branding a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo {
  height: 160px;          /* 🔥 adjust if needed */
  width: auto;
  max-height: 160px;
  object-fit: contain;
}

    /* RIGHT BUTTON */
    .header-button {
      justify-self: end;
    }

    .booking-btn {
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;

      padding: 12px 28px;

      border-radius: var(--radius-pill);
      border: 1.5px solid var(--color-dark);

      background: transparent;
      color: var(--color-dark);

      transition: all .3s ease;
    }

    .booking-btn:hover {
      background: #1f2937;
      color: #ffffff;
    }
  

  body.home .header-inner {
  
  padding: 0 3vw;
}
 
     body.home .hero-content p,
  body.home .hero-content h1 {
    max-width: none;
  }
  }



/* =========================================
   MOBILE NAVIGATION — CORE STRUCTURE
========================================= */

@media (max-width: 991px) {

  /* Show hamburger */
  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 3000;
    background: none;
    border: none;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    
  }
  .header-button {
    display: none;
  }
#site-navigation {
    position: fixed;
     background: #ffffff !important;
  }
 .menu-toggle {
    margin-left: auto;
  }
  .menu-toggle span {
    width: 26px;
    height: 2px;
    background: #1f2937;
    display: block;
  }

  /* Hide desktop nav */
  #site-navigation {
   position: fixed;
    top: var(--mobile-header-height); /* 🔑 below header */
    right: 0;

    width: 85%;
    max-width: 380px;
    height: calc(100vh - var(--mobile-header-height));

    background: var(--surface-base);

    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);

    padding: 40px 32px;
    display: flex;
    flex-direction: column;

    box-shadow: -20px 0 60px rgba(0,0,0,.08);
    z-index: 3000;
  }

  #site-navigation.is-open {
    transform: translateX(0);
  }

  /* Vertical menu */
  #site-navigation .main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #site-navigation .main-menu li {
    width: 100%;
  }

  #site-navigation .main-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    display: block;
    width: 100%;
     padding: 6px 0;
  }

  
  body.menu-open {
    overflow: hidden;
  }
 .site-branding {
    justify-content: flex-start;
  }

  .site-header .custom-logo {
    height: 42px !important;
    max-height: 42px !important;
    width: auto;
  }
}

/* =================================================
   FOOTER — TRUE FULL WIDTH
================================================= */

.site-footer {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.site-footer .footer-top,
.site-footer .footer-bottom {
  width: 100%;
  max-width: 100%;
}

.site-footer .container {
  max-width: 1400px;  /* optional content width */
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}


}

a {
    text-decoration: none;
  }
  
  .main-menu a {
    color: var(--color-dark);
     text-decoration: none;
  }

  .main-menu a:hover,
  .main-menu .current-menu-item > a {
    color: var(--color-primary);
  }

  /* =================================================
   HARD OVERRIDES — HEADER BRAND & CTA (NO LAYER)
================================================= */

/* LOGO / SITE TITLE */
.site-header .site-title,
.site-header .site-title:visited {
  color: var(--color-dark);
  text-decoration: none;
}

.site-header .site-title:hover {
  color: var(--color-dark);
}

/* CONTACT US BUTTON */
.site-header .booking-btn {
  color: var(--color-dark);
  background: transparent;
  border: 1.5px solid var(--color-dark);
}

.site-header .booking-btn:hover {
  background: #1f2937;
  color: var(--color-surface);
}

/* MOBILE MENU CTA SAFETY */
@media (max-width: 991px) {
  #site-navigation .booking-btn {
    color: var(--color-dark);
    border-color: var(--color-dark);
  }
}
/* =================================================
   HEADER LOGO (Seasons style)
================================================= */




/* Bigger desktop header scaling */
@media (min-width: 992px) {
  .site-header .custom-logo {
    max-height: 160px;
  }
}

/* ===== MOBILE MENU STACK FIX ===== */

@media (max-width: 991px) {

  /* Overlay */
  body::after {
    z-index: 1500;
  }

  /* Off-canvas menu */
  #site-navigation {
    z-index: 3000; /* must be ABOVE overlay */
     background-color: var(--color-surface) !important;
    opacity: 1 !important;
  }

  /* Header should be below menu */
  .site-header {
    z-index: 1000;
  }

}

/* =====================================
   DESKTOP HEADER BACKGROUND FIX
===================================== */
@media (min-width: 992px) {

  .site-header {
    background: transparent !important;
  }

  .site-header .header-inner {
    background: var(--color-surface) !important;
    opacity: 1 !important;
  }

}
/* =====================================
   FORCE HEADER SURFACE COLOR
===================================== */

.site-header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.site-header .header-inner {
  background-color: var(--color-surface) !important;
}

/* ================================
   MOBILE HEADER HARD FIX
================================ */

@media (max-width: 991px) {

  .site-header {
    position: sticky;
    top: 0;
    background: var(--surface-base);
    z-index: 4000; /* above hero */
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--surface-base);
    z-index: -1;
  }

  .site-header .header-inner {
    position: relative;
    background: var(--surface-base);
    z-index: 1;
  }
}
.hero-section {
  z-index: 1;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-footer a {
  color: var(--surface-base);
}

.site-footer a:hover {
  color: var(--color-primary-soft);
}

.site-footer .container {
  max-width: 95%;
}