/* ============================================================
   EIVAA HOMESS — Contact Page · contact.css
   Light Luxury Theme · Strict inheritance from style.css
   ============================================================ */

/* ─────────────────────────────────────────────────
   PAGE BASE
───────────────────────────────────────────────── */
.contact-page {
  background: #F9F8F6;
  color: #1A1A1A;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────
   CONTACT HEADER OVERRIDES
   (inherits from style.css #site-header)
───────────────────────────────────────────────── */
.ct-header {
  /* already visible on light bg — disable mix-blend-mode for clarity */
  opacity: 1 !important; /* Override JS start-hidden state */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(249, 248, 246, 0.0);
  transition: padding 0.5s cubic-bezier(0.87, 0, 0.13, 1), background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.ct-header .nav-group {
  mix-blend-mode: normal;
}

.ct-header .nav-link {
  color: #1A1A1A;
}

.ct-header .nav-link::after {
  background: #1A1A1A;
}

.ct-header .nav-link.active {
  opacity: 1;
}

.ct-header .nav-link.active::after {
  transform: scaleX(1);
}

.ct-header.is-scrolled {
  padding: 12px 48px;
  background-color: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

/* ─────────────────────────────────────────────────
   ENTRANCE CURTAIN
───────────────────────────────────────────────── */
#ct-curtain {
  position: fixed;
  inset: 0;
  background: #F9F8F6;
  z-index: 200;
  transform-origin: top center;
  /* Animated out by JS */
}

/* ─────────────────────────────────────────────────
   MAIN WRAPPER
───────────────────────────────────────────────── */
#ct-main {
  min-height: 100vh;
  opacity: 0; /* GSAP controls this */
  transform: translateY(40px); /* GSAP controls this */
  will-change: opacity, transform;
}

/* ─────────────────────────────────────────────────
   SPLIT SECTION
───────────────────────────────────────────────── */
#ct-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 0; /* header is fixed */
}

/* ─────────────────────────────────────────────────
   LEFT COLUMN — Details
───────────────────────────────────────────────── */
.ct-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 16vh, 180px) 5vw clamp(80px, 10vh, 120px) 6vw;
  position: relative;
  background: #fbf8f3;
}

/* Eyebrow label */
.ct-eyebrow {
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: clamp(9px, 0.8vw, 10px);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

/* Main headline */
.ct-headline {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  margin-bottom: clamp(48px, 8vh, 80px);
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.ct-headline em {
  font-style: normal;
  display: block;
  color: var(--gold);
  font-weight: 400;
}

/* Contact detail blocks */
.ct-details {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 48px);
}

.ct-detail-block {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.ct-detail-label {
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.38);
  margin-bottom: 8px;
}

.ct-phone-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px; /* Perfect spacing */
}

.ct-detail-link {
  display: inline-block;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #1A1A1A;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.ct-link-line {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1A1A1A;
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.87, 0, 0.13, 1);
}

.ct-detail-link:hover .ct-link-line {
  transform: scaleX(1);
}

.ct-detail-text {
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #1A1A1A;
  margin-bottom: 10px;
}

/* "Get Directions" button */
.ct-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
  margin-top: 4px;
}

.ct-directions-btn:hover {
  color: #1A1A1A;
  gap: 10px;
}

.ct-directions-btn svg {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.ct-directions-btn:hover svg {
  transform: translate(3px, -3px);
}

.ct-map-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* Adjusted for a balanced height on desktop */
  margin: 28px 0 16px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.03); 
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: 
    filter 0.7s cubic-bezier(0.87, 0, 0.13, 1), 
    opacity 0.7s cubic-bezier(0.87, 0, 0.13, 1),
    transform 0.7s cubic-bezier(0.87, 0, 0.13, 1);
  opacity: 0.85;
  border: 1px solid rgba(26, 26, 26, 0.04);
}

.ct-map-wrap:hover {
  filter: grayscale(0) contrast(1) brightness(1);
  opacity: 1;
}

.ct-map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Decorative vertical rule on the right edge of left column */
.ct-left::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.1) 40%, rgba(26, 26, 26, 0.1) 60%, transparent);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   RIGHT COLUMN — Form
───────────────────────────────────────────────── */
.ct-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 16vh, 180px) 6vw clamp(80px, 10vh, 120px) 5vw;
  overflow: hidden;
}

/* Subtle background image */
.ct-right-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-right-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(40px) brightness(1.12) saturate(0.6);
  transform: scale(1.1); /* Prevent blur edge bleed */
  opacity: 0.55;
}

.ct-right-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Form wrapper */
.ct-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

/* ─────────────────────────────────────────────────
   NAKED FORM FIELDS
───────────────────────────────────────────────── */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-field {
  position: relative;
  padding-top: 22px; /* space for floating label */
  margin-bottom: clamp(28px, 4vh, 44px);
}

/* The naked input */
.ct-field input,
.ct-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 8px 0 10px;
  line-height: 1.4;
  resize: none;
  /* No box-shadow, no default browser styling */
  -webkit-appearance: none;
  appearance: none;
}

.ct-field textarea {
  min-height: 64px;
  overflow: hidden; /* Auto-grow handled by JS */
}

/* Floating placeholder label */
.ct-label {
  position: absolute;
  top: 28px; /* Default position — sits at input baseline */
  left: 0;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 100%);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.3s ease,
    font-size 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Floated label state: input has value OR is focused */
.ct-field.is-active .ct-label,
.ct-field.has-value .ct-label {
  transform: translateY(-20px) scale(0.72);
  color: rgba(255, 255, 255, 0.55);
}

/* Focused — label gets accent colour */
.ct-field.is-active .ct-label {
  color: #1A1A1A;
}

/* Bottom border line */
.ct-field-line {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.ct-field-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #f3f3f3;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.87, 0, 0.13, 1);
}

.ct-field.is-active .ct-field-line::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────
   SUBMIT BUTTON (Pill + Magnetic Hover)
───────────────────────────────────────────────── */
.ct-submit-wrap {
  margin-top: clamp(16px, 3vh, 32px);
  display: flex;
  align-items: center;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  
  padding: 16px 48px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.25s ease;
  will-change: transform;
}

/* Fill layer — slides up on hover */
.ct-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1A1A1A;
  
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.87, 0, 0.13, 1);
  z-index: 0;
}

.ct-submit:hover::before {
  transform: translateY(0);
}

.ct-submit:hover {
  border-color: #1A1A1A;
}

.ct-submit-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f5f5f5;
  transition: color 0.45s ease;
}

.ct-submit:hover .ct-submit-text {
  color: #F9F8F6;
}

/* Focus-visible for accessibility */
.ct-submit:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 4px;
}

/* ─────────────────────────────────────────────────
   SUCCESS state (form submitted)
───────────────────────────────────────────────── */
.ct-form.is-sent .ct-submit {
  border-color: #C9A96E;
}

.ct-form.is-sent .ct-submit-text {
  color: #C9A96E;
}

.ct-form.is-sent .ct-submit::before {
  background: #C9A96E;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────────────── */
@media (max-width: 900px) {
  #ct-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ct-left {
    padding: clamp(110px, 14vh, 160px) 6vw clamp(48px, 6vh, 72px) 6vw;
    justify-content: flex-start;
  }

  .ct-left::after {
    display: none;
  }

  .ct-headline {
    font-size: clamp(36px, 7.5vw, 64px);
  }

  .ct-right {
    padding: clamp(40px, 6vh, 80px) 6vw clamp(80px, 10vh, 120px) 6vw;
    min-height: 80vh;
    align-items: flex-start;
  }

  .ct-form-wrap {
    max-width: 100%;
  }

  .ct-header {
    padding: 22px 28px;
  }

  .ct-header.is-scrolled {
    padding: 12px 28px;
  }
}

@media (max-width: 520px) {
  .ct-headline {
    font-size: clamp(32px, 9vw, 48px);
  }

  .ct-left {
    padding: 100px 6vw 40px;
  }

  .ct-right {
    padding: 32px 6vw 80px;
  }

  .ct-submit {
    padding: 15px 36px;
  }
}

/* ============================================================
   ANTI-SPAM HONEYPOT
   Hidden from people, visible to bots. Must not use
   display:none — some bots skip those fields deliberately.
   ============================================================ */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   FORM STATUS MESSAGE
   ============================================================ */
.ct-form-status {
  margin-top: 20px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 12px 16px;
  border-left: 2px solid transparent;
  animation: ct-status-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-form-status.is-success {
  color: var(--gold, #d4af37);
  border-left-color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.07);
}

.ct-form-status.is-error {
  color: #c85a4a;
  border-left-color: #c85a4a;
  background: rgba(200, 90, 74, 0.07);
}

@keyframes ct-status-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-form-status { animation: none; }
}
