/* Contact: a bento of filled tiles. The number is a wide strip on top with Call and WhatsApp;
   email, Instagram and YouTube sit in one row below. Phones: number and email full width, the two social tiles side by side. */
.page-title { font-size: var(--fs-title); }

/* Short page: main grows so the footer always sits on the bottom edge at its own height */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-top: 0; padding-bottom: var(--s-5); }
.tile { position: relative; isolation: isolate; overflow: clip; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); padding: 1.375rem; background: var(--bg-2); color: var(--text); text-decoration: none; }
.t-ph, .t-em { grid-column: 1 / -1; }
.t-ph { justify-content: center; }
.tile .mono { color: var(--muted); }

/* The number: padding grows the tap area past the line (44px+ on phones), the negative margin keeps the layout */
.num { font: 800 clamp(2.4rem, 1.2rem + 4.6vw, 6.4rem)/.95 var(--ff); font-stretch: var(--head-stretch); font-variant-numeric: tabular-nums; color: inherit; text-decoration: none; display: inline-block; padding-block: .2em; margin-block: -.2em; transition: color .2s; }
.val { font: 700 clamp(1.1rem, .9rem + .8vw, 1.6rem)/var(--lh-snug) var(--ff); color: inherit; text-decoration: none; overflow-wrap: anywhere; position: relative; transition: color .2s; }
.val::after { content: ''; position: absolute; inset: -12px 0; } /* the address is a 44px tap target; the tile has room above and below */
.num:focus-visible, .val:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) { .num:hover, .val:hover { color: var(--cue); } }

.strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-3) var(--s-2); }
/* Email: address on top, button on the bottom edge, same spacing as the number and its buttons */
.stack { flex: 1; display: grid; align-content: space-between; gap: var(--s-3); justify-items: start; }

/* Buttons: one size; phones split the width, 600 up a fixed width. */
.acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); width: 100%; }
.stack .acts { grid-template-columns: minmax(0, 1fr); width: calc(50% - var(--s-1) / 2); }
.acts .btn { width: 100%; min-height: 44px; padding: 0 var(--s-2); font-size: var(--fs-label); }
.acts svg { width: 16px; height: 16px; flex: none; }
.btn-on { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 600px) {
  .acts { grid-template-columns: repeat(2, 10rem); width: auto; }
  .stack .acts { grid-template-columns: 10rem; width: auto; }
}

/* Social tiles: the whole tile is the link */
.soc { min-height: 8.25rem; transition: color var(--btn-fade), background-color var(--btn-fade); }
.soc-top { display: flex; justify-content: space-between; align-items: start; }
.soc svg { width: 28px; height: 28px; }
.soc .arr { font-size: 1.2rem; line-height: 1; }
.soc .n { font: 800 1.5rem/1 var(--ff); font-stretch: var(--head-stretch); text-transform: uppercase; }
.soc:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Hover and focus: the button or tile turns blue at once (no fill motion) */
@media (hover: hover) {
  .acts .btn:hover, .soc:hover { background: var(--cue); border-color: var(--cue); color: var(--on-cue); }
}
.acts .btn:focus-visible, .soc:focus-visible { background: var(--cue); border-color: var(--cue); color: var(--on-cue); }
@media (prefers-reduced-motion: reduce) { .soc { transition: none; } }

/* 1024 up: four columns. Number strip across the top; email takes two columns, Instagram and YouTube one each */
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(10.75rem, auto); gap: 1rem; }
  .tile { padding: 1.75rem; }
  .t-em { grid-column: span 2; }
  .strip { flex-wrap: nowrap; }
  .strip .acts { flex: none; }
}
