/* =============================================
   FiveStarLocal.co — Shared Stylesheet
   ============================================= */

:root {
  --blue-950:  #05112a;
  --blue-900:  #0c1e4a;
  --blue-800:  #1e3a8a;
  --blue-700:  #1d4ed8;
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;
  --gold:      #f59e0b;
  --gold-dark: #d97706;
  --gold-bg:   #fffbeb;
  --text:      #0f172a;
  --text-mid:  #334155;
  --text-muted:#64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-gold {
  background: var(--gold);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.42); }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue-900);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue-600); text-decoration: none; }
.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 0.9rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 24px;
  gap: 28px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Footer ── */
.site-footer {
  background: var(--blue-950);
  color: #94a3b8;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 60px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { color: var(--white); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 300px; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { padding-top: 24px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--white); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { font-size: 1.1rem; opacity: 0.85; max-width: 500px; margin: 0 auto; }

/* ── Content sections ── */
.content-section { padding: 72px 0; }
.content-section + .content-section { padding-top: 0; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-mid);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 500;
  margin-top: 16px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: #fff1f2;
  border: 1.5px solid #fda4af;
  color: #9f1239;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ── Prose (terms/privacy) ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.prose h2 { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.prose p  { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 6px; }
.prose a  { color: var(--blue-600); }
.prose strong { color: var(--text); }
.prose .updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
