/* ==========================================================================
   CatamaranCabo.com — Contact page styles
   Layered over css/homepage.css (linked first, unchanged).
   Page-specific: hero, contact cards, inquiry form layout, steps, split
   rows, chips, CTA band, and the espresso footer override (this page only,
   scoped to body.contact-page).
   ========================================================================== */

/* ---------- Active navigation state (Contact current page) ---------- */

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* ---------- Page hero (image first, then intro) ---------- */

.page-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero-media {
  position: relative;
  max-width: 100%;
}
.page-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
}
.page-hero-frame {
  position: absolute;
  top: -1rem;
  right: -1rem;
  bottom: 1rem;
  left: 1rem;
  border: 2px solid var(--coral);
  border-radius: var(--radius);
  z-index: 0;
}

.page-hero-content {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.page-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46rem;
}

.contact-hero-actions {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Contact cards (three ways to reach the team) ---------- */

.contact-cards {
  max-width: var(--wrap);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.contact-card p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}
.contact-card-link {
  font-weight: 600;
  color: var(--ink);
}
.contact-card-link:hover { color: var(--coral-deep); }

/* ---------- Inquiry form section (form plus reassurance column) ---------- */

.contact-form-section { padding-top: 0; }

.contact-inquiry {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.contact-form-copy .section-sub { margin-bottom: 1.75rem; }

.form-note {
  border-left: 3px solid var(--coral);
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.form-note h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.form-note p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.form-note p:last-child { margin-bottom: 0; }
.form-note a { color: var(--ink); font-weight: 600; }
.form-note a:hover { color: var(--coral-deep); }

.form-help {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.15rem 0 0.45rem;
  line-height: 1.5;
}

.form-captcha { margin-bottom: 1.1rem; }

/* ---------- Split rows (image and copy, alternating) ---------- */

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.contact-row-flip .contact-copy { order: 2; }
.contact-row-flip .contact-figure { order: 1; }

.contact-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 1.1rem;
}
.contact-copy p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 1.15rem;
}
.contact-copy p:last-child { margin-bottom: 0; }
.contact-copy p a { color: var(--ink); text-decoration: underline; }
.contact-copy p a:hover { color: var(--coral-deep); }

.contact-figure { margin: 0; }
.contact-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Tidy list (what to include) ---------- */

.contact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.contact-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: var(--ink-soft);
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 0; }
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- Numbered steps (what happens after you inquire) ---------- */

.contact-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: contact-step;
}
.contact-step {
  counter-increment: contact-step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.contact-step::before {
  content: counter(contact-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--coral-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.contact-step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}
.contact-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Wide row with chips (what we can help arrange) ---------- */

.contact-wide {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: center;
}

.contact-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.contact-chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-figure-wide img { aspect-ratio: 3 / 3.4; }

/* ---------- CTA band ---------- */

.contact-cta {
  max-width: var(--wrap);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-cta { margin-left: var(--pad); margin-right: var(--pad); }
@media (min-width: 1300px) {
  .contact-cta { margin-left: auto; margin-right: auto; }
}

.contact-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.contact-cta p { color: var(--ink-soft); max-width: 40rem; margin: 0 auto 1.75rem; }

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .contact-steps { grid-template-columns: repeat(3, 1fr); }
  .contact-inquiry { grid-template-columns: 1fr; }
  .contact-wide { grid-template-columns: 1fr; }
  .contact-figure-wide { order: -1; }
  .contact-figure-wide img { aspect-ratio: 4 / 3; }
}

@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-row-flip .contact-copy { order: 1; }
  .contact-row-flip .contact-figure { order: 2; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .contact-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-hero-actions .btn,
  .contact-cta-actions .btn { width: 100%; }
}
