/* ================================================================
   Example Pages — Shared Stylesheet
   Extracted from _template.html + generated pages, plus new SEO sections.
   Link as: <link rel="stylesheet" href="/examples/example.css">
   Set per-page hero image via inline CSS variable:
     <style>.ex-hero { --hero-bg: url('/examples/photos/...'); }</style>
   ================================================================ */

/* ── Trust Strip (below hero) ── */
.ex-trust-strip {
  background: #F0F4F8;
  border-bottom: 1px solid #E2EAF0;
  padding: 14px 24px;
}
.ex-trust-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ex-trust-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.ex-trust-strip svg {
  color: #2563EB;
  flex-shrink: 0;
}

/* ── Hero ── */
.ex-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.ex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center/cover no-repeat;
  opacity: 0.15;
}
.ex-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.ex-hero-left h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ex-hero-context {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 24px;
}
.ex-big-number {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ex-big-number-item {
  text-align: center;
}
.ex-big-number-item .value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, #60A5FA, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ex-big-number-item .label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Mini Calculator ── */
.ex-calc {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
.ex-calc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ex-calc-field {
  margin-bottom: 12px;
}
.ex-calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.ex-calc-field select,
.ex-calc-field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.ex-calc-field select:focus,
.ex-calc-field input:focus {
  border-color: var(--accent);
}
.ex-calc-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  margin-top: 4px;
}
.ex-calc-btn:hover {
  transform: translateY(-1px);
}
.ex-calc-result {
  display: none;
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-radius: 14px;
  border: 2px solid #93C5FD;
}
.ex-calc-result.visible {
  display: block;
}
.ex-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}
.ex-calc-row strong {
  color: var(--dark);
}
.ex-calc-highlight {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  margin: 6px -12px;
  padding: 10px 12px !important;
  border-radius: 10px;
  font-size: 1rem !important;
}
.ex-calc-order {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s;
}
.ex-calc-order:hover {
  transform: translateY(-1px);
}

/* ── Content Sections ── */
.ex-section {
  padding: 48px 24px;
}
.ex-section:nth-child(even) {
  background: var(--bg);
}
.ex-section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.ex-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}
.ex-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── SVG Chart ── */
.ex-chart {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.ex-chart img {
  width: 100%;
  height: auto;
}

/* ── Breakdown Table ── */
.ex-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ex-table th {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ex-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.ex-table tr:last-child td {
  border-bottom: none;
}
.ex-table tr:hover td {
  background: #F8FBFD;
}
.ex-table .highlight-row td {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  font-weight: 600;
}
.ex-table .highlight-row:hover td {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

/* ── Trust Bar ── */
.ex-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}
.ex-trust-item {
  text-align: center;
  padding: 20px 12px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ex-trust-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.ex-trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.ex-trust-item span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Comparison Tables ── */
.ex-compare {
  margin: 32px 0;
}
.ex-compare h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ex-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ex-compare-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}
.ex-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.ex-compare-table tr:last-child td {
  border-bottom: none;
}
.ex-compare-table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.ex-compare-table a:hover {
  text-decoration: underline;
}
.ex-compare-table .current-row td {
  background: #EFF6FF;
  font-weight: 600;
}

/* ── CTA ── */
.ex-cta {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
}
.ex-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.ex-cta p {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ex-cta .btn-primary {
  font-size: 1.1rem;
  padding: 18px 48px;
}

/* ── Cross Links ── */
.ex-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.ex-link-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.ex-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.ex-link-card strong {
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}
.ex-link-card span {
  font-size: 0.85rem;
  color: var(--accent);
}

/* ── Disclaimer ── */
.ex-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 24px;
  padding: 16px;
  background: #F8FBFD;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── Takeaway ── */
.ex-takeaway {
  max-width: 900px;
  margin: -20px auto 32px;
  padding: 0 24px;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}
.ex-takeaway strong {
  color: var(--accent);
}

/* ── Property Snapshot ── */
.ex-snapshot {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.ex-snapshot-card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.ex-snapshot-item {
  text-align: center;
}
.ex-snapshot-item .snap-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.ex-snapshot-item .snap-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Before vs After ── */
.ex-before-after {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.ex-ba-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ex-ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.ex-ba-row:last-child {
  border-bottom: none;
}
.ex-ba-cell {
  padding: 14px 20px;
  font-size: 0.92rem;
}
.ex-ba-header .ex-ba-cell {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ex-ba-highlight .ex-ba-cell {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  font-weight: 700;
  color: var(--dark);
}
.ex-ba-highlight .ex-ba-cell:last-child {
  color: #16A34A;
}

/* ================================================================
   NEW — SEO Redesign Sections
   ================================================================ */

/* ── Answer Block (featured snippet target) ── */
.ex-answer-block {
  background: #F0F5FA;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.ex-answer-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ex-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  list-style: none;
  padding: 0;
}
.ex-answer-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #E2EAF0;
}
.ex-answer-item dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.ex-answer-item dd {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.ex-answer-highlight {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-color: #93C5FD;
}
.ex-answer-highlight dd {
  color: #1D4ED8;
  font-size: 1.3rem;
}
.ex-answer-assumptions {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 16px 0 0;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #E2EAF0;
}

/* ── Worked Example (step-by-step calculation) ── */
.ex-worked-example {
  margin-bottom: 32px;
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(13,43,62,0.08);
  border: 1px solid #E2EAF0;
}
.ex-worked-example h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}
.ex-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 16px;
  margin-bottom: 20px;
  padding: 0 0 0 4px;
  border-left: 3px solid var(--accent);
}
.ex-step-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.4;
}
.ex-step-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.ex-step-content strong {
  color: var(--dark);
}
.ex-step-content p {
  margin: 4px 0 0;
}

/* ── Why Section (educational) ── */
.ex-why-section {
  margin-bottom: 32px;
}
.ex-why-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.ex-why-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.ex-why-section ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.ex-why-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}
.ex-why-section li strong {
  color: var(--dark);
}

/* ── Who Section (applicability) ── */
.ex-who-section {
  margin-bottom: 32px;
}
.ex-who-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.ex-who-section ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.ex-who-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}
.ex-who-section .ex-caveat {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-top: 12px;
  padding: 12px 16px;
  background: #F8FBFD;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── IRS Compliance Section ── */
.ex-irs-section {
  margin-bottom: 32px;
  padding: 24px 28px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ex-irs-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.ex-irs-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.ex-irs-section p:last-child {
  margin-bottom: 0;
}
.ex-irs-section strong {
  color: var(--dark);
}
.ex-irs-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.ex-irs-section ul li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  padding: 4px 0 4px 20px;
  position: relative;
}
.ex-irs-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Email Capture Box ── */
.ex-email-capture {
  background: linear-gradient(135deg, #0B1F3A, #1A3A5C);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 32px;
  text-align: center;
}
.ex-email-capture h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.ex-email-capture p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  line-height: 1.5;
}
.ex-email-capture-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.ex-email-capture-row input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  background: white;
  min-height: 42px;
}
.ex-email-capture-row button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #F59E0B;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  transition: background 0.2s;
}
.ex-email-capture-row button:hover {
  background: #D97706;
}
.ex-email-capture .ex-email-toast {
  display: none;
  padding: 10px;
  color: #22C55E;
  font-weight: 600;
  font-size: 0.85rem;
}
.ex-email-capture .ex-email-fine {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
}

/* ================================================================
   Responsive — 768px
   ================================================================ */
@media (max-width: 768px) {
  .ex-trust-strip-inner {
    gap: 12px 24px;
    justify-content: flex-start;
  }
  .ex-trust-strip span {
    font-size: 0.75rem;
  }
  .ex-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ex-trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .ex-big-number {
    gap: 20px;
  }
  .ex-big-number-item .value {
    font-size: 1.8rem;
  }
  .ex-compare-table {
    font-size: 0.8rem;
  }
  .ex-compare-table th,
  .ex-compare-table td {
    padding: 8px 10px;
  }
  .ex-ba-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .ex-ba-cell {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .ex-answer-block dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .ex-answer-block dd {
    margin-bottom: 8px;
  }
  .ex-step {
    grid-template-columns: 32px 1fr;
    gap: 0 10px;
  }
  .ex-answer-grid {
    grid-template-columns: 1fr;
  }
  .ex-email-capture-row {
    flex-direction: column;
  }
}

/* ================================================================
   Responsive — 480px
   ================================================================ */
@media (max-width: 480px) {
  .ex-hero {
    padding: 120px 16px 60px;
  }
  .ex-section {
    padding: 36px 16px;
  }
  .ex-trust {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ex-trust-item {
    padding: 14px 8px;
  }
  .ex-snapshot-card {
    grid-template-columns: 1fr 1fr;
  }
  .ex-ba-row {
    grid-template-columns: 1fr;
  }
  .ex-ba-header .ex-ba-cell:not(:first-child) {
    display: none;
  }
  .ex-ba-cell {
    padding: 8px 14px;
  }
  .ex-table th,
  .ex-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .ex-cta {
    padding: 40px 16px;
  }
  .ex-cta h2 {
    font-size: 1.5rem;
  }
}

/* ================================================================
   Nav overrides for sub-pages
   ================================================================ */
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 200px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
}
.nav-dropdown-menu a:hover {
  background: var(--bg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: absolute;
  left: 4px;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
  .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: block;
  }
}
