/* Homepage, "Canvas" design. Loads after canvas-base.css (shared tokens and pieces) and site-toolbar.css. */

/* Hero */
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 64px; padding-top: clamp(80px, 9vw, 128px); }
.hero__text { min-width: 0; }
.hero__title { max-width: 8.4em; font-size: clamp(34px, 9.8vw, 84px); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; }
.hero__intro { max-width: 560px; margin-top: 36px; color: var(--muted); font-size: 19px; line-height: 1.63; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; width: fit-content; margin-top: 36px; }
.hero__portrait { flex: 0 0 auto; width: min(340px, 30%); }
.hero__portrait img { width: 100%; border-radius: var(--radius-card); aspect-ratio: 4 / 5; object-fit: cover; background: var(--hover); }
/* Clients */
.clients { display: flex; align-items: center; gap: 16px 40px; padding-top: 120px; }
.clients__title { flex: 0 0 auto; }
.clients__marquee { flex: 1 1 auto; }

/* Selected work */
.work { display: grid; gap: 56px; }
.work__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
/* About */
.about { display: flex; align-items: flex-start; justify-content: space-between; gap: 80px; }
.about__text { max-width: 760px; }
.about__lead { margin: 28px 0 32px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.5; letter-spacing: -0.01em; }
.inspector { flex: 0 0 360px; }
/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { padding: 32px; border-radius: var(--radius-card); background: var(--frame); }
.service h3 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.service p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* Testimonials as comments */
.comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 80px; align-items: start; }
.comments > :nth-child(even) { transform: translateY(88px); }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment__avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--hover); }
.comment__initials { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.comment__bubble { flex: 1; padding: 16px 20px 18px; border-radius: 4px 16px 16px 16px; background: var(--frame); box-shadow: var(--shadow); }
.comment__bubble figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; line-height: 1.4; }
.comment__bubble figcaption span { color: var(--faint); font-size: 13px; }
.comment__bubble blockquote { margin-top: 8px; font-size: 16px; line-height: 1.65; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 80px; padding: 64px; border-radius: var(--radius-card); background: var(--frame); }
.contact__links { display: grid; gap: 14px; margin-top: 32px; font-size: 18px; font-weight: 500; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; line-height: 1.4; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--frame);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--selection); outline: 2px solid var(--selection); outline-offset: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
#msgSubmit { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
#msgSubmit.hidden { display: none; }
#msgSubmit.text-success { color: var(--success); }
#msgSubmit.text-danger { color: var(--link); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about { flex-direction: column; gap: 48px; }
  .inspector { flex-basis: auto; width: min(100%, 420px); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 48px; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 72px; }
  .hero__portrait { width: min(340px, 100%); }
  .work__pair, .services, .comments { grid-template-columns: minmax(0, 1fr); }
  .comments > :nth-child(even) { transform: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .hero__intro { margin-top: 28px; font-size: 17px; }
  .clients { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 88px; }
  .service { padding: 24px; }
  .contact { padding: 28px 20px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__links { font-size: 16px; }
}
