/* =============================================================================
   CONTACT.CSS — CR8TIF Contact Page
   Form, split layout, location cards, map
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Contact Split Layout — Form Left, Details Right
   --------------------------------------------------------------------------- */
.contact-split {
  padding: var(--section-pad) 0;
}

.contact-split__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(4rem, 8vw, 8rem);
  align-items: start;
}

/* Form wrapper heading */
.contact-split__form-wrapper {
  /* wrapper for form area */
}

.contact-split__form-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* ---------------------------------------------------------------------------
   Contact Form — Clean Inputs, Floating Labels
   --------------------------------------------------------------------------- */
.contact-form {
  max-width: 600px;
}

/* Form rows — 2 columns for name/company, email/phone */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

/* Individual form field */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group--full {
  /* full width - no special override needed */
}

/* Input and textarea base styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1.4rem 0.5rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 2px;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--gold);
  background: var(--gold-faint);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

.contact-form select {
  cursor: pointer;
  -moz-appearance: none;
  appearance: none;
}

/* Floating label */
.form-group label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dark-muted);
  pointer-events: none;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              font-size 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease;
}

/* Label floats up when input is focused or filled */
.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label,
.contact-form select:focus ~ label,
.contact-form select:not([value=""]) ~ label {
  top: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Gold focus line animation */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Submit button — uses .btn-solid from components.css */
.contact-form .btn-solid {
  margin-top: 1rem;
}

/* Form validation states */
.form-group.is-error input,
.form-group.is-error textarea {
  border-bottom-color: #C0392B;
}

.form-group.is-error::after {
  background: #C0392B;
  width: 100%;
}

/* Success state */
.form-group.is-valid input,
.form-group.is-valid textarea {
  border-bottom-color: #27AE60;
}

/* ---------------------------------------------------------------------------
   Contact Info — Right Column
   --------------------------------------------------------------------------- */
.contact-split__info {
  padding-top: 1rem;
}

.contact-split__info-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.contact-split__info-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark-muted);
  margin-bottom: 2.5rem;
}

/* Location cards */
.location-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.location-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: white;
  border: 1px solid var(--border-dark);
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  border-radius: 2px;
}

.location-card:hover {
  box-shadow: 0 8px 32px rgba(42, 37, 32, 0.06);
  transform: translateY(-1px);
}

/* Gold line at top */
.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card:hover::before {
  width: 100%;
}

.location-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.location-card__icon svg {
  width: 24px;
  height: 24px;
}

.location-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.location-card__address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-dark-muted);
  margin-bottom: 0.75rem;
}

.location-card__details {
  list-style: none;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
}

.location-card__details li {
  margin-bottom: 0.25rem;
}

.location-card__details a {
  font-size: 0.85rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

.location-card__details a:hover {
  color: #D4B275;
}

/* Social link */
.contact-split__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-split__social-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

.contact-split__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

.contact-split__social-link:hover {
  color: #D4B275;
}

.contact-split__social-link svg {
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------------------
   Map Section — Full Width, Filtered
   --------------------------------------------------------------------------- */
.map-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.map-section__wrapper {
  position: relative;
  width: 100%;
  height: 480px;
}

.map-section__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) sepia(20%) contrast(0.95) brightness(0.95);
  transition: filter 0.5s ease;
}

.map-section__wrapper:hover iframe {
  filter: grayscale(40%) sepia(10%) contrast(1) brightness(1);
}

/* Map overlay with gradient fade at top */
.map-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--bg-light), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Responsive Overrides for Contact Page
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact-split__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .map-section__wrapper {
    height: 300px;
  }

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

  .contact-form .btn-solid {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .map-section__wrapper {
    height: 240px;
  }

  .location-card {
    padding: 1.5rem;
  }
}
