/* ============================================================
   Yoolcare — home care that holds you close
   Palette: deep sea / yool blue / teal / care green / mist / cloud
   Type: Quicksand (display, echoes the rounded wordmark)
         Atkinson Hyperlegible (body — designed for maximum legibility)
   Signature: "cradle" panels held by two leaf shapes, from the logo
   ============================================================ */

:root {
  --deep: #14425a;
  --blue: #2277a8;
  --teal: #1e9e8e;
  --green: #34a87b;
  /* text-safe variants of teal/green (WCAG AA on cloud and mist) */
  --teal-text: #157a6d;
  --green-text: #1f7f5c;
  --green-large: #2a8a63; /* large headline text only (3:1+) */
  --mist: #e9f4f1;
  --cloud: #f7fbfa;
  --ink: #17384a;
  --muted: #55707d;
  --line: rgba(34, 119, 168, 0.16);
  --shadow: 0 16px 44px rgba(20, 66, 90, 0.12);

  --display: "Quicksand", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, sans-serif;

  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cloud);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }

h1, h2, .panel-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; margin-bottom: 20px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin-bottom: 16px; }
h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--blue); margin-bottom: 8px; }

/* the "care" tint — last key word of headings turns green like the wordmark */
.tint { color: var(--green-large); }
.tint-light { color: #7fd4b4; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--deep);
  color: white;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn.large { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn.solid {
  background: linear-gradient(135deg, #1a6f9e, var(--teal-text) 60%, var(--green-text));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 20px rgba(30, 158, 142, 0.28);
}
.btn.solid:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 14px 28px rgba(30, 158, 142, 0.36); }
.btn.solid:active { transform: translateY(0); box-shadow: inset 0 2px 6px rgba(10, 60, 55, 0.3); }
.btn.soft {
  background: white;
  color: var(--blue);
  border: 2px solid var(--line);
}
.btn.soft:hover { background: var(--mist); border-color: var(--teal); transform: translateY(-2px); }
.btn.soft:active { transform: translateY(0); }

.mobile-only { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 250, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
/* the logo files have a white background; multiply lets the header tint show through */
.brand img { width: 170px; height: auto; mix-blend-mode: multiply; }
.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--deep);
}
.site-nav a { position: relative; padding: 6px 2px; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 14px 12px;
}
.menu-toggle .menu-icon,
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .menu-icon { position: relative; }
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle .menu-icon::before { top: -8px; }
.menu-toggle .menu-icon::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 70px);
  text-align: center;
}
.hero .eyebrow { letter-spacing: 0.2em; }
.lede {
  font-size: 19.5px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(46px, 6vw, 70px);
}

/* ---------- the cradle: a panel held by two leaves ---------- */
.cradle { position: relative; }
.cradle-panel {
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cradle-leaves {
  position: absolute;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  bottom: -34px;
  width: min(104%, 980px);
  height: auto;
  pointer-events: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  text-align: left;
}
.hero-panel img { width: clamp(180px, 22vw, 260px); height: auto; }
.panel-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.hero-panel p { margin: 0; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 84px); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-intro { color: var(--muted); font-size: 18.5px; }

.band-mist { background: var(--mist); }
.band-deep { background: linear-gradient(150deg, var(--deep), #0f5168 55%, #12655f); }
.band-deep h2 { color: white; }
.band-deep .eyebrow { color: #8fd8c2; }

/* ---------- services ---------- */
.service-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-grid li {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-grid p { margin: 0; color: var(--muted); font-size: 16.5px; }
.chip {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal-text));
}
.chip svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-grid li:nth-child(even) .chip {
  background: linear-gradient(135deg, var(--teal-text), var(--green-text));
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.about-grid > div:first-child p { color: var(--muted); max-width: 500px; }
.tick-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  font-weight: 700;
  color: var(--deep);
}
.tick-list li { position: relative; padding-left: 34px; }
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: white;
  background: var(--green-text);
}
.about-panel {
  padding: clamp(30px, 4vw, 46px);
  text-align: center;
}
.big-quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: 10px;
}
.quote-sub { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.steps p { margin: 0; color: var(--muted); font-size: 16.5px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green-text));
}

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.testimonial-grid blockquote {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: white;
}
.testimonial-grid blockquote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.testimonial-grid cite {
  font-style: normal;
  font-size: 14px;
  opacity: 0.8;
  display: grid;
  gap: 6px;
}
.stars { color: #ffd166; font-size: 17px; letter-spacing: 0.14em; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.contact-copy p { color: var(--muted); max-width: 440px; }
.contact-details { display: grid; gap: 8px; margin-top: 24px; font-weight: 700; color: var(--deep); }
.email-link {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--blue);
  word-break: break-word;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 42px);
}
.contact-form label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--deep);
  display: grid;
  gap: 8px;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: var(--cloud);
}
textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.form-status { font-weight: 700; font-size: 15px; min-height: 1.4em; }
.form-status.success { color: var(--green-text); }
.form-status.error { color: #c0392b; }
.hidden-field { position: absolute; left: -9999px; margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 20px 56px;
  border-top: 1px solid var(--line);
  background: white;
}
.site-footer img { width: 150px; }
.site-footer small { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--deep);
}
.footer-links a { padding: 8px 2px; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .site-header { padding-block: 8px; }
  .brand img { width: 128px; }
  .desktop-only { display: none; }
  .menu-toggle { display: block; grid-column: 4; grid-row: 1; justify-self: end; }
  .site-nav { display: none; }
  .site-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-items: start;
    justify-content: start;
    gap: 14px;
    padding: 12px 0 18px;
    font-size: 17px;
  }
  .mobile-only { display: inline-flex; margin-top: 6px; }
  .site-nav a.btn { padding: 0 26px; }
  .site-nav a.btn::after { display: none; }

  .hero-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cradle-leaves { bottom: -22px; }

  .service-grid, .steps, .testimonial-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
