/* Gains Global Markets — public pages beyond the landing page, like Contact Us. Builds on app.css. */

/* The public pages keep the landing page's Montserrat; signed-in pages use Poppins (app.css). */
:root { --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Header and footer ---------- */

.site-bar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 6, 5, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-bar-inner, .site-foot-inner { width: min(1160px, 100% - 32px); margin-inline: auto; }
.site-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; }
.site-brand img { width: 42px; height: 34px; object-fit: contain; }
.site-brand span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; white-space: nowrap; }
.site-brand b { font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { font-size: 0.86rem; font-weight: 500; color: var(--muted); transition: color 0.25s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav .btn { padding: 10px 18px; }
@media (max-width: 640px) {
  .site-brand span, .site-nav-home { display: none; }
  .site-nav { gap: 14px; }
}

.site-main { width: min(1160px, 100% - 32px); margin-inline: auto; padding: 56px 0 72px; }
@media (max-width: 640px) { .site-main { padding-top: 36px; } }

.site-foot { border-top: 1px solid var(--line-soft); }
.site-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0; font-size: 0.76rem; color: var(--dim); }

/* ---------- Contact Us ---------- */

.contact-hero { display: grid; gap: 16px; max-width: 720px; margin-bottom: 40px; animation: rise 0.8s var(--ease) both; }
.contact-hero .pill { justify-self: start; }
.contact-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.contact-hero p { max-width: 600px; font-size: 1.02rem; color: var(--muted); }

.contact-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px; } }
/* On phones and tablets the form comes first, then the other ways to reach us. */
@media (max-width: 899px) { .contact-card { order: -1; } }

.contact-ways { display: grid; gap: 14px; animation: rise 0.8s var(--ease) 0.08s both; }
.contact-way {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.contact-way-icon {
  grid-row: span 3;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(212, 166, 58, 0.08);
  color: var(--gold-light);
}
.contact-way-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-way h2 { font-size: 0.98rem; font-weight: 700; }
.contact-way p { font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.contact-way a:not(.btn) { color: var(--gold-light); font-weight: 600; overflow-wrap: anywhere; }
.contact-way .btn { justify-self: start; margin-top: 8px; }

.contact-card {
  display: grid; gap: 20px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(212, 166, 58, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)), rgba(7, 7, 6, 0.9);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  animation: rise 0.8s var(--ease) 0.14s both;
}
@media (min-width: 640px) { .contact-card { padding: 36px 34px; } }
.contact-card h2 { font-size: 1.3rem; font-weight: 700; }
.contact-card-sub { margin-top: -12px; font-size: 0.88rem; color: var(--muted); }
.contact-form { display: grid; gap: 16px; }
.contact-pair { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* After sending: a thank-you in place of the form. */
.contact-sent { display: grid; justify-items: center; gap: 14px; padding: 18px 0 6px; text-align: center; }
.contact-sent-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(63, 214, 154, 0.12);
  color: var(--up);
}
.contact-sent-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.contact-sent p { max-width: 420px; font-size: 0.92rem; color: var(--muted); }
.contact-sent b { color: var(--text); }
.contact-ref { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 0.86rem var(--mono); color: var(--gold-light); }
