/* Alabama Flip Loans — Longhorn Brand System */

:root {
  --orange: #B66028;
  --charcoal: #272B28;
  --steel: #668996;
  --cream: #EEE2CE;
  --offwhite: #FDFEFB;
  --gray-light: #f5f5f5;
  --gray-mid: #888;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ── Nav ── */
nav {
  background: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 0 var(--orange);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; height: 60px; }
.nav-logo img { height: 100%; width: auto; max-width: 120px; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--charcoal);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-phone {
  color: var(--orange) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  max-width: 100%;
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--offwhite); }
.btn-primary:hover { background: #9a4f20; color: var(--offwhite); text-decoration: none; }
.btn-outline { background: transparent; color: var(--offwhite); border: 2px solid var(--offwhite); }
.btn-outline:hover { background: var(--offwhite); color: var(--charcoal); text-decoration: none; }
.btn-dark { background: var(--charcoal); color: var(--offwhite); }
.btn-dark:hover { background: #1a1e1b; color: var(--offwhite); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 3rem 0 8rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.25;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(39,43,40,0.85) 0%, rgba(39,43,40,0.7) 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-eyebrow {
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: bold;
  margin-bottom: 1rem;
  display: block;
}
.hero h1 { color: var(--offwhite); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; color: #ccc; margin-bottom: 2rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-phone { color: var(--orange); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--orange);
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item { color: var(--offwhite); }
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  display: block;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}
.section-header h2 { color: var(--charcoal); }
.section-header p { color: var(--gray-mid); max-width: 600px; margin: 0.75rem auto 0; }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--offwhite);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-top: 4px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-icon {
  width: 58px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid rgba(182,96,40,0.35);
  border-left: 4px solid var(--orange);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.card h3 { color: var(--charcoal); margin-bottom: 0.75rem; }
.card p { color: var(--gray-mid); font-size: 0.95rem; margin-bottom: 0; }

/* Sample deal math */
.deal-math-section { background: var(--charcoal); color: var(--offwhite); }
.deal-math-section .section-header h2 { color: var(--offwhite); }
.deal-math-section .section-header p { color: #bbb; }
.deal-math-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.deal-math-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 4px solid var(--orange);
  padding: 2rem;
}
.deal-math-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.deal-math-row:last-child { border-bottom: none; }
.deal-math-label { color: #bbb; }
.deal-math-value { color: var(--offwhite); font-weight: 700; text-align: right; }
.deal-math-highlight {
  background: var(--orange);
  color: var(--offwhite);
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
}

/* Funded deals */
.proof-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:2.5rem; text-align:center; }
.proof-stat-card { background:#fff; padding:1.25rem; border-radius:6px; border-top:3px solid var(--orange); }
.proof-stat-number { font-size:2rem; font-weight:700; font-family:var(--font-heading); color:var(--charcoal); }
.proof-stat-label { font-size:0.85rem; color:#888; text-transform:uppercase; letter-spacing:0.05em; }
.deal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.deal-card { background:#fff; padding:1.25rem; border-radius:6px; border-left:3px solid var(--orange); }
.deal-location { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.06em; color:#888; margin-bottom:0.4rem; }
.deal-address { font-weight:700; color:var(--charcoal); margin-bottom:0.5rem; }
.deal-card-metrics { display:flex; flex-wrap:wrap; gap:0.5rem 1rem; font-size:0.85rem; color:#555; }
.deal-card-metrics strong { display:block; color:var(--charcoal); }
.deal-card-metrics .deal-arv strong { color:var(--orange); }
.deal-date { font-size:0.75rem; color:#aaa; margin-top:0.4rem; }

/* ── Loan Terms Table ── */
.terms-section { background: var(--cream); }
.terms-table { width: 100%; border-collapse: collapse; background: var(--offwhite); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.terms-table th {
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.terms-table td { padding: 0.9rem 1.25rem; border-bottom: 1px solid #e8e8e8; font-size: 0.95rem; }
.terms-table tr:last-child td { border-bottom: none; }
.terms-table tr:nth-child(even) td { background: #fafafa; }
.terms-highlight { color: var(--orange); font-weight: 700; }

/* ── How It Works ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--offwhite);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--gray-mid); font-size: 0.95rem; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--orange); }
.faq-icon { color: var(--orange); font-size: 1.25rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-answer { padding: 0 0 1.25rem; color: var(--gray-mid); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── About / Consultant ── */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; }
.about-photo {
  aspect-ratio: 19 / 27;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 4px solid var(--orange);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: #555; }
.credentials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.credential-tag {
  background: var(--cream);
  border: 1px solid var(--orange);
  color: var(--charcoal);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── CTA Band ── */
.cta-band { background: var(--charcoal); color: var(--offwhite); text-align: center; padding: 4rem 0; }
.cta-band h2 { color: var(--offwhite); margin-bottom: 0.75rem; }
.cta-band p { color: #aaa; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-phone { color: var(--orange); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }

/* ── Areas Served ── */
.areas-section { background: var(--gray-light); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.area-tag {
  background: var(--offwhite);
  border-left: 3px solid var(--orange);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: #555; }
.contact-detail { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; font-size: 1.05rem; }
.contact-detail-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-left: 3px solid var(--orange);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--offwhite);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--charcoal);
  color: var(--offwhite);
  padding: 2rem 0 1.75rem;
}
.page-hero h1 { color: var(--offwhite); margin-bottom: 0.5rem; font-size: 2rem; max-width: 100%; overflow-wrap: anywhere; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { color: #aaa; font-size: 1rem; margin-bottom: 1rem; }
.page-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: #aaa;
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; color: #888; }
.footer-col h4 {
  color: var(--offwhite);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col a { display: block; color: #888; font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom { border-top: 1px solid #3a3e3b; padding-top: 1.5rem; font-size: 0.8rem; color: #666; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--orange); }
.footer-logo { display: inline-block; background: #fff; padding: 0.75rem 1.25rem; border-radius: 4px; margin-bottom: 0.75rem; }
.footer-logo img { height: 70px; width: auto; display: block; }
.disclaimer { font-size: 0.75rem; color: #555; margin-top: 1.5rem; border-top: 1px solid #3a3e3b; padding-top: 1rem; }

.mobile-sticky-cta { display: none; }
.mobile-only { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-math-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { padding-bottom: 74px; }
  .container { padding: 0 1.5rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.65rem); overflow-wrap: normal; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
  .stat-item { min-width: 0; padding: 0 0.25rem; }
  .stat-number { font-size: 1.55rem; }
  .stat-label { display: block; font-size: 0.62rem; line-height: 1.25; letter-spacing: 0.02em; }
  .hero { padding: 4rem 0 4rem; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 2.65rem); letter-spacing: 0.02em; }
  .mobile-only { display: inline; }
  .hero p { font-size: 1rem; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-phone { display: inline-block; width: 100%; }
  .page-hero h1 { font-size: clamp(1.85rem, 10vw, 2.35rem); }
  .page-hero-actions { display: grid; grid-template-columns: 1fr; }
  .page-hero-actions .btn { width: 100%; }
  .proof-stats-grid, .deal-grid { grid-template-columns: 1fr; }
  .deal-math-panel { padding: 1.5rem; }
  .deal-math-row { align-items: flex-start; }
  .contact-detail { align-items: flex-start; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3rem 0; }
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(39,43,40,0.96);
    box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
  }
  .mobile-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    text-decoration: none;
  }
  .mobile-sticky-cta .mobile-call { background: var(--offwhite); color: var(--charcoal); }
  .mobile-sticky-cta .mobile-apply { background: var(--orange); color: var(--offwhite); }
}
