/* site.css — Shared styles for receipts2excel.ca inner pages */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --border: #E8E2DA;
  --text-primary: #2C2925;
  --text-secondary: #7A746B;
  --accent: #C4653A;
  --accent-hover: #A8522D;
  --accent-light: #FFF3ED;
  --success: #3A7D53;
  --success-bg: #EDFAF2;
  --shadow-sm: 0 1px 3px rgba(44,41,37,0.06);
  --shadow-md: 0 4px 16px rgba(44,41,37,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
}

/* ---- NAV ---- */

.top-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-primary); }

.btn-nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.15s !important;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}

/* ---- PAGE LAYOUT ---- */

.page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-container.wide { max-width: 940px; }

.page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 12px;
}

.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ---- PROSE (blog / legal) ---- */

.prose h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-top: 52px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

.prose p {
  font-size: 16px;
  color: #3D3A36;
  margin-bottom: 18px;
  line-height: 1.78;
}

.prose ul, .prose ol {
  margin: 0 0 18px 22px;
}

.prose li {
  font-size: 16px;
  color: #3D3A36;
  line-height: 1.75;
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--text-primary); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 16px;
  color: var(--text-primary);
}

/* ---- CALLOUT ---- */

.callout {
  background: var(--accent-light);
  border: 1px solid rgba(196,101,58,0.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
}

.callout-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.callout p {
  font-size: 15px;
  color: var(--text-primary);
  margin: 0;
}

/* ---- CTA BOX ---- */

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
  box-shadow: var(--shadow-sm);
}

.cta-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-cta:hover { background: var(--accent-hover); color: #fff; }

/* ---- BLOG GRID ---- */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D0C9C0;
  transform: translateY(-1px);
}

.blog-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-card-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---- POST META ---- */

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ---- STEPS (How It Works) ---- */

.steps-list { margin-top: 32px; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- FAQ ---- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- CONTACT ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  background: var(--surface);
}

.footer-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ---- COOKIE BANNER ---- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(44,41,37,0.08);
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-btn-group { display: flex; gap: 8px; }

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.cookie-btn-accept:hover { background: var(--accent-hover); }

.cookie-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.cookie-btn-decline:hover { background: var(--bg); }

/* ---- AD SLOTS ---- */

.ad-slot {
  text-align: center;
  margin: 40px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12px;
}

/* ---- VALUE STRIP ---- */

.value-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 20px 0;
}

.value-strip-sep { opacity: 0.4; }

/* ---- TABLE SCROLL WRAPPER ---- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.table-scroll table {
  margin: 0;
  min-width: 400px;
  border: none;
}

.table-scroll table th,
.table-scroll table td {
  white-space: nowrap;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 640px) {
  .page-title { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-container { padding: 32px 20px 60px; }
  .nav-links a:not(.btn-nav-cta) { display: none; }
  .cta-box { padding: 24px 20px; }
  .step-item { gap: 14px; }
  .step-number { width: 34px; height: 34px; font-size: 16px; flex-shrink: 0; }
  .value-strip { font-size: 12px; gap: 4px 8px; }
  .prose table th, .prose table td { padding: 8px 10px; font-size: 14px; }
}
