/* =============================================
   AccessReadyHome.com — Main Stylesheet
   Aesthetic: Warm editorial / trusted guide
   Palette: Deep teal + warm cream + amber
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --teal:       #1a6b6b;
  --teal-dark:  #124e4e;
  --teal-light: #d4eaea;
  --amber:      #d97706;
  --amber-light:#fef3c7;
  --cream:      #faf7f2;
  --warm-white: #ffffff;
  --text:       #1c1917;
  --text-mid:   #44403c;
  --text-light: #78716c;
  --border:     #e7e0d8;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --radius:     8px;
  --radius-lg:  16px;
  --max-w:      1120px;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --transition: 0.22s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; }

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

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ---- Site Header ---- */
.site-header {
  background: var(--warm-white);
  border-bottom: 2px solid var(--teal-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo:hover { text-decoration: none; color: var(--teal); }
.site-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

/* ---- Nav ---- */
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav a:hover { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--teal);
  color: #fff;
  margin-left: 0.5rem;
}
.site-nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all var(--transition);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--teal); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #2a8a8a 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 720px; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--text); border-color: var(--amber); }
.btn-primary:hover { background: #b45309; border-color: #b45309; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* ---- Cards ---- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--teal); text-decoration: none; }

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

/* ---- Alert / Info Box ---- */
.alert {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
  font-size: 0.93rem;
}
.alert-info { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }
.alert-amber { background: var(--amber-light); border-color: var(--amber); color: #92400e; }
.alert-disclaimer {
  background: #f5f5f4;
  border-color: #a8a29e;
  color: var(--text-mid);
  font-size: 0.85rem;
}

/* ---- Section Headings ---- */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-heading { margin-bottom: 0.6rem; }
.section-sub { color: var(--text-mid); font-size: 1.05rem; max-width: 640px; margin-bottom: 2.5rem; }

/* ---- Article / Prose ---- */
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--teal-dark); }
.prose ul, .prose ol { margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.prose th {
  background: var(--teal);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-sans);
}
.prose td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:nth-child(even) td { background: #fafaf9; }
.prose tr:hover td { background: var(--teal-light); }

/* ---- FAQ ---- */
.faq { margin: 1.5rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: var(--warm-white);
  padding: 1rem 1.25rem; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--teal-light); }
.faq-q .faq-icon { font-size: 1.2rem; color: var(--teal); transition: transform var(--transition); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; }
.faq-a.open { padding: 0.85rem 1.25rem 1rem; max-height: 800px; }
.faq-a p { font-size: 0.93rem; color: var(--text-mid); }

/* ---- State Table ---- */
.state-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.state-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.state-table th { background: var(--teal-dark); color: #fff; padding: 0.7rem 1rem; text-align: left; white-space: nowrap; }
.state-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.state-table tr:nth-child(even) td { background: #fafaf9; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.badge-required { background: #fee2e2; color: #991b1b; }
.badge-not-required { background: #dcfce7; color: #166534; }
.badge-varies { background: #fef9c3; color: #854d0e; }

/* ---- Sidebar Layout ---- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--teal-dark); border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { border-bottom: 1px solid var(--border); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { display: block; padding: 0.5rem 0; font-size: 0.88rem; color: var(--text-mid); }
.sidebar-box ul li a:hover { color: var(--teal); text-decoration: none; }

/* ---- Tool / Wizard ---- */
.tool-container {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tool-header {
  background: var(--teal-dark);
  color: #fff;
  padding: 1.5rem 2rem;
}
.tool-header h2 { color: #fff; font-size: 1.4rem; margin-bottom: 0.3rem; }
.tool-header p { opacity: 0.85; font-size: 0.9rem; margin: 0; }
.tool-body { padding: 2rem; }
.tool-step { display: none; }
.tool-step.active { display: block; }
.tool-progress { display: flex; gap: 0.4rem; padding: 1rem 2rem; background: var(--cream); border-bottom: 1px solid var(--border); }
.tool-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background var(--transition); }
.tool-progress-dot.active { background: var(--teal); }
.tool-progress-dot.done { background: var(--amber); }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.option-btn {
  padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--warm-white); cursor: pointer; text-align: center;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 500; color: var(--text);
  transition: all var(--transition);
}
.option-btn:hover, .option-btn.selected { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }
.option-btn .opt-icon { font-size: 1.75rem; display: block; margin-bottom: 0.4rem; }

.tool-result { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.result-section { margin-bottom: 1.25rem; }
.result-section h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; }
.result-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-item:last-child { border-bottom: none; }
.result-item .ri-check { color: #16a34a; font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ---- PDF Download Block ---- */
.pdf-download {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.pdf-icon { font-size: 2.5rem; flex-shrink: 0; }
.pdf-download h4 { margin-bottom: 0.25rem; }
.pdf-download p { font-size: 0.88rem; color: var(--text-mid); margin: 0 0 0.75rem; }

/* ---- Related Articles ---- */
.related-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  transition: all var(--transition);
}
.related-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); text-decoration: none; }
.related-card .rc-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.3rem; }
.related-card h4 { font-size: 0.95rem; color: var(--text); line-height: 1.4; }

/* ---- Homepage Section: Quick Nav ---- */
.quick-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
.quick-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 0.88rem; font-weight: 500; color: var(--text-mid);
  transition: all var(--transition);
  text-decoration: none;
}
.quick-nav-link:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); text-decoration: none; }
.quick-nav-link .qn-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .site-logo { color: #fff; font-size: 1.2rem; margin-bottom: 0.75rem; }
.footer-brand .site-logo .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand p { font-size: 0.88rem; opacity: 0.75; line-height: 1.6; max-width: 260px; }
.footer-col h5 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.6; margin: 0; }
.footer-disclaimer { font-size: 0.78rem; opacity: 0.5; max-width: 600px; line-height: 1.5; }

/* ---- Skip to Content ---- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--teal-dark); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem; font-weight: 600;
  transition: top 0.2s;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---- Google Analytics / AdSense placeholders ---- */
/* ANALYTICS_PLACEHOLDER - Replace with live GA4 tag */
/* ADSENSE_PLACEHOLDER - Replace with live AdSense tag */

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--warm-white); border-bottom: 2px solid var(--teal-light); padding: 1rem; box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .pdf-download { flex-direction: column; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }
}
