/* ==========================================================================
   Cumulus Technologies — site stylesheet
   Palette: clear-day sky on paper white. No gradients, no glass.
   Type: Bricolage Grotesque (display) + Public Sans (body).
   ========================================================================== */

:root {
  --sky: #00b4f1;
  --sky-bright: #1ec3fa;
  --sky-deep: #006aa3;
  --sky-dark: #00171f;
  --ink: #0e2a35;
  --ink-soft: #46656f;
  --paper: #f7fbfd;
  --cloud: #e4f2fa;
  --line: #d2e5ef;
  --white: #ffffff;
  --ok: #1a7f4b;
  --warn: #b3261e;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sky); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Layout helpers ---------- */

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

.section { padding: 64px 0; }
.section--tint { background: var(--cloud); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 14px;
}

.lead { font-size: 1.17rem; color: var(--ink); max-width: 46em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn--primary { background: var(--sky); color: var(--sky-dark); }
.btn--primary:hover { background: var(--sky-bright); color: var(--sky-dark); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--sky-deep); border-color: var(--sky-deep); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost-light:hover { color: var(--white); border-color: var(--white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

/* The header row (logo + nav + phone + CTA) needs more room than page content,
   so it gets a wider container than the 1100px used below the fold. */
.site-header .container { max-width: 1240px; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}

.site-header__logo img { height: 36px; width: auto; }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--sky-deep); }

.site-nav a[aria-current="page"] {
  color: var(--sky-deep);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.site-header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--sky-deep); }

.site-header__cta { white-space: nowrap; font-size: 0.9rem; padding: 0.65em 1.3em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 7px 11px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1240px) {
  .site-header__phone { display: none; }
}

@media (max-width: 1100px) {
  .site-nav, .site-header__cta { display: none; }
  .nav-toggle { display: block; }

  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14, 42, 53, 0.08);
  }

  .site-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .site-nav.is-open a {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open li:last-child a { border-bottom: 0; }
}

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

.hero { padding: 72px 0 64px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.4em; }

.hero .lead { font-size: 1.2rem; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Chat card (signature element) ---------- */

.chat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 106, 163, 0.1);
  max-width: 420px;
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.chat-card__who { line-height: 1.3; }
.chat-card__who strong { display: block; font-size: 0.95rem; }
.chat-card__who span { font-size: 0.8rem; color: var(--ink-soft); }

.chat-card__thread { display: flex; flex-direction: column; gap: 10px; }

.msg {
  max-width: 88%;
  padding: 0.65em 0.95em;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.msg--them {
  align-self: flex-start;
  background: var(--cloud);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}

.msg--me {
  align-self: flex-end;
  background: var(--sky);
  color: var(--sky-dark);
  font-weight: 500;
  border-bottom-right-radius: 5px;
}

.msg--typing {
  align-self: flex-start;
  background: var(--cloud);
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.85em 0.95em;
  border-bottom-left-radius: 5px;
}

.msg--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-card .msg { opacity: 0; transform: translateY(8px); animation: msg-in 0.45s ease forwards; }
.chat-card .msg:nth-child(1) { animation-delay: 0.15s; }
.chat-card .msg:nth-child(2) { animation-delay: 0.65s; }
.chat-card .msg:nth-child(3) { animation-delay: 1.15s; }

@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chat-card .msg { animation: none; opacity: 1; transform: none; }
  .msg--typing i { animation: none; }
  .btn { transition: none; }
}

/* ---------- Promise band ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.promises--2 { grid-template-columns: repeat(2, 1fr); }

.promise h3 { margin-bottom: 0.35em; }
.promise p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .promises, .promises--2 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 106, 163, 0.08);
}

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card__link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Whole card clickable */
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Work cards ---------- */

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card__img {
  aspect-ratio: 16 / 10;
  background: var(--cloud);
}

.work-card__img img { width: 100%; height: 100%; object-fit: cover; }
.work-card__img--contain img { object-fit: contain; padding: 24px; }

.work-card__body { padding: 22px 24px 24px; }
.work-card__body p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Steps (real sequences only) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.steps--row { grid-template-columns: repeat(3, 1fr); }
.steps--row-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .steps--row, .steps--row-4 { grid-template-columns: 1fr; }
}

.steps li { counter-increment: step; position: relative; padding-left: 56px; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--sky-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.steps h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }

.checklist li { position: relative; padding-left: 34px; }

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--sky-deep);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.checklist strong { color: var(--ink); }

/* ---------- Price tags ---------- */

.price-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }

.price-tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 210px;
}

.price-tag strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.price-tag span { color: var(--sky-deep); font-weight: 700; font-size: 1.25rem; }

/* Price menu cards (Home & Personal visit menu) */
.price-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--sky-deep);
  margin: 2px 0 10px;
}

/* ---------- Notes / callouts ---------- */

.note {
  background: var(--cloud);
  border-left: 4px solid var(--sky);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 22px 0;
}

.note--plain { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sky); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sky-dark);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); max-width: 22em; margin: 0 auto 0.5em; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 40em; margin: 0 auto 1.6em; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .form-field--full { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7em 0.9em;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(0, 180, 241, 0.35);
  border-color: var(--sky-deep);
}

.form-banner {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 600;
}

.form-banner--ok { background: #e6f6ec; border: 1px solid #bfe5cd; color: var(--ok); }
.form-banner--error { background: #fbeae9; border: 1px solid #f0c6c3; color: var(--warn); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.contact-methods { display: grid; gap: 14px; margin: 24px 0; }

.contact-method {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.contact-method strong { min-width: 90px; }
.contact-method a { font-weight: 700; }

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

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  font-size: 1.05rem;
}

.quote footer { margin-top: 12px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

.photo-frame {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.photo-frame img { width: 100%; height: auto; }

.photo-frame--empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

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

.site-footer {
  background: var(--sky-dark);
  color: #b7d1dc;
  padding: 56px 0 0;
  font-size: 0.95rem;
}

.site-footer a { color: #d9ecf5; }
.site-footer a:hover { color: var(--sky-bright); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #8fb0bd;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 22px;
}

.faq details[open] { border-color: var(--sky); }

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 0;
  cursor: pointer;
}

.faq summary::marker { color: var(--sky-deep); }

.faq details > div { padding: 2px 0 18px; color: var(--ink-soft); }

/* ---------- Misc ---------- */

.title-block { max-width: 46em; margin-bottom: 40px; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
