/* ---------- Variables / Base ---------- */
:root{
  --brand: #0d3b66;
  --brand-2: #1c7293;
  --ink: #102a43;
  --ink-soft: #2f3e4d;
  --paper: #ffffff;

  --glass-border: rgba(0,0,0,0.06);
  --shadow: 0 12px 40px rgba(0,0,0,0.16);

  /* Footer height:
     - JS sets this dynamically when footer shows (best)
     - CSS fallback below sets 44px when html.footer-active is present */
  --footer-h: 0px;

  --nav-h: 72px;
  --glass-pad: clamp(20px, 3.5vw, 36px);
}

/* Fallback: if your footer is shown but JS measurement didn't run */
html.footer-active {
  --footer-h: 44px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* ---------- Body ---------- */
body {
  color: var(--ink);
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Arial, system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden; /* keep snap container scrolling */
  background: var(--paper);
}

/* ---------- Navbar ---------- */
.navbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

@supports not (backdrop-filter: blur(1px)) {
  .navbar { background: rgba(255,255,255,0.98); }
}

.nav-inner{
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin: 0;
}

.brand-logo {
  width: 265px;
  max-width: 42vw;
  height: auto;
}

/* Menu */
.menu {
  display: flex;
  gap: 30px;
  margin: 0;
  flex-wrap: wrap;
}

.menu-link{
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
}

.menu-link:hover { color: var(--brand-2); }
.menu-link.active{ color: var(--brand); }

.menu-link.active::after{
  content:"";
  position: absolute;
  left:0; right:0; bottom:-6px;
  height:2px;
  background: var(--brand);
  border-radius:2px;
}

/* ---------- Snap Container & Panels ---------- */

.snap-container {
  height: calc(100svh - var(--footer-h));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
}

/* IMPORTANT: panel height must match container height */
.panel{
  position: relative;
  height: calc(100svh - var(--footer-h));
  min-height: calc(100svh - var(--footer-h));
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 0 clamp(10px, 3vw, 28px);
}

/* ---------- BIG Glass block (shared) ---------- */
.glass{
  position: relative;
  width: min(98vw, 1600px);
  height: calc(100svh - var(--nav-h) - var(--footer-h) - 16px);
  margin-top: calc(var(--nav-h) + 8px);
  margin-bottom: calc(var(--footer-h) + 8px);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: start;
}

.glass::before{
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(8px) saturate(105%);
  z-index: -2;
}

.glass::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  z-index: -1;
  opacity: 0.9;
}

/* Background images */
.glass-about::before    { background-image: url("Images/About_Us.jpg"); }
.glass-services::before { background-image: url("Images/Services.jpg"); }
/* HOME: light grey glass pane (no photo) */
.glass-home::before {
  background-image: none;
  background: #eaf9fb;                 /* light grey pane */
  filter: none;
  transform: none;
}

/* Home overlay should be very subtle (not dark like image panels) */
.glass-home::after { 
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px) saturate(140%);
}


.glass-home::after{
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

/* HOME content alignment */

.glass-home .glass-content{
  display: grid;
  grid-template-rows: 1fr auto;     /* title area + hint */
  place-items: center;             /* centers horizontally */
  align-content: stretch;
  text-align: center;
  color: var(--ink);
  position: relative;
}


/* Title block */

.home-title-wrap{
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 56px);
  transform: translateY(5vh);     /* <-- move UP (adjust -4vh to -10vh as you like) */
}


/* "Medical Billing" */
.home-subtitle{
  margin: 0;
  font-size: clamp(50px, 5vw, 88px);
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #0d3b66 !important; /* grey (you’ll tweak later) */
}

/* "SIMPLIFIED" */
.home-title{
  margin: 0;
  font-size: clamp(75px, 4vw, 155px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4081bd !important; /* requested */
  line-height: 1.05;
}

/* HOME: allow absolute positioning inside the pane */
.glass-home .glass-content{
  position: relative;
}

/* Bottom-center Contact button on Home */
.btn-home-bottom {
  display: inline-block;   /* key change */
  width: auto;             /* prevents full width */
  align-self: center;
}



.glass-content{
  position: relative;
  padding: var(--glass-pad);
  height: 100%;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  color: #f7fbff;
}

.glass h1, .glass h2{
  margin: 0 0 6px 0;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.glass h1 { font-size: clamp(32px, 4.4vw, 52px); }
.glass h2 { font-size: clamp(28px, 3.8vw, 44px); }

.glass p, .glass li, .glass .note { color: #eaf1f8; }


.glass-home .home-title,
.glass-home .home-subtitle {
  text-shadow: none;
}

.glass-home .glass-content {
  color: var(--ink);
}

.glass-home p,
.glass-home h1,
.glass-home h2 {
  color: inherit;
}


.list{ margin: 6px 0 10px 22px; }
.note{ opacity: .95; }

/* Ensure all glass panels and overlays are rounded */
.glass,
.glass::before,
.glass::after {
  border-radius: 28px;
}

/* ---------- CONTACT PANEL ---------- */
.glass-contact {
  position: relative;
  display: grid;
  align-items: start;
  width: min(98vw, 1600px);
  height: calc(100svh - var(--nav-h) - var(--footer-h) - 16px);
  margin-top: calc(var(--nav-h) + 8px);
  margin-bottom: calc(var(--footer-h) + 8px);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  background: none;
}

.glass-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Images/Contact_Us.jpg") center/cover no-repeat;
  filter: brightness(0.75) saturate(110%) blur(4px);
  z-index: -2;
  border-radius: inherit;
}

.glass-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
  border-radius: inherit;
}

/* ---------- CONTACT CONTENT ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: var(--glass-pad);
  color: #f7fbff;
}

.contact-details h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

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

.info-grid a {
  color: #eaf1f8;
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- FORM ---------- */
.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  height: auto;
  box-shadow: none;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #14334d;
  width: 100%;
}

textarea { resize: vertical; min-height: 120px; }

.form-row { display: flex; gap: 12px; }
.form-row input { flex: 1; }

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
}

.btn:hover { opacity: 0.95; }

/* ---------- FOOTER (fixed, hidden by default) ---------- */
.footer-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  /* min-height lets it wrap on mobile; JS measures actual height */
  min-height: 44px;

  background: #f2f2f2;
  border-top: 1px solid rgba(0,0,0,0.1);

  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  z-index: 60;
  font-weight: 750;

  /* Hidden by default */
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.footer-strip.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-logo img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.footer-item {
  color: #000;
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-item:hover { color: var(--brand-2); }

/* reCAPTCHA badge: hidden by default */
.grecaptcha-badge{
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 200ms ease, transform 200ms ease;

  right: 10px !important;
  bottom: calc(var(--footer-h) + 10px) !important;
  z-index: 9999 !important;
}

/* Show reCAPTCHA only on Contact section */
html.recaptcha-active .grecaptcha-badge{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .contact-container { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .nav-inner { padding: 0 12px; }
  .menu { gap: 16px; }

  /* allow footer wrapping on small screens */
  .footer-strip {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 8px 12px;
  }

  .footer-logo img { height: 22px; }
}

/* ---------- A11y ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: #eaf1f8;
}

.form-status.ok  { color: #d5f5d5; }
.form-status.err { color: #ffd6d6; }

.contact-form .invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

.contact-form input:focus,
.contact-form textarea:focus,
.btn:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(28, 114, 147, 0.28);
}



/* ---------- Squishy Button (Classic – SAMED colours) ---------- */

.squishy {
  all: unset;
  box-sizing: border-box;

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

  font-family: inherit;

  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;

  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;     /* for <a> buttons */

  transition: transform 250ms ease, box-shadow 250ms ease;
}

.squishy-classic {
  background-color: rgb(160, 188, 178); /* ✅ button colour */
  color: rgb(30, 78, 108);              /* ✅ text colour */

  border-radius: 14px;

  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.6),
    0 1px 0 0 rgba(0,0,0,0.08),
    0 2px 0 0 rgba(0,0,0,0.10),
    0 4px 0 0 rgba(0,0,0,0.12),
    0 5px 0 0 rgba(0,0,0,0.14),
    0 6px 0 0 rgba(0,0,0,0.16),
    0 7px 0 0 rgba(0,0,0,0.18),
    0 7px 8px 0 rgba(0,0,0,0.22);
}

/* Squish effect */
.squishy-classic:hover {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.6),
    0 1px 0 0 rgba(0,0,0,0.08),
    0 1px 0 0 rgba(0,0,0,0.10),
    0 2px 0 0 rgba(0,0,0,0.12),
    0 2px 0 0 rgba(0,0,0,0.14),
    0 3px 0 0 rgba(0,0,0,0.16),
    0 4px 0 0 rgba(0,0,0,0.18),
    0 4px 6px 0 rgba(0,0,0,0.20);
}

.btn-home-bottom.squishy {
  padding-left: 15px;
  padding-right: 15px;
}

/* === BUTTON FIX === */
/* This forces horizontal shrink, no matter layout, grid, or media queries */

a.squishy.squishy-classic.btn-home-bottom {
  padding-left: 30px !important;
  padding-right: 30px !important;
  width: auto !important;
  font-weight: bold !important;
}

.btn-home-bottom {
  display: inline-flex;
  width: fit-content !important;
  justify-self: center;
}

/* SERVICES GRID */
.services-grid {
  list-style: none;
  padding: 0;
  margin-top: 2rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Tablet */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.services-grid li {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  text-align: center;
}

.service-title {
  font-weight: 900 !important;
  line-height: 1.4;
  display: block;
}

/* HIDE DESCRIPTIONS (FOR NOW) */
.service-desc {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;

}