/* =========================================================
   groinhernia.com.au — calm, clinical, readable
========================================================= */

:root{
  --brand:#0B4F9C;
  --brand2:#6FAE2C;

  /* Typography colours (softened) */
  --ink:#2B2F36;        /* body text – charcoal */
  --heading:#111827;    /* headings – near black */
  --muted:#6B7280;      /* secondary text */

  /* UI */
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --border:#ECEFF3;
  --shadow:0 10px 24px rgba(0,0,0,.06);
  --radius:18px;
  --max:1160px;
}

/* =========================
   Global reset
========================= */
*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  line-height:1.7;
  font-weight:400;
  background:var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a{
  color:var(--brand);
  text-decoration:none;
}
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.small{
  font-size:.95rem;
  color:var(--muted);
}

.kicker{
  color:var(--brand2);
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size:.8rem;
  margin-bottom:4px;
}

/* =========================
   Headings (softened)
========================= */
h1{
  font-size: clamp(2.0rem, 2.6vw, 2.8rem);
  line-height:1.2;
  font-weight:700;
  color:var(--heading);
  margin:.35rem 0 1rem;
}

h2{
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height:1.25;
  font-weight:600;
  color:var(--heading);
  margin:1.2rem 0 .6rem;
}

h3{
  font-size:1.1rem;
  font-weight:600;
  color:var(--heading);
  margin:.8rem 0 .4rem;
}

p{ margin:0 0 1rem; }

ul{
  padding-left:1.1rem;
  margin:0 0 1rem;
}
li{ margin:.3rem 0; }

hr{
  border:none;
  border-top:1px solid var(--border);
  margin:18px 0;
}

/* =========================
   Accessibility
========================= */
.skip-link{
  position:absolute;
  left:-999px;
}
.skip-link:focus{
  left:16px;
  top:16px;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  z-index:9999;
}

/* =========================
   Header
========================= */
.header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
}

.site-logo{
  max-height:52px;
  width:auto;
}

/* =========================
   Navigation
========================= */
.nav{
  display:flex;
  gap:8px;
  align-items:center;
}

.nav a{
  padding:9px 12px;
  border-radius:12px;
  font-weight:600;
  color:var(--ink);
}

.nav a:hover{
  background:var(--bg);
  text-decoration:none;
}

.nav .cta{
  background:var(--brand);
  color:#fff;
}

.nav .cta:hover{
  background:#083F7C;
}

.mobile-toggle{ display:none; }

/* =========================
   Layout blocks
========================= */
.section{ padding:26px 0; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

.pad{ padding:18px; }

/* =========================
   Hero
========================= */
.hero{
  padding:28px 0 14px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:16px;
  align-items:start;
}

.hero-card{ padding:18px; }

/* =========================
   Badges
========================= */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:#F2F4F7;
  border:1px solid var(--border);
  font-weight:600;
  font-size:.9rem;
}

.badge-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--brand2);
}

/* =========================
   Buttons
========================= */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  font-weight:600;
  border:1px solid var(--border);
  background:#fff;
  color:var(--ink);
}

.btn:hover{
  background:#F2F4F7;
  text-decoration:none;
}

.btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:transparent;
}

.btn.primary:hover{
  background:#083F7C;
}

/* =========================
   Callout
========================= */
.callout{
  border-left:4px solid var(--brand2);
  padding:14px 16px;
  background:#FAFBFC;
  border-radius:14px;
  border:1px solid var(--border);
}

/* =========================
   Grids
========================= */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:16px;
}

/* =========================
   Footer
========================= */
.footer{
  padding:30px 0 36px;
  border-top:1px solid var(--border);
  background:#fff;
  margin-top:28px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap:14px;
}

.footer a{
  color:var(--ink);
  font-weight:600;
}
.footer a:hover{
  color:var(--brand);
  text-decoration:none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
}

@media (max-width: 860px){
  .site-logo{ max-height:44px; }

  .mobile-toggle{
    display:inline-flex;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    font-weight:600;
  }

  .nav{
    display:none;
    width:100%;
    padding-bottom:14px;
  }

  .nav.open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .nav a{ width:100%; }

  .header-inner{
    flex-wrap:wrap;
    align-items:flex-start;
  }
}
