/* =============================================
   SoCali Props – Landing Page Stylesheet
   Color System:
   --navy:  #0d2d5e  (Deep Navy)
   --white: #ffffff
   --orange:#f97316  (CTA / Accent)
   --gray-50:#f8fafc
   --gray-100:#f1f5f9
   --gray-500:#64748b
   --gray-700:#334155
   --gray-900:#0f172a
============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { opacity: 0.85; }

ul { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0d2d5e;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 540px;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.5);
  opacity: 1;
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* ===== HEADER ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  color: #f97316;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-text strong {
  font-weight: 800;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-cta:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Background image – San Diego skyline */
  background-image: url('images/san_diego_hero.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 45, 94, 0.88) 0%,
    rgba(13, 45, 94, 0.70) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.5);
  color: #fdba74;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-subheadline strong {
  color: #fdba74;
}

.br-desktop { display: block; }

/* Hero trust strip */
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item svg { color: #f97316; flex-shrink: 0; }

/* ===== FORM CARD ===== */
.form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.form-card-header {
  background: linear-gradient(135deg, #0d2d5e 0%, #1e4d8c 100%);
  padding: 24px 28px 20px;
  text-align: center;
}

.form-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fdba74;
  margin-bottom: 6px;
}

.form-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.form-card-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.form-card-body {
  padding: 24px 28px;
}

/* ===== IFRAME PLACEHOLDER ===== */
.iframe-placeholder {
  width: 100%;
  min-height: 280px;
  border-radius: 10px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: border-color 0.2s;
}

.iframe-placeholder:hover { border-color: #94a3b8; }

.iframe-placeholder-inner {
  text-align: center;
  color: #94a3b8;
}

.iframe-placeholder-inner svg {
  margin-inline: auto;
  margin-bottom: 12px;
  color: #94a3b8;
}

.iframe-placeholder-inner p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #64748b;
}

.iframe-placeholder-inner strong {
  color: #334155;
  font-size: 1rem;
  display: block;
  margin-bottom: 8px;
}

.placeholder-hint {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
}

.placeholder-hint code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #0d2d5e;
}

/* When CRM iframe IS pasted in, style it nicely */
#crm-iframe-container iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 8px;
  display: block;
}

/* Form card footer */
.form-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.form-card-footer svg { color: #10b981; flex-shrink: 0; }

/* ===== SOCIAL PROOF STRIP ===== */
.social-proof-strip {
  background: #0d2d5e;
  padding: 32px 0;
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 36px;
  flex: 1 1 120px;
}

.stat-number {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #f97316;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  padding: 100px 0;
  background: #f8fafc;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.benefit-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(13,45,94,0.1);
  border-color: #bfdbfe;
}

.benefit-card--featured {
  background: linear-gradient(160deg, #0d2d5e 0%, #1e4d8c 100%);
  border-color: #1e4d8c;
  box-shadow: 0 16px 48px rgba(13,45,94,0.3);
  transform: translateY(-8px);
}

.benefit-card--featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 28px 64px rgba(13,45,94,0.4);
  border-color: #1e4d8c;
}

.benefit-card--featured .benefit-title,
.benefit-card--featured .benefit-description,
.benefit-card--featured .benefit-list li {
  color: #ffffff;
}

.benefit-card--featured .benefit-description {
  color: rgba(255,255,255,0.85);
}

.benefit-card--featured .benefit-list li {
  color: rgba(255,255,255,0.8);
}

.benefit-card--featured .benefit-list li::before {
  color: #f97316;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

.benefit-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.benefit-icon--navy { background: rgba(13,45,94,0.06); }
.benefit-icon--orange { background: rgba(249,115,22,0.1); }

.benefit-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d2d5e;
  margin-bottom: 12px;
  line-height: 1.3;
}

.benefit-description {
  font-size: 0.93rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 20px;
}

.benefit-description strong { color: #0d2d5e; }
.benefit-card--featured .benefit-description strong { color: #fdba74; }

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
}

.benefit-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(249,115,22,0.1);
  color: #f97316;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  margin-bottom: 52px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d2d5e, #1e4d8c);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(13,45,94,0.25);
  position: relative;
  z-index: 1;
}

.step-connector {
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: linear-gradient(90deg, #0d2d5e, #e2e8f0);
  opacity: 0.3;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d2d5e;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 240px;
  margin-inline: auto;
}

.hiw-cta { text-align: center; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: #f8fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,45,94,0.08);
}

.testimonial-card--featured {
  background: linear-gradient(160deg, #0d2d5e 0%, #1e4d8c 100%);
  border-color: #1e4d8c;
  box-shadow: 0 12px 36px rgba(13,45,94,0.25);
  transform: translateY(-6px);
}

.testimonial-card--featured .testimonial-quote,
.testimonial-card--featured .testimonial-author strong {
  color: #ffffff;
}

.testimonial-card--featured .testimonial-author span {
  color: rgba(255,255,255,0.65);
}

.stars {
  color: #f97316;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: #0d2d5e;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0a1f3d;
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo .logo-text { color: rgba(255,255,255,0.9); }
.footer-logo .logo-icon { color: #f97316; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f97316;
  opacity: 1;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.footer-copy small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    padding-top: 120px;
  }

  .hero-subheadline { margin-inline: auto; }
  .hero-trust-strip { justify-content: center; }
  .br-desktop { display: none; }

  .form-card {
    max-width: 520px;
    margin-inline: auto;
    animation: none; /* prevent bounce on mobile */
  }

  .benefits-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .benefit-card--featured { transform: none; }
  .benefit-card--featured:hover { transform: translateY(-4px); }

  .steps-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .step-connector { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .testimonial-card--featured { transform: none; }

  .stat-divider { display: none; }
  .social-proof-inner { gap: 0; }
  .stat-item { flex: 1 1 50%; }
}

@media (max-width: 640px) {
  .benefits-section,
  .how-it-works,
  .testimonials { padding: 72px 0; }

  .section-title { font-size: 1.6rem; }

  .header-cta { display: none; }

  .stat-item { flex: 1 1 100%; padding: 12px 24px; }

  .benefit-card { padding: 28px 24px; }
  .testimonial-card { padding: 24px 20px; }

  .form-card-header,
  .form-card-body { padding-inline: 20px; }
  .form-card-footer { padding-inline: 20px; }
}

/* ===== CUSTOM LEAD FORM STYLE ===== */
.custom-lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-step {
  animation: formFadeIn 0.3s ease;
}
@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-lead-form input[type="text"],
.custom-lead-form input[type="email"],
.custom-lead-form input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.custom-lead-form input:focus {
  border-color: #0d2d5e;
  box-shadow: 0 0 0 3px rgba(13,45,94,0.08);
  background: #ffffff;
}
.custom-lead-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-align: left;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}
.btn-homepage-next,
.btn-homepage-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-homepage-next:hover,
.btn-homepage-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}
.btn-homepage-next:active,
.btn-homepage-submit:active {
  transform: translateY(0);
}
.form-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-homepage-back {
  padding: 14px 20px;
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-homepage-back:hover {
  border-color: #0d2d5e;
  color: #0d2d5e;
}
.homepage-error-msg {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
