/* =========================================================
   MAYIM LLC — Design System
   Brand: Concept 5 — Stacked Bars + Royal Blue
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --brand-primary: #1F4D8F;        /* Royal blue — Concept 5 */
  --brand-deep: #0F2645;           /* Deep navy for footer/headers */
  --brand-darkest: #0A1A30;        /* Almost-black navy */
  --brand-tint: #E8EFF9;           /* Light blue tint */
  --brand-tint-hover: #D6E2F2;
  --brand-accent: #F5C572;         /* Warm gold for accent moments */

  /* Neutrals */
  --bg-cream: #FAF8F3;             /* Warm off-white background */
  --bg-white: #FFFFFF;
  --bg-soft: #F4F7FC;              /* Cool surface */
  --border-soft: #E5E7EC;
  --border-mid: #C9D1DD;

  /* Text */
  --text-primary: #0F2645;
  --text-secondary: #4A5A6E;
  --text-muted: #8FA3BC;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B8C5D4;

  /* Typography */
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Container */
  --container-max: 1200px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand-deep);
}

/* ===== Typography ===== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}

h3 {
  font-size: clamp(20px, 2vw, 24px);
}

h4 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== Layout ===== */

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

.section {
  padding: var(--space-9) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

/* ===== Header / Navigation ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 500;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-links a:not(.btn):hover {
  color: var(--brand-primary);
}

.nav-links a.active {
  color: var(--brand-primary);
}

.nav-links a.btn-primary {
  color: white;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}

/* ===== Hero ===== */

.hero {
  padding: var(--space-9) 0 var(--space-8);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31,77,143,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero .lead {
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero side card */
.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 0.5px solid var(--border-soft);
  box-shadow: 0 4px 24px rgba(15, 38, 69, 0.06);
}

.hero-card h4 {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-4);
}

.benefit-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
}

.benefit-row + .benefit-row {
  border-top: 0.5px solid var(--border-soft);
}

.benefit-num {
  width: 26px;
  height: 26px;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
}

.benefit-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2px;
}

.benefit-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Hero Split ===== */

.hero-split-outer {
  padding: 32px 24px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 480px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.hero-split-content {
  background: #0F2645;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: white;
}

.hero-editorial-label {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #F5C572;
  margin-bottom: 20px;
}

.hero-eyebrow-line {
  display: block;
  width: 24px;
  height: 1px;
  background: #F5C572;
  flex-shrink: 0;
}

.hero-split-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 18px;
}

.hero-split-h1 em {
  color: #F5C572;
  font-style: italic;
}

.hero-split-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 380px;
  margin-bottom: 28px;
}

.hero-split-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #F5C572;
  color: #0F2645;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all var(--t-fast);
}

.btn-hero-primary:hover {
  background: #f0b84e;
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all var(--t-fast);
}

.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.6);
}

.hero-split-photo {
  background: #F5C572;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-bars {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-bar {
  height: 18px;
  background: #0F2645;
  border-radius: 9px;
}

/* ===== Section header ===== */

.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin-bottom: var(--space-3);
}

/* ===== Services grid ===== */

.services-bg {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-soft);
  transition: all var(--t-base);
}

.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 38, 69, 0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 22px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ===== Integrations strip ===== */

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.integration-tile {
  border: 0.5px solid var(--border-soft);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.integration-tile:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
  color: var(--brand-primary);
}

.integration-logo-wide {
  height: 44px;
  width: auto;
}

.integration-logo-shipstation {
  height: 44px;
  width: auto;
}

/* ===== Stats band ===== */

.stats-band {
  background: var(--bg-white);
  border-top: 0.5px solid var(--border-soft);
  border-bottom: 0.5px solid var(--border-soft);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== CTA Section ===== */

.cta-section {
  background: var(--brand-deep);
  color: white;
  padding: var(--space-8) 0;
}

.cta-section h2 {
  color: white;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.cta-left .lead {
  color: var(--text-on-dark-muted);
}

.quote-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
}

.quote-card label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.quote-card input,
.quote-card textarea,
.quote-card select {
  width: 100%;
  padding: 11px 14px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-soft);
  transition: all var(--t-fast);
  margin-bottom: var(--space-4);
}

.quote-card input:focus,
.quote-card textarea:focus,
.quote-card select:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(31, 77, 143, 0.1);
}

.quote-card textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--brand-darkest);
  color: var(--text-on-dark-muted);
  padding: var(--space-8) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-body);
  color: white;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Page-specific: inner page hero ===== */

.page-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 0.5px solid var(--border-soft);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.page-hero .lead {
  max-width: 640px;
}

/* ===== Service detail rows ===== */

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-8) 0;
  border-bottom: 0.5px solid var(--border-soft);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.reverse .detail-text {
  order: 2;
}

.detail-row.reverse .detail-visual {
  order: 1;
}

.detail-text h3 {
  margin-bottom: var(--space-4);
  font-size: 28px;
}

.detail-text ul {
  list-style: none;
  margin-top: var(--space-5);
}

.detail-text li {
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
}

.detail-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 1px;
  background: var(--brand-primary);
}

.detail-visual {
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Quote page full form ===== */

.quote-page {
  padding: var(--space-7) 0 var(--space-9);
  background: var(--bg-soft);
  min-height: 60vh;
}

.quote-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border-soft);
}

.quote-wrapper h2 {
  margin-bottom: var(--space-3);
}

.quote-wrapper .lead {
  margin-bottom: var(--space-7);
  font-size: 16px;
}

.form-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 0.5px solid var(--border-soft);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--space-4);
  color: var(--brand-primary);
}

.form-section label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: white;
  margin-bottom: var(--space-4);
  transition: all var(--t-fast);
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 77, 143, 0.1);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: var(--space-4);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--t-fast);
}

.checkbox-row:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

/* ===== Testimonial ===== */

.testimonial {
  background: var(--bg-cream);
  padding: var(--space-8) 0;
}

.testimonial-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  font-weight: 400;
}

.testimonial-attribution {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .hero-split-outer {
    padding: 16px;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-split-content {
    padding: 40px 32px;
  }
  .hero-split-photo {
    min-height: 200px;
  }
  .hero-bar {
    height: 12px;
  }
  .hero-bars {
    gap: 12px;
  }
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .cta-grid,
  .detail-row,
  .detail-row.reverse {
    grid-template-columns: 1fr;
  }
  .detail-row.reverse .detail-text { order: 1; }
  .detail-row.reverse .detail-visual { order: 2; }
  .services-grid,
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-5);
    border-bottom: 0.5px solid var(--border-soft);
    gap: var(--space-4);
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .services-grid-4,
  .services-grid,
  .integrations-grid,
  .checkbox-grid,
  .form-row,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--brand-primary);
}
