/* ══════════════════════════════════════════════════════════════
   Finhanced Inc. — Miami Trade Gateway Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ── OVERVIEW ── */
.overview {
  padding: 100px 0;
  background: var(--white);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.overview-visual { position: relative; }
.overview-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.overview-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
}
.overview-card-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(125,219,192,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.overview-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.overview-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}
.overview-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  opacity: 0.2;
}
.overview-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.overview-text p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ── TRADE CORRIDOR ── */
.corridors {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.corridors::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(125,219,192,0.05), transparent);
  pointer-events: none;
}
.corridors-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.corridor-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.corridor-node {
  background: var(--navy-light);
  border: 1px solid rgba(125,219,192,0.2);
  border-radius: 12px;
  padding: 28px 36px;
  text-align: center;
  min-width: 180px;
  position: relative;
}
.corridor-node-flag {
  font-size: 2.4rem;
  margin-bottom: 8px;
  line-height: 1;
}
.corridor-node-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
}
.corridor-node-role {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.corridor-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  gap: 4px;
  min-width: 100px;
}
.corridor-arrow-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold), rgba(125,219,192,0.3));
  position: relative;
}
.corridor-arrow-line::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -5px;
  border: 6px solid transparent;
  border-left-color: var(--gold);
}
.corridor-arrow-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.corridor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.corridor-card {
  background: var(--navy-light);
  border: 1px solid rgba(125,219,192,0.15);
  border-radius: 10px;
  padding: 32px;
  transition: all 0.35s;
}
.corridor-card:hover {
  border-color: rgba(125,219,192,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.corridor-card-route {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.corridor-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.corridor-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── COMMODITIES ── */
.commodities {
  padding: 100px 0;
  background: var(--gray-100);
}
.commodities-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.commodities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.commodity-card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;
}
.commodity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.commodity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26,26,26,0.1);
  border-color: transparent;
}
.commodity-card:hover::before { height: 100%; }
.commodity-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.commodity-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.commodity-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.commodity-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 4px;
}
.commodity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.commodity-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(125,219,192,0.35);
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 0.2s, color 0.2s;
}
.commodity-links a:hover {
  background: var(--gold);
  color: #1a1a1a;
}

/* ── BUSINESS MODEL / REVENUE ── */
.model {
  padding: 100px 0;
  background: var(--white);
}
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.model-streams {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stream-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--gray-100);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  transition: all 0.3s;
}
.stream-item:hover {
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(125,219,192,0.1);
}
.stream-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  min-width: 36px;
}
.stream-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.stream-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.projection-table {
  width: 100%;
  border-collapse: collapse;
}
.projection-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.projection-table th:first-child { border-radius: 8px 0 0 0; }
.projection-table th:last-child { border-radius: 0 8px 0 0; }
.projection-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--text-body);
}
.projection-table tr:nth-child(even) td { background: var(--gray-100); }
.projection-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--text-dark);
}
.projection-highlight {
  color: var(--gold);
  font-weight: 700;
}

/* ── COMPLIANCE (gateway version) ── */
.compliance {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.compliance::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,219,192,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.compliance-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.compliance-card {
  background: var(--navy-light);
  border: 1px solid rgba(125,219,192,0.15);
  border-radius: 10px;
  padding: 36px 28px;
  transition: all 0.35s;
}
.compliance-card:hover {
  border-color: rgba(125,219,192,0.4);
  transform: translateY(-4px);
}
.compliance-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.compliance-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.compliance-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}
.compliance-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── PROCESS / TIMELINE (gateway version) ── */
.process-section {
  padding: 100px 0;
  background: var(--gray-100);
}
.process-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(125,219,192,0.2));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  position: relative;
}
.step-circle.active {
  background: var(--gold);
  color: var(--navy);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── CTA BAND ── */
.cta-band {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,219,192,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 20px;
}
.cta-band p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ── LIGHT MODE ── */
/* Corridors section has dark bg — keep dark */
[data-theme="light"] .corridors { background: #1a1a1a; }
[data-theme="light"] .corridors .section-title { color: #ffffff; }
[data-theme="light"] .compliance .section-title { color: #ffffff; }
[data-theme="light"] .compliance-section { background: #1a1a1a; }
[data-theme="light"] .compliance { background: #1a1a1a; }
[data-theme="light"] .corridor-card { background: #2d2d2d; }
[data-theme="light"] .corridor-card h3 { color: #ffffff; }
[data-theme="light"] .corridor-card p { color: rgba(255,255,255,0.55); }
[data-theme="light"] .compliance-card { background: #2d2d2d; }
[data-theme="light"] .compliance-card h3 { color: #ffffff; }
[data-theme="light"] .compliance-card p { color: rgba(255,255,255,0.55); }
[data-theme="light"] .overview-card { background: #1a1a1a; }
[data-theme="light"] .projection-table th { background: #1a1a1a; color: #ffffff; }
[data-theme="light"] .cta-band h2 { color: var(--text-dark); }
[data-theme="light"] .cta-band p { color: var(--text-body); }
[data-theme="light"] .commodities { background: #f0f7f4; }
[data-theme="light"] .commodity-card { background: #fff; border-color: #dce4e1; }
[data-theme="light"] .gateway-hero p { color: var(--text-body); }

/* ── GATEWAY RESPONSIVE ── */
@media (max-width: 1280px) {
  .commodities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .commodities-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .overview-grid,
  .model-grid { grid-template-columns: 1fr; gap: 40px; }
  .corridor-cards,
  .compliance-grid,
  .commodities-grid { grid-template-columns: 1fr; }
  .corridor-flow { flex-direction: column; gap: 16px; }
  .corridor-arrow { transform: rotate(90deg); }
  .process-steps { grid-template-columns: 1fr; }
}
