:root {
  --navy: #12304a;
  --navy-deep: #071b2d;
  --blue: #2364aa;
  --blue-soft: #edf5ff;
  --gold: #bd8b18;
  --gold-soft: #fff8e6;
  --text: #182231;
  --muted: #5b6675;
  --border: #d7e0ea;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --shadow: 0 16px 40px rgba(18, 48, 74, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: auto;
  align-items: center;
  padding: 58px clamp(20px, 6vw, 86px);
  color: var(--surface);
  background:
    linear-gradient(120deg, rgba(7, 27, 45, 0.98), rgba(18, 48, 74, 0.88)),
    radial-gradient(circle at 82% 24%, rgba(189, 139, 24, 0.32), transparent 30%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.hero-content {
  display: grid;
  width: min(1160px, 100%);
  max-width: 100%;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin: 0 auto;
}

.hero-main {
  max-width: 760px;
  min-width: 0;
}

.hero-panel,
.section-heading,
.form-intro,
.lead-form,
.problem-grid article,
.process-card,
.service-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.95rem, 3vw, 3rem);
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-panel {
  padding: 28px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.panel-label {
  margin: 0 0 14px;
  color: #f7cf72;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  position: relative;
  padding-left: 26px;
}

.hero-panel li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  background: #f7cf72;
  border-radius: 50%;
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.hero-actions p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.button.primary {
  color: var(--navy-deep);
  background: #f7c948;
}

.button.primary:hover {
  background: #f3bd2b;
}

.section {
  padding: 64px clamp(20px, 5vw, 72px);
}

#tax-problems {
  padding-top: 52px;
  padding-bottom: 56px;
}

.section-soft {
  background: var(--soft);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-copy {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.problem-grid,
.service-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.problem-grid article {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 0;
  padding: 12px 15px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #f7c948;
  border-radius: 8px;
}

.problem-grid span {
  font-weight: 850;
}

.problem-grid small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.34;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 44px;
  align-items: start;
}

.process-card,
.service-card,
.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.process-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.process-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
  background: var(--gold-soft);
  border-radius: 50%;
}

.process-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 25px;
  box-shadow: none;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-card.wide {
  grid-column: span 2;
}

.section-form {
  background:
    linear-gradient(rgba(245, 248, 252, 0.94), rgba(245, 248, 252, 0.94)),
    var(--blue-soft);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.form-note {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-note span {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 17px;
  padding: clamp(22px, 4vw, 34px);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border: 1px solid #c9d4e2;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.consent input {
  min-height: auto;
  margin-top: 5px;
}

.form-confirmation {
  min-height: 28px;
  margin: 0;
  padding-top: 2px;
  color: #166534;
  font-weight: 800;
}

.disclaimer-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.disclaimer-section .section-inner {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.disclaimer-section p {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-deep);
}

.site-footer p {
  width: min(1160px, 100%);
  margin: 0 auto;
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 960px) {
  .hero-content,
  .problem-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: span 1;
  }
}

@media (min-width: 961px) {
  #tax-problems .section-heading {
    max-width: 1160px;
  }

  #tax-problems h2 {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-main,
  .hero-actions,
  .hero-copy,
  .hero-panel,
  .section-heading,
  .problem-grid,
  .service-grid,
  .process-grid,
  .lead-form,
  .form-note {
    width: min(100%, 560px);
    max-width: calc(100vw - 60px);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #tax-problems {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .hero,
  .section {
    max-width: 100vw;
  }

  .hero-content,
  .section-inner {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .problem-grid,
  .service-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
