/* ============================================
   SUSU LEND — Shared Stylesheet
   Applies to all marketing pages
   ============================================ */

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

:root {
  --c-dark:    #0D2B2A;
  --c-teal:    #00A99D;
  --c-mango:   #FFC71B;
  --c-orange:  #FF9A1B;
  --c-teal-bg: #E8F7F6;
  --c-teal-lt: #F0FAF9;
  --c-page:    #F4F4F2;
  --c-white:   #ffffff;
  --c-border:  #E4E4E0;
  --c-text:    #111827;
  --c-muted:   #6B7280;
  --max-w:     1100px;
  --pill:      100px;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; background: var(--c-dark); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAV — shared across all non-portal pages
   ============================================ */
.top-nav {
  background: var(--c-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; gap: 8px; }
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: white; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(139deg, var(--c-mango), var(--c-orange));
  color: var(--c-dark);
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Logo — always one line, never wraps at 360px */
.nav-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
}

/* Left cluster: hamburger + logo (mobile only; hamburger is hidden on desktop) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 2px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Dim overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
}
.nav-overlay.open { display: block; }

/* Slide-in drawer — from the left */
.nav-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 82vw;
  max-width: 320px;
  background: #F7F7F5;
  border-right: 1px solid rgba(0,0,0,0.06);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: #1A1A1A;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.nav-drawer-signin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-left: 3px solid #FFC71B;
  color: #00877E;
  font-size: 16px;
  font-weight: 500;
  margin-top: 56px;
  text-decoration: none;
}

.nav-drawer-links {
  list-style: none;
  flex: 1;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 8px;
}
.nav-drawer-links li { border-bottom: 1px solid rgba(0,0,0,0.08); }
.nav-drawer-links a {
  display: block;
  padding: 15px 24px;
  font-size: 16px;
  color: #1A1A1A;
  text-decoration: none;
}
.nav-drawer-links a:hover { color: #00A99D; }

.nav-drawer-btn {
  display: block;
  margin: 20px 16px 24px;
  padding: 14px 24px;
  background: #FFC71B;
  color: #1A1A1A;
  border-radius: 100px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

body.drawer-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none !important; }
}

/* ============================================
   FOOTER — shared
   ============================================ */
.site-footer {
  background: var(--c-dark);
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-copy {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: 20px;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { gap: 16px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.pill-btn:hover { transform: translateY(-2px); }

.pill-btn--mango {
  background: linear-gradient(139deg, var(--c-mango), var(--c-orange));
  color: var(--c-dark);
}

.pill-btn--teal {
  background: var(--c-teal);
  color: white;
}

/* ============================================
   BLOG POST PAGES — shared layout
   ============================================ */
.post-hero {
  background: var(--c-dark);
  padding: 72px 0 0;
}

.post-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--c-teal); }

.post-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(0,169,157,0.15);
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.post-hero .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 28px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

.post-hero-img {
  margin-top: 48px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  border-radius: 24px 24px 0 0;
}

.post-body {
  padding: 56px 0 80px;
  background: var(--c-white);
}

.content-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 30px);
  color: var(--c-dark);
  line-height: 1.2;
  margin: 48px 0 16px;
}

.post-body blockquote {
  border-left: 3px solid var(--c-teal);
  padding: 16px 24px;
  background: var(--c-teal-bg);
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}

.post-body blockquote p {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--c-dark);
  margin-bottom: 0;
}

.stat-box {
  background: var(--c-page);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat { text-align: center; flex: 1; min-width: 100px; }
.stat .num { font-family: var(--serif); font-size: 32px; color: var(--c-teal); display: block; }
.stat .label { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

.post-cta {
  background: var(--c-dark);
  padding: 56px 0;
  text-align: center;
}

.post-cta h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  color: white;
  margin-bottom: 12px;
}

.post-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

/* ============================================
   MOBILE — Global fixes
   ============================================ */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .content-wrap { padding: 0 16px; }
  .post-hero-inner { padding: 0 16px; }
  .post-hero { padding: 56px 0 0; }
  .post-hero h1 { font-size: 26px; }
  .post-hero .subtitle { font-size: 16px; }
  .post-hero-img { height: 160px; font-size: 60px; }
  .post-body { padding: 40px 0 60px; }
  .post-body p { font-size: 16px; }
  .pill-btn { padding: 12px 24px; font-size: 14px; }
  .stat-box { flex-direction: column; gap: 16px; }
}
