/*
 * SAFE CARE SOLUTIONS — private website concept. MesaWorks.
 *
 * THIS STYLESHEET IS THE TITAN HEALTHCARE CONCEPT'S STYLESHEET, REBRANDED.
 * The owner liked that presentation, so the layout, spacing, type scale,
 * component set and section rhythm are unchanged. What changed is the palette
 * and how the logo is placed. Nothing was redesigned.
 *
 * PALETTE: Safe Care navy and cyan, sampled from the official logo artwork —
 * #022452 is the navy of "SAFE", #28add1 the cyan of "CARE". The page base is
 * a deep navy derived from those rather than Titan's near-black, so the two
 * sites do not read as the same brand.
 *
 * ONE ACCENT, as before. Cyan carries primary buttons, small section labels
 * and the active nav state. Dark navy text on cyan is 6.7:1; white on the page
 * base is 17:1.
 */

:root {
  --bg: #061a33;
  --bg-2: #0a2544;
  --bg-3: #103056;
  --line: #1d3f66;
  --line-soft: #142e4f;
  --ink: #ffffff;
  --muted: #a8bcd2;
  --dim: #7891ae;
  --accent: #28add1;        /* Safe Care cyan */
  --accent-deep: #1f93b4;
  --on-accent: #06182e;
  --wrap: 1140px;
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }  /* height:auto so the
   intrinsic width/height attributes reserve correct space without distorting */
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* --- Concept bar (private build only) ---------------------------------- */

.concept-bar {
  background: repeating-linear-gradient(135deg, #11161d 0 12px, #1a222c 12px 24px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.concept-bar strong { color: var(--accent); letter-spacing: 0.12em; }

/* --- Header ------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Solid, not translucent-with-blur. backdrop-filter creates a stacking
     context, which stops the logo's `screen` blend from cancelling its baked
     black background against the header behind it. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
/*
 * Titan's logo PNG has a BAKED BLACK BACKGROUND, not transparency, so on this
 * navy header it renders as a visible black box. `screen` blending drops pure
 * black to nothing and keeps the white mark, which fixes it without touching
 * or re-cutting the client's own artwork. A transparent PNG is on the list of
 * things to ask the owner for.
 */
.logo { display: inline-flex; }
.logo img { height: 40px; width: auto; display: block; }
.logo-chip {
  display: inline-flex;
  background: #fff;
  border-radius: 9px;
  padding: 8px 12px;
}
.head-spacer { margin-left: auto; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 18px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.site-nav a {
  display: block;
  padding: 13px 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta {
  margin-top: 14px;
  border: 0;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
}

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; width: auto; }
  .site-nav a {
    border: 0;
    padding: 10px 10px;
    font-size: 12px;
    letter-spacing: 0.07em;
    white-space: nowrap;   /* without this the two longest labels wrap to two lines */
    border-radius: 8px;
  }
  .site-nav .nav-cta { margin: 0 0 0 12px; padding: 12px 18px; }
}

/* --- Type -------------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.015em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6vw, 3.75rem); text-transform: uppercase; }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.18rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); margin: 18px 0 0; max-width: 60ch; }
p { margin: 16px 0 0; }
.small { font-size: 0.86rem; color: var(--dim); }

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.band-2 { background: var(--bg-2); }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--muted); }
.btn-sm { min-height: 44px; font-size: 12.5px; padding: 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --- Hero -------------------------------------------------------------- */

.hero { position: relative; padding: 0; }
.hero-media { position: relative; min-height: 78vh; display: flex; align-items: flex-end; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Phone first: a centre crop of a 16:9 photo into a tall frame lands between
     the two people. Bias left, where the instructor is. */
  object-position: 32% 30%;
}
@media (min-width: 760px) {
  .hero-media img { object-position: center 28%; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,.72) 0%, rgba(13,17,23,.55) 42%, rgba(13,17,23,.96) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 56px 0 48px; width: 100%; }
.hero-copy .lede { color: #d6dde6; }

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; gap: 10px;
  font-size: 13.5px; color: var(--muted);
}
.trust b { color: var(--ink); }
@media (min-width: 760px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
}

/* --- Path cards -------------------------------------------------------- */

.grid { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* --- Testimonials ------------------------------------------------------ */

.band-rule { border-top: 1px solid var(--line-soft); }

.quote-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 14px;
  left: 24px;
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.34;
  pointer-events: none;
}
/* reset the global blockquote treatment inside a testimonial card */
.quote-card blockquote {
  margin: 42px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  flex: 1;
}
.quote-card blockquote p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}
.quote-card figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.q-name { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.q-role {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Split sections ---------------------------------------------------- */

.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-media-first .split-media { order: -1; }
}
.split-media img { border-radius: var(--radius); width: 100%; }
/* When one column is much taller than the other (a long form beside a photo),
   centring leaves the photo floating in dead space. */
.split-top { align-items: start; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.facts li { border-left: 2px solid var(--accent); padding-left: 18px; }
.facts b { display: block; font-size: 1.02rem; }
.facts span { color: var(--muted); font-size: 0.92rem; }

/* --- Quote ------------------------------------------------------------- */

blockquote {
  margin: 26px 0 0;
  padding: 22px 24px;
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: #e6ecf3;
}
blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--dim); }

/* --- Testimonials ------------------------------------------------------ */

.quote-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; }
.quote-card p { flex: 1; color: #dde4ec; font-size: 0.97rem; }
.quote-who { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.quote-who b { display: block; letter-spacing: 0.04em; }
.quote-who span { color: var(--dim); font-size: 0.84rem; }

.ratings {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  background: var(--bg-2);
}
.rating-chip b { color: var(--ink); }
.rating-chip:hover { border-color: var(--muted); }

/* --- Forms (demo only) ------------------------------------------------- */

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.field { margin-top: 18px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
}
.field textarea { min-height: 112px; resize: vertical; }
.field-row { display: grid; gap: 0; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.form-note {
  margin-top: 18px;
  font-size: 12.5px;
  /* --dim on the form card is 4.09:1, under the 4.5:1 floor for 12.5px text.
     This line says the form cannot be submitted, so it has to be readable. */
  color: var(--muted);
  background: var(--bg-3);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

/* --- Contact ----------------------------------------------------------- */

.contact-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 24px; }
.contact-list dt, .contact-list b {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* --- Footer ------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: var(--bg-2);
}
.foot-inner { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.site-foot .logo-chip { padding: 10px 14px; border-radius: 10px; }
.site-foot .logo-chip img { height: 38px; width: auto; display: block; }
.site-foot h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.foot-legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}

/* --- Public preview: hero tuning for the licensed stock photograph ------- */

.hero-media img { object-position: center 42%; }
@media (min-width: 760px) {
  .hero-media img { object-position: center 48%; }
}
.hero-media::after {
  background: linear-gradient(180deg, rgba(6,24,46,.82) 0%, rgba(6,24,46,.70) 42%, rgba(6,24,46,.97) 100%);
}
