/* ============================================================
   TAX PREPARATION SERVICES LANDING PAGE
   (core/templates/core/service_pages/tax-preparation-services.html)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid,
   sticky .cs-rail, cards, quote factors, FAQ grid, reviews, offices, related).
   Everything here is prefixed .tp- and is this page's own look.

   A light build: EMERALD on warm SAND with a MARIGOLD accent. Hero = text left,
   "Which return do you need?" picker right. Body = six link tiles, a dates table,
   three document cards, a short late-filing list, four numbered steps (a true
   sequence). No thick bars on cards; tinted fills and icon tiles instead.

   Palette: emerald #0b4a3a (white on it 10:1), deep #06322a, sand page #f6f1e7 /
   #ece4d2 (line #ddd0b4), marigold #f4b942 (emerald text on it 6:1) and tint
   #fdf0c9, gold ink #8a5a00 on light (5.3:1), text #1c2f2a / #3f5249. No red; the
   only motion is a short hover lift.
   ============================================================ */

.tp-hero {
    position: relative;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    color: #0b4a3a;
    background: linear-gradient(180deg, #f6f1e7 0%, #ece4d2 100%) !important;
    border-bottom: 4px solid #f4b942;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.75rem, 3.5vw, 2.75rem) !important;
    overflow: clip;
}
/* Same left/right edge as the rest of the redesign (see .cs-body in service-pages.css). */
.tp-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .tp-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.tp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: #3f5249; margin-bottom: clamp(0.9rem, 2.5vw, 1.4rem); }
.tp-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: #3f5249; text-decoration: none; }
.tp-crumbs a:hover { color: #0b4a3a; text-decoration: underline; }
.tp-crumbs span[aria-current] { color: #0b4a3a; }
.tp-crumbs span[aria-hidden] { color: #8d9a8a; }

.tp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 992px) { .tp-hero-main { position: sticky; top: 1.25rem; } }
.tp-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #8a5a00; background: #fdf0c9; border: 1px solid #ecd58a; border-radius: 999px; padding: 0.32rem 0.85rem; margin-bottom: 1rem; }
.tp-hero h1 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: #0b4a3a; margin: 0 0 1rem; }
.tp-intro { max-width: 40rem; font-size: 1.04rem; line-height: 1.7; color: #1c2f2a; margin: 0 0 1rem; }
.tp-points { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.45rem; }
.tp-points li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; font-weight: 600; line-height: 1.45; color: #0b4a3a; }
.tp-points .cs-ico { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.05rem; padding: 3px; border-radius: 50%; color: #0b4a3a; background: #f4b942; stroke-width: 3; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.8rem 1.45rem; font-size: 0.95rem; font-weight: 800; text-decoration: none; border-radius: 12px; border: 2px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.tp-btn .cs-ico { width: 17px; height: 17px; }
.tp-btn-gold { color: #0b4a3a; background: #f4b942; box-shadow: 0 4px 0 #8a5a00; }
.tp-btn-ghost { color: #0b4a3a; background: transparent; border-color: #0b4a3a; }
.tp-btn:focus-visible, .tp-opt:focus-visible, .tp-send:focus-visible { outline: 3px solid #8a5a00; outline-offset: 3px; }
.tp-noscript { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; font-size: 0.9rem; color: #0b4a3a; background: #ffffff; border: 1px dashed #8a5a00; border-radius: 14px; }

/* The picker */
.tp-picker { padding: 1.25rem 1.25rem 1.35rem; background: #ffffff; border: 1px solid #ddd0b4; border-radius: 22px; box-shadow: 0 28px 44px -34px rgba(11, 74, 58, 0.55); }
.tp-picker[hidden] { display: none; }
.tp-picker h2 { margin: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.35rem; font-weight: 700; color: #0b4a3a; }
.tp-picker-sub { margin: 0.15rem 0 0.9rem; font-size: 0.86rem; color: #3f5249; }
.tp-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.tp-opt { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 56px; padding: 0.45rem 0.7rem; font: inherit; text-align: left; color: #0b4a3a; background: #f6f1e7; border: 1.5px solid #ddd0b4; border-radius: 14px; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.tp-opt-ico { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #f4b942; background: #0b4a3a; border-radius: 10px; }
.tp-opt-ico .cs-ico { width: 18px; height: 18px; }
.tp-opt-label { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.tp-opt[aria-pressed="true"] { color: #ffffff; background: #0b4a3a; border-color: #0b4a3a; }
.tp-opt[aria-pressed="true"] .tp-opt-ico { color: #0b4a3a; background: #f4b942; }
.tp-result { margin-top: 1rem; }
.tp-empty { margin: 0; padding: 0.9rem 1rem; font-size: 0.9rem; color: #3f5249; border: 1.5px dashed #c9bb95; border-radius: 14px; }
.tp-res { padding: 1rem 1.05rem 1.1rem; background: #f6f1e7; border-radius: 16px; }
.tp-res-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.45rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: #0b4a3a; }
.tp-res-title::before { content: ""; flex: 0 0 12px; width: 12px; height: 12px; background: #f4b942; border-radius: 50%; }
.tp-res-points { margin: 0 0 0.6rem; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.tp-res-points li { font-size: 0.88rem; line-height: 1.55; color: #1c2f2a; }
.tp-res-points li::marker { color: #8a5a00; }
.tp-res-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.9rem; font-weight: 800; color: #8a5a00; text-decoration: underline; text-underline-offset: 3px; }
.tp-send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 0.5rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 0.92rem; font-weight: 800; color: #ffffff; background: #0b4a3a; border: 0; border-radius: 12px; box-shadow: 0 4px 0 #06322a; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tp-send:active { transform: translateY(2px); box-shadow: 0 2px 0 #06322a; }
.tp-disclaimer { display: block; margin-top: 0.55rem; font-size: 0.76rem; line-height: 1.45; color: #3f5249; text-align: center; }

/* ---------- Body ---------- */
.tp-body .cs-sec h2::after { content: ""; display: block; width: 54px; height: 4px; margin-top: 0.55rem; background: linear-gradient(90deg, #0b4a3a, #f4b942); border-radius: 4px; }
.tp-body .cs-jump a:hover { background: #fdf0c9; color: #8a5a00; }
.tp-note { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.95rem 1.1rem; background: #f6f1e7; border: 1px dashed #c9bb95; border-radius: 14px; }
.tp-note .cs-ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; color: #0b4a3a; }
.tp-note span { font-size: 0.9rem; line-height: 1.6; color: #1c2f2a; }
.tp-note a, .tp-more a { font-weight: 800; color: #8a5a00; text-decoration: underline; text-underline-offset: 3px; }
.tp-more { margin: 0.8rem 0 0; }
.tp-more a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; font-size: 0.92rem; }

.tp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.tp-tile { display: flex; flex-direction: column; padding: 1rem 0.95rem 1rem; background: #ffffff; border: 1px solid #ddd0b4; border-radius: 16px; }
.tp-tile-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.55rem; color: #8a5a00; background: #fdf0c9; border-radius: 50%; }
.tp-tile-ico .cs-ico { width: 21px; height: 21px; }
.tp-tile h3 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; line-height: 1.3; color: #0b4a3a; }
.tp-tile p { margin: 0 0 0.6rem; font-size: 0.84rem; line-height: 1.55; color: #1c2f2a; }
.tp-tile-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; font-size: 0.86rem; font-weight: 800; color: #8a5a00; text-decoration: underline; text-underline-offset: 3px; }

.tp-table-wrap { overflow-x: auto; border: 1px solid #ddd0b4; border-radius: 16px; background: #ffffff; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tp-table thead th { padding: 0.8rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff; background: #0b4a3a; }
.tp-table tbody th, .tp-table tbody td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; line-height: 1.55; color: #1c2f2a; border-top: 1px solid #ece4d2; }
.tp-table tbody th { width: 34%; font-weight: 700; color: #0b4a3a; }
.tp-table tbody tr:nth-child(even) { background: #fbf8f1; }

.tp-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.tp-doc { padding: 1rem 0.95rem 1.05rem; background: #f6f1e7; border: 1px solid #ddd0b4; border-radius: 16px; }
.tp-doc h3 { margin: 0 0 0.4rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0b4a3a; }
.tp-doc ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.35rem; }
.tp-doc li { font-size: 0.85rem; line-height: 1.5; color: #1c2f2a; }
.tp-doc li::marker { color: #8a5a00; }

.tp-late { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.tp-late li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.95rem 1rem; background: #fbf3dc; border: 1px solid #eed9a0; border-radius: 16px; }
.tp-late li:last-child { background: #e6efe0; border-color: #bcd2b6; }
.tp-late-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #8a5a00; background: #ffffff; border-radius: 11px; }
.tp-late li:last-child .tp-late-ico { color: #0b4a3a; }
.tp-late-ico .cs-ico { width: 20px; height: 20px; }
.tp-late h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b4a3a; }
.tp-late p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #1c2f2a; }

.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.tp-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.tp-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: -0.9rem; width: 2px; background: repeating-linear-gradient(180deg, #b9a77a 0, #b9a77a 6px, transparent 6px, transparent 12px); }
.tp-step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: #ffffff; background: #0b4a3a; border-radius: 50%; box-shadow: 0 0 0 4px #ece4d2; }
.tp-step-card { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.95rem 1.05rem; background: #ffffff; border: 1px solid #ddd0b4; border-radius: 16px; }
.tp-step-ico { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: #f4b942; background: #0b4a3a; border-radius: 12px; }
.tp-step-ico .cs-ico { width: 21px; height: 21px; }
.tp-step-card h3 { margin: 0 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0b4a3a; }
.tp-step-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #1c2f2a; }

.tp-incl .cs-tile, .tp-decides .cs-tile { color: #0b4a3a; background: linear-gradient(140deg, #ffffff, #fdf0c9); border-color: #ecd58a; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }
.tp-incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem; }
.tp-incl li { display: flex; gap: 0.8rem; align-items: flex-start; }
.tp-incl h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b4a3a; }
.tp-incl p { margin: 0; font-size: 0.87rem; line-height: 1.55; color: #3f5249; }
.tp-decides { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.2rem; padding: 1.05rem 1.2rem; background: #0b4a3a; border-radius: 16px; }
.tp-decides .cs-tile { flex-shrink: 0; }
.tp-decides strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #f4b942; margin-bottom: 0.2rem; }
.tp-decides p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #ece4d2; }

.tp-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.tp-source { display: flex; align-items: center; gap: 0.8rem; min-height: 62px; padding: 0.75rem 0.9rem; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #ddd0b4; border-radius: 14px; box-shadow: 0 2px 0 #ece4d2; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tp-source:focus-visible { outline: 3px solid #8a5a00; outline-offset: 2px; }
.tp-source-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #f4b942; background: #0b4a3a; border-radius: 11px; }
.tp-source-ico .cs-ico { width: 20px; height: 20px; }
.tp-source-text { flex: 1 1 auto; min-width: 0; }
.tp-source-text strong { display: block; font-size: 0.92rem; line-height: 1.3; color: #0b4a3a; }
.tp-source-text em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 600; color: #3f5249; }
.tp-source-go { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #0b4a3a; background: #f4b942; border-radius: 50%; transition: transform 0.2s ease; }
.tp-source-go .cs-ico { width: 16px; height: 16px; }

@media (hover: hover) and (pointer: fine) {
    .tp-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #8a5a00, 0 16px 26px -14px rgba(244, 185, 66, 0.8); }
    .tp-btn-ghost:hover { background: #0b4a3a; color: #ffffff; }
    .tp-opt:hover { transform: translateY(-3px); border-color: #0b4a3a; }
    .tp-opt[aria-pressed="true"]:hover { border-color: #0b4a3a; }
    .tp-send:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #06322a; }
    .tp-incl li:hover .cs-tile { transform: rotate(-8deg) scale(1.1); color: #f4b942; background: #0b4a3a; border-color: transparent; }
    .tp-source:hover { border-color: #0b4a3a; transform: translateY(-3px); box-shadow: 0 2px 0 #ece4d2, 0 16px 26px -16px rgba(11, 74, 58, 0.5); }
    .tp-source:hover .tp-source-go { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
    .tp-btn, .tp-opt, .tp-send, .tp-incl .cs-tile, .tp-source, .tp-source-go { transition: none !important; }
    .tp-btn:hover, .tp-opt:hover, .tp-send:hover, .tp-incl li:hover .cs-tile, .tp-source:hover, .tp-source:hover .tp-source-go { transform: none !important; }
}

@media (max-width: 1200px) { .tp-grid3, .tp-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { .tp-hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
    .tp-incl, .tp-sources { grid-template-columns: minmax(0, 1fr); }
    .tp-table-wrap { border: 0; background: transparent; overflow: visible; }
    .tp-table, .tp-table thead, .tp-table tbody, .tp-table tr, .tp-table th, .tp-table td { display: block; }
    .tp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tp-table tbody tr { margin-bottom: 0.75rem; background: #ffffff; border: 1px solid #ddd0b4; border-radius: 14px; overflow: hidden; }
    .tp-table tbody tr:nth-child(even) { background: #ffffff; }
    .tp-table tbody th, .tp-table tbody td { width: auto; border-top: 0; padding: 0.55rem 0.95rem; }
    .tp-table tbody th { background: #f6f1e7; padding-top: 0.75rem; }
    .tp-table tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #3f5249; }
}
@media (max-width: 640px) {
    .tp-actions .tp-btn { width: 100%; }
    .tp-grid3, .tp-docs { grid-template-columns: minmax(0, 1fr); }
    .tp-send { width: 100%; }
    .tp-steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 0.7rem; }
    .tp-step-num { width: 38px; height: 38px; font-size: 1rem; }
    .tp-steps li:not(:last-child)::before { left: 18px; top: 40px; }
    .tp-step-card { flex-direction: column; gap: 0.6rem; }
}
@media (max-width: 400px) { .tp-opts { grid-template-columns: minmax(0, 1fr); } }
