:root {
  --blue: #3B8DE8;
  --blue-deep: #0F2A47;
  --blue-pale: #EAF3FE;
  --ink: #10202F;
  --ink-soft: #5A6B7D;
  --white: #FFFFFF;
  --line: #DCE7F3;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 46px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(59,141,232,0.25));
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-deep); }
.topbar-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.topbar-nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.topbar-nav a:hover { color: var(--blue-deep); }
.topbar-cta {
  background: var(--blue-deep);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.topbar-cta:hover, .topbar-cta.active { background: var(--blue); }

/* ---------- Hero ---------- */
.contact-hero { max-width: 800px; margin: 0 auto; padding: 84px 32px 48px; text-align: center; }
.contact-eyebrow { font-size: 0.9rem; color: var(--blue); font-weight: 600; margin: 0 0 18px; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 20px;
}
.contact-title-accent { color: var(--blue); }
.contact-sub { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; max-width: 56ch; margin: 0 auto; }

/* ---------- Layout ---------- */
.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Form ---------- */
.contact-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--blue-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B7D' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }
.form-submit { margin-top: 6px; width: 100%; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* ---------- Sidebar info ---------- */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--blue-deep);
  border-radius: 18px;
  padding: 32px 28px;
}
.info-card h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin: 0 0 24px;
  font-weight: 600;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.2s ease;
}
.info-item:first-of-type { border-top: none; padding-top: 0; }
a.info-item:hover { opacity: 0.8; }
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 19px; height: 19px; }
.info-text { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.info-value { font-size: 0.95rem; color: var(--white); font-weight: 500; }

.info-note {
  background: var(--blue-pale);
  border-radius: 14px;
  padding: 20px 22px;
}
.info-note p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 32px 28px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--blue-deep); }
.footer-tagline { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; max-width: 30ch; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-legal a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover, .footer-legal a:hover { color: var(--blue-deep); }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
