/* ============================================================
   contact.css — Azru Solutions Contact Page
   Prefix: ct-
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
.page-contact {
  --ct-dark:       #080808;
  --ct-dark-2:     #0c0c0c;
  --ct-dark-3:     #111111;
  --ct-dark-4:     #161616;
  --ct-cream:      #ede8df;
  --ct-cream-70:   rgba(237, 232, 223, 0.70);
  --ct-cream-45:   rgba(237, 232, 223, 0.45);
  --ct-cream-20:   rgba(237, 232, 223, 0.20);
  --ct-cream-08:   rgba(237, 232, 223, 0.08);
  --ct-cream-04:   rgba(237, 232, 223, 0.04);
  --ct-fire:       #e8452a;
  --ct-fire-glow:  rgba(232, 69, 42, 0.28);
  --ct-fire-dim:   rgba(232, 69, 42, 0.10);
  --ct-gold:       #c8923a;
  --ct-border:     rgba(237, 232, 223, 0.07);
  --ct-border-2:   rgba(237, 232, 223, 0.13);

  font-family: 'Syne', sans-serif;
  background-color: var(--ct-dark);
  color: var(--ct-cream);
  background-image: radial-gradient(var(--ct-cream-04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

/* ── Hero ─────────────────────────────────────────────────── */
.ct-hero {
  position: relative;
  padding: calc(var(--navbar-height, 72px) + 5rem) 0 5rem;
  overflow: hidden;
  text-align: center;
}

.ct-hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
}
.ct-hero__glow--r {
  top: -120px; right: -180px;
  background: radial-gradient(ellipse, rgba(232, 69, 42, 0.06) 0%, transparent 65%);
}
.ct-hero__glow--l {
  bottom: -80px; left: -180px;
  background: radial-gradient(ellipse, rgba(200, 146, 58, 0.04) 0%, transparent 65%);
}

.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow */
.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ct-cream-45);
  margin-bottom: 1.75rem;
  animation: ctFadeUp 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ct-eyebrow__dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ct-fire);
  box-shadow: 0 0 6px var(--ct-fire), 0 0 14px var(--ct-fire-glow);
  animation: ctPulseDot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ctPulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Title with line-rise */
.ct-line {
  display: block;
  overflow: hidden;
  line-height: 1.1;
}
.ct-line__inner {
  display: block;
  animation: ctLineRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ct-line:nth-child(1) .ct-line__inner { animation-delay: 0.1s; }
.ct-line:nth-child(2) .ct-line__inner { animation-delay: 0.24s; }

@keyframes ctLineRise {
  from { transform: translateY(105%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ct-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ct-cream);
  margin: 0 0 1.5rem;
}
.ct-line--em em {
  font-style: italic;
  color: var(--ct-gold);
}

.ct-hero__sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ct-cream-45);
  max-width: 540px;
  margin: 0;
  animation: ctFadeUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ctFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Main 2-col layout ───────────────────────────────────── */
.ct-main {
  background: var(--ct-dark-2);
  border-top: 1px solid var(--ct-border);
  padding: 5rem 0 7rem;
}

.ct-main__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Info sidebar ────────────────────────────────────────── */
.ct-info {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ct-info__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ct-cream);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.ct-info__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ct-cream-45);
  margin: 0;
}

/* Info items */
.ct-info__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  overflow: hidden;
}

.ct-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ct-border);
  transition: background 0.2s;
}

.ct-info-item:last-child { border-bottom: none; }

.ct-info-item:hover { background: var(--ct-cream-04); }

.ct-info-item__icon {
  font-size: 1rem;
  color: var(--ct-fire);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.ct-info-item__label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-cream-45);
  margin-bottom: 0.2rem;
}

.ct-info-item__value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ct-cream);
  text-decoration: none;
  transition: color 0.2s;
}

a.ct-info-item__value:hover { color: var(--ct-fire); }

/* Trust checklist */
.ct-trust {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ct-trust__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ct-cream-70);
}

.ct-trust__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--ct-fire-dim);
  border: 1px solid rgba(232, 69, 42, 0.3);
  border-radius: 50%;
  font-size: 0.6rem;
  color: var(--ct-fire);
  flex-shrink: 0;
}

/* ── Form wrapper ────────────────────────────────────────── */
.ct-form-wrap {
  background: var(--ct-dark-3);
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.ct-form-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ct-border);
}

.ct-form-header__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ct-cream);
  margin: 0;
}

.ct-form-header__note {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--ct-cream-45);
  letter-spacing: 0.06em;
  margin: 0;
  flex-shrink: 0;
}

/* ── Form rows & fields ──────────────────────────────────── */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ct-row { display: flex; flex-direction: column; gap: 1.25rem; }
.ct-row--2 { flex-direction: row; gap: 1.25rem; }
.ct-row--2 .ct-field { flex: 1; min-width: 0; }

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ct-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-cream-45);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ct-req { color: var(--ct-fire); }

.ct-optional {
  font-size: 0.58rem;
  color: var(--ct-cream-45);
  letter-spacing: 0.06em;
  border: 1px solid var(--ct-border);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: none;
  font-family: 'Syne', sans-serif;
}

/* Input / textarea */
.ct-input {
  width: 100%;
  background: var(--ct-dark-4);
  border: 1px solid var(--ct-border-2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--ct-cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.ct-input::placeholder { color: rgba(237, 232, 223, 0.22); }

.ct-input:hover {
  border-color: var(--ct-cream-20);
}

.ct-input:focus {
  border-color: var(--ct-fire);
  box-shadow: 0 0 0 3px var(--ct-fire-dim);
  background: #1a1612;
}

/* Field error state */
.ct-field--err .ct-input {
  border-color: #e84242;
  box-shadow: 0 0 0 2px rgba(232, 66, 66, 0.15);
}

.ct-err-msg {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #e84242;
  letter-spacing: 0.04em;
}

/* Select */
.ct-select-wrap {
  position: relative;
}
.ct-select { padding-right: 2.5rem; cursor: pointer; }
.ct-select option { background: #1a1a1a; color: var(--ct-cream); }
.ct-select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ct-cream-45);
  font-size: 0.8rem;
  pointer-events: none;
}

/* Textarea */
.ct-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

/* ── Budget radio grid ───────────────────────────────────── */
.ct-budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.ct-budget-opt {
  position: relative;
  cursor: pointer;
}

.ct-budget-radio {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.ct-budget-label {
  display: block;
  padding: 0.65rem 0.75rem;
  background: var(--ct-dark-4);
  border: 1px solid var(--ct-border-2);
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--ct-cream-45);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  line-height: 1.3;
}

.ct-budget-opt:hover .ct-budget-label {
  border-color: var(--ct-cream-20);
  color: var(--ct-cream-70);
}

.ct-budget-radio:checked + .ct-budget-label {
  border-color: var(--ct-fire);
  background: var(--ct-fire-dim);
  color: var(--ct-cream);
  box-shadow: 0 0 0 2px var(--ct-fire-dim);
}

.ct-budget-radio:focus-visible + .ct-budget-label {
  outline: 2px solid var(--ct-fire);
  outline-offset: 2px;
}

/* ── Submit button ───────────────────────────────────────── */
.ct-form-foot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--ct-fire);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--ct-fire-glow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.ct-submit:hover {
  background: #d63b22;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 69, 42, 0.4);
}

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

.ct-submit__arrow {
  transition: transform 0.2s;
}
.ct-submit:hover .ct-submit__arrow {
  transform: translateX(4px);
}

/* Loading state (added via JS) */
.ct-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.ct-privacy {
  font-size: 0.75rem;
  color: var(--ct-cream-45);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.ct-privacy a {
  color: var(--ct-cream-70);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ct-privacy a:hover { color: var(--ct-cream); }

/* ── Success state ───────────────────────────────────────── */
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  min-height: 380px;
  justify-content: center;
  gap: 1rem;
}

.ct-success__ring {
  position: absolute;
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(232, 69, 42, 0.12);
  border-radius: 50%;
  animation: ctRingExpand 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ctRingExpand {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

.ct-success__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--ct-fire-dim);
  border: 1px solid rgba(232, 69, 42, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--ct-fire);
  animation: ctCheckPop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ctCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.ct-success__title {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ct-cream);
  margin: 0;
  animation: ctFadeUp 0.6s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ct-success__text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ct-cream-45);
  max-width: 380px;
  margin: 0;
  animation: ctFadeUp 0.6s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ct-success__btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: transparent;
  border: 1px solid var(--ct-border-2);
  color: var(--ct-cream);
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 7px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  animation: ctFadeUp 0.6s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ct-success__btn:hover {
  border-color: var(--ct-fire);
  background: var(--ct-fire-dim);
  color: var(--ct-cream);
}

/* ── Consultation CTA strip ──────────────────────────────── */
.ct-cta {
  background: var(--ct-dark);
  border-top: 1px solid var(--ct-border);
  padding: 5rem 0;
}

.ct-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.ct-cta__tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-fire);
  border: 1px solid rgba(232, 69, 42, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

.ct-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--ct-cream);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.ct-cta__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ct-cream-45);
  max-width: 480px;
  margin: 0;
}

/* Facts row */
.ct-cta__facts {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.ct-fact {
  padding: 1.4rem 2rem;
  text-align: center;
}

.ct-fact__val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ct-cream);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ct-fact__label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-cream-45);
}

.ct-fact-sep {
  width: 1px;
  height: 40px;
  background: var(--ct-border);
  flex-shrink: 0;
}

/* ── Reveal ──────────────────────────────────────────────── */
.ct-main .reveal,
.ct-cta .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-main .reveal.is-visible,
.ct-cta .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ct-main__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ct-info {
    position: static;
  }

  .ct-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct-cta__facts {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .ct-hero {
    padding: calc(var(--navbar-height, 72px) + 3rem) 0 3rem;
  }

  .ct-hero__title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .ct-form-wrap {
    padding: 1.5rem;
  }

  .ct-row--2 {
    flex-direction: column;
  }

  .ct-budget-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .ct-submit {
    justify-content: center;
  }

  .ct-cta__facts {
    flex-direction: column;
    gap: 0;
  }

  .ct-fact {
    width: 100%;
    border-bottom: 1px solid var(--ct-border);
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .ct-fact:last-child { border-bottom: none; }

  .ct-fact-sep { display: none; }

  .ct-form-header {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .ct-budget-grid {
    grid-template-columns: 1fr 1fr;
  }
}
