/* ============================================================
   index.css — page-specific layout for index.html
   Depends on tokens + utilities from global.css and components.css
   No CSS vars redeclared here.
   ============================================================ */

/* ============================================================
   HERO
   Rule 6: min-height uses 100dvh, never 100vh.
   ============================================================ */
#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .96;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 10px;
}
.hero-support {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 6px;
}
/* Hero CTAs: stacked rows, each row's buttons are flex-equal so widths
   are symmetric regardless of label length. */
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 16px;
  max-width: 520px;
}
.hero-btn-row {
  display: flex;
  gap: 12px;
}
.hero-btn-row .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
/* Primary-CTA size modifier — dominant weight, equal to its row partner. */
.btn-lg {
  padding: 18px 34px;
  font-size: 15px;
  border-radius: 10px;
  letter-spacing: .015em;
}
.hero-note {
  font-size: 12px;
  color: var(--text3);
}

/* Hero cards */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color .25s, transform .25s, background .25s;
  cursor: default;
}
.h-card:hover {
  border-color: var(--border-md);
  background: var(--bg3);
  transform: translateX(-4px);
}
.h-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 3px;
}
.h-card-sub {
  font-size: 11px;
  color: var(--text3);
}

/* ============================================================
   TRUST (What We Do)
   ============================================================ */
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.trust-copy {
  display: flex;
  flex-direction: column;
}
/* Promise spans the full inner width and ends flush with the stats grid. */
.trust-promise {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--border-md);
  border-radius: 10px;
  background: var(--bg2);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  font-style: italic;
  width: 100%;
  max-width: none;
}
.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  align-self: stretch;
}
.t-stat {
  background: var(--bg2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-stat-n {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.t-stat-l {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: .05em;
}

/* ============================================================
   COMPOUND (Why It Matters)
   ============================================================ */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.c-card {
  background: var(--bg2);
  padding: 28px 22px;
  transition: background .2s;
  cursor: default;
}
.c-card:hover { background: var(--bg3); }
.c-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.c-body {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
}

/* ============================================================
   SERVICES (What We Create)
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.svc-card {
  background: var(--bg2);
  padding: 26px 22px;
  transition: background .25s;
  cursor: default;
}
.svc-card:hover { background: var(--bg3); }
.svc-num {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 12px;
  transition: color .2s;
}
.svc-card:hover .svc-num { color: var(--text2); }
.svc-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 7px;
}
.svc-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
}

/* ============================================================
   QUALITY (Top Tier)
   ============================================================ */
.q-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.q-card {
  background: var(--bg2);
  padding: 32px 26px;
  transition: background .2s;
  cursor: default;
}
.q-card:hover { background: var(--bg3); }
.q-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.q-body {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
}

/* ============================================================
   HOW IT FEELS
   ============================================================ */
.hif-blocks {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.hif-block {
  background: var(--bg2);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  transition: background .2s;
  cursor: default;
}
.hif-block:hover { background: var(--bg3); }
.hif-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.hif-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ============================================================
   PROCESS (How We Work)
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.p-step {
  background: var(--bg2);
  padding: 32px 26px;
  transition: background .2s;
  cursor: default;
}
.p-step:hover { background: var(--bg3); }
.p-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text3);
  margin-bottom: 16px;
}
.p-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 10px;
}
.p-body {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
}

/* ============================================================
   SERIOUS
   ============================================================ */
.serious-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.serious-col {
  background: var(--bg2);
  padding: 36px;
}
.serious-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.serious-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.serious-item {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.serious-item::before {
  content: '—';
  color: var(--text3);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}

/* ============================================================
   INSTAGRAM — centered layout, card scaled 25% larger
   ============================================================ */
#instagram .inner { text-align: center; }
#instagram .s-body { margin-left: auto; margin-right: auto; }

.ig-card {
  margin: 36px auto 0;
  border: 1px solid var(--border-md);
  border-radius: 18px;
  overflow: hidden;
  max-width: 650px;          /* 520 × 1.25 */
  text-align: left;          /* keep internals left-aligned */
}
.ig-head {
  padding: 22px 28px;        /* +25% */
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}
.ig-av {
  width: 44px;               /* +25% */
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  flex-shrink: 0;
}
.ig-handle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.ig-sub {
  font-size: 13px;
  color: var(--text3);
  margin-top: 3px;
}
.ig-body {
  padding: 28px;
  background: var(--bg2);
}
.ig-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ig-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.ig-btn:hover { opacity: .87; }

/* ============================================================
   CONTACT — centered layout
   ============================================================ */
#contact .inner { text-align: center; }
#contact .s-body { margin-left: auto; margin-right: auto; }

.contact-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 32px;
}
/* All four contact buttons share the Call button's size — kept compact
   so the row sits visually subordinate to the larger table below. */
#contact .contact-btns .btn {
  min-width: 175px;
  padding: 11px 16px;
  font-size: 12px;
  text-align: center;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  max-width: 728px;          /* 520 × 1.4 */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.c-row {
  padding: 21px 26px;        /* +40% */
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 18px;
  transition: background .2s;
}
.c-row:last-child { border-bottom: none; }
.c-row:hover { background: var(--bg3); }
.c-lbl {
  color: var(--text3);
  width: 106px;              /* 76 × 1.4 */
  flex-shrink: 0;
  font-size: 15px;
  letter-spacing: .05em;
}
.c-row a {
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}
.c-row a:hover { color: var(--text); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px;
  }
  .hero-cards { display: none; }
  .trust-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .q-grid { grid-template-columns: 1fr 1fr; }
  .hif-block { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .serious-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid4,
  .svc-grid,
  .q-grid,
  .process-steps { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }

  /* Hero CTAs — root cause of the off-screen scroll.
     Stack each row vertically; each button takes its full row width
     and is allowed to wrap text so labels never push past the viewport. */
  .hero-btns      { max-width: none; }
  .hero-btn-row   { flex-direction: column; }
  .hero-btn-row .btn {
    width: 100%;
    white-space: normal;
  }
  .btn-lg {
    padding: 16px 22px;
    font-size: 14px;
  }

  /* Contact buttons — 2x2 centered grid (overrides desktop flex). */
  .contact-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 28px 0 32px;
  }
  #contact .contact-btns .btn {
    min-width: 0;
    width: 100%;
  }

  /* Contact rows — stack label/value vertically and allow the long
     email to break so it can never blow out the row's width. */
  .contact-rows { max-width: 100%; }
  .c-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    font-size: 14px;
  }
  .c-lbl { width: auto; font-size: 10px; }
  .c-row a {
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
  }
}
