/* =====================================================================
   ÁLVARO MANRIQUE · Contacto
   contacto.css: only what's specific to the contact page.
   The header, nav, cursor, colours and fonts come from
   style.css. Same grid: 12 columns, 80px margins, 24px gutters.
   ===================================================================== */

/* One screen on a normal laptop; if the window is short, the page
   simply scrolls instead of squashing the calendar. */
.contact .stage { height: auto; min-height: 100vh; min-height: 100dvh; }

.talk {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  align-items: center;
  padding: calc(32 * var(--px)) var(--m) 0;
}

/* ---- Left: the invitation ------------------------------------------ */
.intro { grid-column: 1 / span 5; }
.kicker { opacity: .65; }
.intro h1 { margin: calc(18 * var(--px)) 0 0; font-size: calc(136 * var(--px)); }
.lede {
  margin: calc(28 * var(--px)) 0 0;
  max-width: calc(500 * var(--px));
  font-size: calc(22 * var(--px));
  line-height: 1.4;
}

/* Three stations on a red metro line */
.steps {
  list-style: none;
  margin: calc(40 * var(--px)) 0 0;
  padding: 0 0 0 calc(9 * var(--px));
  border-left: calc(4 * var(--px)) solid var(--red);
}
.steps li {
  position: relative;
  display: flex; align-items: baseline; gap: calc(16 * var(--px));
  padding: calc(10 * var(--px)) 0 calc(10 * var(--px)) calc(26 * var(--px));
  font-size: calc(18 * var(--px));
}
.steps .meta { opacity: .6; }
.steps .stn {
  position: absolute; top: 50%; left: calc(-11 * var(--px));
  width: calc(16 * var(--px)); height: calc(16 * var(--px)); margin: calc(-8 * var(--px)) 0 0 calc(-8 * var(--px));
  border-radius: 50%;
  background: #fff;
  border: calc(3 * var(--px)) solid var(--ink);
}

/* Email and phone, for anything else */
.other {
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(6 * var(--px));
  margin-top: calc(44 * var(--px));
  padding-top: calc(24 * var(--px));
  border-top: 1px solid var(--rule);
  max-width: calc(500 * var(--px));
}
.other .meta { opacity: .6; margin-bottom: calc(6 * var(--px)); }
.other a {
  position: relative;
  font: italic 400 calc(34 * var(--px))/1.15 'Instrument Serif', Georgia, serif;
  text-decoration: none;
}
.other a::after {                       /* the red underline, as in the nav */
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.other a:hover::after { transform: scaleX(1); }

/* ---- Right: Calendly, in a white card ------------------------------- */
.book {
  grid-column: 7 / span 6;
  align-self: stretch;
  display: flex;
  border-radius: calc(18 * var(--px));
  overflow: hidden;
  background: #fff;
  box-shadow: 0 calc(40 * var(--px)) calc(80 * var(--px)) calc(-30 * var(--px)) rgba(10, 14, 50, .55);
}
.book .calendly-inline-widget {
  flex: 1;
  min-width: calc(320 * var(--px));
  height: calc(100vh - calc(210 * var(--px)));   /* fills the screen under the header */
  min-height: calc(660 * var(--px));             /* enough for the calendar and the form */
}

/* =====================================================================
   PHONE LAYOUT (below 900px wide; reference: iPhone 15 Pro Max, 430px)
   The text first, then Calendly at full width, tall enough for its
   phone layout (calendar, then times, then the form).
   ===================================================================== */
@media (max-width: 899px) {
  .talk { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-top: 36px; }
  .intro, .book { grid-column: 1 / -1; }
  .intro h1 { font-size: 74px; margin-top: 14px; }
  .lede { font-size: 18px; margin-top: 20px; }
  .steps { margin-top: 30px; }
  .steps li { font-size: 16px; }
  .other { margin-top: 32px; }
  .other a { font-size: 28px; }
  .book { border-radius: 14px; margin-bottom: 40px; }
  .book .calendly-inline-widget { height: 1060px; min-height: 0; min-width: 0; }
}
