/* Home page. Overrides and extends theme.css (shared components live there). Mobile single column first. */

/* Hero: copy on the left, a large photo in a rounded shape on the right, with a dotted pattern and a small floating card */
.page-home .section-hero h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); max-width: 11ch; }
.hero-split { display: grid; gap: var(--space-5); align-items: center; }
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy .hero-lead { max-width: 34ch; }
.hero-copy .hero-actions { margin-bottom: 0; }

.hero-media { display: none; position: relative; width: 100%; max-width: 32rem; margin: 0 auto; padding: 0 0 var(--space-3) var(--space-3); }   /* hidden on mobile; shown from 48rem up */
.hero-blob {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50% 5% 50% 50%;   /* a circle with one square corner */
  background: var(--white);
  box-shadow: 0 1.5rem 3.5rem -1.5rem color-mix(in srgb, var(--ink) 35%, transparent);
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.hero-blob img[src$="hero-conversation.jpg"] { object-position: 50% 45%; }   /* crop the tall photo to the two people talking */
.hero-blob img[src$="hero-hands.jpg"] { object-position: 28% 50%; }   /* crop the wide photo to the gesturing hands and the laptop */
.hero-blob img[src$="hero-notes.jpg"] { object-position: 50% 35%; }   /* crop the tall photo to the person and the notes */
.hero-blob img[src$="hero-relief.jpg"] { object-position: 37% 50%; }   /* crop the wide photo to the person at the desk */
.hero-blob img[src$="hero-win.jpg"] { object-position: 70% 50%; }   /* crop the wide photo to the person celebrating */
.hero-blob img[src$="hero-money.jpg"] { object-position: 64% 50%; transform: scale(1.18); transform-origin: 20% 100%; }   /* flipped photo, cropped to the person looking left towards the notifications; the slight zoom from the bottom left moves his face up and to the right */
/* Example notifications stacked over the lower part of the photo, fading out towards the bottom */
.hero-notes {
  position: absolute;
  left: -4.5rem; bottom: 4%;   /* how far the stack pokes out to the left of the photo */
  width: min(19rem, 88%);
  display: grid; gap: 0.6rem;
  margin: 0; padding: 0; list-style: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
}
.hero-notes li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  box-shadow: 0 0.8rem 1.8rem -0.9rem color-mix(in srgb, var(--ink) 35%, transparent);
  font-size: 0.85rem; line-height: 1.3;
}
.hero-notes li img { flex: none; box-sizing: content-box; padding: 0.4rem; border-radius: 0.7rem; background: color-mix(in srgb, var(--ring-a) 14%, var(--white)); }
.hero-notes span { flex: 1; min-width: 0; }
.hero-notes strong { display: block; font-weight: 600; color: var(--text-heading); }
.hero-notes small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.hero-notes em { align-self: flex-start; font-style: normal; font-size: 0.7rem; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero-notes li { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-notes li:nth-child(1) { animation-delay: 1.2s; }
  .hero-notes li:nth-child(2) { animation-delay: 1.5s; }
  .hero-notes li:nth-child(3) { animation-delay: 1.8s; }
  .hero-notes li:nth-child(4) { animation-delay: 2.1s; }
}

/* How we can help: just the section title, sitting close above the two panels */
.section-help { padding-bottom: 0; }
.section-help .section-head { margin-bottom: var(--space-5); }   /* same gap under the title as on the digital signage page */

/* Short items with a small icon (used inside the AI feature panel) */
.expertise { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-5); grid-template-columns: 1fr; }
.expertise li { display: flex; gap: var(--space-3); align-items: flex-start; }
.expertise-icon {
  flex: none;
  box-sizing: content-box;
  padding: 0.85rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--ring-a) 8%, var(--white));
}
.expertise h3 { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }   /* same serif as the other card headings */
.expertise p { margin: 0; max-width: 38ch; }
.feature .expertise { gap: var(--space-4); margin: 0; }   /* the list sits in the right-hand column of the panel */

/* AI and digital signage: a short panel each, text beside a picture. Each section borrows its own service page's colours. */
.section-ai, .section-software {   /* the AI and custom software panels share one colour family */
  --hero-a: var(--violet-wash); --hero-b: var(--blue-wash);
  --ring-a: var(--ring-violet); --ring-b: var(--ring-blue);
  --tint-top: color-mix(in srgb, var(--hero-a) 26%, transparent);
  --tint-bottom: color-mix(in srgb, var(--hero-a) 46%, var(--white));
}
.section-signage {
  --hero-a: var(--amber-wash); --hero-b: var(--pink-wash);
  --ring-a: var(--ring-gold); --ring-b: var(--ring-coral);
  --tint-top: color-mix(in srgb, var(--hero-a) 26%, transparent);
  --tint-bottom: color-mix(in srgb, var(--hero-a) 46%, var(--white));
}
.section-ai { padding-block: 0 var(--space-4); }   /* no gap above (the title section provides it); 5rem in all between the two panels */
.section-software { padding-block: var(--space-4); }   /* 5rem between each pair of panels */
.section-signage { padding-block: var(--space-4) var(--space-3); }
.feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding: clamp(1.5rem, 5cqi, 3.5rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tint-top), var(--tint-bottom));
}
.feature h2 { font-size: var(--step-3); max-width: 20ch; margin-bottom: var(--space-3); }   /* same width as the contact form title */
.feature p { max-width: 46ch; }
.section-ai .feature-text p, .section-software .feature-text p { margin-bottom: var(--space-4); }   /* the AI card has no checklist, so the gap above its button comes from the paragraph */
.feature .checklist { margin: 0 0 var(--space-4); }
.feature .checklist li::before { color: var(--ring-a); }
.feature-media > img { width: 100%; height: auto; }   /* only a picture placed directly in the column, not the small icons in a list */

/* Four venue photos laid out like prints: two by two, each tilted a little, the right-hand column dropped slightly.
   Two across still works on a phone, where each print is about half the width. */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding-block: var(--space-2); }
.photo-grid img {
  box-sizing: border-box;
  padding: 0.35rem 0.35rem 0.9rem;
  background: var(--white);
  border-radius: 2px;
  aspect-ratio: 3 / 2.3;
  object-fit: cover;
  box-shadow: 0 0.8rem 2rem -0.6rem color-mix(in srgb, var(--ink) 30%, transparent), 0 0.1rem 0.6rem color-mix(in srgb, var(--ink) 9%, transparent);
}
.photo-grid img:nth-child(1) { transform: rotate(-2.5deg); }
.photo-grid img:nth-child(2) { transform: rotate(2deg) translateY(1.2rem); }
.photo-grid img:nth-child(3) { transform: rotate(1.5deg); }
.photo-grid img:nth-child(4) { transform: rotate(-2deg) translateY(1.2rem); }

/* Meet the team: the white panel with a checklist beside the text (normal section spacing, so the heading has room above it) */

/* Reviews (placeholders for now) */
.quote { gap: var(--space-3); }
.quote p { margin: 0; font-size: var(--step-0); }
.quote-author { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; font-size: 0.9rem; line-height: 1.35; }
.quote-author strong { font-weight: 600; color: var(--text-heading); }
.quote-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

@container content (min-width: 48rem) {
  .hero-split { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }   /* both columns as tall as the row */
  .hero-media { display: block; margin-right: 0; }   /* the photo stays at the top of the row ... */
  .hero-notes { bottom: 0; }   /* ... and the notifications sit at the bottom of it */
}
@container content (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-5); }   /* text and picture 50 / 50, with a wider gap between them */
  .feature-reverse .feature-media { order: -1; }
}

/* The contact form styles now live in theme.css (shared with the digital signage page). */


/* The AI and custom software panels have no picture or list beside the text, so each is a single column and the paragraph can run a little wider */
.section-ai .feature, .section-software .feature { grid-template-columns: 1fr; }
.section-ai .feature p, .section-software .feature p { max-width: 56ch; }
.section-ai .feature h2, .section-software .feature h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.7rem); }   /* a little smaller so the title runs across the whole card on wide screens */
