/* Contact page */

/* Soft blue rather than cream, Ashton 2026-08-07. The four tiles inside are
   --bg-lift (warm white), so they lift off the band instead of dissolving into
   it the way they did on cream. */
.c-grid {
  background: var(--bg-sky);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.c-grid .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  align-items: stretch;
}
.c-grid .grid > div { display: flex; min-width: 0; }
.c-grid .grid > div > .c-block { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.c-grid .grid > div > .c-block > .placeholder { flex: 1; display: flex; flex-direction: column; }

/* When a placeholder is the only child of a c-block, drop its own
   chrome so the tile reads as cohesive with the surrounding tiles —
   keep only the warning label at the top so it's still flagged. */
.c-grid .c-block > .placeholder {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.c-grid .c-block > .placeholder::before {
  margin-bottom: var(--s-5);
}

@media (max-width: 1100px) {
  .c-grid .grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: the four tiles become a swipeable row rather than four tall cards
   stacked into a long scroll. Same pattern .ow-grid uses on the homepage — a
   native horizontal scroller with snap points, so it stays swipeable and
   keyboard-scrollable with no JavaScript.

   `overscroll-behavior-x: contain` keeps a swipe that runs off the end of the
   row from becoming a back-navigation gesture. It is deliberately the x axis
   only: containing y here would break the page's vertical scroll chaining.

   The inset is the same --s-3 as the gap between tiles, so the band's soft blue
   reads down the left edge exactly as it does between them (Thomas 2026-08-08).
   It needs both properties: padding-inline sets the resting inset, and
   scroll-padding-inline is what a snap point respects — without it, a snapped
   tile aligns to the bare scrollport edge and the padding scrolls out of sight,
   which is how the first tile ended up flush against the edge. */
@media (max-width: 720px) {
  .c-grid .grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: var(--s-3);
    padding-inline: var(--s-3);
    scroll-padding-inline: var(--s-3);
    margin-inline: calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .c-grid .grid::-webkit-scrollbar { display: none; }
  .c-grid .grid > div {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* Reduced motion or no pointer swipe: fall back to the stack rather than
   trapping content in a row the reader may not be able to scroll. */
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .c-grid .grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .c-grid .grid > div { flex: initial; }
}

.c-block { padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--bg-lift); border: 1px solid var(--line); border-radius: var(--r-md); }
.c-block + .c-block { margin-top: var(--s-4); }

.c-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  font-weight: 320;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.c-grid h2 em { font-style: italic; color: var(--c-azul); }
.c-grid p { margin-top: var(--s-3); color: var(--fg-soft); max-width: 38ch; }

.c-grid .reserve form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.c-grid .reserve form .field-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .c-grid .reserve form { grid-template-columns: 1fr; } }

.c-info {
  display: grid;
  gap: 0;
}
.c-info .row {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-bottom: 1px dashed var(--line);
}
.c-info .row:last-child { border-bottom: 0; }
.c-info dt {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.c-info dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 380;
  line-height: 1.4;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.c-info dd b { font-weight: 500; }
.c-info dd em { font-style: italic; color: var(--c-clay); }
.c-info dd a { color: inherit; }
.c-info dd a:hover { color: var(--c-azul); }
.c-info dd .small { display: block; font-family: var(--font-body); font-size: 0.86rem; color: var(--fg-mute); margin-top: 0.25rem; font-weight: 400; }

.c-map {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.c-map iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 52vh, 600px);
  border: 0;
  filter: saturate(1.05);
}


.c-general {
  background: var(--bg-lift);
  padding-block: clamp(5rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
}
.c-general .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.c-general .heading { grid-column: 1 / 5; }
.c-general .form { grid-column: 6 / 13; }
@media (max-width: 880px) { .c-general .heading, .c-general .form { grid-column: 1 / -1; } }
.c-general h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 320;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.c-general h2 em { font-style: italic; color: var(--c-clay); }

form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
}
form.contact-form .field-full { grid-column: 1 / -1; }
form.contact-form .submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
form.contact-form .submit-note { font-size: 0.84rem; color: var(--fg-mute); flex: 1; min-width: 16ch; }
@media (max-width: 720px) { form.contact-form { grid-template-columns: 1fr; } }
