@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Southern Ohio Brokers LLC - Modern Theme Palette */
  --primary: #0B2920;          /* Deep Forest Emerald / Midnight Pine */
  --primary-dark: #061813;     /* Darkest Spruce */
  --primary-light: #144637;    /* Rich Alpine Forest */
  --primary-subtle: #e8f5f0;   /* Mint Ice Tint */
  
  --accent: #D97706;           /* Industrial Warm Gold / Amber */
  --accent-light: #F59E0B;     /* Radiant Amber */
  --accent-dark: #B45309;      /* Bronze Amber */
  --accent-glow: rgba(217, 119, 6, 0.22);
  
  --emerald: #10B981;          /* Trust Checkmark Green */
  --emerald-light: #34D399;
  --emerald-dark: #059669;
  
  --navy-dark: #05140F;        /* Deepest Pine Slate */
  --footer-bg: #071913;        /* Midnight Forest Footer */
  
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-tint: #f0fdf4;     /* Crisp Mint Wash */
  --border-light: #e2e8f0;
  --border-card: rgba(16, 185, 129, 0.16);
  
  --text-main: #0f172a;        /* Deep Charcoal for crisp legibility */
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --star-color: #f59e0b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(11, 41, 32, 0.08), 0 2px 6px -2px rgba(11, 41, 32, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(11, 41, 32, 0.14), 0 4px 14px -4px rgba(11, 41, 32, 0.06);
  --shadow-xl: 0 20px 45px -10px rgba(11, 41, 32, 0.18), 0 8px 20px -6px rgba(11, 41, 32, 0.08);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);
  --shadow-emerald-glow: 0 0 25px rgba(16, 185, 129, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  background: rgba(217, 119, 6, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 119, 6, 0.25);
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-padding {
  padding: 5rem 0;
}

.section-padding-lg {
  padding: 6.5rem 0;
}

.bg-alt {
  background-color: var(--surface-alt);
}

.bg-tint {
  background-color: var(--surface-tint);
}

.bg-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.bg-navy {
  background-color: var(--navy-dark);
  color: #ffffff;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-padding { padding: 3.5rem 0; }
  .section-padding-lg { padding: 4.5rem 0; }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: var(--shadow-sm);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent-light);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Force prevent horizontal scrollbar across all screen sizes */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
}

*, *::before, *::after {
  max-width: 100%;
}
