/* =============================================================
   style.css — Global Base Styles
   Winston-Salem NC Movers
   ============================================================= */

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

/* ---- CSS Variables ---- */
:root {
  --color-primary:       #1a3a5c;
  --color-primary-light: #2563a8;
  --color-accent:        #e8a020;
  --color-accent-hover:  #c8881a;
  --color-text:          #1e1e1e;
  --color-text-light:    #555;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f4f6f9;
  --color-border:        #dde1e8;
  --color-success:       #2e7d32;
  --color-danger:        #c62828;
  --color-charcoal:      #2d2d2d;
  --radius:              8px;
  --radius-lg:           14px;
  --shadow:              0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:           0 4px 20px rgba(0,0,0,0.12);
  --transition:          0.2s ease;
  --max-width:           1100px;
  --nav-height:          64px;
}

/* ---- Base Typography ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  /* Push content below fixed nav */
  padding-top: var(--nav-height);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary-light);
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Site Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-primary);
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.logo-text {
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.logo-text strong {
  color: var(--color-accent);
}

/* ---- Main Nav ---- */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.nav-list a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  display: block;
  font-size: 0.95rem;
}

.nav-list a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.nav-list a.active {
  background: rgba(255,255,255,0.18);
}

/* CTA nav button */
.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-charcoal) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-charcoal) !important;
}

/* ---- Hamburger Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- Responsive Nav ---- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }

  .main-nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .nav-list {
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    align-items: stretch;
  }

  .nav-list a {
    padding: 0.65rem 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: none;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-charcoal);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-charcoal);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-white:hover {
  background: white;
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---- Alert Banners ---- */
.alert-banner {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.alert-banner.warning {
  background: #fff3cd;
  border-left: 4px solid #e8a020;
  color: #6b4800;
}

.alert-banner.danger {
  background: #fdecea;
  border-left: 4px solid var(--color-danger);
  color: #7b1212;
}

.alert-banner.info {
  background: #e3f0fb;
  border-left: 4px solid var(--color-primary-light);
  color: #1a3a5c;
}

.alert-banner.success {
  background: #e8f5e9;
  border-left: 4px solid var(--color-success);
  color: #1b5e20;
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
  max-width: 680px;
}

/* ---- Site Footer ---- */
.site-footer {
  background: var(--color-charcoal);
  color: #aaa;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2;
  display: block;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-brand {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* ---- Numbered Steps ---- */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary-light);
}

.steps-list li::before {
  content: counter(steps);
  background: var(--color-primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---- Static info prose ---- */
.prose h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul {
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.prose .legal-note {
  background: #fff3cd;
  border-left: 4px solid #e8a020;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #6b4800;
}

/* ─── Ad Section ──────────────────────────────────────────── */
.ad-section {
  padding: 2.5rem 0;
}

.ad-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light, #6b7280);
  margin-bottom: 0.5rem;
  text-align: center;
}

.ad-unit {
  width: 100%;
  max-width: 728px;
  background: var(--color-bg-alt, #f4f6f9);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius, 6px);
  overflow: hidden;
  min-height: 90px;
}

@media (max-width: 768px) {
  .ad-unit {
    max-width: 100%;
  }
}
