/* ==========================================================================
   JoFit — social icons + gallery page
   Loads AFTER css/styles.css (and, on book.php, after css/booking.css too).
   All classes are prefixed .soc- or .gal- so nothing existing is touched.
   ========================================================================== */

/* ---------- social icons (header + footer) ---------- */
.soc-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.soc-icons a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  color: var(--paper-dim);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.soc-icons a:hover {
  color: var(--ink);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.soc-icons svg { width: 16px; height: 16px; }

/* header placement: sits between the nav links and the CTA button */
.nav-row .soc-icons { margin-right: 6px; }
@media (max-width: 900px) {
  .nav-row .soc-icons { display: none; } /* logo + CTA already crowd this width */
}

/* footer placement: third column in the footer row */
.foot-row { row-gap: 18px; }
.foot-row .soc-icons a {
  width: 32px;
  height: 32px;
  border-color: var(--hair);
  color: var(--mute);
}
.foot-row .soc-icons a:hover { color: var(--ink); }

/* ---------- gallery intro ---------- */
.gal-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 48px);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(59,130,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--ink) 55%);
  border-bottom: 1px solid var(--hair);
}
.gal-hero .lede { max-width: 56ch; margin: 0; }

/* ---------- tabs (pure CSS, same interaction language as the booking form) ---------- */
.gal-tabs { position: relative; }
.gal-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  margin: 0;
}
.gal-tabbar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 36px;
}
.gal-tabbar label {
  position: relative;
  padding: 4px 2px 16px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.15s ease;
}
.gal-tabbar label::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.gal-tabbar label:hover { color: var(--paper); }
#gal-tab-photos:checked ~ .gal-tabbar label[for="gal-tab-photos"],
#gal-tab-videos:checked ~ .gal-tabbar label[for="gal-tab-videos"] {
  color: var(--paper);
}
#gal-tab-photos:checked ~ .gal-tabbar label[for="gal-tab-photos"]::after,
#gal-tab-videos:checked ~ .gal-tabbar label[for="gal-tab-videos"]::after {
  background: var(--blue);
}
#gal-tab-photos:focus-visible ~ .gal-tabbar label[for="gal-tab-photos"],
#gal-tab-videos:focus-visible ~ .gal-tabbar label[for="gal-tab-videos"] {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.gal-panel { display: none; }
#gal-tab-photos:checked ~ .gal-panels #gal-panel-photos,
#gal-tab-videos:checked ~ .gal-panels #gal-panel-videos {
  display: block;
}

/* ---------- photo grid ---------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal-grid { grid-template-columns: 1fr; } }

.gal-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.gal-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gal-item:hover img { transform: scale(1.045); }
.gal-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(6,14,28,0.88));
}

/* a tile in the grid that isn't filled yet — invites more content without looking broken */
.gal-item.gal-empty {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--hair);
  background: transparent;
  color: var(--mute);
  text-align: center;
  padding: 20px;
}
.gal-item.gal-empty svg { width: 26px; height: 26px; color: var(--mute); }
.gal-item.gal-empty span { font-size: 12.5px; line-height: 1.5; max-width: 20ch; }

/* ---------- video grid ---------- */
.gal-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .gal-video-grid { grid-template-columns: 1fr; } }

.gal-video {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.gal-video video,
.gal-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  background: var(--ink);
}
.gal-video figcaption {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  color: var(--paper-dim);
}
.gal-video figcaption strong { display: block; color: var(--paper); font-size: 14.5px; margin-bottom: 3px; }

/* empty state for the whole videos panel, shown until real clips are added */
.gal-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(36px, 6vw, 56px) 20px;
  border: 1px dashed var(--hair);
  border-radius: 18px;
  color: var(--paper-dim);
}
.gal-empty-state svg { width: 34px; height: 34px; color: var(--blue-soft); margin-bottom: 14px; }
.gal-empty-state h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 22px;
  color: var(--paper);
  margin: 0 0 8px;
}
.gal-empty-state p { margin: 0 auto; max-width: 40ch; font-size: 14px; line-height: 1.6; }
.gal-empty-state .soc-icons { justify-content: center; margin-top: 18px; }

/* ==========================================================================
   Contact page — left column
   Only .ct-grid gets align-items:stretch, so book.php's sticky form
   (which needs align-items:start from styles.css) is untouched.
   ========================================================================== */
.ct-grid { align-items: stretch; }
.ct-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ct-col .lede { margin-bottom: 26px; }

.ct-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.ct-creds li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
  background: rgba(59,130,255,0.10);
  border: 1px solid rgba(59,130,255,0.32);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
}
.ct-creds svg { width: 14px; height: 14px; flex: none; color: var(--blue-soft); }

.ct-info {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 6px clamp(18px, 2.4vw, 24px);
  margin-bottom: 22px;
}
.ct-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.ct-info-row:last-child { border-bottom: none; }
.ct-info-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(59,130,255,0.12);
  color: var(--blue-soft);
}
.ct-info-ico svg { width: 19px; height: 19px; }
.ct-info-text { min-width: 0; }
.ct-info-text span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 3px;
}
.ct-info-text a,
.ct-info-text p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.4;
}
.ct-info-text a:hover { color: var(--blue-soft); }

.ct-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.ct-assure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--paper-dim);
}
.ct-assure svg { width: 15px; height: 15px; color: var(--blue-soft); flex: none; }

.ct-social {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ct-social p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-dim);
}
.ct-social .soc-icons a {
  width: 36px;
  height: 36px;
  border-color: var(--hair);
  color: var(--paper-dim);
}

.ct-note {
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.6;
  margin: 14px 0 0;
}

@media (max-width: 980px) {
  .ct-col { height: auto; }
  .ct-social { margin-top: 8px; }
}

/* ==========================================================================
   Contact page — the form itself
   .ct-form layers on top of the base .book-form panel from styles.css;
   nothing here is loaded on book.php, so the booking form is untouched.
   ========================================================================== */
.ct-form {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(130% 70% at 15% 0%, rgba(59,130,255,0.14), transparent 65%),
    var(--panel);
}
.ct-form::before {
  content: "";
  display: block;
  height: 4px;
}
.ct-form-head {
  padding: clamp(24px, 3.4vw, 32px) clamp(22px, 3.4vw, 34px) 18px;
  border-bottom: 1px solid var(--hair);
}
.ct-form-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
  margin: 0 0 8px;
}
.ct-form-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--paper-dim);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ct-form-head p svg { width: 14px; height: 14px; color: var(--blue-soft); flex: none; }

.ct-form-body {
  padding: clamp(22px, 3.4vw, 32px) clamp(22px, 3.4vw, 34px) clamp(26px, 3.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ct-form .field-row { gap: 14px; }
.ct-form .field { gap: 7px; }
.ct-form .field label {
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--mute);
}

/* icon-in-field */
.ct-input-wrap { position: relative; }
.ct-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--mute);
  pointer-events: none;
  transition: color 0.15s ease;
}
.ct-input-wrap.ct-area svg { top: 17px; transform: none; }
.ct-input-wrap input,
.ct-input-wrap textarea { padding-left: 40px !important; }
.ct-input-wrap:focus-within svg { color: var(--blue-soft); }

.ct-form .field input,
.ct-form .field textarea {
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  color-scheme: dark;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ct-form .field textarea { min-height: 116px; line-height: 1.5; }
.ct-form .field input:focus,
.ct-form .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,255,0.18);
}

/* quick topic chips — click one to drop its text into Subject */
.ct-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.ct-topic {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper-dim);
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ct-topic:hover { border-color: rgba(91,155,255,0.55); color: var(--paper); }
.ct-topic.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}

.ct-submit-wrap { display: grid; gap: 10px; margin-top: 4px; }
.ct-form .form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
}
.ct-form .form-submit svg { width: 16px; height: 16px; }
.ct-submit-note {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--mute);
}