/* ============================================================
   Integrated AI Partners — shared design system
   Same visual identity as the original site: Cormorant Garamond +
   DM Sans, amber #EE8E1E / charcoal #1F1F1F palette.
   ============================================================ */

:root {
  --amber: #EE8E1E;
  --amber-light: #F5A94A;
  --amber-dim: rgba(238,142,30,0.1);
  --charcoal: #1F1F1F;
  --charcoal-mid: #2A2A2A;
  --charcoal-light: #353535;
  --off-white: #F5F0E8;
  --cream: #FAF6EE;
  --mid-gray: #888;
  --light-gray: #C0BAB0;
  --text-body: #3D3D3D;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text-body);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(31,31,31,0.1);
  padding: 1.25rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

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

.nav-links a {
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }

.nav-cta {
  background: var(--charcoal);
  color: var(--off-white) !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber) !important; color: var(--charcoal) !important; }

.nav-cta-secondary {
  border: 1px solid rgba(31,31,31,0.25) !important;
  color: var(--text-body) !important;
  padding: 0.6rem 1.3rem;
  font-size: 0.76rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}
.nav-cta-secondary:hover { border-color: var(--amber) !important; color: var(--amber) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.25s; }

.mobile-menu {
  display: none; flex-direction: column; background: var(--cream);
  border-top: 1px solid rgba(31,31,31,0.1); padding: 1.5rem 1.5rem 2rem; gap: 1.1rem;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-body); font-size: 0.95rem; letter-spacing: 0.03em; text-decoration: none; }
.mobile-menu a.nav-cta, .mobile-menu a.nav-cta-secondary { text-align: center; padding: 0.85rem 1.25rem; margin-top: 0.25rem; }

/* ── PAGE HERO (subpages — simpler than homepage hero) ──────── */
.page-hero {
  padding: 9rem 3.5rem 4.5rem;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero h1 { color: var(--off-white); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.page-hero h1 em { color: var(--amber); font-style: italic; }
.page-hero-body { color: var(--light-gray); font-size: 1rem; max-width: 640px; line-height: 1.8; margin-top: 1.25rem; }
.page-hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(238,142,30,0.03) 0px, rgba(238,142,30,0.03) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

/* ── HOME HERO ───────────────────────────────────────────────── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-top: 5rem; }
.hero-left { padding: 5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.hero-right {
  height: 100vh; background: var(--charcoal); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-right-inner { padding: 3rem; position: relative; z-index: 1; }
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(238,142,30,0.03) 0px, rgba(238,142,30,0.03) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.hero-amber-accent { position: absolute; bottom: 0; left: 0; width: 4px; height: 40%; background: var(--amber); }

.eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0; animation: fadeIn 0.7s ease forwards 0.2s;
}
.eyebrow::after { content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--amber); opacity: 0.5; }

h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.7rem, 4.6vw, 5rem); font-weight: 400;
  line-height: 1.08; color: var(--charcoal); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeIn 0.8s ease forwards 0.4s;
}
h1 em { font-style: italic; color: var(--amber); }

.hero-body {
  font-size: 1rem; color: #666; max-width: 500px; line-height: 1.75; margin-bottom: 2rem;
  opacity: 0; animation: fadeIn 0.8s ease forwards 0.6s;
}
.hero-body strong { color: var(--charcoal); font-weight: 500; }

.hero-actions {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 0.8s ease forwards 0.8s;
}

.referral-line {
  font-size: 0.85rem; color: #777; margin-top: 1.75rem; max-width: 480px; line-height: 1.7;
  opacity: 0; animation: fadeIn 0.8s ease forwards 0.9s;
}
.referral-line a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.btn-dark {
  background: var(--charcoal); color: var(--off-white); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 1rem 2rem; text-decoration: none;
  display: inline-block; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: var(--amber); color: var(--charcoal); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--charcoal); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 1rem 2rem; text-decoration: none;
  display: inline-block; border: 1.5px solid rgba(31,31,31,0.3); transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-text {
  color: var(--text-body); font-size: 0.85rem; text-decoration: none;
  border-bottom: 1px solid rgba(61,61,61,0.3); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-text:hover { color: var(--amber); border-color: var(--amber); }

.panel-quote {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 400;
  font-style: italic; color: var(--off-white); line-height: 1.4; margin-bottom: 2rem;
  opacity: 0; animation: fadeIn 0.8s ease forwards 1s;
}
.panel-quote em { font-style: normal; color: var(--amber); }
.panel-divider { width: 40px; height: 1px; background: var(--amber); margin-bottom: 1.5rem; opacity: 0; animation: fadeIn 0.8s ease forwards 1.1s; }
.panel-desc {
  font-size: 0.88rem; color: var(--light-gray); line-height: 1.7; max-width: 380px;
  opacity: 0; animation: fadeIn 0.8s ease forwards 1.2s;
}

/* ── SECTION BASE ────────────────────────────────────────────── */
section.light { background: var(--cream); padding: 6.5rem 3.5rem; }
section.dark { background: var(--charcoal); padding: 6.5rem 3.5rem; color: var(--off-white); }
section.mid { background: var(--off-white); padding: 6.5rem 3.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }

h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 3.6vw, 3.8rem); font-weight: 400;
  line-height: 1.08; color: var(--charcoal); margin-bottom: 1.5rem;
}
section.dark h2 { color: var(--off-white); }
h2 em { font-style: italic; color: var(--amber); }

.section-body { font-size: 1rem; color: #666; max-width: 640px; line-height: 1.8; margin-bottom: 3rem; }
section.dark .section-body { color: var(--light-gray); }
.section-cta { margin-top: 2.5rem; }

/* ── SPLIT / TWO-TONE PANEL ──────────────────────────────────── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split-left { background: var(--charcoal); padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.split-right { background: var(--charcoal-mid); padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.split-right.amber-bg { background: var(--amber); }

.resource-box { padding: 1.25rem; border-left: 2px solid var(--amber); background: rgba(238,142,30,0.05); margin-bottom: 1.1rem; }
.resource-box:last-child { margin-bottom: 0; }
.resource-box.dim { border-left-color: rgba(238,142,30,0.4); background: rgba(238,142,30,0.03); }
.resource-box p.rb-label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.4rem; }
.resource-box p.rb-body { font-size: 0.88rem; color: var(--light-gray); line-height: 1.7; }

/* ── CARD GRIDS (reused across sections) ─────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 2rem; border-left: 2px solid transparent; background: rgba(238,142,30,0.04);
  transition: border-color 0.3s, background 0.3s;
}
.card:hover { border-left-color: var(--amber); background: rgba(238,142,30,0.07); }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: #777; line-height: 1.7; }

/* Numbered link cards (home overview grid) */
.link-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.link-card {
  display: block; padding: 2.25rem; border-left: 2px solid transparent; background: rgba(238,142,30,0.04);
  transition: border-color 0.3s, background 0.3s; text-decoration: none;
}
.link-card:hover { border-left-color: var(--amber); background: rgba(238,142,30,0.07); }
.link-card .card-num { font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.75rem; display: block; }
.link-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.6rem; }
.link-card p { font-size: 0.88rem; color: #777; line-height: 1.7; margin-bottom: 0.9rem; }
.link-card .card-link { font-size: 0.78rem; color: var(--amber); letter-spacing: 0.02em; }

/* ── PROCESS STEPS ────────────────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; margin-top: 3rem; }
.step-row {
  display: grid; grid-template-columns: 70px 1fr; gap: 1.75rem; padding: 2rem 0;
  border-bottom: 1px solid rgba(31,31,31,0.1);
}
.step-row:first-child { padding-top: 0; }
.step-row:last-child { border-bottom: none; }
section.dark .step-row { border-bottom-color: rgba(255,255,255,0.1); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; font-weight: 400; color: rgba(238,142,30,0.3); line-height: 1; padding-top: 0.2rem; }
.step-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.5rem; }
section.dark .step-content h3 { color: var(--off-white); }
.step-content p { font-size: 0.9rem; color: #777; line-height: 1.75; max-width: 620px; }
section.dark .step-content p { color: var(--light-gray); }

/* ── TWO PATHS ────────────────────────────────────────────────── */
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3rem; border: 1px solid rgba(31,31,31,0.12); }
.path-card { padding: 3rem; }
.path-card + .path-card { border-left: 1px solid rgba(31,31,31,0.12); }
.path-card .path-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.path-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; color: var(--charcoal); margin-bottom: 1rem; line-height: 1.25; }
.path-card p { font-size: 0.92rem; color: #666; line-height: 1.8; margin-bottom: 1.75rem; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-section { padding: 6.5rem 3.5rem; background: var(--off-white); }
.iap-form { max-width: 720px; margin-top: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--charcoal); letter-spacing: 0.02em; }
.form-group .hint { font-size: 0.72rem; color: var(--mid-gray); font-weight: 300; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 0.9rem; border: 1.5px solid rgba(31,31,31,0.15); background: var(--cream);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text-body);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--amber); box-shadow: 0 0 0 3px rgba(238,142,30,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.75rem; }
.form-checkbox input { margin-top: 0.3rem; }
.form-checkbox label { font-size: 0.82rem; color: #666; line-height: 1.6; }
.form-submit-note { font-size: 0.78rem; color: var(--mid-gray); margin-top: 1rem; max-width: 500px; line-height: 1.6; }

/* ── FOUNDER / ABOUT ─────────────────────────────────────────── */
.founder-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.founder-left { background: #FFFFFF; border: 3px solid var(--amber); padding: 6rem 4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; }
.founder-left-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(238,142,30,0.06) 0px, rgba(238,142,30,0.06) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
}
.founder-left-content { position: relative; z-index: 1; }
.founder-right { padding: 6rem 4rem; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; font-weight: 400; color: var(--charcoal); line-height: 1.1; }
.founder-title { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(31,31,31,0.6); margin-top: 0.75rem; }
.founder-bio { font-size: 0.95rem; color: #555; line-height: 1.8; margin-bottom: 1.5rem; }
.founder-bio strong { color: var(--charcoal); font-weight: 500; }
.credentials { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.cred { font-size: 0.8rem; color: #777; padding-left: 1rem; position: relative; }
.cred::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; background: var(--amber); border-radius: 50%; transform: translateY(-50%); }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-section { background: var(--charcoal); padding: 7rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--amber); }
.cta-section h2 { color: var(--off-white); font-size: clamp(2.2rem, 3.6vw, 4.2rem); max-width: 800px; margin: 0 auto 1.5rem; }
.cta-section p { color: var(--light-gray); font-size: 1rem; max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8; }
.cta-options { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.cta-primary {
  background: var(--amber); color: var(--charcoal); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 1.1rem 2.5rem; text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.cta-primary:hover { background: var(--amber-light); transform: translateY(-2px); }
.cta-secondary {
  background: transparent; border: 1px solid rgba(245,240,232,0.25); color: var(--off-white); font-size: 0.85rem;
  font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 1.1rem 2.5rem; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.cta-secondary:hover { border-color: var(--amber); color: var(--amber); }

/* ── REFERRAL BAND ───────────────────────────────────────────── */
.referral-section { background: var(--amber); padding: 4.5rem 3.5rem; text-align: center; }
.referral-section .section-inner { max-width: 700px; }
.referral-section .section-label { color: rgba(31,31,31,0.65); }
.referral-section h2 { color: var(--charcoal); font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.referral-section p { color: rgba(31,31,31,0.75); font-size: 1rem; line-height: 1.75; margin-bottom: 1.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.referral-section .btn-dark:hover { background: var(--charcoal); color: var(--off-white); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer { background: #161616; padding: 3rem 3.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--mid-gray); font-size: 0.78rem; text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; white-space: nowrap; }
.footer-links a:hover { color: var(--amber); }
.footer-right { text-align: right; }
.footer-domains { font-size: 0.72rem; color: var(--mid-gray); line-height: 1.7; }
.footer-domains a { color: var(--amber); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.footer-domains a:hover { opacity: 1; }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 7rem 1.5rem 3rem; }
  .hero-right { min-height: 50vh; height: auto; padding: 3rem 0; }
  .page-hero { padding: 7rem 1.5rem 3.5rem; }
  .split-section { grid-template-columns: 1fr; }
  .split-left, .split-right { padding: 4rem 1.5rem; }
  .link-card-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-6 { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .path-card + .path-card { border-left: none; border-top: 1px solid rgba(31,31,31,0.12); }
  .founder-section { grid-template-columns: 1fr; }
  .founder-left, .founder-right { padding: 4rem 1.5rem; }
  section.light, section.dark, section.mid, .form-section { padding: 4.5rem 1.5rem; }
  .cta-section { padding: 4.5rem 1.5rem; }
  .referral-section { padding: 3.5rem 1.5rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .step-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
