/* aiscall.com — shared base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #e31e24;
  --brand-dark: #b71519;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --bg-light: #f7f7f7;
  --border: #e0e0e0;
  --radius: 8px;
  --max-w: 720px;
}

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

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

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Hero */
.hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 28px;
  text-align: center;
}

/* Image placeholder */
.img-placeholder {
  background: #e8e8e8;
  border: 2px dashed #bbb;
  border-radius: var(--radius);
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.img-placeholder.hero-img { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; }
.img-placeholder.article-img { width: 100%; max-width: 480px; aspect-ratio: 4 / 3; }

.hero h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero .lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 24px;
}

/* CTA cards (category nav) */
.category-nav {
  padding: 32px 0;
}
.category-nav h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.card:hover {
  border-color: var(--brand);
  background: #fff5f5;
  text-decoration: none;
  color: var(--brand);
}
.card .card-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.card .card-label { display: block; }

/* Guide CTA */
.guide-cta {
  background: #fff5f5;
  border: 1px solid #fbbcbe;
  border-radius: var(--radius);
  padding: 20px;
  margin: 8px 0 32px;
  text-align: center;
}
.guide-cta p { font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }

/* Article img section */
.visual-section { padding: 16px 0 32px; text-align: center; }

/* Footer */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
