/* Compliance Cost Guide - Main Stylesheet */
/* Clean, professional, mobile-first design for AdSense */

:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --primary-light: #e8eef5;
  --accent: #2d6a4f;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

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

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a4f 100%);
  color: white;
  padding: 48px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 28px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 160px;
}

.stat-card .number {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.stat-card .label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #f0f9ff;
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

main {
  padding: 40px 0 60px;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }

p {
  margin-bottom: 1.1em;
}

ul, ol {
  margin: 0 0 1.2em 1.4em;
}

li {
  margin-bottom: 0.4em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.card p {
  font-size: 0.98rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f8fafc;
}

.ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin: 28px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot.rectangle {
  min-height: 250px;
}

.calculator-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}

.calculator-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.calculator-box select,
.calculator-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: white;
}

.calculator-box .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  background: white;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.result-box .range {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

.result-box .note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-alt);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .answer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.author-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid a {
  color: #94a3b8;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  margin: 0 6px;
}

.note {
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .calculator-box .row {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  th, td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.55rem; }
  .stat-card { min-width: 140px; padding: 14px 18px; }
}
