/* =============================================
   AutomatedLocalBiz.com — Main Stylesheet
   ============================================= */

/* fonts loaded via <link> in HTML head for performance */
/* ---- TOKENS ---- */
:root {
  --navy:    #0B1628;
  --navy2:   #122040;
  --teal:    #00C2A8;
  --teal2:   #00A38E;
  --teal-dim:#003D36;
  --amber:   #F59E0B;
  --amber2:  #D97706;
  --white:   #F7F8FA;
  --slate:   #64748B;
  --slate2:  #94A3B8;
  --border:  #1E3A5F;
  --card-bg: #122040;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--slate2); }
.lead { font-size: 1.15rem; color: #B8CCE0; line-height: 1.7; }

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.badge-teal  { background: var(--teal-dim); color: var(--teal); border: 1px solid var(--teal); }
.badge-amber { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid var(--amber); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal2); border-color: var(--teal2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-amber:hover { background: var(--amber2); border-color: var(--amber2); transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(11,22,40,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 16px; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,194,168,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(245,158,11,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero-desc { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-label { font-size: 13px; color: var(--slate); margin-top: 2px; }

/* CALCULATOR CARD */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 0 0 2px 2px;
}
.calc-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: 20px;
}
.calc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate2);
  margin-bottom: 8px;
  display: block;
}
.calc-select, .calc-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.calc-select:hover, .calc-input:hover { border-color: var(--teal); }
.calc-select:focus, .calc-input:focus { outline: none; border-color: var(--teal); }
.calc-result {
  background: var(--navy);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 8px;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.calc-result-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.calc-result-label { color: var(--slate2); }
.calc-result-val {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  font-size: 15px;
}
.calc-result-val.big {
  font-size: 22px;
  color: var(--amber);
}

/* =============================================
   PROOF STRIP
   ============================================= */
.proof-strip {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.proof-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}
.proof-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate2);
  padding: 0 16px;
  flex-shrink: 0;
}
.proof-item .dot { width:6px;height:6px;border-radius:50%;background:var(--teal);flex-shrink:0; }

/* =============================================
   FEATURED ARTICLES GRID
   ============================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.article-card-img {
  height: 160px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--card-bg) 100%);
}
.article-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.article-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}
.article-meta {
  font-size: 12px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.article-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  transition: gap var(--transition);
}
.article-card:hover .article-read-more { gap: 8px; }

/* FEATURED (first card - spans 2 cols) */
.article-card.featured { grid-column: span 2; flex-direction: row; }
.article-card.featured .article-card-img { width: 45%; height: auto; min-height: 200px; flex-shrink: 0; }
.article-card.featured .article-title { font-size: 1.2rem; }

/* =============================================
   TOOL COMPARISON TABLE
   ============================================= */
.compare-section { background: var(--navy2); }
.compare-table-wrap { overflow-x: auto; margin-top: 40px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}
.compare-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.compare-table th.highlight { color: var(--teal); }
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--slate2);
  vertical-align: middle;
}
.compare-table td.tool-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}
.compare-table tr:hover td { background: rgba(0,194,168,.04); }
.compare-table .highlight-col { background: rgba(0,194,168,.05); }
.check { color: var(--teal); font-size: 16px; }
.cross { color: var(--slate); font-size: 16px; }
.rec-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.price-tag { font-weight: 600; color: var(--white); }
.price-free { color: var(--teal); font-weight: 700; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 0;
}
.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.how-step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  transition: border-color var(--transition);
}
.how-step:hover .how-step-icon { border-color: var(--teal); }
.how-step-num {
  position: absolute;
  top: -6px; right: calc(50% - 44px);
  width: 20px; height: 20px;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step h3 { color: var(--white); margin-bottom: 8px; font-size: 1rem; }
.how-step p  { font-size: 13.5px; }

/* =============================================
   EMAIL CAPTURE
   ============================================= */
.email-section {
  background: linear-gradient(135deg, var(--navy2) 0%, #0D2040 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.email-section h2 { margin-bottom: 12px; }
.email-section .lead { max-width: 520px; margin: 0 auto 32px; }
.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.email-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}
.email-input::placeholder { color: var(--slate); }
.email-input:focus { outline: none; border-color: var(--teal); }
.email-note { font-size: 12px; color: var(--slate); }
.email-checklist {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.email-check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--slate2);
}
.email-check-item::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #070F1C;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--slate); margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate2);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--slate); transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--slate); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--teal); }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.footer-logo span { color: var(--teal); }

/* =============================================
   ARTICLE PAGE
   ============================================= */
.article-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
}
.article-hero .container { max-width: 800px; }
.article-body { max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; }
.article-body h2 { color: var(--white); margin: 2.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.article-body h3 { color: var(--white); margin: 1.8rem 0 .7rem; }
.article-body p  { color: var(--slate2); margin-bottom: 1.3rem; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.article-body li { color: var(--slate2); margin-bottom: .5rem; line-height: 1.7; }
.article-body a  { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--teal2); }
.article-body table { width:100%; border-collapse:collapse; margin:1.8rem 0; font-size:14px; }
.article-body th { background:var(--card-bg); color:var(--white); padding:10px 14px; text-align:left; font-weight:600; border-bottom:2px solid var(--border); }
.article-body td { padding:10px 14px; border-bottom:1px solid var(--border); color:var(--slate2); }
.article-body tr:hover td { background:rgba(0,194,168,.04); }
.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 12px 20px;
  background: var(--card-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.8rem 0;
  font-style: italic;
  color: #B8CCE0;
}
.aff-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--navy);
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none !important;
}
.aff-btn:hover { background: var(--teal2); color: var(--navy) !important; transform: translateY(-1px); }
.aff-disc { font-size:12px; color:var(--slate); border-top:1px solid var(--border); padding-top:1.5rem; margin-top:3rem; font-style:italic; }

/* =============================================
   UTILITY
   ============================================= */
.text-teal   { color: var(--teal); }
.text-amber  { color: var(--amber); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .article-card.featured { grid-column: span 2; flex-direction: column; }
  .article-card.featured .article-card-img { width: 100%; height: 200px; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}


/* Fix: ensure affiliate button text is readable (overrides .article-body a color) */
.article-body a.aff-btn, a.aff-btn { color: var(--navy) !important; text-decoration: none !important; }
.article-body a.aff-btn:hover, a.aff-btn:hover { color: var(--navy) !important; background: var(--teal2); }


/* Force all button text black (site-wide) */
.btn, .btn-primary, .btn-secondary, .btn-amber, .btn-lg,
.nav-cta, .aff-btn, button,
a.btn, a.btn-primary, a.btn-secondary, a.btn-amber, a.aff-btn, a.nav-cta,
.article-body a.btn, .article-body a.aff-btn,
.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-amber:hover,
.nav-cta:hover, .aff-btn:hover, a.aff-btn:hover {
  color: #000 !important;
}


/* Low-contrast buttons use white text */
.btn-secondary, a.btn-secondary, .btn.btn-secondary,
.nav-mobile-toggle,
.btn-secondary:hover, a.btn-secondary:hover, .nav-mobile-toggle:hover {
  color: #fff !important;
}
