/* ============================================================
   CBD Merchant Group — Premium Fintech Stylesheet (Option B2)
   Stronger gradients, deeper blues, elevated cards, modern UI
   ============================================================ */

:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;

  /* Premium fintech blues */
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: rgba(29, 78, 216, 0.08);

  --accent: #22c55e;

  --text-main: #0f172a;
  --text-muted: #6b7280;

  --border: #dbe7ff;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 55px rgba(29, 78, 216, 0.15);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition: 0.2s ease-out;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Reset + Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   SECTION SYSTEM — Alternating Color Blocks (Premium Fintech)
   ============================================================ */

.section {
  padding: 4.75rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: #f4f7ff; /* soft fintech tint */
}

.section-alt {
  background: #eaf1ff; /* stronger tint */
}

/* Section separators */
.section::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #dbe7ff;
  margin-top: 3rem;
}

/* Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e3a8a; /* deep fintech indigo */
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #dbe7ff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   HERO — Stronger Gradient + Premium Layout
   ============================================================ */

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #dce8ff 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e5edff;
  border: 1px solid #d1ddff;
}

/* Hero Card */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid #dbe7ff;
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.hero-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

/* ============================================================
   GRID + CARDS — Premium Fintech Elevation
   ============================================================ */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  border: 1px solid #dbe7ff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #1e3a8a;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ============================================================
   BUTTONS — Stronger Gradient + Premium Feel
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: #cbd5f5;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.4);
}

.btn-full {
  width: 100%;
}
/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-details p {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  border: 1px solid #dbe7ff;
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #cdd8f7;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.25);
  background: #f9fbff;
}

.form-group textarea {
  resize: vertical;
}

.form-section-title {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: #1e3a8a;
}

.form-consent {
  margin: 1.5rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-consent input {
  margin-right: 0.4rem;
}

.small-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   FORM PAGE
   ============================================================ */

.form-page .section {
  padding-top: 4.25rem;
}

.form-container {
  max-width: 820px;
}

/* ============================================================
   SUCCESS CARD
   ============================================================ */

.success-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #dbe7ff;
  box-shadow: var(--shadow-soft);
}

.success-card h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   FOOTER — Premium Gradient Finish
   ============================================================ */

.site-footer {
  border-top: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 0;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo-img {
  height: 34px;
  width: auto;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 360px;
}

.footer-meta p {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid #dbe7ff;
  padding: 1rem 0 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 720px;
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* ============================================================
   iPHONE 16 PRO MAX — FINAL TUNING
   ============================================================ */

@supports (-webkit-touch-callout: none) {
  @media (max-width: 640px) {

    body {
      -webkit-font-smoothing: antialiased;
      letter-spacing: -0.25px;
    }

    .section {
      padding: 4.25rem 0;
    }

    .hero {
      padding: 4rem 0 3rem;
    }

    .hero-inner {
      gap: 2.25rem;
    }

    .hero-copy h1 {
      font-size: 1.82rem;
      line-height: 1.22;
      letter-spacing: -0.45px;
      margin-bottom: 0.85rem;
    }

    .hero-copy p {
      font-size: 1rem;
      line-height: 1.58;
      margin-bottom: 1.35rem;
    }

    .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 0.9rem;
      margin-bottom: 1.25rem;
    }

    .hero-actions .btn {
      width: 100%;
      text-align: center;
      padding: 0.85rem 1.4rem;
      font-size: 0.95rem;
      letter-spacing: -0.18px;
    }

    .hero-card {
      padding: 1.6rem 1.4rem;
    }

    .grid-2,
    .grid-3 {
      grid-template-columns: 1fr;
      gap: 2.25rem;
    }

    .card {
      padding: 1.7rem 1.45rem;
    }

    .contact-grid {
      grid-template-columns: 1fr;
      gap: 2.75rem;
    }

    .footer-inner {
      flex-direction: column;
      gap: 1.35rem;
    }

    .form-group label {
      font-size: 0.88rem;
      letter-spacing: -0.12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      font-size: 0.98rem;
      letter-spacing: -0.1px;
      padding: 0.65rem 0.75rem;
    }
  }
}
/* ============================================================
   SEO + ACCESSIBILITY + PERFORMANCE ENHANCEMENTS
   These styles improve readability, accessibility, and UX
   without altering your existing design system.
   ============================================================ */

/* Improve text rendering for SEO readability */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure images never distort */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve focus visibility for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #4da3ff;
  outline-offset: 3px;
}

/* Improve tap targets on mobile */
button,
.btn,
input[type="submit"] {
  min-height: 48px;
}

/* Improve form readability */
.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-size: 16px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #d5d5d5;
  width: 100%;
  background: #fff;
}

/* Improve form spacing */
.form-section-title {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
}

/* Improve small muted text */
.small-muted {
  font-size: 14px;
  opacity: 0.75;
}

/* Improve card readability */
.card,
.success-card {
  line-height: 1.6;
}

/* Improve button accessibility */
.btn,
.btn-full,
.btn-small {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Improve footer readability */
.site-footer {
  font-size: 15px;
  line-height: 1.5;
}

/* Improve spacing for SEO readability */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Mobile spacing improvements */
@media (max-width: 768px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 17px;
  }

  .btn,
  .btn-full {
    font-size: 17px;
    padding: 14px 20px;
  }
}

/* Improve link visibility */
a {
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Improve grid spacing for SEO readability */
.grid {
  gap: 30px;
}