/* =========================
   GLOBAL + HERO + PAGE LAYOUT
   ========================= */

:root {
  --brand-bg: #111111;
  --brand-accent: #949293;
  --brand-text: #ffffff;
  --body-bg: #f5f5f5;
}

/* =========================
   RESET + BASE
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--body-bg);
  color: #222;
}

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

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

/* Headings use Audiowide (loaded in head.php/header area) */
h1, h2, h3, h4, h5, h6 {
  font-family: "Audiowide", sans-serif;
  letter-spacing: 0.3px;
}

/* =========================
   PAGE LAYOUT
   ========================= */

/* Because header is fixed */
.page-main {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 132px 1rem 0; /* matches your taller fixed header */
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
  position: relative;
  height: 450px;
  overflow: hidden;
}

/* Hero image (set inline via hero.php) */
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Overlay for contrast (does NOT change image) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(0, 0, 0, 0.4),
    transparent 55%
  );
  pointer-events: none;
}

/* Centered title container */
.hero__content--center {
  position: absolute;
  inset: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 1rem;
}

/* Semi-transparent title background (requires .hero__title-wrap in hero.php) */
.hero__title-wrap{
  background: rgba(255, 255, 255, 0.68);   /* light frosted panel */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 1.5rem 2.5rem;
  border-radius: 16px;

  text-align: center;
  max-width: 90%;

  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}


/* Page title */
.hero__title {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.8px;
  margin: 0;
}


.hero-title-pro{
  color: #0b0b0b; /* Pro = near-black */
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.hero-title-active{
  color: #8f8f8f; /* Active = ProActive grey */
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}


/* Optional tagline */
.hero__tagline {
  margin-top: 0.75rem;
  max-width: 720px;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.70);
}




@media (max-width: 768px) {
  .hero {
    height: 360px;
  }

  .hero__title-wrap {
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
  }

  .hero__tagline {
    font-size: 0.98rem;
  }
}

/* =========================
   CONTENT CARD
   ========================= */

.intro {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.intro h2 {
  margin-bottom: 0.75rem;
}



/* =========================
   SUBTLE WHITE FOOTER
   ========================= */

.site-footer {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner.footer-simple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Left text */
.footer-left {
  font-size: 0.85rem;
  color: #555;
}

/* Right buttons */
.footer-right {
  display: flex;
  gap: 0.6rem;
}

/* =========================
   SHARED MODAL BUTTON (Footer + Header + Anywhere)
   ========================= */

.modal-btn,
.footer-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--brand-accent);        /* Active grey */
  color: #111111;

  font-family: "Audiowide", sans-serif;
  letter-spacing: 0.2px;
  font-size: 0.85rem;

  padding: 0.55rem 0.95rem;
  border-radius: 6px;                   /* same shape as footer */
  cursor: pointer;

  transition: background 0.15s ease, transform 0.05s ease;
}

.modal-btn:hover,
.footer-btn:hover {
  background: rgba(148, 146, 147, 0.85);
}

.modal-btn:active,
.footer-btn:active {
  transform: translateY(1px);
}

/* Mobile stacking */
@media (max-width: 600px) {
  .footer-inner.footer-simple {
    flex-direction: column;
    text-align: center;
  }
}
/* =========================
   MODALS (FOOTER)
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 200;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 210;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  width: min(720px, 100%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modal__title {
  font-family: "Audiowide", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: #111;
  margin: 0;
}

.modal__close {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: #111;
}

.modal__close:hover {
  background: #f3f3f3;
}

.modal__body {
  padding: 1rem 1.2rem 0.75rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal__footer {
  padding: 0.9rem 1.2rem 1.1rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.modal__btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  color: #444;
}

.modal__btn:hover {
  background: #f5f5f5;
}
/* Footer typography to match header title */
.footer-left,
.footer-btn {
  font-family: "Audiowide", sans-serif;
  letter-spacing: 0.3px;
}
/* =========================
   FOOTER BRAND COLOURS
   ========================= */

.footer-left {
  font-family: "Audiowide", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.footer-pro {
  color: #000000; /* same as Pro */
}

.footer-active {
  color: #949494; /* same as Active */
}

.footer-rest {
  color: #555555; /* matches header subtitle tone */
}
/* =========================
   CONTACT PAGE (MAIN BODY)
   Scoped to .contact-page to avoid clashes
   ========================= */

.contact-page .contact-hero {
  text-align: center;
  margin: 10px 0 18px;
}

.contact-page .contact-hero__title {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  margin: 0 0 8px;
  color: #111;
}

.contact-page .contact-hero__sub {
  margin: 0;
  color: #444;
}

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

@media (min-width: 980px) {
  .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Cards */
.contact-page .card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
}

.contact-page .card__header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef1f5;
}

.contact-page .card__title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #111;
}

.contact-page .card__sub {
  margin: 0;
  color: #666;
  font-size: .95rem;
}

.contact-page .card__body {
  padding: 22px;
}

/* Form (scoped under .cp) */
.contact-page .cp .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,1px,1px);
  white-space: nowrap;
  border: 0;
}

.contact-page .cp .form { display: grid; gap: 18px; }
.contact-page .cp .row { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }

@media (min-width: 760px) {
  .contact-page .cp .col-6  { grid-column: span 6; }
  .contact-page .cp .col-12 { grid-column: span 12; }
}
@media (max-width: 759.98px) {
  .contact-page .cp .col-6,
  .contact-page .cp .col-12 { grid-column: span 12; }
}

.contact-page .cp .field { position: relative; }

.contact-page .cp .field input,
.contact-page .cp .field select {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d8dde3;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: #111;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.contact-page .cp .field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #d8dde3;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: #111;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}

.contact-page .cp .field input::placeholder,
.contact-page .cp .field textarea::placeholder {
  color: #9aa3af;
  opacity: 1;
}

.contact-page .cp .field input:focus::placeholder,
.contact-page .cp .field textarea:focus::placeholder {
  color: transparent;
}

.contact-page .cp .field:focus-within input,
.contact-page .cp .field:focus-within select,
.contact-page .cp .field:focus-within textarea {
  border-color: #1e8841;
  box-shadow: 0 0 0 4px rgba(30,136,65,.18);
}

.contact-page .cp .consent { margin-top: 4px; }
.contact-page .cp .checkbox { display: inline-flex; gap: 10px; align-items: flex-start; color: #333; }
.contact-page .cp .status { margin-top: 8px; min-height: 1.2em; color: #333; }

/* Contact submit button (keeps your clean style + Audiowide) */
.contact-page .contact-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.15);
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;

  font-family: "Audiowide", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  color: #111;

  transition: background .15s ease, transform .05s ease;
}

.contact-page .contact-btn:hover { background: #f5f5f5; }
.contact-page .contact-btn:active { transform: translateY(1px); }

/* Map */
.contact-page .map-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.contact-page .map-address { line-height: 1.5; color: #333; }
.contact-page .map-meta { display: grid; gap: 4px; color: #555; font-size: .96rem; }

.contact-page .map-iframe {
  width: 100%;
  aspect-ratio: 16 / 12;
  border: 0;
  border-top: 1px solid #eef0f3;
}

@media (min-width: 980px) {
  .contact-page .map-iframe { aspect-ratio: 16 / 11; }
}
/* =========================
   CONTACT PAGE SPACING TWEAKS
   ========================= */

/* Pull main content closer to hero */
.contact-page {
  margin-top: -100px; /* visually tucks content under hero */
}

/* Reduce spacing under tagline */
.contact-page .contact-hero {
  margin: 0 0 12px;
}

/* Pull cards closer */
.contact-page .contact-grid {
  margin-top: 5px;
}
/* =========================
   REQUEST CALLBACK MODAL (Header CTA)
   ========================= */

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

/* Form layout */
.callback-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(12, 1fr);
}

.callback-field{ grid-column: span 6; }
.callback-field--full{ grid-column: span 12; }

@media (max-width: 720px){
  .callback-field{ grid-column: span 12; }
}

/* Inputs styled to match your clean card/forms */
.callback-form input,
.callback-form textarea{
  width:100%;
  border:1px solid #d8dde3;
  border-radius:14px;
  background:#fff;
  font:inherit;
  color:#111;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}

.callback-form input{
  height:52px;
  padding:12px 14px;
}

.callback-form textarea{
  min-height:140px;
  padding:12px 14px;
  resize:vertical;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder{
  color:#9aa3af;
  opacity:1;
}

.callback-form input:focus::placeholder,
.callback-form textarea:focus::placeholder{
  color:transparent;
}

.callback-form input:focus,
.callback-form textarea:focus{
  border-color:#949293;
  box-shadow:0 0 0 4px rgba(148,146,147,.18);
}

/* Status line */
.callback-status{
  color:#333;
  font-size:0.95rem;
}
/* When Affiliations sits immediately above Our Customers, remove the big gap */
.affiliations{
  padding: 22px 0 10px !important;
}

.affiliations__title{
  margin-bottom: 14px !important;
}

/* Customer logos section spacing (tighten top) */
.customer-logos{
  padding-top: 14px !important;
  margin-top: 0 !important;
}

/* Customer logos title spacing */
.customer-logos h2,
.customer-logos .customer-logos__title{
  margin-bottom: 14px !important;
}
@media (max-width: 640px){

  /* Overall credibility block */
  .credibility{
    padding: 20px 0;
  }

  .credibility__title{
    margin-bottom: 12px;
    font-size: 1.25rem;
  }

  /* Logos layout: tighter + predictable */
  .credibility__logos{
    gap: 16px;
  }

  .credibility__logos img{
    max-height: 48px;   /* KEY change */
    opacity: 0.85;
  }

  /* Divider tighter */
  .credibility__divider{
    margin: 18px auto;
  }

  /* Customers section (if separate block exists) */
  .customer-logos{
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .customer-logos img{
    max-height: 42px;
  }
}
html, body {
  max-width:100%;
  overflow-x:hidden;
}
