/* =====================================================================
   SOCIALIQUE SITE LAYOUT
   Page-level layout for pages styled with the design kit (kit/).
   Load after the kit files. Replaces styles.css on styled pages.
   Breakpoints: laptop above 1024px · tighter + Menu button at 1024px
   and below · phone under 700px with a fixed "Book a call" button.
   ===================================================================== */

/* ---------- Header: Mist band, liquid navbar, Menu button ---------- */
.site-header-band { background: var(--slq-mist); }
.site-header {
  max-width: var(--slq-max); margin: 0 auto; padding: 14px var(--slq-page-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header .logo img { width: 64px; height: 64px; display: block; }
.header-cta { border-radius: var(--slq-radius-pill); }
.menu-toggle {
  display: none; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--slq-navy); border-radius: var(--slq-radius-pill); background: transparent;
  font: 500 0.9375rem/1 var(--slq-font-body); color: var(--slq-navy); cursor: pointer;
}
.menu-toggle:hover { background: var(--slq-navy); color: var(--slq-linen); }

/* Phone-only fixed booking button */
.slq-glow-btn.mobile-cta { display: none; }

/* ---------- Section heading row: title left, link right ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; color: var(--slq-navy); text-decoration: none; white-space: nowrap; }
.text-link svg { width: 14px; height: 14px; transition: transform var(--slq-base) var(--slq-ease-out); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Cover ---------- */
.cover { padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 10vw, 136px); }
.cover h1 { max-width: 17ch; margin-bottom: 24px; }
.cover__lead { max-width: 56ch; font-size: 1.1875rem; color: var(--slq-muted); margin-bottom: 32px; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Client logos ---------- */
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-row li {
  width: 150px; height: 96px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--slq-line); border-radius: var(--slq-radius-m);
}
.logo-row img { max-width: 104px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
#clients h2 { text-align: center; margin-bottom: 32px; }

/* ---------- How we work: three numbered steps ---------- */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid rgba(1, 23, 51, 0.18); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 12px;
  font-family: var(--slq-font-display); font-size: 3rem; line-height: 1; color: var(--slq-harbour);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slq-muted); margin: 0; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.quotes .slq-quote p { font-size: 1.1875rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--slq-radius-m); box-shadow: var(--slq-shadow-lift); }
.about__belief { font-family: var(--slq-font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; margin: 0 0 24px; }
.about__belief .slq-accent { color: var(--slq-harbour); }
.about p { color: var(--slq-muted); }
.about .about__belief { color: var(--slq-navy); }

/* ---------- Inner pages ---------- */
.narrow { max-width: 820px; }
.center { text-align: center; }
.page-head { padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.page-head h1 { margin: 0 auto; }
.page-head__actions { justify-content: center; margin-top: 28px; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }

.check-list, .x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--slq-harbour); }
.x-list li { position: relative; padding-left: 30px; color: var(--slq-muted); }
.x-list li::before { content: "\00d7"; position: absolute; left: 4px; top: -2px; font-size: 1.375rem; color: var(--slq-harbour); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--slq-mist); display: grid; gap: 20px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--slq-linen); border: 2px solid var(--slq-harbour); }
.timeline strong { font-weight: 700; color: var(--slq-navy); }
.timeline span { color: var(--slq-muted); }

/* Services: the every-two-weeks rhythm under the onboarding timeline */
.rhythm-title { margin: 48px 0 16px; font-size: 1.375rem; }
.rhythm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rhythm li { display: grid; gap: 4px; padding: 16px 18px; background: var(--slq-mist); border-radius: var(--slq-radius-m); }
.rhythm strong { font-family: var(--slq-font-display); font-weight: 400; font-size: 1.1875rem; color: var(--slq-navy); }
.rhythm span { font-size: 0.9375rem; color: var(--slq-muted); }
.rhythm-note { margin-top: 16px; color: var(--slq-muted); }
@media (max-width: 699.98px) { .rhythm { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: var(--slq-radius-m); border: 1px solid var(--slq-line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--slq-line); vertical-align: top; }
.data-table thead th { font: 700 0.75rem/1.2 var(--slq-font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slq-harbour); background: var(--slq-linen); }
.data-table tbody th { font-weight: 500; color: var(--slq-navy); }
.data-table td { color: var(--slq-muted); }
.data-table tr:last-child > * { border-bottom: 0; }
.data-table td:nth-child(2) { white-space: nowrap; color: var(--slq-navy); font-weight: 500; }

.slq-plan__desc strong { color: inherit; font-weight: 700; }
.slq-plan--popular .slq-plan__desc strong { color: var(--slq-linen); }

.process { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; counter-reset: step; }
.process li { counter-increment: step; padding-top: 16px; border-top: 1px solid rgba(1, 23, 51, 0.18); }
.process li::before { content: counter(step); display: block; margin-bottom: 8px; font-family: var(--slq-font-display); font-size: 2.25rem; line-height: 1; color: var(--slq-harbour); }
.process h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.process p { color: var(--slq-muted); margin: 0; font-size: 0.9375rem; }

.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: var(--slq-radius-pill); background: #fff; border: 1px solid var(--slq-line); font-size: 0.9375rem; font-weight: 500; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--slq-line); border-radius: var(--slq-radius-l); padding: 36px; box-shadow: var(--slq-shadow-soft); }
.form-card > p { color: var(--slq-muted); }
.form { display: grid; gap: 6px; margin-top: 8px; }
.form label { font-weight: 500; font-size: 0.9375rem; margin-top: 10px; }
.form input, .form textarea {
  font: inherit; color: var(--slq-navy); background: var(--slq-linen);
  border: 1px solid rgba(1, 23, 51, 0.22); border-radius: var(--slq-radius-s); padding: 12px 14px; min-height: 44px; box-sizing: border-box; width: 100%;
  transition: border-color var(--slq-base) var(--slq-ease-out), box-shadow var(--slq-base) var(--slq-ease-out);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--slq-harbour); box-shadow: 0 0 0 3px rgba(126, 160, 203, 0.45); }
.form button { justify-self: start; margin-top: 18px; }
.details-title { margin-top: 36px; font-size: 1.25rem; }
.details-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--slq-muted); }

/* Case study pages */
.case-head p { color: var(--slq-muted); }
.back-link { margin-bottom: 16px; }
.case-head__logo { height: 80px; width: auto; max-width: 180px; object-fit: contain; margin: 0 auto 20px; border-radius: var(--slq-radius-m); }
.case-head__lead { font-family: var(--slq-font-display); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--slq-navy) !important; margin: 0 auto 24px; max-width: 30ch; }
.case-head__details { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; padding: 0; }
.case-head__details div { padding: 8px 14px; border-radius: var(--slq-radius-pill); background: #fff; border: 1px solid var(--slq-line); font-size: 0.875rem; }
.case-head__details dt { display: inline; font-weight: 700; color: var(--slq-harbour); }
.case-head__details dt::after { content: ": "; }
.case-head__details dd { display: inline; margin: 0; }
.case-head__note { font-style: italic; font-size: 0.9375rem; }
.results-summary { margin-top: 40px; font-size: 1.125rem; max-width: 60ch; }
.proof-title { margin-top: 48px; font-size: 1.25rem; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.slq-stat__number--range { font-size: clamp(1.75rem, 2.6vw, 2.375rem); white-space: nowrap; padding-top: 0.35em; }
.proof img { width: 100%; height: auto; border-radius: var(--slq-radius-m); border: 1px solid var(--slq-line); background: #fff; }
.feed-shot { margin: 48px auto 0; max-width: 760px; text-align: center; }
.feed-shot img { width: 100%; height: auto; border-radius: var(--slq-radius-m); }
.feed-shot figcaption { margin-top: 12px; font-size: var(--slq-text-small); color: var(--slq-muted); }
.slq-quote--large { padding: clamp(28px, 5vw, 56px); }
.slq-quote--large p { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }

/* ---------- Tighter laptop: up to 1024px ---------- */
@media (max-width: 1024px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header .logo { margin-right: auto; }
  .menu-toggle { display: inline-flex; }
  #site-nav { display: none; order: 3; flex-basis: 100%; padding-bottom: 8px; }
  .site-header.nav-open #site-nav { display: block; }

  .steps { gap: 24px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quotes .slq-quote:last-child { grid-column: 1 / -1; }
  .about { gap: 40px; }
  .two-col { gap: 40px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col--forms { grid-template-columns: 1fr; }
}

/* ---------- Phone: under 700px ---------- */
@media (max-width: 699.98px) {
  body { padding-bottom: 88px; } /* room for the fixed booking button */
  .header-cta { display: none; }
  .site-header .logo img { width: 52px; height: 52px; }

  .slq-glow-btn.mobile-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; }
  /* Only one moving glow button on screen: the fixed one. In-page ones hold still on phones. */
  main .slq-glow-btn::before { animation: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .cover__lead { font-size: 1.0625rem; }
  .logo-row li { width: calc(50% - 8px); height: 84px; }
  .steps { grid-template-columns: 1fr; margin-bottom: 32px; }
  .quotes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { aspect-ratio: 1 / 1; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .process { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .form button { justify-self: stretch; }
  .data-table th, .data-table td { padding: 12px 14px; }
}

/* Services: rhythm cards stack in one column beside the timeline; not-included list in two columns */
.rhythm { grid-template-columns: 1fr; }
.x-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 699.98px) { .x-list--cols { grid-template-columns: 1fr; } }

/* ---------- Phone readability for site parts (kit parts are in kit/readable.css) ---------- */
@media (max-width: 699.98px) {
  .cover__lead, .about p, .case-head p, .narrow p { font-size: 1.0625rem; }
  .steps p, .process p, .timeline span, .rhythm span, .details-list, .x-list li,
  .check-list span, .results-summary, .rhythm-note { font-size: 1rem; }
  .data-table { font-size: 0.9375rem; }
  .data-table thead th { font-size: 0.8125rem; }
  .case-head__details div, .chips li, .feed-shot figcaption, .case-head__note { font-size: 0.9375rem; }
  .form label { font-size: 1rem; }
  .form input, .form textarea { font-size: 1rem; } /* 16px+ stops iPhone zooming into fields */
}
