/* ===================================================================
   CARE LANDING ENGINE — CLEAN FINAL CSS
   =================================================================== */

/* ---------- Theme Tokens ---------- */
:root {
  /* ---------- FONTS ---------- */
  --cle-font-body: "Lora", serif;         /* Body text font */
  --cle-font-heading: "Marcellus", serif; /* Headings, navigation, and footer font */

  /* ---------- COLOURS ---------- */
  --cle-text: #064869;            /* Primary text colour (headings, body, nav links) */
  --cle-bg: #ffffff !important;   /* Main page background colour */
  --cle-accent: #816451;          /* Primary accent colour (CTAs, hover states, burger X, highlights) */
  --cle-accent-hover: color-mix(in srgb, var(--cle-accent), black 15%); /* Auto darker hover state */
  --cle-secondary: #7b5dbd;       /* Secondary button colour (e.g. 'Contact Us') */
  --cle-secondary-hover: color-mix(in srgb, var(--cle-secondary), black 15%); /* Auto darker hover state */
  --cle-footer-bg: #295437;       /* Footer background colour */
  --cle-footer-text: #ffffff;     /* Footer text and icon colour */
  --cle-border: rgba(0,0,0,.06);  /* Subtle border (header divider, layout lines) */

  /* ---------- BUTTONS ---------- */
  --cle-button-radius: 999px !important;     /* Button border radius: 999 = pill, 6 = rounded, 0 = square */
}

body { 
  font-family: var(--cle-font-body) !important;
  font-weight: 400;
  font-size: 20px !important;
  line-height: 1.2; 
    
}
h1,h2,h3,h4,h5,h6 { font-family: var(--cle-font-heading) !important; }
body.page-template-landing-template,
body.page-template-landing-template #page {
  background: var(--cle-bg) !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ===================================================================
   WP BAKERY TEXT COLUMNS — INHERIT THEME TOKENS
   =================================================================== */
.wpb_text_column,
.wpb_text_column .wpb_wrapper,
.wpb_text_column p,
.wpb_text_column li,
.wpb_text_column span,
.wpb_text_column div {
  font-family: var(--cle-font-body) !important;
  line-height: 1.6;
  font-weight: 400;
  font-size: 18px;
}


/* ===================================================================
   BUTTONS
   =================================================================== */
.landing-btn-primary,
.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .50rem 1.1rem;
  border-radius: var(--cle-button-radius);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--cle-font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}

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

.landing-btn-secondary {
  background: var(--cle-secondary);
  color: #fff;
}
.landing-btn-secondary:hover {
  background: var(--cle-secondary-hover);
}

.landing-btn-primary:visited,
.landing-btn-secondary:visited {
  color: #fff;
}

/* --- Button text colour fix --- */
.landing-btn-primary,
.landing-btn-primary:hover,
.landing-btn-primary:focus,
.landing-btn-primary:visited,
.landing-btn-secondary,
.landing-btn-secondary:hover,
.landing-btn-secondary:focus,
.landing-btn-secondary:visited {
  color: #fff !important;
}

.mediahawkNumber9312,
.call-label {
  color: #ffffff !important;           /* preserve white text */
  font-weight: inherit;
}

a[href^="tel:"] i {
  color: #ffffff !important;
  margin-right: 6px;
}

/* --- Preserve button text colour after MediaHawk replacement --- */
a[href^="tel:"] .mediahawkNumber9312,
a[href^="tel:"] .mediahawkNumber9312 *,
a[href^="tel:"] .mhMobile {
  color: #fff !important;
  fill: #fff !important;
}



/* ===================================================================
   HEADER
   =================================================================== */
.landing-header {
  width: 100%;
  background: var(--cle-bg);
  border-bottom: 1px solid var(--cle-border);
  color: var(--cle-text);
  position: sticky;
  top: 0;
  z-index: 999;
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.landing-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Center nav (desktop) */
.landing-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.landing-nav a,
.landing-nav a:visited {
  font-family: var(--cle-font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cle-text);
  text-decoration: none;
  white-space: nowrap;
}
.landing-nav a:hover {
  color: var(--cle-accent);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================================
   BURGER / CLOSE — red X, no background
   =================================================================== */
.landing-burger {
  position: relative;
  width: 28px;
  height: 22px;
  display: none; /* shown on mobile */
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  z-index: 10000;
}
.landing-burger:focus,
.landing-burger:active,
.landing-burger:hover {
  background: none !important;
  outline: none;
  box-shadow: none !important;
}

.landing-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cle-text);
  transition: transform .22s ease, opacity .22s ease, background-color .22s ease;
}
.landing-burger span:nth-child(1) { top: 0; }
.landing-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.landing-burger span:nth-child(3) { bottom: 0; }

.landing-burger:hover span { background: var(--cle-accent); }

.landing-burger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: var(--cle-accent) !important;
}
.landing-burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(.6);
}
.landing-burger.is-active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  background: var(--cle-accent) !important;
}

.landing-mobile.open .landing-burger span { background: #fff; }
.landing-mobile.open .landing-burger.is-active span { background: var(--cle-accent) !important; }

/* ===================================================================
   MOBILE OVERLAY MENU
   =================================================================== */
.landing-mobile {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: #1e2c38;
  color: #fff;
}
.landing-mobile.open { display: flex; }

.landing-mobile-nav {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.landing-mobile-nav a,
.landing-mobile-nav a:visited {
  color: var(--cle-footer-text);
  text-decoration: none;
  font: 600 20px/1.3 var(--cle-font);
}
.landing-mobile-nav a:hover,
.landing-mobile-nav a:focus {
  color: var(--cle-accent);
}

.landing-mobile-nav .landing-btn-primary,
.landing-mobile-nav .landing-btn-secondary {
  font-size: 18px;
  padding: .7rem 2rem;
}

/* --- Responsive header alignment fix (Call button before burger) --- */
@media (max-width: 1100px) {
  .landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    order: 2;
  }

  .landing-mobile-call {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font: 600 15px/1 var(--cle-font);
    color: #fff !important;
    background: var(--cle-accent);
    text-decoration: none;
    order: 2; /* call button first */
  }
  .landing-mobile-call:hover {
    background: var(--cle-accent-hover);
  }

  .landing-burger {
    display: flex !important;
    order: 3; /* burger second */
  }
}


/* Disable scroll when overlay open */
body.no-scroll { overflow: hidden; }

/* ===================================================================
   FOOTER
   =================================================================== */
.landing-footer {
  background: var(--cle-footer-bg);
  color: var(--cle-footer-text);
  font-family: var(--cle-font);
}

.landing-footer .landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 30px;
}

/* ----- Top section ----- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-left {
  flex: 1 1 300px;
  min-width: 260px;
}

.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

/* ----- Right column links ----- */
.footer-right {
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  justify-content: flex-end;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-links a,
.footer-links a:visited {
  color: var(--cle-footer-text) !important;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--cle-accent) !important;
}

.footer-links i {
  font-size: 22px;
  min-width: 24px;
  color: var(--cle-footer-text) !important;
}

.footer-links a:hover i {
  color: var(--cle-accent) !important;
}

/* ----- Bottom legal line ----- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.footer-bottom a {
  color: var(--cle-accent);
  text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
  /* hide desktop nav + buttons */
  .landing-nav,
  .landing-header-actions > .landing-btn-secondary,
  .landing-header-actions > .landing-btn-primary:not(.landing-mobile-call) {
    display: none !important;
  }

  .landing-header-inner { gap: 12px; }
  .landing-logo img { height: 36px; }

  .landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .landing-mobile-call {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font: 600 15px/1 var(--cle-font);
    color: #fff;
    background: var(--cle-accent);
    text-decoration: none;
  }
  .landing-mobile-call:hover { background: var(--cle-accent-hover); }

  .landing-burger { display: flex !important; }
}

@media (max-width: 800px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-left, .footer-right {
    flex: 1 1 100%;
  }

  .footer-tagline { font-size: 24px; }

  .footer-links {
    align-items: center;
  }

  .footer-links a { font-size: 20px; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right { justify-content: center; }
}

@media (max-width: 800px) {
  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom:20px;
  }

  .footer-logo img {
    margin: 0 auto !important;
    display: block;
  }
}

/* desktop: hide mobile-only */
@media (min-width: 1101px) {
  .landing-mobile-call, .landing-burger { display: none !important; }
}

/* Keep phone button color consistent, even if MediaHawk rewrites text */
.landing-btn-primary.mhMobile,
.landing-btn-primary.mhMobile:hover,
.landing-btn-primary.mhMobile:visited {
  color: #fff !important;
  background: var(--cle-accent) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* Re-add icon before text if MediaHawk removes <i> */
.landing-btn-primary.mhMobile::before {
  content: "\f095"; /* Unicode for Font Awesome phone */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 6px;
  color: #fff;
}

/* Force MediaHawk-rewritten button text to stay white */
.landing-btn-primary.mhMobile,
.landing-btn-primary.mhMobile:link,
.landing-btn-primary.mhMobile:visited,
.landing-btn-primary.mhMobile:hover,
.landing-btn-primary.mhMobile:active {
  color: #fff !important;
  background: var(--cle-accent) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff !important; /* prevents blue tinting from injected inline styles */
}

/* keep icon white */
.landing-btn-primary.mhMobile::before {
  color: #fff !important;
}

/* ============================================================
   FORCE MEDIAHAWK FOOTER LINK COLOUR + ICON RESTORE
   ============================================================ */

.footer-links a.mediahawkNumber9312.mhMobile,
.footer-links a.mediahawkNumber9312.mhMobile:link,
.footer-links a.mediahawkNumber9312.mhMobile:visited,
.footer-links a.mediahawkNumber9312.mhMobile:hover,
.footer-links a.mediahawkNumber9312.mhMobile:active {
  color: var(--cle-footer-text) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--cle-footer-text) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Recreate the missing icon if MediaHawk wipes it */
.footer-links a.mediahawkNumber9312.mhMobile::before {
  content: "\f095"; /* Font Awesome phone icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--cle-footer-text) !important;
  display: inline-block;
  margin-right: 8px;
}

/* Footer MediaHawk link color restore without killing hover */
.footer-links a.mediahawkNumber9312.mhMobile,
.footer-links a.mediahawkNumber9312.mhMobile:link,
.footer-links a.mediahawkNumber9312.mhMobile:visited {
  color: var(--cle-footer-text) !important;
  -webkit-text-fill-color: var(--cle-footer-text) !important;
}

/* Keep existing hover color from theme */
.footer-links a.mediahawkNumber9312.mhMobile:hover,
.footer-links a.mediahawkNumber9312.mhMobile:focus {
  color: var(--cle-accent) !important;
  -webkit-text-fill-color: var(--cle-accent) !important;
}

/* Icon stays consistent with text color */
.footer-links a.mediahawkNumber9312.mhMobile::before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  transition: color .2s ease;
}

.footer-links a.mediahawkNumber9312.mhMobile:hover::before,
.footer-links a.mediahawkNumber9312.mhMobile:focus::before {
  color: var(--cle-accent) !important;
}


