/* lydianconsultinggroup.com: page-specific styles.
   Colours, type, buttons, header, footer and cards come from shared/theme.css. */

/* Hero */
.hero {
  position: relative;
  min-height: min(720px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute;
  inset: 0;
  /* Solid behind the text column, then fading out so the animation shows on the right */
  background: linear-gradient(90deg,
    var(--hero-bg) 0%,
    color-mix(in srgb, var(--hero-bg) 96%, transparent) 38%,
    color-mix(in srgb, var(--hero-bg) 80%, transparent) 52%,
    color-mix(in srgb, var(--hero-bg) 35%, transparent) 68%,
    transparent 84%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding-top: 72px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}
.hero-content > * { max-width: 620px; }
.hero-content a { pointer-events: auto; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.015em; }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 4px; }

/* Services */
/* Four across, then two by two, then one column: never three with one left over */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1150px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-grid .card { display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s; }
.card-grid .card:hover { border-color: var(--line-strong); }
.card-icon { width: 28px; height: 28px; color: var(--accent); }

/* Questions: its own section after Leadership, with one quiet link to it under the service cards */
.qa-jump { margin-top: 32px; font-size: 15px; font-weight: 500; }
.qa-jump a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.qa-jump a:hover { color: var(--accent); }
.qa { margin: 0; border-bottom: 1px solid var(--line-strong); }
.qa > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 48px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
}
.qa dt { font-weight: 600; font-size: 17px; color: var(--text); }
.qa dd { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.65; max-width: 62ch; }
@media (max-width: 760px) {
  .qa > div { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
}

/* How we work */
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 28px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.step-n { font-size: 13px; color: var(--accent); }
.steps h3 { font-size: 21px; letter-spacing: 0; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* Leadership */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.leader { display: flex; flex-wrap: wrap; gap: 24px; }
.leader img { width: 112px; height: 112px; flex: none; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); }
.leader > div { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.leader .role { font-size: 13px; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.lead { font-size: 18px; color: var(--text-dim); }
.contact-facts { margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line-strong); display: grid; gap: 16px; }
.contact-facts dt { font-size: 13px; font-weight: 600; }
.contact-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--text-dim); }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 14px; color: var(--text-dim); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.form-note.is-error { color: var(--accent-2); }


/* Tablet widths: the text column reaches further across, so the fade does too */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-scrim {
    background: linear-gradient(90deg,
      var(--hero-bg) 0%,
      color-mix(in srgb, var(--hero-bg) 95%, transparent) 58%,
      color-mix(in srgb, var(--hero-bg) 70%, transparent) 76%,
      color-mix(in srgb, var(--hero-bg) 25%, transparent) 100%);
  }
}

@media (max-width: 760px) {
  /* Hero: sized to its content, with the animation dimmed evenly behind the text */
  .hero { min-height: 0; }
  .hero-scrim { background: linear-gradient(180deg, color-mix(in srgb, var(--hero-bg) 94%, transparent) 0%, color-mix(in srgb, var(--hero-bg) 90%, transparent) 78%, color-mix(in srgb, var(--hero-bg) 60%, transparent) 100%); }
  .hero-content { padding-top: 56px; padding-bottom: 72px; gap: 20px; }
  .hero h1 { font-size: clamp(32px, 9.2vw, 40px); }
  .hero-actions .btn-primary { flex: 1 1 auto; }

  /* Service cards: icon beside the title so each card is shorter */
  .card-grid { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .card-grid .card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 14px; align-items: center; }
  .card-grid .card p { grid-column: 1 / -1; }

  .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; padding: 20px 0; }
  .steps p { grid-column: 2; }
  .steps h3 { font-size: 18px; }

  /* Leadership: small photo beside the name, bio underneath */
  .leader { display: block; }
  .leader img { float: left; width: 72px; height: 72px; margin: 0 16px 10px 0; }
  .leader > div { display: block; }
  .leader h3 { padding-top: 10px; }
  .leader .role { margin: 4px 0 0; }
  .leader > div > p:last-child { clear: both; padding-top: 6px; }

  .contact-grid { gap: 32px; }
  .contact-form { padding: 20px; }
  .contact-form .btn { align-self: stretch; }
}

/* Light theme: the headline is one colour. The two coloured words stay in the dark theme. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero h1 span { color: inherit; }
}
:root[data-theme="light"] .hero h1 span { color: inherit; }
