/* ============================================================
   CONTACT PAGE — contact.css
   Imports on top of style.css (shared base)
============================================================ */

/* ============================================================
   CONTACT HERO — full-height split layout
============================================================ */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 100vh;
  padding-top: 68px; /* navbar height */
}

/* LEFT PANEL */
.contact-hero-left {
  background: var(--navy);
  padding: 80px 48px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
}

.contact-tagline {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 360px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 20px;
  border-radius: 14px;
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.contact-info-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.contact-info-card:hover .contact-info-icon {
  background: rgba(123,92,240,0.15);
  border-color: rgba(123,92,240,0.4);
  color: var(--white);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.contact-info-text strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}
.contact-info-action {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.contact-info-card:hover .contact-info-action {
  color: rgba(255,255,255,0.65);
}

/* RIGHT PANEL */
.contact-hero-right {
  background: var(--navy-mid);
  padding: 80px 60px 80px 60px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.contact-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.7s cubic-bezier(0.19,1,0.22,1) 0.1s forwards;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 56px;
  overflow: hidden;
}
.contact-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordRise 0.8s cubic-bezier(0.19,1,0.22,1) forwards;
}
.contact-heading .word:nth-child(1) { animation-delay: 0.15s; }
.contact-heading .word:nth-child(2) { animation-delay: 0.28s; }
.contact-heading .word:nth-child(3) { animation-delay: 0.41s; }

@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}
.form-group .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-btn);
  background: rgba(123,92,240,0.05);
  box-shadow: 0 0 0 3px rgba(123,92,240,0.15);
}

/* Validation error state */
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e05c5c;
  background: rgba(224,92,92,0.05);
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(224,92,92,0.15);
}

.field-error {
  font-size: 0.75rem;
  color: #e05c5c;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.form-group.has-error .field-error {
  opacity: 1;
  transform: translateY(0);
}

/* Input filled state — subtle indicator */
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: rgba(255,255,255,0.2);
}

.form-submit {
  margin-top: 8px;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--purple-btn);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.btn-submit:hover:not(:disabled) {
  background: var(--purple-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(123,92,240,0.4);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

/* Loading spinner */
.btn-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-submit-text { opacity: 0.6; }
.btn-submit.loading .btn-submit-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Submit ripple effect */
.btn-submit::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.btn-submit:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* Success message */
.form-success {
  display: none;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(72,199,142,0.08);
  border: 1.5px solid rgba(72,199,142,0.25);
  border-radius: 12px;
  margin-top: 8px;
  animation: fadeInUp 0.5s ease forwards;
}
.form-success.show { display: flex; }
.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(72,199,142,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #48c78e;
  flex-shrink: 0;
}
.form-success strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}
.form-success p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Error message */
.form-error-msg {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(224,92,92,0.08);
  border: 1.5px solid rgba(224,92,92,0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e05c5c;
  margin-top: 8px;
}
.form-error-msg.show { display: flex; }

/* ============================================================
   CONTACT FAQ variant — lighter background
============================================================ */
.contact-faq {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: 100%;
  padding: 100px 80px;
}
.contact-faq .faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   CONTACT METHODS — 3 column cards
============================================================ */
.contact-methods-section {
  padding: 100px 80px;
  background: var(--navy);
}
.contact-methods-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.contact-methods-header {
  margin-bottom: 56px;
}
.contact-methods-header p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  max-width: 500px;
  line-height: 1.7;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-method-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-method-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.method-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  transition: background 0.3s, border-color 0.3s;
}
.contact-method-card:hover .method-icon {
  background: rgba(123,92,240,0.15);
  border-color: rgba(123,92,240,0.35);
  color: var(--white);
}

.contact-method-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
}
.contact-method-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  flex: 1;
}
.method-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s;
}
.method-link:hover {
  border-color: var(--white);
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .contact-hero {
    grid-template-columns: 1fr 1.6fr;
  }
  .contact-hero-right {
    padding: 60px 40px;
  }
  .contact-faq,
  .contact-methods-section {
    padding: 80px 40px;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-hero-left {
    position: static;
    height: auto;
    padding: 100px 32px 48px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .contact-tagline { max-width: 100%; }
  .contact-info-cards { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .contact-info-card { flex: 1; min-width: 200px; }

  .contact-hero-right {
    padding: 60px 32px 80px;
  }
  .contact-heading { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }

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

  .contact-methods-grid { grid-template-columns: 1fr 1fr; }
  .contact-faq, .contact-methods-section { padding: 60px 24px; }
}

@media (max-width: 600px) {
  .contact-hero-left { padding: 96px 20px 40px; }
  .contact-info-cards { flex-direction: column; }
  .contact-hero-right { padding: 48px 20px 64px; }
  .contact-methods-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INLINE CONTACT SECTION (embedded in index.html)
   Overrides the standalone page layout
============================================================ */
.contact-page-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Left panel is NOT sticky when embedded */
.contact-page-section .contact-hero-left {
  position: static;
  height: auto;
  padding: 80px 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
  justify-content: flex-start;
  gap: 48px;
}

/* Right panel no overflow needed when embedded */
.contact-right-inline {
  overflow: visible !important;
  padding: 80px 60px !important;
}

/* Heading animates via scroll-reveal when embedded */
.contact-page-section .contact-heading .word {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.19,1,0.22,1), transform 0.8s cubic-bezier(0.19,1,0.22,1);
}
.contact-page-section .contact-heading .word.visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-page-section .contact-heading .word:nth-child(1) { transition-delay: 0.05s; }
.contact-page-section .contact-heading .word:nth-child(2) { transition-delay: 0.15s; }
.contact-page-section .contact-heading .word:nth-child(3) { transition-delay: 0.25s; }

/* Eyebrow reveal via scroll */
.contact-page-section .contact-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-page-section .contact-eyebrow.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-page-section {
    grid-template-columns: 1fr;
  }
  .contact-page-section .contact-hero-left {
    padding: 64px 24px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .contact-right-inline {
    padding: 48px 24px 64px !important;
  }
}
