/* =============================================
   WebPros99 / Spiderweb Design — Modern Theme
   ============================================= */

:root {
  --red:        #ae0000;
  --red-dark:   #8b0000;
  --navy:       #1a2234;
  --navy-light: #243047;
  --text:       #1a1a1a;
  --text-muted: #6b7280;
  --bg:         #f4f5f7;
  --white:      #ffffff;
  --border:     #e2e5ea;
  --shadow:     0 1px 4px rgba(0,0,0,.10);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --radius:     8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red-dark); }

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

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header .brand {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
  text-decoration: none;
}

.site-header .brand span { color: var(--red); }

.site-header .tagline {
  color: #94a3b8;
  font-size: .85rem;
}

.header-contact {
  font-size: .82rem;
  color: #94a3b8;
  text-align: right;
}

.header-contact a { color: #94a3b8; }
.header-contact a:hover { color: #fff; text-decoration: none; }

/* ---- Nav ---- */
.site-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: #fff;
  padding: 10px 14px;
  display: block;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(0,0,0,.20);
  text-decoration: none;
  color: #fff;
}

/* ---- Container / Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-body {
  padding: 28px 0 48px;
}

/* Sidebar layout */
.layout-sidebar {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Sidebar ---- */
.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-title {
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 14px;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }

.sidebar-nav a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: .88rem;
  transition: color .15s, background .15s;
}

.sidebar-nav a:hover {
  color: var(--red);
  background: #fef2f2;
  text-decoration: none;
}

.sidebar-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar-section h4 {
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.sidebar-section p,
.sidebar-section a {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-accent {
  border-left: 4px solid var(--red);
}

.card + .card { margin-top: 0; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero h1 span { color: var(--red); }

.hero p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* ---- Section Headings ---- */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding-left: 12px;
  margin-bottom: 18px;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 8px;
}

/* ---- Directory Grid ---- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.dir-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow .2s, border-color .2s;
}

.dir-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.dir-card a {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  display: block;
  margin-bottom: 4px;
}

.dir-card a:hover { color: var(--red); text-decoration: none; }

.dir-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---- Listing Items (store directory entries) ---- */
.listing-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.listing-item:last-child { border-bottom: none; }

.listing-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.listing-item h3 a { color: var(--navy); }
.listing-item h3 a:hover { color: var(--red); text-decoration: none; }

.listing-item p {
  font-size: .88rem;
  color: var(--text-muted);
}

/* ---- Category Title Bar ---- */
.cat-bar {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 12px 18px;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-bar a { color: #94a3b8; font-size: .82rem; font-weight: 400; }
.cat-bar a:hover { color: #fff; text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: #fff;
  text-decoration: none;
}

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 680px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=url],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(174,0,0,.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ---- Tables ---- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.styled-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: top;
}

.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:nth-child(even) td { background: #fafafa; }

/* ---- Chapter nav (marketing guide) ---- */
.chapter-list { list-style: none; counter-reset: chap; }
.chapter-list li { counter-increment: chap; }
.chapter-list li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
}
.chapter-list li a::before {
  content: counter(chap, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  min-width: 22px;
}
.chapter-list li a:hover { color: var(--red); text-decoration: none; }

/* ---- Two-col content grid ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- Client showcase ---- */
.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.client-cell {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  line-height: 1.5;
}

.client-cell:nth-child(odd) { background: #fff; }
.client-cell:nth-child(even) { background: #fffdf0; }

/* ---- Myth list ---- */
.myth-list { list-style: none; counter-reset: myth; }
.myth-item { counter-increment: myth; margin-bottom: 20px; }
.myth-item .myth-label {
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
}
.myth-item .myth-text {
  font-weight: 600;
  color: var(--navy);
  margin: 2px 0 6px;
}
.myth-item .myth-answer {
  font-size: .92rem;
  color: var(--text);
  padding-left: 14px;
  border-left: 3px solid var(--border);
}

/* ---- Services two-column ---- */
.services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.services-cols ul {
  list-style: none;
}

.services-cols li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.services-cols li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
  margin-right: 8px;
}

/* ---- Alert boxes ---- */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: .92rem;
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-red { background: #fee2e2; color: var(--red); }
.badge-navy { background: #e0e7ff; color: var(--navy); }
.badge-green { background: #dcfce7; color: #15803d; }

/* ---- FREE badge / callout ---- */
.free-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Store entry card ---- */
.store-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.store-card .store-header {
  background: var(--navy);
  padding: 20px 24px;
  color: #fff;
}

.store-card .store-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.store-card .store-header p {
  color: #94a3b8;
  font-size: .88rem;
  margin-top: 6px;
}

.store-card .store-body {
  padding: 24px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb span { color: var(--border); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #64748b;
  padding: 30px 24px;
  margin-top: 48px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.8;
}

.site-footer a { color: #64748b; }
.site-footer a:hover { color: #94a3b8; text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .services-cols { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
}

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