/* ============================================
   Care Quest Group — Site Stylesheet
   Palette drawn from the company logo (#1E5562)
   ============================================ */

:root {
  --teal-950: #0f2e35;
  --teal-900: #163e47;
  --teal-800: #1e5562;   /* logo teal */
  --teal-700: #26697a;
  --teal-600: #2f7d90;
  --teal-500: #3f93a6;
  --teal-300: #8dc2cd;
  --teal-100: #d6ebee;
  --teal-50:  #f2f9fa;
  --ink:      #16232a;
  --grey-700: #4d5c60;
  --grey-500: #7c8b8e;
  --grey-200: #e6ebec;
  --white:    #ffffff;

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; color: var(--grey-700); }
.lede { font-size: 1.25rem; color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all .18s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal-800); color: var(--white); }
.btn-primary:hover { background: var(--teal-900); transform: translateY(-1px); }
.btn-ghost { border-color: var(--teal-800); color: var(--teal-800); background: transparent; }
.btn-ghost:hover { background: var(--teal-50); }
.btn-light { background: var(--white); color: var(--teal-800); }

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--grey-200);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--teal-900); letter-spacing: 0.01em; white-space: nowrap; line-height: 1.3; }
.brand small { display:block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.22em; color: var(--teal-600); font-weight:700; white-space: nowrap; line-height: 1.4; }
.navlinks { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.navlinks a:hover, .navlinks a.active { border-color: var(--teal-600); color: var(--teal-800); }
.navcta { display:flex; align-items:center; gap:18px; flex-shrink: 0; }
.navcta .btn { white-space: nowrap; }
.menu-toggle { display:none; background:none; border:none; cursor:pointer; }
@media (max-width: 1220px) and (min-width: 981px) {
  .nav { gap: 16px; }
  .navlinks { gap: 18px; }
  .navcta { gap: 10px; }
  .navcta .btn { padding: 12px 18px; font-size: 0.92rem; }
}
@media (max-width: 980px) {
  .navlinks { position: fixed; inset: 72px 0 0 0; background: var(--white); flex-direction: column; padding: 32px 28px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
  .navlinks.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display:block; }
  .navcta .btn-ghost { display: none; }
}

/* Hero */
.hero { padding: 88px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art {
  aspect-ratio: 4/3.1; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(155deg, var(--teal-100), var(--white) 60%);
  border: 1px solid var(--grey-200);
}

/* Illustration figures (SVG placeholders in brand palette) */
.illus { width: 100%; height: 100%; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 34px;
  background: var(--white); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 20px 40px -24px rgba(15,46,53,0.25); transform: translateY(-3px); }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

.tint { background: var(--teal-50); }
.tint-dark { background: var(--teal-900); color: var(--white); }
.tint-dark h2, .tint-dark h3 { color: var(--white); }
.tint-dark p { color: rgba(255,255,255,0.78); }

.stat { font-family: var(--serif); font-size: 2.6rem; color: var(--teal-800); font-weight: 700; }
.stat-label { font-size: 0.9rem; color: var(--grey-500); }

.quote { border-left: 3px solid var(--teal-600); padding-left: 24px; font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--teal-900); }

/* Photo frame (for placeholder illustration blocks acting as "photography") */
.photo-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-200); }

/* Footer */
footer.site { background: var(--teal-950); color: rgba(255,255,255,0.82); padding: 64px 0 28px; margin-top: 40px; }
footer.site a { color: rgba(255,255,255,0.82); text-decoration: none; }
footer.site a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { color: var(--white); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.foot-bottom { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 48px; padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.foot-bottom a { color: rgba(255,255,255,0.55); }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display:block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--grey-200);
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100);
}
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:0.86rem; color:var(--grey-700); }
.form-note { font-size: 0.82rem; color: var(--grey-500); margin-top: 6px; }

/* Blog */
.post-card { display:grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--grey-200); }
@media (max-width:640px){ .post-card{ grid-template-columns:1fr; } }
.post-thumb { border-radius: 14px; overflow:hidden; aspect-ratio: 4/3; }
.tag { display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--teal-700); background:var(--teal-100); padding:5px 11px; border-radius:999px; margin-right:8px; }
article.post h2 { margin-top: 1.2em; }
article.post p { font-size: 1.08rem; }
.byline { color: var(--grey-500); font-size: 0.88rem; margin-bottom: 40px; }

/* Cookie banner */
#cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(15,46,53,0.35); padding: 26px; z-index: 200;
}
#cookie-banner p { font-size: 0.92rem; margin-bottom: 16px; }
#cookie-banner .row { display:flex; gap:10px; flex-wrap:wrap; }
#cookie-banner.hidden { display:none; }

.skip-link { position:absolute; left:-999px; top:auto; }
.skip-link:focus { left: 10px; top: 10px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 999; }

.breadcrumb { font-size: 0.85rem; color: var(--grey-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-700); text-decoration:none; }

.divider { height:1px; background: var(--grey-200); border:none; margin: 0; }

.badge-row { display:flex; gap: 26px; flex-wrap: wrap; align-items:center; }
.badge-row .badge { display:flex; align-items:center; gap:10px; font-size:0.88rem; color: var(--grey-700); }
