/* ============================================================
   CareLogic — styles.css
   A clean, modern, responsive theme. Edit the variables below
   to re-skin the whole site (colours, fonts, spacing).
   ============================================================ */

:root {
  /* Brand colours */
  --navy-900: #0a1730;
  --navy-800: #0d2149;
  --navy-700: #142c5e;
  --accent:        #0ea5e9;   /* sky-500 */
  --accent-strong: #0284c7;   /* sky-600 — for text on white */
  --accent-2:      #22d3ee;   /* cyan */
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);

  /* Neutrals */
  --ink:    #0f172a;
  --body:   #334155;
  --muted:  #64748b;
  --line:   #e2e8f0;
  --bg:     #ffffff;
  --bg-alt: #f6f9fc;

  /* UI */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 23, 48, .35);
  --container: 1140px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(34, 211, 238, .6);
}
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(59, 130, 246, .6); }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-block { width: 100%; }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 12px rgba(34,211,238,.35)); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--accent-strong); }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--body);
  font-weight: 500;
  font-size: .98rem;
}
.nav-menu a:hover { color: var(--accent-strong); text-decoration: none; }
.nav-cta {
  background: var(--navy-900);
  color: #fff !important;
  padding: .55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------- Hero ----------------------- */
.hero {
  position: relative;
  color: #e8eefc;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(34, 211, 238, .28), transparent 60%),
    radial-gradient(700px 500px at 5% 20%, rgba(59, 130, 246, .25), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 22px clamp(4rem, 9vw, 7rem);
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1rem;
}
.eyebrow-dark { color: var(--accent-strong); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: 1.12rem;
  color: #c6d2ea;
  max-width: 36ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #aebbd6;
  font-size: .95rem;
}
.hero-trust strong { color: #fff; font-weight: 600; }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.glass-card {
  width: min(100%, 360px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.gc-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.gc-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.gc-title { color: #fff; font-weight: 600; font-size: .98rem; }
.gc-badge {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  color: #052e2b;
  background: #6ee7b7;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.gc-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.gc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: #d6e0f5;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.gc-ok { color: #6ee7b7; font-weight: 600; font-size: .82rem; }
.gc-foot { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: #aebbd6; }
.gc-meter { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.gc-meter i { display: block; height: 100%; width: var(--w, 90%); background: var(--grad); border-radius: 999px; }

.float-chip {
  position: absolute;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .82rem;
  padding: .5rem .8rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 8%; right: 2%; animation-delay: .8s; }
.chip-2 { bottom: 6%; left: 0%; animation-delay: 1.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ----------------------- Trust strip ----------------------- */
.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-strip .container { padding-block: 1.8rem; text-align: center; }
.trust-strip p {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-logos li {
  font-family: var(--font-head);
  font-weight: 600;
  color: #94a3b8;
  font-size: 1.05rem;
}

/* ----------------------- Sections ----------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-lead { font-size: 1.08rem; color: var(--muted); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }

/* ----------------------- Services ----------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cfe3f6;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(59,130,246,.16));
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ----------------------- Why us ----------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.check-list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .9rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--body);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  background-image: var(--grad),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: cover, 13px 13px;
  background-position: center, center;
  background-repeat: no-repeat;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.section-alt .stat-card { background: #fff; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: .92rem; }

/* ----------------------- Process ----------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.process li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: var(--grad);
  margin-bottom: 1rem;
}
.process h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.process p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ----------------------- About ----------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--body); }
.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.quote p { font-size: 1.12rem; color: var(--ink); font-style: italic; }
.quote footer { color: var(--muted); font-size: .92rem; font-style: normal; }
.quote footer span { opacity: .7; }

/* ----------------------- Contact ----------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: 1.02rem; color: var(--body); }
.contact-list .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #047857; }
.form-note.err { color: #b91c1c; }

/* ----------------------- Footer ----------------------- */
.site-footer { background: var(--navy-900); color: #aebbd6; padding-top: 3rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-accent { color: var(--accent-2); }
.footer-brand p { margin: .6rem 0 0; font-size: .95rem; color: #93a2c2; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-content: start; }
.footer-nav a { color: #c6d2ea; font-size: .96rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.4rem;
  font-size: .88rem;
  color: #7e8db0;
}
.footer-bottom p { margin: 0; }

/* ----------------------- Reveal animation ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------- Responsive ----------------------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-sub { max-width: 48ch; }
  .hero-visual { order: -1; min-height: 280px; }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem 22px 1rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .28s ease;
  }
  .nav-menu.open { clip-path: inset(0 0 0 0); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu li:last-child a { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: .6rem; }
}

@media (max-width: 560px) {
  .card-grid, .process, .stats { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem 1.4rem; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glass-card, .float-chip { animation: none; }
}
