﻿/* ==========================================================================
   CONTACT PAGE â€” contact.css
   Gibeon Builders Construction | Exhibit 2
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. HERO BANNER
   -------------------------------------------------------------------------- */
.contact-hero {
  min-height: 74vh;
  background: var(--color-ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

/* Skewed light panel behind right side */
.contact-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 0;
  width: 42%;
  height: 140%;
  background: rgba(255, 255, 255, 0.018);
  transform: skewX(-6deg);
  transform-origin: top right;
  pointer-events: none;
  z-index: 0;
}

.contact-hero-bg-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 16vw, 240px);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.contact-hero-texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 80% 40%,
    rgba(184, 19, 26, 0.07) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Two-column inner grid */
.contact-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 100px;
}

.contact-hero-content {
  /* left column — content */
}

.contact-hero-breadcrumb {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-hero-breadcrumb a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-hero-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.contact-hero-breadcrumb .bc-sep {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
}

.contact-hero-breadcrumb .bc-current {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.contact-hero .hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 20px;
  opacity: 0;
}

.contact-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 7.5vw, 100px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* Char-split animation elements (JS-injected, mirrors gallery style) */
.contact-hero-title .char {
  display: inline-block;
  overflow: hidden;
}

.contact-hero-title .char-inner {
  display: inline-block;
}

.contact-hero .title-underline {
  width: 48px;
  height: 2px;
  background: var(--color-red);
  margin-top: 28px;
  transform-origin: left;
  transform: scaleX(0);
}

.contact-hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  max-width: 460px;
  margin-top: 24px;
  opacity: 0;
  line-height: 1.7;
}

/* CTA buttons */
.contact-hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  opacity: 0;
}

.contact-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 100px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.contact-cta-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 19, 26, 0.4);
}

.contact-cta-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.contact-cta-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* RIGHT: Contact details panel */
.contact-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  opacity: 0;
}

/* Red accent line on left edge */
.contact-hero-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-red) 40%, var(--color-red) 60%, transparent);
}

.contact-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
}

.panel-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: badgePulse 2.4s ease infinite;
}

@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.contact-panel-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-panel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-panel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-panel-item:first-child {
  padding-top: 0;
}

.contact-panel-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-panel-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

a.contact-panel-value:hover {
  color: var(--color-white);
}


/* --------------------------------------------------------------------------
   2. MAIN CONTENT â€” TWO COLUMN
   -------------------------------------------------------------------------- */
.section-contact-main {
  background: var(--color-white);
  padding: 120px 0;
}

.contact-main-grid {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 0;
  align-items: start;
}


/* --------------------------------------------------------------------------
   2A. LEFT COLUMN â€” CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-form-col {
  padding: 0 80px;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Form row pairs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

/* Floating label group */
.form-group {
  position: relative;
  margin-bottom: 36px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 20px 0 12px;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 16, 0.15);
  background: transparent;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--color-ink);
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-red);
}

/* Animated red underline bar */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.35s ease;
}

.form-group:focus-within::after {
  width: 100%;
}

/* Floating label */
.form-group label {
  position: absolute;
  top: 20px;
  left: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(17, 17, 16, 0.4);
  pointer-events: none;
  transition: top 0.25s ease, font-size 0.25s ease,
              color 0.25s ease, font-weight 0.25s ease,
              letter-spacing 0.25s ease;
}

/* Floated state â€” focus or JS .focused class */
.form-group:focus-within label,
.form-group.focused label {
  top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

/* Select: custom dropdown arrow */
.form-group select {
  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 d='M1 1l5 5 5-5' stroke='%237a7870' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

/* Hide placeholder â€” we rely on floating labels */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group textarea {
  resize: none;
  min-height: 120px;
  padding-top: 20px;
}

/* Accessibility focus ring */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid rgba(184, 19, 26, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Submit button */
.contact-submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.contact-submit-btn:hover {
  background: #96101a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 19, 26, 0.35);
}

.contact-submit-btn:disabled {
  opacity: 0.8;
  pointer-events: none;
}

/* Success message */
#form-success {
  display: none;
  margin-top: 24px;
  padding: 24px 28px;
  background: rgba(42, 125, 79, 0.06);
  border-left: 3px solid #2a7d4f;
  border-radius: 0 4px 4px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #2a7d4f;
  line-height: 1.7;
  align-items: flex-start;
  gap: 12px;
}

#form-success.show {
  display: flex;
}

#form-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}


/* --------------------------------------------------------------------------
   2B. RIGHT COLUMN â€” CONTACT INFO PANEL
   -------------------------------------------------------------------------- */
.contact-info-panel {
  background: var(--color-ink);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.contact-info-glow {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 19, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-heading {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

/* Contact detail items */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-detail-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  transition: color 0.2s;
}

.contact-detail-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail-value a:hover {
  color: white;
}

/* Social buttons */
.contact-social-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--color-red);
  color: white;
  background: rgba(184, 19, 26, 0.1);
}

/* Map placeholder */
.contact-map-placeholder {
  height: 200px;
  border-radius: 4px;
  background: #1a1a18;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.contact-map-placeholder svg {
  color: var(--color-red);
}

.contact-map-text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* Office hours */
.office-hours {
  position: relative;
  z-index: 1;
}

.office-hours-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 12px;
}

.office-hours-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
}


/* --------------------------------------------------------------------------
   3. FAQ SECTION
   -------------------------------------------------------------------------- */
.section-faq {
  background: var(--color-stone);
  padding: 120px 0;
}

.faq-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 80px;
}

.faq-header {
  max-width: 520px;
  margin-bottom: 64px;
}

.faq-header .section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
}

.faq-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(17, 17, 16, 0.1);
  overflow: hidden;
}

.faq-col .faq-item:first-child {
  border-top: 1px solid rgba(17, 17, 16, 0.1);
}

.faq-question {
  width: 100%;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
  padding-right: 24px;
  transition: color 0.25s;
}

.faq-item.open .faq-question-text {
  color: var(--color-red);
}

.faq-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(17, 17, 16, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.faq-item.open .faq-icon-wrap {
  background: var(--color-red);
  border-color: var(--color-red);
}

.faq-icon-wrap svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

.faq-item.open .faq-icon-wrap svg {
  stroke: white;
}

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 0 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #5a5855;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(184, 19, 26, 0.4);
  outline-offset: 4px;
  border-radius: 4px;
}


/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-col {
    padding: 0 52px;
  }

  .contact-info-panel {
    padding: 64px 52px;
  }

  .faq-container {
    padding-inline: 52px;
  }
}

@media (max-width: 900px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 60px;
    padding-bottom: 72px;
  }

  .contact-hero-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 48vh;
    padding-bottom: 56px;
  }

  .contact-hero-title {
    font-size: clamp(44px, 10vw, 72px) !important;
  }

  .contact-form-col {
    padding: 0 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    padding: 56px 28px;
  }

  .faq-cols {
    grid-template-columns: 1fr;
  }

  .section-faq {
    padding: 80px 0;
  }

  .faq-container {
    padding-inline: 28px;
  }
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: clamp(40px, 10vw, 60px) !important;
  }

  .contact-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-form-col {
    padding: 0 20px;
  }

  .contact-info-panel {
    padding: 48px 20px;
  }

  .faq-question-text {
    font-size: 18px;
  }
}
