/* ============================================================
   ROGUE FUNDING — Stylesheet
   Black & Gold premium financial-services design system
   ============================================================ */

:root {
  /* Palette */
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --gold: #C9A227;
  --gold-bright: #E5B93B;
  --gold-soft: rgba(201, 162, 39, 0.15);
  --gold-line: rgba(201, 162, 39, 0.35);
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-1: #2A2A2A;
  --gray-2: #4A4A4A;
  --gray-3: #6E6E6E;
  --gray-4: #C9C9C9;
  --gray-5: #E8E6E1;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 1px 3px rgba(0,0,0,0.04), 0 14px 40px rgba(0,0,0,0.10);
  --header-h: 164px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black-3);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 110px 0; position: relative; }
.section-light { background: var(--off-white); color: var(--black-3); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(201,162,39,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.section > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow-dark { color: var(--gold); }

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}
.section-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--gray-3);
  max-width: 620px;
  margin: 0 auto;
}
.section-dark .section-lede { color: var(--gray-4); }

.gold { color: var(--gold); }
.link-gold { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.link-gold:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold); color: var(--black);
  box-shadow: 0 8px 22px -8px rgba(201, 162, 39, 0.65);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(229, 185, 59, 0.7); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.section-light .btn-outline { color: var(--black-3); border-color: var(--gray-4); }
.section-light .btn-outline:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: rgba(10, 10, 10, 0.96); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 140px; width: auto; display: block; }

.primary-nav .nav-list {
  display: flex; align-items: center; gap: 6px;
}
.primary-nav .nav-list a {
  color: rgba(255,255,255,0.78);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--transition), background-color var(--transition);
}
.primary-nav .nav-list a:hover { color: var(--gold); }
.primary-nav .nav-list .nav-cta { color: var(--black); margin-left: 12px; }
.primary-nav .nav-list .nav-cta:hover { color: var(--black); }

/* hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}

/* in-menu close button is mobile-only */
.menu-close { display: none; border: 0; padding: 0; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
@media (max-height: 820px) { .hero { min-height: auto; } }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,162,39,0.16), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(201,162,39,0.10), transparent 50%),
    linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 6vw, 96px);
  align-items: center;
  width: 100%;
}

/* ----- Hero copy column (left) ----- */
.hero-copy { max-width: 560px; }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.0vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-title .hero-line { display: block; }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--gray-4);
  margin-bottom: 14px;
  line-height: 1.5;
}
.hero-tag {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* CTAs only show on stacked (mobile/tablet) layouts where the form sits below
   the copy. On desktop the form is right next to the copy, so CTAs would just
   point to something already visible. */
.hero-ctas {
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-ctas .btn { flex: 0 1 auto; }
@media (max-width: 1024px) {
  .hero-ctas { display: flex; }
}

.hero-trust-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.hero-trust-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px;
  color: var(--gray-4);
}
.check-dot {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-soft);
  position: relative;
}
.check-dot::after {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translate(-50%, -65%) rotate(-45deg);
}

/* ----- Hero form column (right) ----- */
.hero-form-wrap { width: 100%; }
.hero-form-card {
  background: var(--white);
  color: var(--black-3);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.25);
  padding: 36px 38px 30px;
  width: 100%;
}
.hero-form-head { margin-bottom: 22px; }
.form-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero-form-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-form-sub {
  font-size: 14.5px;
  color: var(--gray-3);
}

.funding-form--hero { padding: 0; border: 0; box-shadow: none; margin-top: 0; background: transparent; }
.funding-form--hero .form-row { gap: 14px; margin-bottom: 14px; }
.funding-form--hero .form-field { margin-bottom: 14px; }
.funding-form--hero textarea { min-height: 88px; }
.funding-form--hero input,
.funding-form--hero textarea,
.funding-form--hero select { padding: 11px 14px; font-size: 15px; }
.funding-form--hero label { font-size: 13px; margin-bottom: 6px; }

.form-fineprint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--gray-3);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 100px;
}
.about-copy p { font-size: 17px; color: var(--gray-2); margin-bottom: 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--black); font-weight: 700; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-5);
  position: relative;
}
.about-stats::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 3px 3px 0 0;
}
.stat {
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--gray-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  padding: 44px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-5);
  border-left: 4px solid var(--gold);
}
.founder-mark {
  width: 132px; height: 132px;
  background: var(--black);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.founder-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.founder-copy p { color: var(--gray-2); margin-bottom: 12px; }
.founder-copy p:last-child { margin-bottom: 0; }
.founder-copy strong { color: var(--black); font-weight: 700; }


/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--black-2);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  background: #131313;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--white);
}
.service-card p { color: var(--gray-4); font-size: 15.5px; line-height: 1.6; }

.services-note {
  text-align: center;
  margin-top: 56px;
  font-size: 16px;
  color: var(--gray-4);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-5);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-line);
}
.why-icon {
  width: 56px; height: 56px;
  background: var(--black);
  color: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.why-icon svg { width: 30px; height: 30px; }
.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--black);
}
.why-card p { color: var(--gray-2); font-size: 15.5px; line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), background-color var(--transition);
}
.faq-item[open] { border-color: var(--gold-line); background: #131313; }

.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }

.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 26px 24px;
  color: var(--gray-4);
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.section-contact { padding-bottom: 110px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--gray-5);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-card-hover);
}
.contact-card-icon {
  width: 52px; height: 52px;
  background: var(--black);
  color: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 26px; height: 26px; }
.contact-card-body { display: flex; flex-direction: column; min-width: 0; }
.contact-card-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 4px;
}
.contact-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-card:hover .contact-card-value { color: var(--gold); }

.contact-cta-row { text-align: center; margin-top: 8px; }

.funding-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-5);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
  margin-top: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field { margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
  letter-spacing: 0.01em;
}
.req { color: var(--gold); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-5);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--black-3);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23C9A227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.form-field input.invalid,
.form-field textarea.invalid,
.form-field select.invalid {
  border-color: #C0392B;
  background: #FFF7F6;
}

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.funding-form .btn-block { margin-top: 8px; }

.form-status {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  min-height: 22px;
}
.form-status.success { color: #1F7A3F; }
.form-status.error { color: #C0392B; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); color: var(--gray-4); padding-top: 72px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo { height: 160px; width: auto; margin-bottom: 18px; }
.footer-tag { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.footer-desc { font-size: 14.5px; color: var(--gray-4); line-height: 1.6; max-width: 360px; }

.footer-links h4,
.footer-contact h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer-links ul,
.footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-contact a { color: var(--gray-4); font-size: 15px; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--gray-3);
  flex-wrap: wrap; gap: 12px;
}
.built-by a { color: var(--gold); font-weight: 500; }
.built-by a:hover { color: var(--gold-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Lock body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* ----- Tablet (≤1024): hero stacks copy-first, tighter padding ----- */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 52px; }

  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: none; }
  .hero-form-card { max-width: 640px; margin-left: auto; margin-right: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* ----- Mobile (≤768): compact header, scroll-shrink, polished hero ----- */
@media (max-width: 768px) {
  :root { --header-h: 80px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .nav-inner { padding: 10px 18px; transition: height 220ms ease, padding 220ms ease; }
  .container { padding: 0 18px; }

  .brand-logo { height: 60px; transition: height 220ms ease; }
  .footer-logo { height: 88px; }

  /* Force solid header bg on mobile so the menu can never seem-through */
  .site-header { background: var(--black); }

  /* Header shrinks slightly on scroll so it does not dominate while reading */
  .site-header.scrolled .nav-inner { height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .site-header.scrolled .brand-logo { height: 48px; }

  /* Lift brand + hamburger above the menu's z-index 90 inside the header
     stacking context, so the X-toggle stays visible when the menu opens */
  .brand,
  .hamburger { position: relative; z-index: 100; }

  .hamburger { display: flex; }

  /* ----- Modern full-screen mobile menu -----
     Bulletproof: explicit width/height + opacity fade. No transform-based
     slide because that was breaking on iOS Safari for some users. Menu
     covers the full viewport when open, fades to invisible when closed.
     Header (z-index 100) stays on top so the logo and the X-toggle remain
     tappable. */
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 90;
    background: #0A0A0A;
    background-image:
      radial-gradient(circle at 18% 22%, rgba(201,162,39,0.14), transparent 45%),
      radial-gradient(circle at 82% 82%, rgba(201,162,39,0.10), transparent 50%);
    padding: calc(var(--header-h) + 16px) 24px 32px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 0s 260ms;
  }
  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 260ms ease, visibility 0s 0s;
  }

  /* In-menu close button (top-right of the menu panel) — gives the user
     a clear, unmissable X regardless of the header hamburger transform */
  .menu-close {
    display: flex;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    z-index: 5;
    transition: background 200ms ease;
  }
  .menu-close:hover,
  .menu-close:focus { background: rgba(201,162,39,0.18); }
  .menu-close span {
    position: absolute;
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
  }
  .menu-close span:first-child { transform: rotate(45deg); }
  .menu-close span:last-child { transform: rotate(-45deg); }

  .primary-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }

  .primary-nav .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .primary-nav .nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    border-radius: 0;
    background: transparent;
    transition: color 220ms ease, padding-left 220ms ease;
  }
  .primary-nav .nav-list a::after {
    content: "";
    width: 12px; height: 12px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.55;
    transition: opacity 220ms ease, transform 220ms ease, margin-right 220ms ease;
    flex-shrink: 0;
    margin-right: 4px;
  }
  .primary-nav .nav-list a:hover,
  .primary-nav .nav-list a:focus,
  .primary-nav .nav-list a:active {
    color: var(--gold);
    padding-left: 12px;
    background: transparent;
  }
  .primary-nav .nav-list a:hover::after,
  .primary-nav .nav-list a:focus::after,
  .primary-nav .nav-list a:active::after {
    opacity: 1;
    transform: rotate(45deg) translate(2px, -2px);
    margin-right: 0;
  }

  /* Gold CTA stands apart at the bottom of the list */
  .primary-nav .nav-list li:last-child {
    border-bottom: 0;
    margin-top: 24px;
  }
  .primary-nav .nav-list .nav-cta {
    background: var(--gold);
    color: #0A0A0A;
    border-radius: 10px;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 12px 28px -10px rgba(201, 162, 39, 0.55);
  }
  .primary-nav .nav-list .nav-cta::after { display: none; }
  .primary-nav .nav-list .nav-cta:hover,
  .primary-nav .nav-list .nav-cta:focus {
    background: var(--gold-bright);
    color: #0A0A0A;
    padding-left: 24px;
  }

  .eyebrow { letter-spacing: 0.14em; font-size: 12px; }
  .hero-copy .eyebrow { display: none; }

  .hero-title { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 12px; }
  .hero-tag { margin-bottom: 22px; }

  /* CTAs full-width stacked on mobile, primary first */
  .hero-ctas { flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .hero-ctas .btn { width: 100%; }

  /* Trust list more compact on mobile */
  .hero-trust-list { margin-bottom: 28px; gap: 8px; }
  .hero-trust-list li { font-size: 14.5px; }

  .hero-form-card { padding: 24px 20px 22px; }
  .hero-form-title { font-size: 21px; }
  .hero-form-head { margin-bottom: 18px; }

  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form-row .form-field { margin-bottom: 14px; }
  .funding-form { padding: 28px 22px; }
  .funding-form--hero .form-row { gap: 0; margin-bottom: 0; }
  .funding-form--hero .form-row .form-field { margin-bottom: 14px; }
  .funding-form--hero .form-field { margin-bottom: 14px; }

  .founder { grid-template-columns: 1fr; gap: 24px; padding: 28px; text-align: left; }
  .founder-mark { width: 96px; height: 96px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ----- Phone (≤480): tighter everything ----- */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 8px 16px; }

  .brand-logo { height: 48px; }
  .footer-logo { height: 76px; }

  .site-header.scrolled .nav-inner { height: 56px; }
  .site-header.scrolled .brand-logo { height: 42px; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }

  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
  .hero-inner { gap: 32px; }
  .hero-form-card { padding: 22px 18px 18px; }
  .hero-form-title { font-size: 19px; }

  .funding-form--hero label { font-size: 12.5px; }
  .funding-form--hero input,
  .funding-form--hero textarea,
  .funding-form--hero select { padding: 10px 12px; font-size: 15px; }

  .about-stats { grid-template-columns: 1fr 1fr; padding: 18px; gap: 10px; }
  .stat { padding: 14px 6px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11px; }

  .founder { padding: 22px; }

  .service-card,
  .why-card { padding: 28px 22px; }

  .faq-item summary { padding: 16px 18px; font-size: 15.5px; }
  .faq-body { padding: 0 18px 20px; font-size: 15px; }

  .contact-card { padding: 18px 18px; gap: 14px; }
  .contact-card-icon { width: 44px; height: 44px; }
  .contact-card-icon svg { width: 22px; height: 22px; }
  .contact-card-label { font-size: 10.5px; }
  .contact-card-value { font-size: 15.5px; }

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

/* ----- Tiny phones (≤360): make sure nothing breaks ----- */
@media (max-width: 360px) {
  .hero-title { font-size: 30px; }
  .section-title { font-size: 26px; }
  .about-stats { grid-template-columns: 1fr; }
  .nav-inner { padding: 8px 14px; }
  .brand-logo { height: 44px; }
  .site-header.scrolled .brand-logo { height: 38px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .funding-form, .hamburger { display: none; }
  body { background: white; color: black; }
  .section { padding: 30px 0; }
}
