/*
  Surgery Match Australia – Stylesheet
  This stylesheet defines the design tokens and layout rules for a high‑converting
  healthcare landing page. The colour palette and typographic scale are calm
  and clinical, while spacing and grid utilities enforce a consistent rhythm.
*/

:root {
  /* Brand colours */
  --brand: #146c94;
  --brand-600: #0f4f6d;
  --accent: #51a3c6;
  /* Neutral palette */
  --bg: #f7f9fb;
  --text: #0a0a0a;
  --muted: #5a6672;
  --border: #e3edf3;
  /* UI tokens */
  --radius: 12px;
  --shadow: 0 6px 20px rgba(10, 10, 10, .06);
  --container: 1200px;
  --sp1: 8px;
  --sp2: 16px;
  --sp3: 24px;
  --sp4: 40px;
}

html {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Container sets a max width and horizontal padding */
.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 var(--sp3);
}

/* Sticky header with navigation */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 5;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  text-decoration: none;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.nav a:hover {
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-600);
}
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero section */
.hero {
  padding: var(--sp4) 0;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp4);
  align-items: start;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp3);
}
.trust {
  margin-top: 20px;
  font-size: 14px;
}

/* Form elements */
.label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input,
select.input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
}
.input:focus,
select.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(20, 108, 148, 0.2);
}
.helper {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Info section with three cards */
.sections {
  padding: var(--sp4) 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp3);
}
.info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

/* Two-column grid for pathways section */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp3);
}

/* Pathway cards */
.path-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp3);
  box-shadow: var(--shadow);
}
.path-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--brand-600);
}
.path-card p {
  margin-top: 0;
  margin-bottom: var(--sp2);
}
.path-card ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: var(--sp2);
  list-style-type: disc;
}

/* Provider listing page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2);
  margin-bottom: var(--sp3);
}
.filter-bar label {
  font-size: 14px;
  color: var(--muted);
  margin-right: 6px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp3);
}
.provider-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp3);
}
.provider-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--brand-600);
}
.provider-card dl {
  margin: 0;
}
.provider-card dt {
  font-weight: 600;
  color: var(--text);
  float: left;
  clear: left;
  width: 40%;
}
.provider-card dd {
  margin-left: 45%;
  margin-bottom: 6px;
  color: var(--muted);
}

/* Generic section styles */
.section {
  padding: var(--sp4) 0;
}
.feature-list {
  padding-left: 20px;
  list-style-type: disc;
  margin-top: 0;
  margin-bottom: var(--sp2);
}

/* Footer */
.footer {
  margin-top: var(--sp4);
  padding: var(--sp3) 0;
  border-top: 1px solid var(--border);
  background: #fff;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer a {
  color: var(--brand);
  text-decoration: none;
  margin: 0 8px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero .grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-wrap: wrap;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* New section to showcase a relatable human image */
.image-section {
  padding: var(--sp3) 0;
  text-align: center;
}

.image-section img {
  /* Limit image width for better aesthetics and center it */
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Generic page images to humanise procedure pages */
.page-image {
  /* Limit image width and center it on procedure pages */
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: var(--sp3) auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}