/* ============================================================
   Network X Connect — one-page site
   ============================================================ */

:root {
  --color-ink: #101826;
  --color-ink-soft: #1c2636;
  --color-paper: #faf8f5;
  --color-paper-dim: #f0ede7;
  --color-white: #ffffff;
  --color-accent: #e05a2b;
  --color-accent-dark: #c14a20;
  --color-teal: #1f8a82;
  --color-teal-light: #2dd4bf;
  --color-text: #2a2f38;
  --color-text-soft: #5c636f;
  --color-border: rgba(16, 24, 38, 0.1);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -25px rgba(16, 24, 38, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(16, 24, 38, 0.4);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 18px;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 16px; color: var(--color-text-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head p { font-size: 1.08rem; }

.divider {
  width: 64px;
  height: 4px;
  background: var(--color-teal-light);
  border-radius: 4px;
  margin: 0 auto 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(224, 90, 43, 0.7);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 24, 38, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  padding: 22px 0;
}
.site-header.is-scrolled {
  background: rgba(16, 24, 38, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand img { height: 34px; width: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-teal-light);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: #fff; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,24,38,0.55) 0%, rgba(16,24,38,0.75) 55%, rgba(16,24,38,0.95) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 760px;
  padding-top: 110px;
}
.hero .eyebrow { color: var(--color-teal-light); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Generic section spacing ---------- */
.section { padding: 108px 0; }
.section-tight { padding: 80px 0; }
.bg-paper-dim { background: var(--color-paper-dim); }
.bg-ink {
  background: var(--color-ink);
  color: rgba(255,255,255,0.85);
}
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: rgba(255,255,255,0.72); }

/* ---------- Cards grid (What We Do) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(16,24,38,0.45); }
.card-media { height: 190px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 0.96rem; margin-bottom: 0; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.split-text .eyebrow { display: block; }

/* ---------- Playbook (numbered steps) ---------- */
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 20px;
}
.playbook-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.playbook-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.playbook-item h3 { color: #fff; }
.playbook-item p { color: rgba(255,255,255,0.68); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Brand network cards ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.brand-card img {
  height: 56px;
  width: auto;
  max-width: 140px;
  margin: 0 auto 20px;
  object-fit: contain;
}
.brand-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.brand-card p { font-size: 0.9rem; margin-bottom: 18px; }
.brand-card .btn { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Insights ---------- */
.insights-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
}
.insights-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.insight-list { display: flex; flex-direction: column; gap: 26px; }
.insight-item {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border);
}
.insight-item:last-child { border-bottom: none; padding-bottom: 0; }
.insight-item .card-tag { margin-bottom: 8px; }
.insight-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.insight-item p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--color-ink);
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 100vh;
}
.contact-intro {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 60px;
  display: flex;
  align-items: center;
}
.contact-intro::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(16,24,38,0.92), rgba(31,138,130,0.75));
}
.contact-intro-inner { position: relative; z-index: 1; max-width: 440px; }
.contact-intro .eyebrow { color: var(--color-teal-light); }
.contact-intro h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.7rem); }
.contact-intro p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.contact-detail {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.98rem;
}
.contact-detail a { color: #fff; font-weight: 600; }
.contact-detail span { color: rgba(255,255,255,0.6); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 2px; }

.contact-form-panel {
  padding: 90px 70px;
  display: flex;
  align-items: center;
}
.contact-form { width: 100%; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.28);
  padding: 12px 2px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 100px; font-size: 1.1rem; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--color-teal-light); }
.field select option { color: #111; }

.field-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.field-check input { width: auto; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-submit-row { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.form-note { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }

#form-status {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}
#form-status.success { color: var(--color-teal-light); }
#form-status.error { color: #ff9b73; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1220;
  color: rgba(255,255,255,0.65);
  padding: 70px 0 30px;
  font-size: 0.92rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; width: 32px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--color-teal); border-color: var(--color-teal); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }

.footer-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand-card img { height: 40px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand-card h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin: 0; }
.footer-brand-card p { font-size: 0.85rem; margin: 0; color: rgba(255,255,255,0.55); }
.footer-brand-card a.brand-link { color: var(--color-teal-light); font-weight: 600; font-size: 0.82rem; }

.footer-bottom { padding-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-credit { color: rgba(255,255,255,0.35) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .split-media { order: -1 !important; }
  .insights-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-intro, .contact-form-panel { padding: 60px 34px; }
  .playbook-grid { grid-template-columns: 1fr; }
  .footer-brands { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--color-ink); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; transform: translateX(100%); transition: transform 0.3s ease; gap: 26px; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-brands { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero-stats { gap: 28px; }
  .section { padding: 76px 0; }
}
