:root{
  --navy:#00124d;
  --blue:#014477;
  --accent:#307fb5;
  --ice:#daeff4;

  --ink:#0B1220;
  --muted:#5B6475;

  --card:#FFFFFF;
  --border:rgba(0,18,77,.12);
  --shadow:0 18px 40px rgba(11,18,32,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:#fff}
a{color:inherit}
.container{width:min(1120px,92vw);margin:0 auto}
.section{padding:64px 0}
.section.alt{background:linear-gradient(180deg,#fff 0%, rgba(218,239,244,.55) 40%, #fff 100%)}

.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}

.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand-logo{width:56px;height:56px;object-fit:contain;border-radius:14px}
.brand-name{font-weight:800;letter-spacing:-.02em;display:block}
.brand-sub{display:block;font-size:12px;color:var(--muted);margin-top:2px}

.nav-toggle{display:none}
.nav-menu{display:flex;align-items:center;gap:18px}
.nav-menu a{text-decoration:none;color:rgba(11,18,32,.85);font-weight:600}
.nav-menu a:hover{color:var(--navy)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  background:var(--navy);color:#fff;text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 20px rgba(0,18,77,.18);
  font-weight:700;
}
.btn-ghost{background:transparent;color:var(--navy);border:1px solid var(--border);box-shadow:none}
.btn-small{padding:9px 12px;border-radius:12px;font-size:13px}

.pill{
  display:inline-flex;align-items:center;
  padding:8px 12px;border-radius:999px;
  background:rgba(48,127,181,.10);
  color:var(--blue);font-weight:700;font-size:13px;
  border:1px solid rgba(48,127,181,.18);
}

h1{margin:12px 0 10px;font-size:46px;line-height:1.08;letter-spacing:-.03em}
h2{margin:0 0 10px;font-size:34px;letter-spacing:-.02em}
h3{margin:0 0 10px;font-size:20px}
.lead{font-size:18px;line-height:1.6;color:var(--muted)}
.muted{color:var(--muted)}
.accent{color:var(--accent)}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.divider{height:1px;background:var(--border);margin:16px 0}

.bullets{margin:10px 0 0;padding-left:18px}
.bullets li{margin:8px 0;color:rgba(11,18,32,.88)}

.hero{padding:48px 0 60px}
.hero-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:26px;align-items:start}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.note{margin-top:12px;padding:10px 12px;border-radius:14px;border:1px solid rgba(48,127,181,.18);background:rgba(48,127,181,.08)}
.fineprint{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.45}

.form .field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
label{font-weight:700;font-size:13px}
input,select,textarea{
  padding:11px 12px;border-radius:14px;border:1px solid var(--border);
  font:inherit;outline:none;background:#fff
}
input:focus,select:focus,textarea:focus{border-color:rgba(48,127,181,.45);box-shadow:0 0 0 4px rgba(48,127,181,.12)}

.site-footer{border-top:1px solid var(--border);padding:26px 0;background:#fff}
.footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{color:rgba(11,18,32,.78);text-decoration:none}
.footer-links a:hover{color:var(--navy)}
.footer-brand{font-weight:800}

@media (max-width: 980px){
  h1{font-size:40px}
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .nav-toggle{display:inline-flex;background:transparent;border:1px solid var(--border);border-radius:12px;padding:9px 12px;font-weight:800}
  .nav-menu{display:none;position:absolute;right:4vw;top:64px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:10px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;min-width:240px}
  .nav-menu a{padding:10px 10px;border-radius:12px}
  .nav-menu a.btn{width:100%}
}



/* --- Contrast fix: header link colours --- */
header a, header nav a {
  color: rgba(255,255,255,0.92) !important;
}

header a:hover, header nav a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

header .btn-ghost {
  border-color: rgba(255,255,255,0.35) !important;
  color: #ffffff !important;
}

header .btn-ghost:hover {
  border-color: rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.08) !important;
}


/* --- Fix: revert general link colours; only Summit button stays white --- */
a { color: inherit; }

header a, header nav a {
  color: var(--muted, rgba(255,255,255,0.72)) !important;
}

/* Keep Summit Surgical header button readable */
header a.btn[href*="summitsurgical"] {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.45) !important;
}

header a.btn[href*="summitsurgical"]:hover {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.65) !important;
  background: rgba(255,255,255,0.08) !important;
}


/* --- Header hover fix: grey links should darken (not turn white) --- */
header nav a:hover {
  color: rgba(255,255,255,0.92) !important; /* on dark header background */
}

/* When header becomes light (sticky/scroll variants), ensure hover is darker grey */
.header-light header nav a:hover,
header.light nav a:hover,
header.nav-light nav a:hover {
  color: rgba(35,45,70,0.95) !important;
}


/* --- Final fix: header nav links should darken on hover (never white-on-white) --- */
header nav a:hover {
  color: rgba(11,18,32,0.95) !important;
}

/* Summit button remains white on hover */
header a.btn[href*="summitsurgical"]:hover {
  color: #ffffff !important;
}


/* --- Header logo sizing (Calgary Hernia Clinic) --- */
header .brand img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  header .brand img {
    height: 56px;
  }
}


/* --- Header hover fixes (brand + Summit button) --- */
/* Brand text should NOT change to a low-contrast colour on hover */
header .brand a:hover,
header .brand a:focus {
  color: inherit !important;
  opacity: 1 !important;
}

/* Summit Surgical button: prevent white background + white text on hover */
header a.btn[href*="summitsurgical"]:hover,
header a.btn[href*="summitsurgical"]:focus {
  background: rgba(255,255,255,0.08) !important; /* keep subtle, not white */
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.65) !important;
}


/* --- Header logo sizing (larger for impact) --- */
header .brand img {
  height: 56px;
  width: auto;
}

@media (max-width: 640px) {
  header .brand img {
    height: 44px;
  }
}


/* --- Header logo sizing (2x larger) --- */
header .brand img {
  height: 92px !important;
  width: auto !important;
}

@media (max-width: 640px) {
  header .brand img {
    height: 72px !important;
  }
}


/* --- Summit Surgical header button hover: dark grey background --- */
header a.btn[href*="summitsurgical"]:hover,
header a.btn[href*="summitsurgical"]:focus {
  background: rgba(20, 24, 32, 0.85) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.55) !important;
}
