/* ════════════════════════════════════════════════════════
   CONTACT PAGE STYLES — Clear Vision
════════════════════════════════════════════════════════ */

/* Pre-hide hero elements (GSAP will animate them in) */
.ct-eyebrow,
.ct-hero__title,
.ct-hero__sub { opacity: 0; }

/* ── HERO ────────────────────────────────────────────── */
.ct-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  background: var(--clr-bg-deep);
  overflow: hidden;
  padding: 160px 0 100px;
}

.ct-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,171,193,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,171,193,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.ct-hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(0,171,193,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.ct-hero__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 99px;
  border: 1px solid rgba(0,171,193,0.35);
  background: rgba(0,171,193,0.08);
  color: var(--clr-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.ct-hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Keep cyan span visible inside gradient title */
.ct-hero__title .text-cyan { -webkit-text-fill-color: var(--clr-primary); }

.ct-hero__sub {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── [data-animate] SCROLL ENTRANCE ─────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── INFO CARDS ──────────────────────────────────────── */
.ct-info {
  background: var(--clr-bg-deep);
  padding: 0 0 80px;
}

.ct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ct-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rad-lg);
  padding: 36px 28px;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}

.ct-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,171,193,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.ct-card:hover {
  border-color: rgba(0,171,193,0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-6px);
}

.ct-card:hover::before { opacity: 1; }

.ct-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,171,193,0.1);
  border: 1px solid rgba(0,171,193,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.ct-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  margin-bottom: 14px;
}

.ct-card__body {
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.9;
}

.ct-card__body a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.ct-card__body a:hover { color: var(--clr-primary); }

.ct-card__note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ── FORM + MAP SECTION ──────────────────────────────── */
.ct-main {
  background: var(--clr-bg-deep);
  padding: 0 0 120px;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* Form card */
.ct-form-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rad-xl);
  padding: 52px 48px;
}

.ct-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-section-sub {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Success banner */
.ct-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(13,226,131,0.07);
  border: 1px solid rgba(13,226,131,0.28);
  border-radius: 12px;
  color: #0de283;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.ct-success.visible { display: flex; }
.ct-success i { font-size: 1.4rem; flex-shrink: 0; }

/* Error banner */
.ct-error {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255,77,79,0.07);
  border: 1px solid rgba(255,77,79,0.28);
  border-radius: 12px;
  color: #ff4d4f;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.ct-error.visible { display: flex; }
.ct-error i { font-size: 1.4rem; flex-shrink: 0; }

/* Form layout */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

.ct-field input,
.ct-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: rgba(255,255,255,0.22);
}

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--clr-primary);
  background: rgba(0,171,193,0.04);
}

.ct-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.ct-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--clr-primary);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s, opacity 0.3s;
  box-shadow: 0 4px 24px rgba(0,171,193,0.3);
  align-self: flex-start;
}

.ct-form-submit:hover {
  background: #00e0fc;
  box-shadow: 0 8px 32px rgba(0,171,193,0.5);
  transform: translateY(-2px);
}

.ct-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Map section */
.ct-map-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-map-frame {
  border-radius: var(--rad-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  height: 400px;
  margin-bottom: 16px;
}

.ct-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* Invert colors to match dark theme */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8) brightness(0.95);
}

/* Social */
.ct-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-social-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.ct-social-links {
  display: flex;
  gap: 12px;
}

.ct-social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.ct-social-link:hover {
  border-color: var(--clr-primary);
  background: rgba(0,171,193,0.12);
  color: var(--clr-primary);
  transform: translateY(-4px);
}

/* ── RTL ADJUSTMENTS ─────────────────────────────────── */
/* RTL line-height fixes */
[dir="rtl"] .ct-hero__title   { line-height: 1.35; }
[dir="rtl"] .ct-section-title { line-height: 1.4;  }

[dir="rtl"] .ct-hero__inner { direction: rtl; }
[dir="rtl"] .ct-cards { direction: ltr; }
[dir="rtl"] .ct-card { direction: rtl; unicode-bidi: plaintext; }
[dir="rtl"] .ct-form-submit { align-self: flex-start; }
[dir="rtl"] .ct-social-links { direction: ltr; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .ct-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-map-frame { height: 340px; }
}

@media (max-width: 767px) {
  .ct-hero { padding: 130px 0 70px; min-height: auto; }
  .ct-hero__sub { font-size: 1rem; }
  .ct-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ct-card { padding: 24px 20px; }
  .ct-info { padding-bottom: 60px; }
  .ct-main { padding-bottom: 80px; }
  .ct-form-wrap { padding: 32px 24px; }
  .ct-form-row { grid-template-columns: 1fr; gap: 0; }
  .ct-map-frame { height: 260px; }
}

@media (max-width: 480px) {
  .ct-cards { grid-template-columns: 1fr; }
  .ct-form-submit { width: 100%; justify-content: center; }
}
