/* =========================================================
   HTML5 UP "Read Only" — CSS reconstruction
   Based on the original template by html5up.net (@n33co)
   CCA 3.0 license — html5up.net/license
   ========================================================= */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-LightIt.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-SemiboldIt.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del,
dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup,
tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label,
legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup,
menu, nav, section { display: block; }

body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ── Grid ──────────────────────────────────────────────── */
/*
 * The original template uses skel's grid classes: .6u, .12u, .12u(xsmall) etc.
 * The parenthesised responsive variants aren't valid plain CSS selectors, so we
 * handle them with [class*=] attribute selectors and media queries instead.
 */
.row {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.row > * {
  box-sizing: border-box;
  padding: 0 1em;
}

/* Base column widths */
[class~="1u"]  { width: 8.33333%;  } [class~="2u"]  { width: 16.66667%; }
[class~="3u"]  { width: 25%;       } [class~="4u"]  { width: 33.33333%; }
[class~="5u"]  { width: 41.66667%; } [class~="6u"]  { width: 50%;       }
[class~="7u"]  { width: 58.33333%; } [class~="8u"]  { width: 66.66667%; }
[class~="9u"]  { width: 75%;       } [class~="10u"] { width: 83.33333%; }
[class~="11u"] { width: 91.66667%; } [class~="12u"] { width: 100%;      }

/* Uniform rows add vertical rhythm */
.row.uniform { margin: 0 -1em -1.5em; }
.row.uniform > * { padding: 0 1em 1.5em; }

/* Responsive overrides — (xsmall) suffix = ≤ 480px */
@media (max-width: 480px) {
  [class*="12u(xsmall)"] { width: 100% !important; }
  [class*="6u(xsmall)"]  { width: 50%  !important; }
}

/* (small) suffix = ≤ 736px */
@media (max-width: 736px) {
  [class*="12u(small)"] { width: 100% !important; }
  [class*="6u(small)"]  { width: 50%  !important; }
}

/* ── Base typography ────────────────────────────────────── */
body {
  background: #fff;
  color: #888;
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  font-size: 14pt;
  font-weight: 300;
  line-height: 1.65em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #49bf9d;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #888; }

strong, b { font-weight: 600; color: #555; }
em, i     { font-style: italic; }
p         { margin: 0 0 1.5em; }
h1, h2, h3, h4, h5, h6 {
  color: #555;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25em;
  margin: 0 0 0.5em;
}
h2 { font-size: 1.8em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.1em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.7em; }

sub { font-size: 0.8em; position: relative; top: 0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }

hr {
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  margin: 1.5em 0;
}

/* ── Containers ─────────────────────────────────────────── */
.container {
  margin: 0 auto;
  max-width: calc(100% - 60px);
  width: 1080px;
}

@media (max-width: 980px)  { .container { width: 100%; } }
@media (max-width: 736px)  { .container { max-width: calc(100% - 40px); } }
@media (max-width: 480px)  { .container { max-width: calc(100% - 30px); } }

/* ── Page layout ────────────────────────────────────────── */
#header {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 22em;  /* ~350px */
  background: #1e252d;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2em;
  overflow-y: auto;
  overflow-x: hidden;
}

#wrapper {
  margin-left: 22em;
  min-height: 100vh;
}

#main { padding: 0; }
#main > section { padding: 4em 0; }
#main > section:nth-child(even) { background: #f5f5f5; }

/* ── Sidebar header content ─────────────────────────────── */
#header header {
  margin-bottom: 2em;
}

#header h1#logo {
  font-size: 1.35em;
  letter-spacing: -0.025em;
  margin: 0 0 0.3em;
}
#header h1#logo a {
  color: #fff;
  font-weight: 600;
}
#header h1#logo a:hover { color: rgba(255,255,255,0.7); }

#header header > p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin: 0;
}

/* Avatar */
.image.avatar {
  display: block;
  margin: 0 auto 1.25em;
  width: 7em;
  height: 7em;
  border-radius: 100%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}
.image.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar nav */
#nav {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5em;
  padding-top: 1.5em;
  width: 100%;
}
#nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav > ul > li { padding: 0; margin: 0; }
#nav > ul > li > a {
  display: block;
  padding: 0.6em 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  transition: color 0.2s ease;
}
#nav > ul > li > a:hover,
#nav > ul > li > a.active {
  color: #fff;
}
#nav > ul > li:last-child > a { border-bottom: 0; }

/* ── Section headings ───────────────────────────────────── */
header.major {
  text-align: center;
  margin-bottom: 2em;
}
header.major h2 {
  font-size: 2em;
  letter-spacing: -0.035em;
}
header.major p {
  color: #aaa;
  font-size: 0.95em;
  letter-spacing: 0.05em;
  margin: 0.4em 0 0;
}
header.major article {
  margin: 1.5em auto 0;
  display: inline-block;
}
header.major article img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Sections: h3 headings ──────────────────────────────── */
#main > section h3 {
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

/* ── Features (location cards) ──────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  margin-top: 1.5em;
}

.features article {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.features article a.image {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #e8e8e8;
}
.features article a.image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.features article:hover a.image img { transform: scale(1.04); }

.features article .inner {
  padding: 1.25em 1.4em 1.5em;
}
.features article .inner h4 {
  font-size: 1em;
  margin-bottom: 0.4em;
}
.features article .inner p {
  font-size: 0.9em;
  margin: 0 0 0.3em;
  color: #aaa;
}
.features article .inner em,
.features article .inner i {
  font-style: italic;
  color: #49bf9d;
}

/* ── Feature icons (services, insurers) ─────────────────── */
.feature-icons {
  list-style: none;
  margin: 1em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5em 1.5em;
}
.feature-icons li {
  padding: 0.5em 0 0.5em 2.5em;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95em;
}
.feature-icons li::before {
  /* Font Awesome icon rendering */
  font-family: 'FontAwesome';
  font-size: 1.1em;
  position: absolute;
  left: 0.25em;
  top: 50%;
  transform: translateY(-50%);
  color: #49bf9d;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.feature-icons li.fa-eye::before        { content: '\f06e'; }
.feature-icons li.fa-stethoscope::before{ content: '\f0f1'; }

/* ── Forms ──────────────────────────────────────────────── */
form { margin: 0; }
label {
  color: #555;
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 0.4em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
select,
textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #555;
  font-family: inherit;
  font-size: 1em;
  font-weight: 300;
  outline: 0;
  padding: 0.75em 1em;
  width: 100%;
  transition: border-color 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #49bf9d;
}
textarea { min-height: 10em; resize: vertical; }

input[type="submit"],
input[type="reset"],
.button {
  appearance: none;
  background: transparent;
  border: 2px solid #d8d8d8;
  border-radius: 4px;
  color: #888;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  height: 3em;
  letter-spacing: 0.1em;
  line-height: 3em;
  padding: 0 2em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
.button:hover {
  border-color: #49bf9d;
  color: #49bf9d;
}
input[type="submit"].special,
.button.special {
  background: #49bf9d;
  border-color: #49bf9d;
  color: #fff;
}
input[type="submit"].special:hover,
.button.special:hover {
  background: #5dcbab;
  border-color: #5dcbab;
}

.actions {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1em;
}
.actions li { padding: 0; }

/* ── Images ─────────────────────────────────────────────── */
.image {
  display: inline-block;
}
.image img {
  max-width: 100%;
  display: block;
}
.image.fit {
  display: block;
  width: 100%;
}
.image.fit img { width: 100%; }

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  padding: 2em 0;
}
#footer .container { text-align: center; }

ul.copyright {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25em 1.5em;
  font-size: 0.85em;
  color: #aaa;
}
ul.copyright a { color: #aaa; }
ul.copyright a:hover { color: #49bf9d; }
ul.copyright li { padding: 0; }

/* ── Mobile nav panel (visible at ≤ 736px) ──────────────── */
#navButton {
  display: none;
  position: fixed;
  top: 0; right: 0;
  z-index: 200;
  height: 3.5em;
  width: 3.5em;
}
#navButton .toggle {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
/* Hamburger lines */
#navButton .toggle::before,
#navButton .toggle::after,
#navButton .toggle span {
  display: none; /* handled via ::before only */
}
#navButton .toggle::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 1.4em;
  height: 2px;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0.5em 0 rgba(0,0,0,0.4), 0 -0.5em 0 rgba(0,0,0,0.4);
  transition: opacity 0.2s ease;
}

#navPanel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 150;
  width: 80%;
  max-width: 20em;
  background: #1e252d;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 4em 2em 2em;
}
#navPanel nav {
  display: flex;
  flex-direction: column;
}
#navPanel nav a.link {
  display: block;
  padding: 0.8em 0;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.075);
  font-size: 0.9em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
#navPanel nav a.link:last-child { border-bottom: 0; }
#navPanel nav a.link:hover { color: #fff; }

/* Panel open state */
body.navPanel-visible #navPanel {
  transform: translateX(0);
}
body.navPanel-visible::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  #header { width: 20em; }
  #wrapper { margin-left: 20em; }
}

@media (max-width: 736px) {
  /* Hide sidebar, show mobile controls */
  #header { display: none; }
  #wrapper { margin-left: 0; }
  #navButton { display: block; }

  body > #navPanel { display: block; }

  #main > section { padding: 3em 0; }

  .feature-icons {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body { font-size: 12pt; }
  #main > section { padding: 2.5em 0; }
  .row.uniform { margin-bottom: -0.75em; }
  .row.uniform > * { padding-bottom: 0.75em; }
}

/* ── Cases section additions ───────────────────────────── */
.container--narrow { max-width: 780px; }

.breadcrumb { font-size: 0.82em; color: #aaa; margin-bottom: 1.5em; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: #49bf9d; }

#cases-list > .container > p { max-width: 640px; margin-bottom: 2em; }

.tag-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em;
  margin-bottom: 2em; padding-bottom: 1.5em; border-bottom: 1px solid #e8e8e8;
}
.tag-label {
  font-size: 0.8em; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #aaa;
}
.tag {
  font-size: 0.78em; padding: 0.3em 0.75em; border: 1px solid #d8d8d8;
  border-radius: 2em; color: #888; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: #49bf9d; color: #49bf9d; }

.tag-pill {
  display: inline-block; font-size: 0.75em; padding: 0.2em 0.65em;
  background: #f0f0f0; border-radius: 2em; color: #888; white-space: nowrap;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
a.tag-pill:hover { background: #49bf9d; color: #fff; }

.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5em; margin-top: 0.5em;
}
.case-card {
  border: 1px solid #e8e8e8; border-radius: 4px; background: #fff;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-card:hover { border-color: #ccc; box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.case-card-inner { padding: 1.5em 1.6em 1.6em; display: flex; flex-direction: column; gap: 0.6em; }
.case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6em; }
.case-meta time { font-size: 0.8em; color: #aaa; }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.35em; }
.case-card h3 { font-size: 1em; font-weight: 600; line-height: 1.35; margin: 0; }
.case-card h3 a { color: #555; }
.case-card h3 a:hover { color: #49bf9d; }
.case-summary { font-size: 0.9em; color: #aaa; line-height: 1.6; margin: 0; flex: 1; }
.read-more { font-size: 0.85em; font-weight: 600; color: #49bf9d; }
.read-more:hover { color: #3aad8a; }

#case-single { padding: 4em 0; }
.case-header { margin-bottom: 2em; padding-bottom: 1.5em; border-bottom: 1px solid #e8e8e8; }
.case-header time { display: block; font-size: 0.82em; color: #aaa; margin-bottom: 0.5em; }
.case-header h2 { font-size: 1.8em; margin-bottom: 0.6em; }

.case-body img {
  max-width: 100%; display: block; margin: 1.5em 0 0.5em;
  border: 1px solid #e8e8e8; border-radius: 3px;
}
.case-body em { display: block; font-size: 0.85em; color: #aaa; font-style: italic; margin-bottom: 1.25em; }
.case-body p { color: #888; line-height: 1.75; }
.case-body a { color: #49bf9d; }
.case-body h3 { font-size: 1.1em; margin: 1.5em 0 0.5em; color: #555; }

.case-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em;
  padding: 2em 0 1em; border-top: 1px solid #e8e8e8; margin-top: 2.5em; font-size: 0.9em;
}
.case-nav a { color: #555; font-weight: 600; }
.case-nav a:hover { color: #49bf9d; }
.case-nav__next { margin-left: auto; text-align: right; }
.back-link { margin-top: 0.75em; font-size: 0.85em; }
.back-link a { color: #aaa; }
.back-link a:hover { color: #49bf9d; }

@media (max-width: 736px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-header h2 { font-size: 1.4em; }
}
