/* ═══════════════════════════════════════════════
   LA CIMA — contact-page.css
   Uses: variable.css → index.css → contact-page.css
   Fonts: DM Serif Display + Outfit + Josefin Sans
   ═══════════════════════════════════════════════ */

/* ══ HERO ═══════════════════════════════════════ */
.ct-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  padding-inline: var(--gutter);
  background: linear-gradient(145deg, var(--color-dark) 0%, #3a3c62 55%, var(--color-blue-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 42vh;
  display: flex;
  align-items: center;
}

/* Background image */
.ct-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../imgs/neveria_la_cima_madison-Ice-cream.jpg') center 60% / cover no-repeat;
  transform: scale(1.05);
}
.ct-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,28,.55) 0%,
    rgba(10,10,28,.72) 50%,
    rgba(10,10,28,.85) 100%
  );
}
.ct-hero-inner { max-width: var(--max-width); margin-inline: auto; width: 100%; position: relative; z-index: 1; }
.ct-hero-tag {
  font-family: var(--font-accent);
  font-size: 10px; font-weight: 200; letter-spacing: .20em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: var(--sp-4); display: block;
}
.ct-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px); font-weight: 400;
  color: var(--color-white); line-height: 1.05; margin-bottom: var(--sp-4);
}
.ct-hero-h1 em { font-style: italic; color: var(--color-blue); }
.ct-hero-sub {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,.75);
  max-width: 480px; margin-inline: auto; line-height: 1.7;
}

/* ══ QUICK CONTACT PILLS ════════════════════════ */
.ct-pills {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-5) var(--gutter);
}
.ct-pills-inner {
  max-width: var(--max-width); margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); flex-wrap: wrap;
}
.ct-pill {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 22px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  transition: all var(--ease); text-decoration: none; border: 2px solid transparent;
}
.ct-pill--wa   { background: var(--color-wa);   color: var(--color-white); border-color: var(--color-wa); }
.ct-pill--wa:hover { background: var(--color-wa-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }
.ct-pill--call { background: var(--color-sky-blue); color: var(--color-blue-dark); border-color: var(--color-blue); }
.ct-pill--call:hover { background: var(--color-blue); color: var(--color-white); transform: translateY(-2px); }
.ct-pill--map  { background: var(--color-yellow-light); color: var(--color-dark); border-color: var(--color-border); }
.ct-pill--map:hover { background: var(--color-cream); border-color: var(--color-dark); transform: translateY(-2px); }
.ct-pill svg   { width: 18px; height: 18px; flex-shrink: 0; }

/* ══ MAIN GRID ══════════════════════════════════ */
.ct-main {
  background: var(--color-cream);
  padding-block: var(--sp-20);
  padding-inline: var(--gutter);
}
.ct-main-inner {
  max-width: var(--max-width); margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-10);
  align-items: start;
}

/* ══ LEFT COL — INFO ════════════════════════════ */
.ct-info { display: flex; flex-direction: column; gap: var(--sp-5); }

.ct-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
}
.ct-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.ct-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; color: var(--color-dark);
  margin-bottom: var(--sp-5); line-height: 1.1;
  display: flex; align-items: center; gap: var(--sp-3);
}
.ct-card-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--color-sky-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* Hours table */
.ct-hours { width: 100%; border-collapse: collapse; }
.ct-hours tr { border-bottom: 1px solid var(--color-border); }
.ct-hours tr:last-child { border-bottom: none; }
.ct-hours td {
  padding: 11px 0;
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: var(--color-dark-mid); vertical-align: middle;
}
.ct-hours td:first-child { font-weight: 500; color: var(--color-dark); width: 130px; }
.ct-hours td:last-child  { text-align: right; }
.ct-hours .today td { color: var(--color-blue-dark); font-weight: 500; }
.ct-hours .today td:last-child { color: var(--color-blue-dark); }

/* Open badge */
.ct-open-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--color-green-light); color: var(--color-green-dark);
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: var(--r-full); margin-bottom: var(--sp-4);
}
.ct-open-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-green-dark);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Contact items */
.ct-contact-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.ct-contact-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none; transition: all var(--ease);
}
.ct-contact-item:last-child { border-bottom: none; }
.ct-contact-item:hover { transform: translateX(4px); }
.ct-contact-item:hover .ct-contact-label { color: var(--color-blue-dark); }
.ct-contact-ico {
  width: 42px; height: 42px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ct-contact-ico--wa   { background: rgba(37,211,102,.12); }
.ct-contact-ico--call { background: var(--color-sky-blue); }
.ct-contact-ico--mail { background: var(--color-yellow-light); }
.ct-contact-ico--map  { background: var(--color-red-light); }
.ct-contact-text { flex: 1; min-width: 0; }
.ct-contact-label {
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  color: var(--color-dark); display: block;
}
.ct-contact-sub {
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--color-dark-mid); display: block; margin-top: 1px;
}
.ct-contact-arrow { color: var(--color-dark-mid); font-size: 18px; }

/* Social links */
.ct-social { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.ct-social-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 9px 18px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  border: 1.5px solid var(--color-border);
  background: var(--color-white); color: var(--color-dark);
  text-decoration: none; transition: all var(--ease);
}
.ct-social-btn:hover { border-color: var(--color-blue); color: var(--color-blue-dark); transform: translateY(-2px); background: var(--color-sky-blue); }

/* ══ MAP ════════════════════════════════════════ */
.ct-map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  height: 320px; box-shadow: var(--shadow-md);
  background: var(--color-sky-blue);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--sp-3);
}
.ct-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.ct-map-placeholder { font-size: 40px; }
.ct-map-placeholder-text {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--color-dark-mid); text-align: center; padding-inline: var(--sp-5);
}

/* ══ RIGHT COL — FORM ═══════════════════════════ */
.ct-form-card {
  background: var(--color-white);
  border-radius: var(--r-lg); padding: var(--sp-10);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.ct-form-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; color: var(--color-dark);
  margin-bottom: var(--sp-2); line-height: 1.1;
}
.ct-form-sub {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: var(--color-dark-mid); margin-bottom: var(--sp-8); line-height: 1.6;
}

/* Form fields */
.ct-field { margin-bottom: var(--sp-5); }
.ct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.ct-label {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--color-dark); display: block; margin-bottom: var(--sp-2);
  letter-spacing: .01em;
}
.ct-label span { color: var(--color-red); margin-left: 2px; }

.ct-input, .ct-select, .ct-textarea {
  width: 100%; padding: 12px 16px;
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: var(--color-dark); background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); outline: none;
  transition: all var(--ease); line-height: 1.5;
}
.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  border-color: var(--color-blue); background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(117,186,217,.15);
}
.ct-input::placeholder, .ct-textarea::placeholder { color: var(--color-dark-mid); font-weight: 300; }
.ct-textarea { resize: vertical; min-height: 120px; }
.ct-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C5E80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

/* Submit button */
.ct-submit {
  width: 100%; padding: 15px 24px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  background: var(--color-dark); color: var(--color-white);
  border: none; border-radius: var(--r-full); cursor: pointer;
  transition: all var(--ease); letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
}
.ct-submit:hover { background: var(--color-dark-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ct-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Form success/error messages */
.ct-alert {
  padding: 14px 18px; border-radius: var(--r-md); margin-bottom: var(--sp-5);
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  display: none; align-items: center; gap: var(--sp-3);
}
.ct-alert.show { display: flex; }
.ct-alert--success { background: var(--color-green-light); color: var(--color-green-dark); border: 1px solid rgba(138,133,40,.2); }
.ct-alert--error   { background: var(--color-red-light);   color: var(--color-red-dark);   border: 1px solid rgba(204,51,54,.2); }

/* ══ FAQ STRIP ══════════════════════════════════ */
.ct-faq {
  background: var(--color-yellow-light);
  padding-block: var(--sp-16);
  padding-inline: var(--gutter);
}
.ct-faq-inner { max-width: 760px; margin-inline: auto; }
.ct-faq-item {
  background: var(--color-white); border-radius: var(--r-md);
  margin-bottom: var(--sp-3); border: 1px solid var(--color-border); overflow: hidden;
}
.ct-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; gap: var(--sp-4);
  transition: background var(--ease);
}
.ct-faq-q:hover { background: var(--color-sky-blue); }
.ct-faq-q-text { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--color-dark); line-height: 1.4; }
.ct-faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-sky-blue); color: var(--color-blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 300; transition: all var(--ease); flex-shrink: 0;
}
.ct-faq-item.open .ct-faq-icon { background: var(--color-blue-dark); color: var(--color-white); transform: rotate(45deg); }
.ct-faq-a {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: var(--color-dark-mid); line-height: 1.7;
  padding: 0 22px 18px; display: none;
}
.ct-faq-item.open .ct-faq-a { display: block; }

/* ══ RESPONSIVE ═════════════════════════════════ */
@media (max-width: 900px) {
  .ct-main-inner { grid-template-columns: 1fr; }
  .ct-form-card  { position: static; }
  .ct-pills-inner { gap: var(--sp-3); }
}
@media (max-width: 540px) {
  .ct-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; }
  .ct-field-row { grid-template-columns: 1fr; }
  .ct-pill { font-size: 14px; padding: 10px 18px; }
  .ct-pills-inner { flex-direction: column; align-items: stretch; }
  .ct-pill { justify-content: center; }
  .ct-form-card { padding: var(--sp-6); }
  .ct-social { flex-direction: column; }
}
