/*!
 * ZZZ Fitness Club — Contact Page Stylesheet
 *
 * Depends on assets/css/main.css (loaded first).
 * about.css provides base .page-hero styles.
 *
 * Sections:
 *   1.  Page Hero — contact bg image override
 *   2.  Contact Highlights — bento grid
 *   3.  #contact — diagonal split + form
 *   4.  Visit Info
 *   5.  Responsive overrides
 *
 * No new JS file needed — handleTrialSubmit(), reveal IO
 * and header-hide are all in main.js.
 *
 * @package ZZZ_Fitness_Theme
 * @version 1.0.0
 */

/* ============================================================================
   1. PAGE HERO — contact-specific background image
   ============================================================================ */

.page-hero--contact::before {
  background-image:
    linear-gradient(110deg,
      rgba(26,26,26,0.95) 0%,
      rgba(26,26,26,0.78) 38%,
      rgba(26,26,26,0.55) 75%,
      rgba(26,26,26,0.45) 100%),
    url('https://zzzfitnessclub.com/wp-content/uploads/2025/04/IMG-20231117-WA0015.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ghost button in hero */
.btn-ghost {
  background: rgba(0,0,0,0.4);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: .35s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(211,47,47,0.12);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.4);
}

/* Hero CTA row */
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.page-hero-ctas .btn { white-space: nowrap; }

@media (max-width: 600px) {
  .page-hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 380px; }
  .page-hero-ctas .btn { width: 100%; justify-content: center; padding: 18px 24px; font-size: 14px; min-height: 52px; }
}
@media (max-width: 380px) {
  .page-hero-ctas .btn { padding: 16px 18px; font-size: 13px; letter-spacing: 0.04em; }
}


/* ============================================================================
   2. CONTACT HIGHLIGHTS — bento address + phone/email/hours stack
   ============================================================================ */

.contact-highlights {
  padding: 90px 0 40px;
  background: var(--bg);
}

/* 2-col layout: wide address card left, stack of 3 small cards right */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .bento-grid { grid-template-columns: 1.7fr 1fr; gap: 18px; }
}

/* ── Hero address card (left) ── */
.bento-main {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento-main:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
/* Top-edge accent line on hover */
.bento-main::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s var(--ease);
}
.bento-main:hover::after { width: 100%; }

.bento-main-head { display: flex; gap: 18px; align-items: flex-start; }

.bento-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(211,47,47,0.12);
  border-radius: 14px;
  transition: background .35s var(--ease);
}
.bento-main:hover .bento-icon { background: var(--accent); }
.bento-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s var(--ease);
}
.bento-main:hover .bento-icon svg { stroke: var(--text); }

.bento-main h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-body); margin-bottom: 10px;
}
.bento-address {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45; color: var(--text); margin: 0;
}

/* Mini Google Maps embed inside address card */
.bento-map {
  position: relative; height: 140px;
  border-radius: 12px;
  background: #141414; border: 1px solid #2A2A2A;
  overflow: hidden;
}
.bento-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.88) contrast(0.85);
  pointer-events: none;
  transition: filter .35s var(--ease);
}
.bento-main:hover .bento-map iframe {
  filter: grayscale(0.6) invert(0.88) contrast(0.95);
}

.bento-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.bento-foot .label { color: var(--text-muted); }
.bento-foot .cta   { color: var(--accent); transition: color .3s var(--ease); }
.bento-main:hover .bento-foot .cta { color: var(--accent-hover); }

/* ── Right column: stack of 3 small cards ── */
.bento-stack { display: flex; flex-direction: column; gap: 16px; }

.bento-small {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: center;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Bottom-edge accent line on hover */
.bento-small::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s var(--ease);
}
.bento-small:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.bento-small:hover::after { width: 100%; }

.bento-small-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(211,47,47,0.12);
  border-radius: 12px;
  transition: background .35s var(--ease);
}
.bento-small:hover .bento-small-icon { background: var(--accent); }
.bento-small-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s var(--ease);
}
.bento-small:hover .bento-small-icon svg { stroke: var(--text); }

.bento-small-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.bento-small-text .label {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-body);
}
.bento-small-text .value {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--text); line-height: 1.35;
}
.bento-small-text .meta {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-top: 4px;
}
.bento-small-text .meta strong { color: var(--accent); font-weight: 700; }


/* ============================================================================
   3. #contact — DIAGONAL SPLIT (image left · form right)
   ============================================================================ */

#contact {
  position: relative; overflow: hidden;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 0; padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 960px) { #contact { grid-template-columns: 1fr 1fr; } }

/* ── Left panel — photo bg with address + stats ── */
.contact-left {
  position: relative; overflow: hidden;
  min-height: 480px;
  background:
    linear-gradient(135deg, rgba(211,47,47,0.18) 0%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%),
    url('https://zzzfitnessclub.com/wp-content/uploads/2025/04/IMG_20221011_062133-scaled.jpg') center/cover no-repeat;
}
.contact-left::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.92));
  z-index: 1;
}
.contact-left-inner {
  position: relative; z-index: 2;
  padding: 100px 48px 80px;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 50px;
}
.contact-left .section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 18px;
}
.contact-left .section-label::before {
  content: ''; width: 28px; height: 2px; background: var(--accent);
}
.contact-left h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.96; letter-spacing: -0.04em; margin-bottom: 0;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.contact-left h2 .accent { display: block; color: var(--accent); font-weight: inherit; }
.contact-left .lead {
  color: rgba(255,255,255,0.88);
  font-size: 17px; line-height: 1.6;
  max-width: 460px; margin-top: 22px;
}

/* Info rows: address / phone / WhatsApp / email */
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.ci-row {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.92);
  font-family: 'Inter', sans-serif; font-size: 14px;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.ci-row:hover { color: var(--accent-hover); }
.ci-row svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ci-row b { color: var(--text); font-weight: 700; margin-right: 4px; }

/* 3-stat strip at the bottom of the left panel */
.contact-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
.contact-stat .n {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
}
.contact-stat .l {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ── Right panel — booking form ── */
.contact-right {
  padding: 80px 48px;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-right h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}
.contact-right .sub {
  color: var(--muted); font-size: 15px;
  margin-bottom: 36px; line-height: 1.55;
}

/* Form fields */
.contact-right .field { margin-bottom: 22px; position: relative; }
.contact-right .field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 0;
}
.contact-right .field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 12px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75); margin-bottom: 8px;
}
.contact-right .field input,
.contact-right .field select,
.contact-right .field textarea {
  width: 100%; padding: 14px 16px;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.contact-right .field textarea { min-height: 110px; resize: vertical; }
.contact-right .field input::placeholder,
.contact-right .field textarea::placeholder { color: rgba(255,255,255,0.4); font-weight: 400; }
.contact-right .field input:focus,
.contact-right .field select:focus,
.contact-right .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.15);
}
.contact-right .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}
/* Select dropdown arrow */
.contact-right .field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px; cursor: pointer;
}
.contact-right .field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23D32F2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.contact-right .field select option { background: var(--bg); color: var(--text); }

/* Submit button */
.contact-right .btn-trial {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 28px;
  background: var(--accent); color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.14em;
  border-radius: 10px; border: 1px solid var(--accent);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 8px 24px rgba(211,47,47,0.25);
  margin-top: 14px;
  position: relative; overflow: hidden;
}
.contact-right .btn-trial:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(211,47,47,0.45);
}
.contact-right .btn-trial:active { transform: translateY(0); }
.contact-right .btn-trial .arr { transition: transform .3s ease; display: inline-block; }
.contact-right .btn-trial:hover .arr { transform: translateX(5px); }
/* Success state — toggled by handleTrialSubmit() in main.js */
.contact-right .btn-trial.is-success {
  background: #22C55E; border-color: #22C55E;
  box-shadow: 0 14px 36px rgba(34,197,94,0.4);
  pointer-events: none;
}
.contact-right .form-note {
  margin-top: 16px;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
}
.contact-right .form-note a { color: var(--accent); font-weight: 600; }


/* ============================================================================
   4. VISIT INFO — copy left, photo stack right
   ============================================================================ */

.visit-info {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; gap: 40px; } }

.visit-copy p {
  color: var(--text-body); font-size: 16px;
  line-height: 1.7; margin-bottom: 18px;
}
.visit-copy strong { color: var(--text); }

/* Bordered landmark list */
.landmark-list {
  list-style: none;
  margin: 26px 0;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.landmark-list li {
  padding: 10px 0;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text-body);
}
.landmark-list li strong {
  color: var(--text); font-weight: 700;
  display: inline-block; min-width: 150px;
}

/* Area tag cloud */
.visit-tags-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin: 28px 0 12px;
}
.areas-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.areas-tags a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 12px;
  color: var(--text-body); letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.areas-tags a:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

/* Right column — slim photo stack */
.visit-photos {
  display: flex; flex-direction: column;
  gap: 14px;
  position: sticky; top: 100px;
}
@media (max-width: 900px) { .visit-photos { position: static; } }

.visit-photo {
  position: relative; height: 130px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.visit-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.visit-photo:hover img { transform: scale(1.06); }
.visit-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.visit-photo .vp-label {
  position: absolute; bottom: 10px; left: 14px; z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Mini highlight card below photos */
.visit-mini-info {
  padding: 16px 18px;
  background: rgba(211,47,47,0.08);
  border: 1px solid rgba(211,47,47,0.3);
  border-radius: var(--radius); margin-top: 4px;
}
.visit-mini-info .vmi-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 6px;
}
.visit-mini-info .vmi-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px; line-height: 1.5;
  color: var(--text); font-weight: 600;
}


/* ============================================================================
   5. RESPONSIVE OVERRIDES
   ============================================================================ */

/* Tablet ≤1049px */
@media (max-width: 1049px) {
  .contact-highlights { padding: 70px 0 32px; }
  .contact-left-inner  { padding: 80px 36px 60px; }
  .contact-right       { padding: 60px 36px; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .contact-highlights { padding: 56px 0 24px; }

  .bento-main  { padding: 22px; gap: 18px; }
  .bento-main-head { gap: 14px; }
  .bento-icon  { width: 44px; height: 44px; }
  .bento-icon svg { width: 22px; height: 22px; }
  .bento-map   { height: 100px; }
  .bento-small { padding: 16px 18px; }

  .contact-left-inner { padding: 60px 28px 48px; gap: 36px; }
  .contact-left .lead  { font-size: 15px; }
  .contact-stats       { gap: 16px; }
  .contact-stat .n     { font-size: 26px; }
  .contact-right       { padding: 52px 24px; }
  .contact-right .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-right h3    { font-size: clamp(24px, 6vw, 32px); }
  .contact-right .sub  { font-size: 14px; margin-bottom: 28px; }

  .visit-info          { padding: 56px 0; }
  .visit-grid          { gap: 32px; }
  .visit-copy p        { font-size: 15px; }
  .landmark-list li    { font-size: 14px; }
  .landmark-list li strong { min-width: 120px; }
  .visit-photo         { height: 110px; }
}

/* Small phone ≤480px */
@media (max-width: 480px) {
  .bento-main  { padding: 18px; }
  .bento-small { padding: 14px 16px; gap: 12px; }
  .bento-small-icon { width: 38px; height: 38px; border-radius: 10px; }
  .bento-small-icon svg { width: 17px; height: 17px; }
  .bento-small-text .value  { font-size: 14px; }
  .bento-small-text .label  { font-size: 10px; }

  .contact-right       { padding: 44px 20px; }
  .contact-right h3    { font-size: 24px; }
  .contact-right .field input,
  .contact-right .field select,
  .contact-right .field textarea { font-size: 13px; padding: 12px 14px; }

  .visit-photo { height: 95px; }
  .areas-tags a { font-size: 11px; padding: 6px 11px; }
}

/* Tiny ≤360px */
@media (max-width: 360px) {
  .bento-main  { padding: 14px; }
  .contact-left-inner { padding: 48px 20px 40px; }
  .contact-right { padding: 36px 16px; }
}
