/* =========================================================
   Care Ox — Global Stylesheet
   Palette: Light Blue + Light Green (calm, fresh, caring),
   anchored by the logo's deep navy & teal for contrast.
      Sky Blue #a7d3f2 · Light Blue #d6eaf8 · Mint #bfe7c1
      Light Green #e2f2d9 · Off White #f7faf8 · Light Gray #e0e4e7
   ========================================================= */

:root {
  /* Deep anchors (from the Care Ox logo) — used for text, headings & CTAs */
  --navy: #143a6b;
  --navy-dark: #0e2a53;
  --navy-700: #1d4a86;
  --teal: #1aa3a3;
  --teal-dark: #127f7f;
  --teal-light: #e3f3ee;

  /* Feedback palette — soft, caring pastels */
  --sky: #a7d3f2;          /* Sky Blue   */
  --light-blue: #d6eaf8;   /* Light Blue */
  --mint: #bfe7c1;         /* Mint Green */
  --light-green: #e2f2d9;  /* Light Green */
  --green-ink: #3f7d54;    /* readable green for accents/text */
  --sky-ink: #1f5f96;      /* readable blue for accents/text */

  --white: #ffffff;
  --off-white: #f7faf8;
  --grey-50: #f2f7fb;
  --grey-100: #e7f0f7;
  --grey-200: #e0e4e7;     /* Light Gray */
  --grey-300: #c4cfd8;
  --text: #22333f;
  --text-muted: #4c5d6b;

  --shadow-sm: 0 1px 3px rgba(20, 58, 107, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 58, 107, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 58, 107, 0.14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1.1rem; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--grey { background: var(--off-white); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #dfe7f5;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--teal { background: var(--teal-light); }
.section--blue { background: linear-gradient(180deg, var(--light-blue) 0%, #eaf4fb 100%); }
.section--green { background: linear-gradient(180deg, var(--light-green) 0%, #eef6e8 100%); }
.section--sky { background: var(--light-blue); }
.section--mint { background: var(--light-green); }

.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--grey-100); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 76px; width: auto; }
@media (max-width: 680px) { .brand img { height: 60px; } }
.brand-name { display: none; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { background: var(--grey-100); }
.nav-links a[aria-current="page"] { color: var(--teal-dark); font-weight: 700; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: none; font: inherit; cursor: pointer; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 0.55rem 0.75rem; font-size: 0.94rem; }

.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--grey-100);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    padding: 5rem 1.4rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 90;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-links a, .dropdown-toggle { width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0.8rem;
    min-width: auto;
  }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(15, 35, 80, 0.4);
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 80;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(167,211,242,0.55), transparent 62%),
    radial-gradient(900px 480px at 8% 110%, rgba(191,231,193,0.45), transparent 60%),
    linear-gradient(160deg, #fff 0%, var(--off-white) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
}
.hero h1 { margin-bottom: 0.8rem; }
.hero__lead { font-size: 1.18rem; color: var(--text-muted); max-width: 36ch; }
.hero .btn-row { margin-top: 1.6rem; }
.hero__trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--text-muted); font-size: 0.92rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,83,0.06) 0%, rgba(14,42,83,0.34) 100%);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}
.hero__media .badge-card {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 1;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  max-width: 230px;
  text-align: left;
}
.hero__media .badge-card strong { display: block; font-size: 0.98rem; }
.hero__media .badge-card small { color: var(--text-muted); }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(820px 380px at 88% -20%, rgba(167,211,242,0.35), transparent 60%),
    radial-gradient(600px 320px at 5% 120%, rgba(26,163,163,0.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #e7eefb;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.6rem; }
.page-hero p { color: #c9d6ef; max-width: 60ch; margin-bottom: 0; font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: #9fb3da; margin-bottom: 1rem; }
.breadcrumb a { color: #cfe0ff; }
.breadcrumb span { opacity: 0.6; margin: 0 0.4rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sky); }
/* Optional coloured top accent for feature cards */
.card--accent { position: relative; overflow: hidden; }
.card--accent::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card .card-link { font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--light-blue) 0%, var(--mint) 130%);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--sky   { background: linear-gradient(140deg, var(--sky) 0%, var(--light-blue) 120%); color: var(--sky-ink); }
.icon-badge--mint  { background: linear-gradient(140deg, var(--mint) 0%, var(--light-green) 120%); color: var(--green-ink); }
.icon-badge--teal  { background: var(--teal-light); color: var(--teal-dark); }

/* Feature list */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.tick-list li { position: relative; padding-left: 2rem; color: var(--text-muted); }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.15rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233f7d54' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split--media-first .media { order: -1; }
.media-card {
  border-radius: var(--radius-lg);
  min-height: 340px;
  background: linear-gradient(150deg, var(--teal) 0%, var(--navy) 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.media-card.alt { background: linear-gradient(150deg, var(--navy) 0%, var(--teal-dark) 100%); }
.img-placeholder {
  border-radius: var(--radius-lg);
  min-height: 340px;
  background:
    linear-gradient(135deg, rgba(26,163,163,0.12), rgba(22,48,107,0.12)),
    var(--grey-100);
  border: 1px dashed var(--grey-300);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}
/* Illustration images that fill a media slot */
.media-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--light-blue);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-img--photo { background: var(--grey-100); }
.media-img--tall { aspect-ratio: 1 / 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.section--navy .stat .label { color: #b7c6e6; font-size: 0.95rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .num {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--text-muted); margin: 0; }

/* Testimonials */
.quote {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}
.quote p { font-size: 1.05rem; color: var(--text); font-style: italic; }
.quote .by { font-style: normal; color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.quote .stars { color: #f5b301; margin-bottom: 0.6rem; letter-spacing: 2px; }

/* CTA band */
.cta-band {
  background: linear-gradient(150deg, var(--teal) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field label .req { color: #d24343; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,163,163,0.18);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
.form-status.success { display: block; background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal); }
.form-status.error { display: block; background: #fdeaea; color: #b23b3b; border: 1px solid #e0a3a3; }

/* Contact details list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; flex: 0 0 auto; width: 48px; height: 48px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--text-muted); }

/* Accordion (FAQ) */
.accordion { border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: 0.9rem; }
.accordion summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); transition: var(--transition); }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* Pills / tags */
.pill { display: inline-block; background: var(--light-blue); color: var(--sky-ink); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); }
.pill--mint { background: var(--light-green); color: var(--green-ink); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c6d2ea; padding: 3.4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #c6d2ea; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-brand img { height: 56px; background: #fff; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; color: #aebbd6; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.85rem; color: #91a1c4;
}
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.hide { display: none !important; }
.mx-auto { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { min-height: 280px; order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--media-first .media { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
