/* ============================================
   RED ROCK FUNDERS — ISO Website
   TCR-Compliant Business Funding Site
   ============================================ */

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

:root {
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-700); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--slate-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--slate-600); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--slate-50); }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.5px;
}
.nav__logo svg { width: 36px; height: 36px; }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a { color: var(--slate-600); font-size: 0.925rem; font-weight: 500; }
.nav__links a:hover { color: var(--slate-900); }
.nav__cta {
  display: inline-flex; align-items: center; padding: 10px 24px;
  background: var(--red-600); color: var(--white) !important;
  font-weight: 600; font-size: 0.925rem; border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.nav__cta:hover { background: var(--red-700); color: var(--white) !important; transform: translateY(-1px); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--slate-800); margin: 5px 0; transition: 0.3s; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  padding-top: 72px; overflow: hidden; background: var(--slate-900);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 50%, rgba(185,28,28,0.3) 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 60px 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
  color: var(--slate-300); font-size: 0.85rem; font-weight: 500; margin-bottom: 24px;
}
.hero__badge span { width: 6px; height: 6px; background: var(--red-500); border-radius: 50%; }
.hero h1 { color: var(--white); margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 em { color: var(--red-500); font-style: normal; }
.hero p { color: var(--slate-300); font-size: 1.15rem; margin-bottom: 36px; max-width: 540px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.2s; text-align: center; justify-content: center;
}
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.4); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.05); }
.btn--dark { background: var(--slate-900); color: var(--white); }
.btn--dark:hover { background: var(--slate-800); color: var(--white); transform: translateY(-1px); }

/* --- Stats --- */
.stats { background: var(--white); border-bottom: 1px solid var(--slate-200); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { text-align: center; padding: 40px 20px; border-right: 1px solid var(--slate-200); }
.stats__item:last-child { border-right: none; }
.stats__number { font-size: 2.25rem; font-weight: 800; color: var(--red-600); letter-spacing: -1px; }
.stats__label { font-size: 0.9rem; color: var(--slate-500); margin-top: 4px; }

/* --- Features --- */
.features__header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.features__header p { margin-top: 12px; font-size: 1.05rem; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 36px 28px; transition: all 0.3s;
}
.feature-card:hover { border-color: #fecaca; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-card__icon {
  width: 52px; height: 52px; background: var(--red-50);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; stroke: var(--red-600); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; line-height: 1.6; }

/* --- Steps --- */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step__number {
  width: 64px; height: 64px; background: var(--red-600); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }

/* --- CTA Section --- */
.cta-section { position: relative; padding: 100px 0; background: var(--slate-900); overflow: hidden; }
.cta-section__bg { position: absolute; inset: 0; }
.cta-section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.cta-section__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(185,28,28,0.5)); }
.cta-section__content { position: relative; z-index: 2; text-align: center; max-width: 600px; margin: 0 auto; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: var(--slate-300); font-size: 1.1rem; margin-bottom: 32px; }

/* --- Footer --- */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; color: var(--slate-400); }
.footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--slate-400); font-size: 0.9rem; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { color: var(--slate-400); font-size: 0.85rem; }
.footer__bottom-links a:hover { color: var(--white); }

/* --- Page Header (inner pages) --- */
.page-header { padding: 140px 0 60px; background: var(--slate-900); text-align: center; }
.page-header h1 { color: var(--white); }
.page-header p { color: var(--slate-300); font-size: 1.1rem; margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* --- Form --- */
.form-section { padding: 60px 0 80px; }
.form-wrapper {
  max-width: 780px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-lg); position: relative; top: -40px;
}
.form-wrapper h2 { margin-bottom: 8px; }
.form-wrapper > p { margin-bottom: 36px; font-size: 0.95rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; }
.form__group--full { grid-column: 1 / -1; }
.form__group label { font-size: 0.875rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form__group label .optional { font-weight: 400; color: var(--slate-400); font-size: 0.8rem; }
.form__group input, .form__group select, .form__group textarea {
  padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius);
  font-size: 0.95rem; font-family: var(--font-main); color: var(--slate-800);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form__group textarea { resize: vertical; min-height: 100px; }

.form__consent { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--slate-200); }
.form__checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.form__checkbox input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red-600); flex-shrink: 0; }
.form__checkbox label { font-size: 0.85rem; color: var(--slate-600); line-height: 1.5; }
.form__checkbox label a { text-decoration: underline; }
.form__submit { margin-top: 28px; }
.form__submit .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
.form__note { text-align: center; font-size: 0.8rem; color: var(--slate-400); margin-top: 16px; }

/* --- Legal Pages --- */
.legal-content { max-width: 780px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-content h2 { margin-top: 40px; margin-bottom: 12px; font-size: 1.35rem; }
.legal-content h3 { margin-top: 28px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.7; }
.legal-content ul { margin: 12px 0 20px 24px; color: var(--slate-600); font-size: 0.95rem; }
.legal-content ul li { margin-bottom: 8px; line-height: 1.6; }
.legal-content .effective-date { color: var(--slate-400); font-size: 0.9rem; font-style: italic; }

/* --- Contact --- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact__info h3 { margin-bottom: 16px; }
.contact__item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact__item-icon {
  width: 44px; height: 44px; background: var(--red-50); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact__item-icon svg { width: 20px; height: 20px; stroke: var(--red-600); }
.contact__item-text strong { display: block; font-size: 0.9rem; color: var(--slate-800); }
.contact__item-text span { font-size: 0.9rem; color: var(--slate-500); }

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-lg); gap: 16px;
  }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .features__grid, .steps__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form__grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 32px 24px; margin: 0 16px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 75vh; }
  .hero__actions { flex-direction: column; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
