/* Address Gateway — Opportunities Hub
   Theme matched to www.addressgateway.com: deep navy, cyan + orange accents, Barlow type. */

:root {
  --navy-900: #051423;
  --navy-800: #081d30;
  --navy-700: #0b2a45;
  --navy-600: #123354;
  --navy-500: #1c4468;
  --ink: #364052;
  --ink-soft: #5b6478;
  --cyan: #199fbd;
  --cyan-light: #29a9c8;
  --orange: #f08422;
  --orange-dark: #d9720f;
  --bg-light: #f7f7f7;
  --bg-panel: #f4f7f9;
  --white: #ffffff;
  --border: #e1e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --gold: #b8860b;
  --shadow: 0 20px 45px -20px rgba(5, 20, 35, 0.35);
  --radius: 14px;
  --max: 1160px;
  --font: 'Barlow', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
section { position: relative; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--navy-900); }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: rgba(255,255,255,0.72); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.pad { padding: 96px 0; }
.pad-sm { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.btn-arrow svg { width: 11px; height: 11px; }
.btn-primary {
  background: var(--orange);
  color: var(--navy-900);
}
.btn-primary .btn-arrow { background: var(--navy-900); color: var(--orange); }
.btn-primary .btn-arrow svg { stroke: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px -10px rgba(240,132,34,0.55); }

.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan .btn-arrow { background: rgba(255,255,255,0.25); color: var(--white); }
.btn-cyan .btn-arrow svg { stroke: var(--white); }
.btn-cyan:hover { background: var(--cyan-light); box-shadow: 0 14px 30px -10px rgba(25,159,189,0.6); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline .btn-arrow { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-outline .btn-arrow svg { stroke: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline-dark .btn-arrow { background: var(--navy-900); color: var(--white); }
.btn-outline-dark .btn-arrow svg { stroke: var(--white); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-dark:hover .btn-arrow { background: var(--white); color: var(--navy-900); }
.btn-outline-dark:hover .btn-arrow svg { stroke: var(--navy-900); }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 14.5px;
}
.site-nav a:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .site-nav { position: fixed; inset: 82px 0 0 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(240,132,34,0.18), transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(25,159,189,0.22), transparent 45%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.5) 40%, transparent 90%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: var(--white); }
.hero h1 .accent { color: var(--orange); }
.hero-lede { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

.quote-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  backdrop-filter: blur(6px);
  position: relative;
}
.quote-block::before {
  content: '“';
  position: absolute;
  top: -6px;
  left: 22px;
  font-size: 90px;
  color: var(--orange);
  opacity: 0.35;
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-block .eyebrow { color: var(--cyan-light); }
.quote-block p.lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-top: 6px;
}
.quote-block p.sub { margin-top: 14px; color: rgba(255,255,255,0.75); font-size: 15px; }
.quote-meta { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.quote-meta div { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.quote-meta strong { display: block; font-size: 15px; color: var(--orange); text-transform: none; letter-spacing: 0; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Fork ---------- */
.fork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fork-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fork-card.alt { border-top-color: var(--orange); }
.fork-card h3 { font-size: 24px; color: var(--navy-900); }
.fork-card p { color: var(--ink-soft); font-size: 15.5px; }
.fork-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .fork-grid { grid-template-columns: 1fr; } }

/* ---------- Join the team ---------- */
.join-team { background: var(--bg-light); }
.tier {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.tier-tag {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.tier-tag span { position: relative; padding-right: 12px; }
.tier-tag span:not(:last-child)::after { content: '·'; position: absolute; right: 0; color: var(--border); }
.tier h3 { font-size: 26px; color: var(--navy-900); margin-bottom: 8px; }
.tier .tier-sub { font-weight: 700; color: var(--navy-700); font-size: 18px; margin: 18px 0 10px; }
.tier p { color: var(--ink-soft); font-size: 15.5px; }
.tier-lead { font-size: 17px !important; color: var(--ink) !important; margin-top: 10px !important; }

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.learn-item {
  background: var(--bg-panel);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.learn-item strong { display: block; color: var(--navy-900); font-size: 15px; margin-bottom: 4px; }
.learn-item span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 700px) { .learn-grid { grid-template-columns: 1fr; } }

.track-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.track-table th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.track-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink); }
.track-table tr:nth-child(even) td { background: var(--bg-panel); }
.table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }

.tier-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tier-footer .meta { font-size: 13.5px; color: var(--ink-soft); font-style: italic; }

.subcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.subcard {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.subcard h4 { font-size: 18px; color: var(--navy-900); }
.subcard p { font-size: 14.5px; color: var(--ink-soft); }
.subcard .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 700px) { .subcards { grid-template-columns: 1fr; } }

/* ---------- Work with us / services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,132,34,0.25), transparent 70%);
}
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(25,159,189,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-light);
}
.service-card h3 { font-size: 20px; }
.service-card blockquote { margin: 0; font-style: italic; color: var(--orange); font-size: 15px; }
.service-card p { color: rgba(255,255,255,0.78); font-size: 14.5px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 940px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Why Address Gateway ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  text-align: left;
}
.why-card .stat { font-size: 30px; font-weight: 800; color: var(--orange); }
.why-card p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 940px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Application form ---------- */
.apply-section { background: var(--navy-900); color: var(--white); }
.branch-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.branch-option { position: relative; }
.branch-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.branch-option label {
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 20px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.15s ease, background 0.15s ease;
  height: 100%;
}
.branch-option label span.small { display: block; font-weight: 500; color: rgba(255,255,255,0.55); font-size: 12.5px; margin-top: 6px; }
.branch-option input:checked + label {
  border-color: var(--orange);
  background: rgba(240,132,34,0.12);
  color: var(--white);
}
.branch-option input:focus-visible + label { outline: 2px solid var(--cyan-light); }
@media (max-width: 860px) { .branch-selector { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .branch-selector { grid-template-columns: 1fr; } }

.form-panel {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
}
.form-branch { display: none; }
.form-branch.active { display: block; }

.form-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--border);
  margin: 30px 0 18px;
  padding-top: 24px;
}
.form-branch > .form-section-title:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.field, .field-group { margin-bottom: 20px; border: none; padding: 0; }
.field label.field-label, .field-group legend.field-label {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy-900);
  margin-bottom: 8px;
  padding: 0;
}
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.field .req { color: var(--orange-dark); margin-left: 3px; }

.input, textarea.input, select.input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.input:focus, textarea.input:focus, select.input:focus {
  outline: none;
  border-color: var(--cyan);
}
textarea.input { resize: vertical; min-height: 90px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid.cols-1 { grid-template-columns: 1fr; }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .choice-grid, .choice-grid.cols-3 { grid-template-columns: 1fr; } }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}
.choice input { margin-top: 3px; flex-shrink: 0; }
.choice-other-input { margin-top: 8px; }

.scale-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.scale-row label { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.scale-row input { width: 18px; height: 18px; }

.declaration-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.declaration-box li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.declaration-box li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); }

.form-footnote { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: 14.5px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e6f7ea; color: #1c6b34; border: 1px solid #b7e3c2; }
.form-msg.error { background: #fdecec; color: #a3271f; border: 1px solid #f3c3c0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { color: var(--white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.45);
}
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--navy-900);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

@media (max-width: 760px) {
  .pad { padding: 64px 0; }
  .form-panel { padding: 24px; }
}
