/* 4Square Capital — main.css */

:root {
  --color-bg:             #FFFFFF;
  --color-surface:        #F7F7F6;
  --color-border:         #E5E5E3;
  --color-text-primary:   #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-muted:     #9B9B9B;
  --color-accent:         #1A1A1A;
  --color-accent-hover:   #333333;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI",
                "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --gutter: 32px;
  --section-padding: 96px;
  --section-padding-mobile: 64px;
}

/* ── Base ── */

body {
  font-family: var(--font-stack);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg);
}

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

section {
  padding: var(--section-padding) 0;
}

/* ── Typography ── */

h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.lang-switch button:hover,
.lang-switch button.active {
  color: var(--color-text-primary);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

/* ── Hero ── */

.hero {
  padding: 120px 0 var(--section-padding);
  text-align: center;
}

.hero-logo {
  max-width: 200px;
  margin: 0 auto 48px;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Problem section ── */

.problem {
  text-align: center;
}

.problem h3 {
  margin-bottom: 24px;
}

.problem-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ── Solution (IoS) ── */

.solution-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.solution-body {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.solution-body:last-child {
  margin-bottom: 0;
}

.solution-body a {
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.15s ease;
}

.solution-body a:hover {
  border-color: var(--color-text-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.pillar-card {
  padding: 32px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
}

.pillar-icon {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.pillar-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ── Who we serve ── */

.serve {
  background: var(--color-surface);
}

.serve-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.serve-intro p {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.serve-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.serve-item h3 {
  font-size: 17px;
  font-weight: 500;
}

/* ── Credentials strip ── */

.credentials {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0;
}

.credentials-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.credential {
  text-align: center;
}

.credential .number {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.credential .desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.credential-logo img {
  height: 32px;
  width: auto;
  opacity: 0.6;
}

/* ── Solutions page ── */

.solutions-hero {
  padding-top: 120px;
}

.solutions-hero h1 {
  margin-top: 16px;
  max-width: 800px;
}

.solutions-hero-sub {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.solutions-pillars {
  background: var(--color-surface);
}

.solutions-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.sol-card {
  padding: 40px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.sol-card h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.sol-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.sol-card-badge {
  margin-top: auto;
}

.sol-card-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sol-card-badge img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.sol-wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.sol-card-featured {
  grid-column: 1 / -1;
}

/* ASPIRE */

.solutions-aspire h2 {
  margin-top: 16px;
}

.solutions-aspire-body {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .solutions-hero {
    padding-top: 80px;
  }

  .solutions-pillars-grid {
    grid-template-columns: 1fr;
  }

  .sol-card-featured {
    grid-column: auto;
  }
}

/* ── About Us page ── */

.about-mission {
  padding-top: 120px;
}

.about-mission h1 {
  margin-top: 16px;
  max-width: 800px;
}

.about-body {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.about-structure {
  background: var(--color-surface);
}

.about-structure h2 {
  margin-top: 16px;
}

.entity-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.entity-table {
  width: 100%;
  border-collapse: collapse;
}

.entity-table th,
.entity-table td {
  text-align: left;
  padding: 16px 24px;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.entity-table th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.entity-table td {
  color: var(--color-text-primary);
}

.entity-table td:last-child {
  color: var(--color-text-secondary);
}

.about-footprint {
  margin-top: 48px;
}

.footprint-map {
  height: 420px;
  margin-top: 48px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.map-legend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.map-star,
.map-dot {
  background: none !important;
  border: none !important;
}

.map-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0 !important;
}

.map-label::before {
  display: none !important;
}

/* ── Insights page ── */

.insights-hero {
  padding-top: 120px;
}

.insights-hero h1 {
  margin-bottom: 16px;
}

.insights-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.insights-placeholder {
  margin-top: 48px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ── How we deliver value ── */

.about-value {
  background: var(--color-surface);
}

.about-value h2 {
  margin-top: 16px;
}

.about-value-grid {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
}

.about-value-logo {
  flex-shrink: 0;
}

.about-value-logo img {
  max-height: 60px;
  width: auto;
}

.about-value-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.15s ease;
}

.about-value-link:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .about-mission {
    padding-top: 80px;
  }

  .about-value-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Footer ── */

/* ── Main footer ── */

.site-footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--color-border);
}

.footer-brand {
  text-align: center;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand .caption {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--color-text-primary);
}

/* ── Extreme footer ── */

.footer-extreme {
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Partners page ── */

.partners-hero {
  padding-top: 120px;
}

.partners-hero h1 {
  margin-top: 16px;
  margin-bottom: 48px;
}

.partners-delivery {
  background: var(--color-surface);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.partner-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.partner-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.partner-desc {
  font-size: 13px;
}

/* ── Careers page ── */

.careers-hero {
  padding-top: 120px;
  text-align: center;
}

.careers-hero h1 {
  margin-bottom: 24px;
}

.careers-lead {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-primary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.careers-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.careers-form {
  background: var(--color-surface);
}

.careers-form-inner {
  max-width: 560px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-text-muted);
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-submit:hover {
  background: var(--color-accent-hover);
}

/* Role cards (for when roles are added) */

.careers-roles h2 {
  margin-bottom: 32px;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.role-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.role-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.role-card p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.role-apply {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.role-apply:hover {
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .partners-hero {
    padding-top: 80px;
  }

  .careers-hero {
    padding-top: 80px;
  }

}

/* ── Responsive ── */

@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile) 0;
  }

  .hero {
    padding: 80px 0 var(--section-padding-mobile);
  }

  .hero-logo {
    max-width: 160px;
    margin-bottom: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  .credentials-inner {
    gap: 40px;
  }
}

