/* =========================
   WilliamStopher Custom UI
   ========================= */
:root{
  /* Palette */
  --color-bg: #ffffff;
  --color-surface: #f6f9fc;
  --color-primary: #175a9c;       /* deep clinical blue */
  --color-primary-600: #134a80;
  --color-accent: #18b4a5;        /* teal accent */
  --color-text: #162433;          /* slate/navy */
  --color-muted: #66788a;
  --color-border: #e5edf5;

  /* Type + shape */
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.08);
  --shadow-2: 0 14px 50px rgba(0,0,0,.12);
}

/* Base */
html { scroll-behavior: smooth; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); }
h1,h2,h3 { letter-spacing: .2px; line-height: 1.2; }
p { color: var(--color-text); opacity: .92; }

/* Links */
a { color: var(--color-primary); transition: color .2s, transform .2s; }
a:hover { color: var(--color-primary-600); transform: translateY(-1px); }

/* Navbar */
#ftco-navbar,
.ftco_navbar {
  background: #114476 !important;  /* solid deep blue */
}
.navbar-brand { color: #ffffff !important; font-weight: 700; letter-spacing: .2px; }
.navbar .nav-link { color: #e6f0ff !important; font-weight: 500; }
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: #ffffff !important; }
.navbar .nav-link.active { color: var(--color-accent) !important; }

/* Buttons */
.btn {
  border-radius: var(--radius-pill);
  padding: .7rem 1.25rem;
  font-weight: 600;
  border-width: 2px;
  box-shadow: var(--shadow-1);
}
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-600); border-color: var(--color-primary-600); }
.btn-outline-primary {
  color: #e6f0ff; border-color: #e6f0ff; background: transparent;
}
.btn-outline-primary:hover {
  color: #fff; background: #175a9c; border-color: #175a9c;
}

/* ========= Dark/Blue Sections (reusable) ========= */
.section--blue,
.hero-wrap.hero--blue {
  position: relative;
  padding: 88px 0;
  background: linear-gradient(180deg, #175a9c 0%, #134a80 60%, #0f3a66 100%);
  color: #fff;
}
.section--blue::after,
.hero-wrap.hero--blue::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.12));
  pointer-events: none;
}
.section--blue .container,
.hero-wrap.hero--blue .container { position: relative; z-index: 1; }

/* On-dark text colors */
.section--blue h1, .section--blue h2, .section--blue h3,
.hero-wrap.hero--blue h1, .hero-wrap.hero--blue h2, .hero-wrap.hero--blue h3 { color:#fff; }
.section--blue p, .hero-wrap.hero--blue p { color:#e8f3ff; opacity:.98; }
.section--blue a { color:#cfe8ff; }
.section--blue a:hover { color:#ffffff; }

/* Outline buttons on dark */
.section--blue .btn-outline-primary {
  color:#e6f0ff; border-color:#e6f0ff;
}
.section--blue .btn-outline-primary:hover {
  color:#fff; background:#175a9c; border-color:#175a9c;
}

/* Cards that sit on dark sections */
.card-invert, .section--blue .service-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: #f5fbff;
}
.section--blue .service-card .icon {
  background: rgba(255,255,255,.15);
  color: #ffffff;
}

/* ======= Light Sections / Defaults ======= */
.ftco-section { padding-top: 88px; padding-bottom: 88px; }
.ftco-section.light { background: var(--color-surface); }

/* Service cards on light background */
.service-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px; border: 1px solid var(--color-border);
}
.service-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(23,90,156,.10); color: var(--color-primary); margin-bottom: 12px;
}

/* Footer */
.ftco-footer {
  background: #0f1f2e !important; color: #cfe0f5;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ftco-footer a { color: #cfe0f5; }
.ftco-footer a:hover { color: #fff; }

/* Forms */
.form-control {
  border-radius: 10px; border: 1.5px solid var(--color-border);
  padding: .75rem 1rem;
}
.form-control:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(23,90,156,.12);
}

/* Accessibility */
:focus-visible { outline: 3px solid rgba(24,180,165,.6); outline-offset: 2px; }
/* Compact hero option */
.hero--compact {
  min-height: 140px;          /* much shorter */
  padding: 40px 0;            /* top/bottom spacing */
}
.hero--compact .hero-title {
  font-size: 2rem;            /* slightly smaller text */
}
.hero--compact .hero-sub {
  font-size: 1.1rem;
}
/* Heading color fixes */

/* Default / light backgrounds */
.bg-white h1, 
.bg-white h2, 
.bg-white h3, 
.bg-white h4, 
.bg-white h5,
.light h1,
.light h2,
.light h3,
.light h4,
.light h5 {
  color: var(--color-text, #222);   /* fallback dark gray if var not set */
}

/* Blue/dark backgrounds */
.section--blue h1, 
.section--blue h2, 
.section--blue h3, 
.section--blue h4, 
.section--blue h5,
.hero--blue h1,
.hero--blue h2,
.hero--blue h3,
.hero--blue h4,
.hero--blue h5 {
  color: #fff;
}
/* Services accordion */
.services-accordion .svc-item + .svc-item { margin-top: 14px; }
.svc-title { margin: 0; }
.svc-toggle {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 52px 14px 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: box-shadow .2s, transform .1s;
}
.svc-toggle:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.svc-icon {
  position: absolute;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary);
}
.svc-title { position: relative; }

.svc-body {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}

/* Dark/blue section variant */
.section--blue .svc-toggle {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #f5fbff;
}
.section--blue .svc-body {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #f5fbff;
}
.section--blue .svc-icon { color: #fff; }
