/* Global styles for Chicken Road */
:root {
  --bg: #140a04;
  --bg-soft: #231007;
  --surface: #321708;
  --surface-2: #4b2209;
  --text: #fff7e8;
  --muted: #f1c58d;
  --primary: #ff9f1c;
  --primary-2: #ffd166;
  --accent: #ff6b00;
  --border: rgba(255, 209, 102, .22);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 22px;
  --font: 'Baloo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, #5a2807 0%, var(--bg) 42%, #080301 100%);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
main { min-height: 55vh; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.page-shell { padding: 56px 0 72px; }
.hero-card, .content-card {
  background: linear-gradient(145deg, rgba(75,34,9,.92), rgba(35,16,7,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}
.eyebrow { color: var(--primary-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 18px; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
p { margin: 0 0 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #281100; }
.btn-secondary { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.06); }
.notice { font-size: .95rem; color: var(--muted); margin-top: 18px; }
.breadcrumbs { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.placeholder-note { border: 1px dashed var(--border); padding: 18px; border-radius: 16px; color: var(--muted); }


/* Home content layout */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 8vw, 92px) 0 54px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, .32), transparent 30%),
    radial-gradient(circle at 20% 5%, rgba(255, 107, 0, .28), transparent 28%),
    linear-gradient(135deg, #fff8e9 0%, #ffe0a5 38%, #ffb13a 100%);
  color: #321708;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
}
.hero-copy h1 { color: #321708; text-shadow: 0 4px 0 rgba(255,255,255,.45); }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #5d3215; max-width: 720px; }
.hero-media {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.72);
  box-shadow: 0 24px 60px rgba(80, 35, 5, .25);
  transform: rotate(1deg);
}
.hero-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  margin-top: 42px;
  margin-bottom: 30px;
}
.intro-content, .quick-card, .toc-card, .content-section, .eeat-links {
  background: rgba(255, 248, 233, .96);
  color: #321708;
  border: 1px solid rgba(120, 55, 8, .14);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.intro-content { padding: clamp(22px, 4vw, 38px); }
.quick-card { padding: 20px; display: grid; gap: 14px; position: sticky; top: 92px; }
.quick-card img { width: 100%; height: auto; }
.toc-card { padding: clamp(20px, 4vw, 34px); margin: 20px 0 30px; }
.toc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.toc-grid a, .eeat-grid a {
  text-decoration: none;
  color: #321708;
  background: #fff3d2;
  border: 1px solid rgba(255, 159, 28, .35);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.toc-grid a:hover, .eeat-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(80,35,5,.12); }
.article-layout { display: grid; gap: 28px; padding-bottom: 72px; }
.content-section { padding: clamp(22px, 4vw, 42px); }
.content-section h2, .content-section h3, .toc-card h2, .eeat-links h2 { color: #321708; }
.content-section p, .intro-content p, .eeat-links p { color: #4d2a13; font-size: 1.05rem; }
.section-image { margin: 4px 0 24px; border-radius: 24px; overflow: hidden; background: #fff3d2; border: 1px solid rgba(255, 159, 28, .24); }
.section-image img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.section-image figcaption { padding: 10px 14px; color: #6b3b19; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 20px; border: 1px solid rgba(120,55,8,.12); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fffaf0; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(120,55,8,.12); }
th { background: linear-gradient(135deg, #ff9f1c, #ffd166); color: #281100; font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.step-card { margin: 14px 0; padding: 18px 20px; border-radius: 20px; background: #fff3d2; border: 1px solid rgba(255,159,28,.28); }
.step-card strong { display: block; color: #321708; font-size: 1.15rem; margin-bottom: 4px; }
.step-card p { margin-bottom: 0; }
.check-list { display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.check-list li { padding: 12px 14px 12px 42px; border-radius: 16px; background: #fff3d2; position: relative; color: #4d2a13; }
.check-list li::before { content: "✓"; position: absolute; left: 16px; top: 10px; font-weight: 900; color: #c75b00; }
.faq-item { border: 1px solid rgba(255,159,28,.28); border-radius: 18px; padding: 14px 18px; background: #fffaf0; margin: 12px 0; }
.faq-item summary { cursor: pointer; color: #321708; font-weight: 900; }
.faq-item p { margin: 12px 0 0; }
.eeat-links { padding: clamp(22px, 4vw, 42px); }
.eeat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }

@media (max-width: 900px) {
  .hero-grid, .intro-card { grid-template-columns: 1fr; }
  .quick-card { position: static; }
  .toc-grid, .eeat-grid { grid-template-columns: 1fr; }
  .hero-media { transform: none; }
}


/* EEAT / informational pages */
.legal-hero {
  padding: clamp(40px, 7vw, 82px) 0 42px;
  background: linear-gradient(135deg, #fff8e9 0%, #ffe7b8 48%, #ffc14b 100%);
  color: #321708;
}
.legal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 30px;
}
.legal-hero h1 { color: #321708; text-shadow: 0 4px 0 rgba(255,255,255,.45); }
.legal-hero-image {
  margin: 0;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(120,55,8,.12);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(80,35,5,.16);
}
.legal-layout { padding: 34px 0 76px; }
.legal-section {
  background: rgba(255, 248, 233, .96);
  color: #321708;
  border: 1px solid rgba(120, 55, 8, .14);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  padding: clamp(22px, 4vw, 42px);
  margin: 22px 0;
}
.legal-section h2, .legal-section h3 { color: #321708; }
.legal-section p, .legal-section li { color: #4d2a13; font-size: 1.05rem; }
.legal-section a { color: #a84a00; font-weight: 800; }
.legal-cta { background: linear-gradient(135deg, #fff3d2, #ffe0a5); }
.contact-card {
  background: #fff3d2;
  border: 1px solid rgba(255,159,28,.28);
  border-radius: 18px;
  padding: 18px 20px;
  color: #4d2a13;
}
@media (max-width: 760px) {
  .legal-hero-inner { grid-template-columns: 1fr; }
  .legal-hero-image { max-width: 260px; }
}

/* Contrast and mobile overflow fixes */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 159, 28, .18), transparent 30%),
    linear-gradient(180deg, #1a0b03 0%, #090301 100%);
}

main,
section,
.container,
.hero-grid,
.intro-card,
.article-layout,
.legal-hero-inner,
.content-section,
.legal-section,
.intro-content,
.quick-card,
.toc-card,
.eeat-links {
  min-width: 0;
}

.home-hero,
.legal-hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 206, 71, .24), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(255, 111, 0, .22), transparent 30%),
    linear-gradient(135deg, #4b1b05 0%, #7a2c05 48%, #b34c00 100%);
  color: #fff8e8;
}

.home-hero .eyebrow,
.legal-hero .eyebrow {
  color: #ffe49a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.hero-copy h1,
.legal-hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .42);
}

.hero-lead,
.legal-hero p,
.home-hero .notice,
.legal-hero .notice {
  color: #fff1cf;
}

.home-hero .btn-secondary,
.legal-hero .btn-secondary,
.legal-cta .btn-secondary,
.footer-brand .btn-secondary,
.placeholder-note .btn-secondary {
  color: #2b1204;
  background: #ffffff;
  border-color: rgba(43, 18, 4, .28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.home-hero .btn-secondary:hover,
.legal-hero .btn-secondary:hover,
.legal-cta .btn-secondary:hover,
.footer-brand .btn-secondary:hover {
  background: #fff0bf;
}

.intro-content,
.quick-card,
.toc-card,
.content-section,
.eeat-links,
.legal-section,
.contact-card,
.step-card,
.faq-item,
.check-list li {
  background: #fffaf0;
  color: #2b1204;
  border-color: rgba(71, 27, 5, .22);
}

.content-section p,
.intro-content p,
.eeat-links p,
.legal-section p,
.legal-section li,
.contact-card,
.check-list li,
.step-card p,
.faq-item p {
  color: #3a1a08;
}

.toc-grid a,
.eeat-grid a {
  color: #2b1204;
  background: #ffe3a3;
  border-color: rgba(89, 35, 5, .26);
}

.section-image,
.table-wrap,
.legal-hero-image {
  max-width: 100%;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
}

th,
td {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 640px) {
  .container,
  .nav-inner,
  .mobile-menu,
  .footer-main,
  .footer-trust,
  .footer-bottom {
    width: min(100% - 24px, 1120px);
  }

  .page-shell,
  .legal-layout {
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero,
  .legal-hero {
    padding-top: 34px;
  }

  .hero-grid,
  .intro-card,
  .legal-hero-inner {
    gap: 20px;
  }

  .hero-media,
  .section-image,
  .intro-content,
  .quick-card,
  .toc-card,
  .content-section,
  .eeat-links,
  .legal-section,
  .legal-hero-image,
  .contact-card {
    border-radius: 18px;
  }

  .hero-card,
  .content-card,
  .intro-content,
  .quick-card,
  .toc-card,
  .content-section,
  .eeat-links,
  .legal-section {
    padding: 20px;
  }

  .btn-row,
  .footer-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-row .btn,
  .footer-cta-row .btn {
    width: 100%;
  }

  table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: .92rem;
  }

  th,
  td {
    padding: 10px 8px;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  h1 { font-size: clamp(2rem, 13vw, 3rem); }
  h2 { font-size: clamp(1.55rem, 9vw, 2.2rem); }

  .hero-card,
  .content-card,
  .intro-content,
  .quick-card,
  .toc-card,
  .content-section,
  .eeat-links,
  .legal-section {
    padding: 16px;
  }
}
