/* =========================
   PROBIZTOOLS Design System
   Logo-based, clean & modern
   ========================= */

/* =========================
   COLOR TOKENS (LOGO MATCH)
   ========================= */
:root{
  /* =========================
     BRAND COLORS
     ========================= */
  --c-blue:   #1A73E8;
  --c-green:  #34A853;
  --c-red:    #EA4335;
  --c-orange: #F28C28;

  /* =========================
     PAGE BACKGROUND (DARK BLUE TINT)
     ========================= */
  --c-bg: #0F2A44;   /* main page background */
  --c-alt:  #163A5F;   /* section background */
  --c-cd-bg:  #FFFFFF;  /* cards */

  /* =========================
     TEXT COLORS
     ========================= */
  --c-text:   #0F172A;
  --c-muted:  #475569;
  --c-line:   #C7D8F5;

  --c-focus:  rgba(26,115,232,.35);

  /* =========================
     FONTS
     ========================= */
  --font-body: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-head: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-cta:  "Oswald", system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  /* =========================
     FONT SIZES
     ========================= */
  --fs-0: 0.95rem;
  --fs-1: 1.00rem;
  --fs-2: 1.125rem;
  --fs-3: 1.25rem;
  --fs-4: 1.6rem;
  --fs-5: 2.2rem;
  --fs-6: 3.0rem;

  --lh: 1.55;

  /* =========================
     SPACING
     ========================= */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 5rem;
  --s-10: 6rem;

  /* =========================
     RADIUS & SHADOW
     ========================= */
  --r-1: 10px;
  --r-2: 16px;

  --shadow-1: 0 14px 40px rgba(15,23,42,.12);

  /* =========================
     LAYOUT
     ========================= */
  --container: 1100px;
}


/* =========================
   BASE
   ========================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: var(--lh);
  font-size: var(--fs-1);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}




/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3{
  font-family: var(--font-head);
  line-height: 1.2;
}
h1{ font-size: var(--fs-6); color: var(--c-blue); margin-top: var(--s-8); margin-bottom: var(--s-5); }
h2{ font-size: var(--fs-5); color: var(--c-green); margin-top: var(--s-8); margin-bottom: var(--s-5); }
h3{ font-size: var(--fs-4); color: var(--c-orange); margin-top: var(--s-4); margin-bottom: var(--s-4); }

p{ margin-bottom: var(--s-4); }
.lead{ font-size: var(--fs-2); color: var(--c-muted); }
.muted{ color: var(--c-muted); }

/* =========================
   HEADER (FIXED & CLEAN)
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  z-index: 100;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-4);
  padding: var(--s-1) 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap: var(--s-3);
  font-family: var(--font-head);
  font-weight: 700;
}

.brand-logo{
  width: 90px;
  height: auto;
}

/* =========================
   NAVIGATION â€“ DESKTOP
   ========================= */
.site-nav{
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav-list{
  display: flex;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:hover{
  color: var(--c-blue);
}

.nav-list a[aria-current="page"]{
  color: var(--c-blue);
  font-weight: 600;
}

/* CTA button */
.nav-cta{
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-1);
  background: var(--c-blue);
  color: #fff;
  font-family: var(--font-cta);
}

.nav-cta:hover{
  background: #1558C0;
}

/* =========================
   HAMBURGER (MOBILE ONLY)
   ========================= */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle-icon{
  width: 24px;
  height: 2px;
  background: var(--c-text);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute;
  width:24px;
  height:2px;
  background:var(--c-text);
  left:0;
}

.nav-toggle-icon::before{ top:-7px; }
.nav-toggle-icon::after{ top:7px; }

/* =========================
   MOBILE NAV
   ========================= */
@media (max-width: 768px){

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav{
    display: none;
    position: absolute;
    top: 100%;
    right: var(--s-4);
    background: #fff;
    flex-direction: column;
    gap: var(--s-4);
    padding: var(--s-5);
    border-radius: var(--r-2);
    box-shadow: var(--shadow-1);
  }

  .site-nav.is-open{
    display: flex;
  }

  .nav-list{
    flex-direction: column;
    gap: var(--s-4);
  }
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-1);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-cta);
  letter-spacing: .02em;
  transition: all .15s ease;
  margin: var(--s-5) var(--s-5) var(--s-5) 0;
}

.btn-primary{
  background: var(--c-blue);
  color: #fff;
}

.btn-primary:hover{
  background: #1558C0;
}

.btn-secondary{
  background: var(--c-green);
  color: #fff;
  border: 2px solid var(--c-green);
}

.btn-secondary:hover{
  background: #FFF;
  border: 2px solid #2C8E46;
  color: #2C8E46;
}

/* =========================
   SECTIONS
   ========================= */
.section{
  padding: 80px 20px;
  background: #ffffff;
}


.section-alt{
  background: var(--c-alt);
  padding: var(--s-7);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}


.section-cta{
  background: linear-gradient(
    180deg,
    #0B1F33 0%,
    #163A5F 100%
  );
}


.section-head{
  background: transparent;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 0px solid var(--c-line);
  border-bottom: 0px solid var(--c-line);
}
.section-about {
  background: linear-gradient(180deg, #f5f9ff, #eaf3ff);
}

.services-section {
    background: #ffffff;
    padding: 80px 20px;
    border-top: 0px solid var(--c-line);
    border-bottom: 0px solid var(--c-line);
}

.section-values {
  background: linear-gradient(180deg, #f0fff4, #d9fbe5);
}

/* =========================
   CARDS
   ========================= */
.grid{
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 768px){
  .grid.cards{
    grid-template-columns: repeat(3, 1fr);
  }
}

.card{
  background: VAR(--c-cd-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  transition: all .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: rgba(26,115,232,.3);
}

/* =========================
   FOOTER (UNCHANGED)
   ========================= */
.site-footer{
  background: var(--c-alt);
  border-top: 1px solid var(--c-line);
  padding: var(--s-7) 0 var(--s-5);
}

.footer-grid{
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 900px){
  .footer-grid{
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

.footer-title{
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.footer-links{
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.footer-links a:hover{
  color: var(--c-blue);
}

.footer-bottom{
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-size: .9rem;
}

/* =========================
   HERO BACKGROUND
   ========================= */
.hero.hero--has-bg{
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero.hero--has-bg .hero-inner{
  position: relative;
  z-index: 1;
}

/* HERO â€“ FORCE IMAGE TO RIGHT */

.hero .hero-inner .hero-text {
  order: 1;
  flex: 0 0 50%;
  max-width: 50%;
  margin-left: 0;       /* remove auto centering */
  text-align: left;     /* force left alignment */
}

.hero .hero-inner .hero-image {
  order: 2;                 /* ðŸ‘ˆ THIS IS THE KEY */
  flex: 0 0 45%;
  max-width: 45%;
  text-align: right;
}

/* IMAGE */
.hero .hero-inner .hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  position: relative;
  z-index: 2;               /* Above background overlay */
}

/* MOBILE STACK */
@media (max-width: 768px) {
  .hero .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero .hero-inner .hero-text,
  .hero .hero-inner .hero-image {
    order: unset;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero .hero-inner .hero-image {
    margin-top: 1.5rem;
    text-align: center;
  }

  .hero .hero-inner .hero-image img {
    margin: 0 auto;
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.skip-link{
  position:absolute;
  left:-9999px;
}

.skip-link:focus{
  left: var(--s-4);
  top: var(--s-4);
  background: var(--c-text);
  color:#fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-1);
}

/* =========================================
   CONTACT PAGE – FINAL CLEAN DESIGN
   ========================================= */

body.template-contact {
  background: #f5f9ff;
}

/* Hide hero on contact page */
body.template-contact .hero {
  display: none;
}

/* Page section spacing */
.contact-page {
  padding: 4rem 0;
}

/* Center container */
.contact-page .container {
  max-width: 640px;
}

/* Intro text */
.contact-page .lead {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #5f6c7b;
}

/* Contact card */
.contact-page .card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border: none;
}

/* Hide contact details card (optional) */
.contact-page .contact-grid .card:first-child {
  display: none;
}

/* Heading */
.contact-page h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #34a853;
}

/* Form labels */
.contact-page .form label {
  display: block;
  margin-bottom: 1.25rem;
}

/* Label text */
.contact-page .form span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Inputs */
.contact-page .form input,
.contact-page .form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #d0d7e2;
  font-size: 0.95rem;
}

/* Focus */
.contact-page .form input:focus,
.contact-page .form textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

/* Submit button */
.contact-page .form button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-page .form button:hover {
  background: #1558c0;
}

/* Notices */
.notice {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}

.notice.success {
  background: #e6f4ea;
  color: #137333;
}

.notice.error {
  background: #fdecea;
  color: #b3261e;
}

/* ==================================
   HERO – ANIMATED BACKGROUND (FINAL)
   ================================== */

.hero {
  position: relative;
  min-height: 75vh;          /* background reaches Services */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated GIF background */
.hero-bg-animated {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Content above background */
.hero .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 0 2rem;
}

/* Left text */
.hero .hero-text {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Right image */
.hero .hero-image {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  justify-content: flex-end;
}

.hero .hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero .hero-text,
  .hero .hero-image {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .hero .hero-image {
    justify-content: center;
    margin-top: 2rem;
  }
}

/* ==================================
   FINAL FIX – REMOVE GAP ABOVE SERVICES
   ================================== */

/* Remove spacing from main wrapper */
main,
#main,
.site-main,
.page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* First section after hero */
.hero + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Services heading spacing */
.hero + * h2:first-child {
  margin-top: 0 !important;
}

/* FINAL MICRO GAP FIX */
.hero {
  padding-bottom: 0;
}

.hero + .section {
  margin-top: 0;
}

/* =========================================
   FINAL FIX – HERO TO SERVICES (NO GAP)
   ========================================= */

/* Remove top padding from Services */
.hero + .section {
  padding-top: 0 !important;
}

/* Remove section-alt background ONLY for Services */
.hero + .section.section-alt {
  background: transparent !important;
}

/* Remove heading margin */
.hero + .section h2:first-child {
  margin-top: 0 !important;
}

/* =========================================
   SERVICES – ADD BREATHING SPACE FROM HERO
   ========================================= */

/* Pull services background upward */
.section.section-alt {
  margin-top: -60px;        /* controls overlap */
  padding-top: calc(var(--s-7) + 60px);
  background: transparent;
}

/* =========================================
   SERVICES TOP GAP (SERVICE BG ONLY)
   ========================================= */

.section.section-alt .container::before {
  content: "";
  display: block;
  height: 60px;                 /* 👈 controls gap size */
}

/* =========================================
   EXTRA COMPACT HERO FOR INNER PAGES
   ========================================= */

body.template-about .hero,
body.template-services_index .hero {
  min-height: 180px;     /* 👈 reduce hero height */
  padding: 40px 0;       /* 👈 reduce top & bottom padding */
}

/* Reduce title spacing inside hero */
body.template-about .hero h1,
body.template-services_index .hero h1 {
  margin: 0;
  font-size: 2rem;       /* optional: slightly smaller title */
}

/* Reduce space after hero before content */
body.template-about .hero + section,
body.template-services_index .hero + section {
  padding-top: 30px;
}

/* =========================================
   FORCE ABOUT & SERVICES HERO TO LEFT
   (CORRECT + PROCESSWIRE SAFE)
   ========================================= */

/* Reduce hero height on inner pages */
body[class*="template-about"] .hero,
body[class*="template-services"] .hero {
  min-height: 180px;
  padding: 40px 0;
  align-items: flex-start;
}

/* Hero inner layout */
body[class*="template-about"] .hero-inner,
body[class*="template-services"] .hero-inner {
  justify-content: flex-start !important;
  max-width: var(--container);
}

/* LEFT ALIGN TEXT (THIS IS THE KEY FIX) */
body[class*="template-about"] .hero-text,
body[class*="template-services"] .hero-text {
  margin-left: 0 !important;
  max-width: 100%;
  text-align: left !important;
}

/* Ensure headings & text are left aligned */
body[class*="template-about"] h1,
body[class*="template-about"] p,
body[class*="template-services"] h1,
body[class*="template-services"] p {
  text-align: left !important;
}

/* =========================================
   FORCE TEXT CLOSE TO TITLE (ABOUT & SERVICES)
   ========================================= */

/* Kill hero vertical space completely */
body.template-about .hero,
body.template-services_index .hero {
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove top padding of first section */
body.template-about .section:first-of-type,
body.template-services_index .section:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Reduce space below title */
body.template-about h1,
body.template-services_index h1 {
  margin-bottom: 0.75rem !important;
}

/* Pull paragraph closer to title */
body.template-about h1 + p,
body.template-services_index h1 + p {
  margin-top: 0 !important;
}

/* Reduce spacing before Mission / next headings */
body.template-about h2,
body.template-services_index h2 {
  margin-top: 1.5rem !important;
}


/* ===== CUSTOM SELECT DESIGN ===== */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #d0d7e2;
  background-color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Arrow */
.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #1a73e8;
  pointer-events: none;
}

/* Hover */
.select-wrapper select:hover {
  border-color: #1a73e8;
}

/* Focus */
.select-wrapper select:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* Label */
.select-wrapper span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}


/* Add space after Values section cards */
.grid.cards {
  margin-bottom: 80px;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 80px 0;
  background-color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  margin-bottom: 24px;
  max-width: 520px;
}

.cta-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-left: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-image img {
    margin: 40px auto 0;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* HERO OVERLAY FOR TEXT READABILITY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 20, 50, 0.75) 0%,
    rgba(3, 20, 50, 0.55) 55%,
    rgba(3, 20, 50, 0.25) 100%
  );
  z-index: 1;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
}


/* HERO TEXT COLORS */
.hero h1 {
  color: #ffffff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero .kicker {
  color: #8ab4ff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}.hero .btn-ghost {
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.6);
}

.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 80px 0;
  background-color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  margin-bottom: 24px;
  max-width: 520px;
}

/* CTA IMAGE AS BACKGROUND (TEMPLATES SAFE) */
.cta-image {
  width: 100%;
  min-height: 260px;
  background: url("/site/templates/assets/Images/cta-discuss-project.jpg")
              no-repeat center right;
  background-size: contain;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-image {
    margin-top: 40px;
    min-height: 220px;
    background-position: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* GLOBAL PAGE BACKGROUND */
body {
  background: #ffffff;
}


.card {
  background: #ffffff;
}

.section-alt {
  background: #f1f5f9;
}


/* Improve text contrast on dark sections */
.section-alt h2,
.section-alt p {
  color: #E6EEF8;
}

.section-alt p {
  opacity: 0.85;
}

.card {
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* FIX CARD TEXT CONTRAST */
.card p {
  color: #1F2937;        /* dark readable text */
  opacity: 1;            /* remove fade */
}

.card a {
  color: #1A73E8;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

/* ===== FIX FOOTER TEXT VISIBILITY ===== */
.site-footer {
  background: #163A5F;          /* keep your dark blue */
  color: #E6EEF8;               /* light text */
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer span {
  color: #E6EEF8;
}

/* Footer headings */
.site-footer h3,
.site-footer h4,
.site-footer .footer-title {
  color: #FFFFFF;
}

/* Footer links hover */
.site-footer a:hover {
  color: #8AB4FF;
}

/* Footer bottom copyright */
.footer-bottom {
  color: rgba(230, 238, 248, 0.7);
}

/* ===== CTA SECTION – DARK THEME FIX ===== */
.cta {
  background: linear-gradient(
    180deg,
    #0B1F33 0%,
    #163A5F 100%
  );
  color: #E6EEF8;
}

/* CTA text */
.cta h2 {
  color: #FFFFFF;
}

.cta p {
  color: rgba(230, 238, 248, 0.9);
}

/* CTA button spacing fix */
.cta .btn {
  margin-top: 20px;
}

/* ==================================
   CONTACT PAGE – DARK THEME FIX
   ================================== */

body.template-contact {
  background: linear-gradient(
    180deg,
    #0B1F33 0%,
    #163A5F 100%
  );
}

/* Intro text above form */
body.template-contact .lead,
body.template-contact p {
  color: rgba(230, 238, 248, 0.9);
  text-align: center;
}

/* Contact section wrapper */
.contact-page {
  padding: 4rem 0;
}

/* Form card */
body.template-contact .card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Form heading */
body.template-contact h2 {
  color: #34A853;
}

/* Labels */
body.template-contact label,
body.template-contact span {
  color: #1F2937;
}

/* Inputs */
body.template-contact input,
body.template-contact textarea,
body.template-contact select {
  background: #ffffff;
  border: 1px solid #CBD5E1;
}

/* Submit button */
body.template-contact button {
  background: #1A73E8;
  color: #ffffff;
}

body.template-contact button:hover {
  background: #1558C0;
}

/* ==================================
   ABOUT PAGE – TEXT CONTRAST FIX
   ================================== */

body.template-about {
  background: linear-gradient(
    180deg,
    #0B1F33 0%,
    #163A5F 100%
  );
}

/* About page text */
body.template-about p {
  color: rgba(230, 238, 248, 0.9);
}

/* About headings */
body.template-about h1 {
  color: #FFFFFF;
}

body.template-about h2 {
  color: #34A853;
}

/* Section spacing clarity */
body.template-about .section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ==================================
   ABOUT PAGE – VALUES CARD TEXT FIX
   ================================== */

/* Card paragraph text */
body.template-about .card p {
  color: #1F2937;   /* dark readable text */
  opacity: 1;       /* remove fade */
}

/* Card headings (keep orange) */
body.template-about .card h3,
body.template-about .card h4 {
  color: #F28C28;
}

/* ==================================
   SERVICES PAGE – INTRO TEXT FIX
   ================================== */

body.template-services_index p,
body.template-services_index .lead {
  color: rgba(230, 238, 248, 0.9);
}

/* ==================================
   GLOBAL CARD TEXT FIX (FINAL)
   ================================== */

/* Force dark text inside ALL cards */
.card p,
.card li {
  color: #1F2937 !important;
  opacity: 1 !important;
}

/* Card headings stay orange */
.card h3,
.card h4 {
  color: #F28C28;
}

.card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  transition: all .25s ease;
}

.card:hover {
  background: #f9fbff;              /* subtle light blue background */
  border-color: var(--c-blue);      /* stronger border color */
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}



/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .section {
    padding: 60px 16px; /* slightly reduced */
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .section {
    padding: 40px 12px; /* compact but still breathable */
  }
}

/* Left-align hero text */
.hero .hero-text {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
}

/* Optional: tighten spacing */
.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  margin-top: 0;
}

body.template-services_index .hero .hero-text {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
}

/* ======================================
   HOME PAGE – FINAL CONTRAST OVERRIDES
   ====================================== */

/* HERO */
body.template-home .section-hero {
  background: linear-gradient(135deg, #0B1F33, #0F2A44);
  color: #ffffff;
}

/* SERVICES – CLEAN WHITE */
body.template-home .section-services {
  background: #ffffff;
  color: #0F172A;
}

/* Services heading */
body.template-home .section-services h2 {
  color: #34A853;
}

/* SERVICES CTA STRIP (SOFT) */
body.template-home .section-services .section-cta {
  background: linear-gradient(180deg, #EEF5FF, #F8FBFF);
  border: 1px solid #DBEAFE;
  border-radius: 14px;
  padding: 24px;
}

/* SERVICES CTA BUTTON */
body.template-home .section-services .btn {
  background: #34A853;
  color: #ffffff;
}

/* MAIN CTA – DISTINCT DARK */
body.template-home .section-cta {
  background: linear-gradient(135deg, #0E223A, #163A5F);
  color: #ffffff;
}

/* MAIN CTA TEXT */
body.template-home .section-cta h2 {
  color: #34A853;
}

/* FOOTER – DEEPEST DARK */
body.template-home .site-footer {
  background: #081726;
  color: #E6EEF8;
}

body.template-home .site-footer a {
  color: #E6EEF8;
}

body.template-home .site-footer a:hover {
  color: #8AB4FF;
}

/* ================================
   SECTION SPACING (CLEAN)
   ================================ */

.section {
  padding: 80px 20px;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }
}

/* ================================
   VISUAL CONTRAST IMPROVEMENTS
   ================================ */

/* SERVICES CTA STRIP – MAKE IT SOFT, NOT DARK */
.section-services .section-cta {
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
  border: 1px solid #dbeafe;
  border-radius: 14px;
}
.section-services .section-cta .btn {
  background: var(--c-green);
  color: #ffffff;
}

.section-services .section-cta .btn {
  background: #34A853;
  color: #ffffff;
}

/* MAIN CTA – DARK BUT DISTINCT FROM HERO */
.section-cta {
  background: linear-gradient(135deg, #0E223A, #163A5F);
}

/* ADD A TOP DIVIDER BEFORE CTA */
.section-cta::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 40px;
}

/* FOOTER – EVEN DARKER FOR CLEAR END */
.site-footer {
  background: #081726;

/* =====================================
   HOME PAGE – STRONG CONTRAST OVERRIDES
   ===================================== */

body.template-home .section-services {
  background: #f8fafc; /* light gray instead of pure white */
}

body.template-home .section-cta {
  background: linear-gradient(135deg, #081726, #0E223A);
}

/* ==================================================
   FINAL HOME PAGE OVERRIDES (DO NOT MOVE ABOVE)
   ================================================== */

/* SERVICES SECTION – light contrast */
body.template-home section.section.section-services {
  background: #f8fafc !important;
}

/* CTA SECTION – dark strong contrast */
body.template-home section.section.section-cta {
  background: linear-gradient(135deg, #081726, #0E223A) !important;
}

/* ==================================================
   HOME – SERVICES VISUAL CONTRAST (REAL FIX)
   ================================================== */

body.template-home .section-services {
  background: #f8fafc;
  padding: 100px 20px;
}

/* create separation from hero */
body.template-home .section-services::before {
  content: "";
  display: block;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(15,42,68,0.15),
    transparent
  );
}

/* =========================================
   FORCED VISUAL TEST – MUST BE VISIBLE
   ========================================= */

body.template-home section.section.section-services {
  background: #ffe4e6 !important;   /* LIGHT PINK */
  min-height: 300px;
}

/* Force space above services */
body.template-home section.section.section-services::before {
  content: "SERVICES SECTION";
  display: block;
  text-align: center;
  padding: 20px;
  font-weight: 700;
  color: #991b1b;
}

/* STOP HERO BACKGROUND FROM BLEEDING */
.section-hero {
  position: relative;
  z-index: 1;
}

.section-services {
  position: relative;
  z-index: 2;
  background: #f8fafc;
}

/* ==============================
   NUCLEAR DEBUG – MUST CHANGE
   ============================== */

body.template-home {
  background: #fffbeb !important; /* pale yellow */
}

body.template-home main {
  background: #ecfeff !important; /* cyan */
}

body.template-home main > section {
  outline: 4px solid red !important;
}

/* STOP HERO BACKGROUND FROM BLEEDING */
.section-hero {
  position: relative;
  z-index: 1;
}

.section-services {
  position: relative;
  z-index: 2;
  background: #f8fafc;
}

/* =========================================
   HOME PAGE – FINAL COLOR OVERRIDES (WORKING)
   ========================================= */

/* SERVICES SECTION (full white / soft gray) */
body.template-home main > section.section-services {
  background: #f8fafc !important;
}

/* CTA STRIP INSIDE SERVICES */
body.template-home .section-services .section-cta {
  background: #eef5ff !important;
  border: 1px solid #dbeafe;
  border-radius: 14px;
}

/* MAIN CTA SECTION (dark, strong contrast) */
body.template-home main > section.section-cta {
  background: linear-gradient(135deg, #081726, #0E223A) !important;
}

/* FOOTER – darkest end */
body.template-home footer.site-footer {
  background: #081726 !important;
}


/* =========================================
   HOME – SERVICES SECTION (FINAL CLEAN FIX)
   ========================================= */

/* Services section background & spacing */
 .services-section {
  background: #f8fafc;          /* light contrast */
  padding: 100px 20px;
}

/* Center ONLY the heading block */
 .services-section .section-head {
  text-align: center;
  margin-bottom: 64px;
}

/* Services title */
.services-section .section-head h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #34A853;
}

/* Subtitle under Services */
 .services-section .section-head .muted {
  margin-top: 12px;
  font-size: 1.05rem;
  color: #64748b;
}

/* Cards grid – normal layout (DO NOT CENTER VERTICALLY) */
body.template-home .services-section .grid.cards {
  display: grid;
  gap: 32px;
}

/* CTA strip below cards */
body.template-home .services-section .section-cta {
  margin-top: 60px;
  padding: 32px;
  text-align: center;
  background: #eef5ff;
  border-radius: 14px;
}

