/**
 * Bloomfield ROI Landing Page — Elementor Companion Styles
 * Version: 1.0.0
 * Scoped under .bf-landing-page to prevent site-wide conflicts.
 */

/* ===== Design Tokens ===== */
:root {
  --bf-color-primary: #8f4348;
  --bf-color-primary-dark: #6e3237;
  --bf-color-dark: #221e1c;
  --bf-color-text: #4a4a4a;
  --bf-color-text-muted: #5c544d;
  --bf-color-cream: #f7f4ee;
  --bf-color-stone: #e7e0d4;
  --bf-color-stone-line: #d8cfbf;
  --bf-color-white: #ffffff;
  --bf-font-display: "Marcellus", Georgia, serif;
  --bf-font-body: "Figtree", Arial, sans-serif;
  --bf-container-width: 1200px;
  --bf-page-padding: 24px;
}

/* ===== Scoped Base ===== */
.bf-landing-page {
  font-family: var(--bf-font-body);
  color: var(--bf-color-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bf-landing-page *,
.bf-landing-page *::before,
.bf-landing-page *::after {
  box-sizing: border-box;
}

/* ===== Header Absolute Positioning ===== */
.bf-landing-page .bf-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

/* ===== Eyebrow Pseudo-element Decoration ===== */
.bf-landing-page .bf-eyebrow .elementor-heading-title::after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 56px;
  background: var(--bf-color-primary);
  opacity: 0.5;
  vertical-align: middle;
  margin-left: 14px;
}

.bf-landing-page .bf-eyebrow--light .elementor-heading-title::after {
  background: #eddcd2;
}

/* ===== Mobile CTA (hidden on desktop, visible on mobile) ===== */
.bf-landing-page .bf-hero-mobile-cta {
  display: none;
}

/* ===== Hero Stats Layout ===== */
.bf-landing-page .bf-hero-stats {
  margin-top: 26px;
}

/* ===== Form Styling Refinements ===== */
.bf-landing-page .bf-lead-form .elementor-field-group {
  margin-bottom: 12px;
}

.bf-landing-page .bf-lead-form .elementor-field {
  padding: 12px 14px;
  border-radius: 0;
  font-family: var(--bf-font-body);
  font-size: 15px;
}

.bf-landing-page .bf-lead-form .elementor-field:focus {
  outline: 2px solid var(--bf-color-primary);
  outline-offset: 0;
  border-color: var(--bf-color-primary);
}

.bf-landing-page .bf-lead-form .elementor-field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b625b;
  margin-bottom: 6px;
}

.bf-landing-page .bf-lead-form select.elementor-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238F4348'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ===== Button Focus States (Accessibility) ===== */
.bf-landing-page .bf-button .elementor-button:focus-visible,
.bf-landing-page .bf-lead-form .elementor-button:focus-visible,
.bf-landing-page .bf-head-cta .elementor-button:focus-visible {
  outline: 3px solid var(--bf-color-primary);
  outline-offset: 3px;
}

/* ===== Image Panels (Split Sections) ===== */
.bf-landing-page .bf-image-panel .elementor-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ===== Gallery Grid Images ===== */
.bf-landing-page .bf-gallery-grid .elementor-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== Stat Grid (1px gap lines via background trick) ===== */
.bf-landing-page .bf-stat-grid {
  background: var(--bf-color-stone-line);
}

/* ===== Footer Logo Opacity ===== */
.bf-landing-page .bf-footer .elementor-image img {
  opacity: 0.9;
}

/* ===== Responsive — Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
  .bf-landing-page .bf-image-panel .elementor-image img {
    height: 380px;
  }

  .bf-landing-page .bf-gallery-grid .elementor-image img {
    height: 260px;
  }
}

/* ===== Responsive — Mobile Landscape (≤768px) ===== */
@media (max-width: 768px) {
  .bf-landing-page .bf-hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .bf-landing-page .bf-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bf-landing-page .bf-image-panel .elementor-image img {
    height: 300px;
  }

  .bf-landing-page .bf-hero-mobile-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}

/* ===== Responsive — Mobile Portrait (≤480px) ===== */
@media (max-width: 480px) {
  .bf-landing-page .bf-hero-stats {
    flex-direction: column;
  }

  .bf-landing-page .bf-gallery-grid .elementor-image img {
    height: 200px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .bf-landing-page .bf-hero,
  .bf-landing-page .bf-band {
    background: #fff;
    color: #000;
  }

  .bf-landing-page .bf-button,
  .bf-landing-page .bf-head-cta,
  .bf-landing-page .bf-hero-mobile-cta {
    display: none;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .bf-landing-page *,
  .bf-landing-page *::before,
  .bf-landing-page *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
