:root{
  /* === Brand colors === */
  --brand-navy:   #0A1F44;   /* Deep navy - authority & trust */
  --brand-navy-2: #081a36;   /* Slightly darker for gradients */
  --brand-blue:   #287BFF;   /* Electric blue - tech-forward, energy */
  --brand-blue-2: #1e5fd4;   /* Button hover/focus */
  --ink:          #e9f2fb;   /* Body text on navy */
  --ink-muted:    #C9CED6;   /* Silver/gray - secondary text */
  --bg: var(--brand-navy);
  --fg: var(--ink);
}

body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--fg);
  font: 16px/1.6 "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; 
}

h1, h2, h3 { 
  color: var(--fg); 
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 700;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,31,68,0.92);
  z-index: 100;
}

.nav a { 
  color: rgba(255,255,255,0.9); 
  text-decoration: none; 
  margin: 0 8px; 
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand-blue);
}

.nav .btn { 
  margin-left: 8px; 
}

.brand img {
  height: 40px;
  display: block;
}

/* === Buttons === */
.btn { 
  padding: 12px 18px; 
  border-radius: 12px; 
  background: var(--brand-blue);
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  display: inline-block; 
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { 
  background: var(--brand-blue-2); 
}

.btn:focus { 
  outline: 2px solid #fff; 
  outline-offset: 2px; 
}

.btn--ghost { 
  background: transparent; 
  color: var(--fg); 
  border: 1px solid rgba(255,255,255,0.25); 
}

.btn--ghost:hover { 
  background: rgba(255,255,255,0.06); 
}

/* === Hero Section === */
.hero--brand {
  width: 100%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 800px at 25% 10%, color-mix(in oklab, var(--brand-navy) 88%, #000) 0%, transparent 70%),
    url("/img/hero-bg.webp") center / cover no-repeat,
    url("/img/hero-bg.png") center / cover no-repeat,
    linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  min-height: clamp(560px,70vh,760px);
  display: grid;
  place-items: center;
  overflow: clip;
}

.hero--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/img/wendy-whole-hero.webp") right center / auto 100% no-repeat;
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

.hero__inner { 
  z-index: 1;
  width: min(1200px,92vw); 
  display: grid;
  grid-template-columns: 1fr; 
  position: relative;
  align-items: center; 
  padding: clamp(48px,8vw,96px) 20px; 
  min-height: clamp(500px,65vh,700px);
}

.hero__copy { 
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: clamp(16px,4vh,48px); 
}

.eyebrow { 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  font-weight: 700;
  font-size: .95rem; 
  color: var(--ink-muted); 
  margin: 0 0 .75rem; 
}

.hero h1 { 
  font-family: "Nunito", system-ui, sans-serif; 
  font-weight: 800;
  font-size: clamp(36px,5.4vw,64px); 
  line-height: 1.05; 
  margin: 0 0 16px; 
}

.lead { 
  font-size: clamp(16px,1.25vw,18px); 
  color: var(--ink); 
  opacity: .95; 
  max-width: 52ch; 
}

.cta-row { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-top: 18px; 
}

/* === Content Blocks === */
.block { 
  scroll-margin-top: 80px; 
}

.block:nth-child(odd) { 
  background: rgba(255,255,255,0.02); 
}

.wrap { 
  max-width: 1000px; 
  margin: auto; 
  padding: 14px 20px; 
}

/* === Full-bleed hero (override the global .wrap constraint for the home block) === */
#home .wrap {
  max-width: none;
  padding: 0;
}

/* Keep normal padding/width for the non-hero blocks inside #home if you ever add them */
#home .hero__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 20px;
}

/* Section headings */
.block h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}

/* Subheadings like "Straightforward crypto taxes..." */
.block h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Bold section labels like "On your side", "Complete crypto expertise" */
.block strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.1em;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* Bullet lists */
.block ul {
  margin-bottom: 12px;
}

.block li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* === Links === */
a { 
  color: var(--brand-blue); 
  transition: color 0.2s ease;
}

a:hover {
  color: #5aa0ff;
}

small { 
  opacity: .8; 
}

/* === Mobile Styles === */
@media (max-width: 900px) {
  .hero--brand {
    min-height: 600px;
  }

  .hero__copy {
    max-width: 100%;
    text-align: left;
    padding: 0 20px;
  }

  /* Position portrait for mobile - move to bottom */
  .hero--brand::before {
    background-size: contain;
    background-position: center bottom;
    opacity: .95;
    top: auto;
    bottom: 0;
    height: 400px;
    inset: auto 0 0 0;
  }

  .hero__inner {
    min-height: 750px;
    padding: 40px 20px 420px 20px;
    align-items: start;
  }

  .hero__copy {
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  /* Keep the hero CTA left-aligned on mobile */
  #home .cta-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .nav .brand {
    margin-bottom: 8px;
  }
  
  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }
  
  .nav a {
    font-size: 14px;
    padding: 6px 10px;
    margin: 0;
  }
  
  .nav .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 13px;
    padding: 5px 8px;
  }
}

/* Hero CTA alignment (don't let global/mobile rules recenter it) */
#home .cta-row {
  justify-content: flex-start;
}

/* === Page Content === */
.page-content {
  padding: 48px 20px 64px;
}

.page-content article {
  max-width: 750px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.page-content h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.page-content h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-top: 32px;
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 48px 0;
}

.page-content strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* === Forms === */
form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e9f2fb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(255,255,255,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* === Footer === */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 20px 24px;
  margin-top: 80px;
}

footer .container {
  max-width: 1000px;
  margin: 0 auto;
}

footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

footer li {
  margin: 0;
}

footer .footer-menu-divider {
  color: rgba(255,255,255,0.3);
  user-select: none;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-blue);
}

footer .copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

footer .text-muted {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}

/* === Services Overview Cards === */
.page-content h2:first-of-type {
  margin-top: 32px;
}

.page-content hr {
  margin: 48px 0;
}

@media (max-width: 768px) {
  footer .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer ul {
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
  }

  .page-content {
    padding: 32px 16px 48px;
  }
}

/* Callout box for sidebars inside blog posts */
.callout {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--brand-blue);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 32px 0;
}

.callout-title {
  display: block;
  margin: 0 0 12px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* === IRS penalty & payment plan calculator (layouts/shortcodes/tax-calculator.html) ===
   Hybrid look: white form card with chips like the /unfiled-taxes/ landing page; results on navy panels. */
.tc { margin: 32px 0; }
.tc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tc-card {
  margin: 0;
  background: #fff;
  color: #14233d;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-content .tc-card h2.tc-step { color: #14233d; font-size: 22px; margin: 8px 0 0; }
.page-content .tc-card h3 { color: #14233d; font-size: 18px; margin: 0 0 12px; }
.page-content .tc-card p { margin: 0; }

.tc-year {
  border: 1px solid #d6deea;
  border-radius: 14px;
  padding: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.tc-year-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; }
.tc-year-head .tc-fld { flex: 0 1 160px; }

.tc-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tc-fld label, .tc-q { font-size: 14px; font-weight: 600; color: #14233d; }
.tc-hint { font-size: 13px; color: #566580; }
.tc-fld input, .tc-fld select {
  font: inherit; font-size: 16px; color: #14233d; background: #fff;
  border: 1px solid #c9d3e3; border-radius: 10px; padding: 12px 14px;
  min-height: 48px; height: 48px; box-sizing: border-box; width: 100%;
}
.tc-fld input:focus, .tc-fld select:focus { outline: 2px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
.tc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: start; }

.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chip {
  font: inherit; font-size: 15px; font-weight: 500; min-height: 48px; padding: 0 14px;
  border-radius: 10px; cursor: pointer; background: #fff; color: #14233d; border: 1px solid #c9d3e3;
}
.tc-chip[aria-pressed="true"] { background: #e6efff; color: #0a1830; border: 2px solid var(--brand-blue); }
.tc-chip:focus-visible, .tc-add:focus-visible, .tc-remove:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

.tc-add, .tc-remove {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; min-height: 44px; padding: 0 14px;
}
.tc-add { align-self: flex-start; background: transparent; color: var(--brand-blue-2); border: 1px dashed #9db6e3; }
.tc-add--small { font-size: 14px; }
.tc-remove { background: transparent; color: #8a3b3b; border: 1px solid #e3c9c9; font-size: 14px; }
.tc-payments { display: flex; flex-direction: column; gap: 12px; }
.tc-payrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }

.tc-advanced { border-top: 1px solid #d6deea; padding-top: 16px; }
.tc-submit { min-height: 54px; font-size: 17px; }
.tc-maintained { font-size: 13px; color: var(--ink-muted); margin-top: 16px; }
.tc-privacy { font-size: 13px; color: #566580; text-align: center; }
.tc-errors { background: #fff3f3; border: 1px solid #e6b3b3; border-radius: 10px; padding: 12px 16px; color: #6b1f1f; }
.tc-errors ul { margin: 8px 0 0; padding-left: 20px; }
.tc-errors li { margin: 4px 0; }

/* Results (navy) */
.tc-results { margin-top: 40px; }
.tc-results:empty { display: none; }
.page-content .tc-results-title { margin-top: 32px; }
.tc-busy { color: var(--ink-muted); }
.tc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.tc-stat { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 16px; }
.tc-stat-value { font-family: "Nunito", system-ui, sans-serif; font-size: clamp(22px, 4vw, 30px); font-weight: 700; color: #fff; line-height: 1.2; }
.tc-stat-label { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }

.tc-table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: 10px; }
.tc-table-wrap:focus-visible { outline: 2px solid var(--brand-blue); }
.tc-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tc-table caption { text-align: left; font-weight: 600; color: var(--ink-muted); padding: 0 0 8px; font-size: 14px; }
.tc-table th, .tc-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
.tc-table th:first-child { text-align: left; }
.tc-table thead th { font-size: 13px; font-weight: 600; color: var(--ink-muted); white-space: normal; vertical-align: bottom; }
.tc-table tbody th { font-weight: 600; }
.tc-table .tc-total th, .tc-table .tc-total td { font-weight: 700; color: #fff; border-top: 1px solid rgba(255,255,255,0.25); border-bottom: none; }

.tc-panel { background: rgba(255,255,255,0.05); border-left: 3px solid var(--brand-blue); border-radius: 4px; padding: 20px 24px; margin: 24px 0; }
.tc-panel--warn { border-left-color: #f5b74a; }
.page-content .tc-panel h3 { margin: 0 0 12px; font-size: 1.1em; color: #fff; }
.page-content .tc-panel p:last-child, .tc-panel ul:last-child { margin-bottom: 0; }
.tc-muted, .tc-note { color: var(--ink-muted); font-size: 14px; }
.tc-note ul { margin: 0 0 16px; }
.tc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.tc-disclaimer { font-size: 13px; color: var(--ink-muted); border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 16px; }
.page-content .tc-disclaimer p { margin-bottom: 8px; line-height: 1.5; }

/* Chart: single series, brand blue lightened for contrast on navy (validated), 2px line, ~10% area wash */
.tc-chart { margin: 8px 0 24px; }
.tc-chart-title { font-weight: 600; color: var(--ink-muted); font-size: 14px; margin-bottom: 8px; }
.tc-chart-plot { position: relative; width: 100%; }
.tc-chart-plot svg { display: block; touch-action: pan-y; }
.tc-chart-plot svg:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.tc-grid { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.tc-axis { fill: var(--ink-muted); font-size: 12px; }
.tc-line { fill: none; stroke: #4A90FF; stroke-width: 2; stroke-linejoin: round; }
.tc-area { fill: #4A90FF; opacity: 0.1; }
.tc-cross { stroke: rgba(255,255,255,0.35); stroke-width: 1; }
.tc-dot { fill: #4A90FF; stroke: var(--brand-navy); stroke-width: 2; }
.tc-tip {
  position: absolute; pointer-events: none; background: #fff; color: #14233d; border-radius: 8px;
  padding: 6px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); display: flex; flex-direction: column; white-space: nowrap;
}
.tc-tip strong { font-size: 15px; color: #0a1830; }
.tc-chart-table summary { cursor: pointer; color: var(--brand-blue); font-size: 14px; margin-top: 8px; }
.tc-chart-table .tc-table-wrap { max-height: 320px; overflow-y: auto; margin-top: 8px; }

@media (max-width: 480px) {
  .tc-year { padding: 14px; }
}

/* Narrow screens: each table row becomes a small card of label/value pairs, so no column is cut off. */
@media (max-width: 600px) {
  .tc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tc-table, .tc-table tbody, .tc-table tr { display: block; width: 100%; }
  .tc-table caption { display: block; width: 100%; }
  .tc-table tr { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .tc-table th, .tc-table td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 3px 4px; white-space: normal; }
  .tc-table tbody th { font-size: 16px; padding-bottom: 6px; }
  .tc-table td::before { content: attr(data-label); color: var(--ink-muted); font-weight: 400; text-align: left; }
  .tc-table .tc-total th, .tc-table .tc-total td { border-top: none; }
  .tc-table tr.tc-total { border-top: 1px solid rgba(255,255,255,0.25); }
}
.tc-monthpick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.tc-monthpick select { font: inherit; font-size: 16px; color: #14233d; background: #fff; border: 1px solid #c9d3e3; border-radius: 10px; padding: 12px 14px; height: 48px; width: 100%; box-sizing: border-box; }
.tc-monthpick select:focus { outline: 2px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
/* Placeholders read as examples, never as entered values (dates are text fields with an mm/dd/yyyy placeholder). */
.tc-fld input::placeholder { color: #6B7280; font-style: italic; opacity: 1; }
.tc-money-wrap { display: flex; align-items: stretch; }
.tc-prefix {
  display: flex; align-items: center; padding: 0 12px; font-size: 16px; font-weight: 600; color: #566580;
  background: #f4f7fb; border: 1px solid #c9d3e3; border-right: none; border-radius: 10px 0 0 10px;
}
.tc-money-wrap input { border-radius: 0 10px 10px 0 !important; min-width: 0; }
@media (max-width: 480px) {
  .tc-payrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tc-payrow > .tc-remove { grid-column: 1 / -1; justify-self: start; }
}
/* Small muted note above the calculator (client intro). Same size as the card's privacy note, ink-muted for the navy page. */
.page-content p.tc-intro-note { font-size: 13px; color: var(--ink-muted); margin-bottom: 0; }
