:root {
  --ink: #17211f;
  --muted: #5f6f69;
  --paper: #fbfaf6;
  --white: #ffffff;
  --teal: #1F3A5F;
  --teal-dark: #1F3A5F;
  --sage: #dfe9e3;
  --gold: #c8913c;
  --line: #d8dfda;
  --shadow: 0 18px 45px rgba(22, 34, 31, 0.12);
  --font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Scroll offset for anchor links — keeps content below the fixed nav */
section,
[id] {
  scroll-margin-top: 138px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar strong {
  font-weight: 700;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(216, 223, 218, 0.9);
  backdrop-filter: blur(12px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 117, 107, 0.26);
  font-size: 1.05rem;
}

.brand span:last-child {
  display: block;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #31433f;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger.hamburger--active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger.hamburger--active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(31, 117, 107, 0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  border-color: rgba(20, 82, 73, 0.24);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--white);
  border-color: rgba(20, 82, 73, 0.5);
}

.hero {
  position: relative;
  min-height: calc(105vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #e8efe9;
  justify-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("assets/tina-tax-hero-001.png") center / contain no-repeat;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.hero-content {
  width: min(640px, 100%);
  padding: 32px 36px;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(216, 223, 218, 0.7);
  box-shadow: 0 18px 45px rgba(22, 34, 31, 0.10);
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--teal-dark);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: #3f504b;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.quick-point {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(216, 223, 218, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(23, 33, 31, 0.08);
}

.quick-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.quick-point span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

section {
  padding: 78px 0;
}

.resources {
  padding: 40px 0;
}

.resources + .resources {
  padding-top: 0;
}

.intro {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: start;
}

.about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy {
  color: #40524d;
  font-size: 1.08rem;
  line-height: 1.65;
}

.service-intro {
  margin-bottom: 28px;
}

.service-intro .section-copy {
  max-width: 48em;
}

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

.service-card {
  min-height: 410px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-photo {
  height: 430px;
  background: var(--sage);
  overflow: hidden;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.profile-name {
  padding: 20px 22px 0;
  background: var(--white);
}

.profile-name strong,
.profile-name span {
  display: block;
}

.profile-name strong {
  font-size: 1.3rem;
  line-height: 1.2;
}

.profile-name span {
  margin-top: 4px;
  color: var(--teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-caption {
  padding: 14px 22px 22px;
  color: var(--muted);
  font-size: 0.98rem;
  background: var(--white);
}

.trust-band {
  background: var(--teal-dark);
  color: var(--white);
}

.trust-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 40px;
  align-items: center;
}

.trust-band h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding-left: 22px;
  position: relative;
  color: #dcebe6;
}

.trust-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.process {
  background: var(--paper);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.step {
  min-height: 210px;
  padding: 26px;
  background: var(--white);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  background: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 40px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-top: 24px;
  color: #3d504b;
}

.contact-details a,
.contact-details span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-details strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #30443f;
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status.error {
  color: #9b2c2c;
}

.message-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.message-status.error {
  color: #9b2c2c;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

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

footer {
  padding: 28px 0;
  background: #23395D;
  color: #d7dfdb;
  font-size: 0.9rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-note {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 20px;
  color: #d7dfdb;
  font-size: 0.86rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .topbar-inner,
  .nav-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-inner {
    gap: 14px;
  }

  /* ── Hamburger visible on mobile ── */
  .hamburger {
    display: flex;
    z-index: 5;
  }

  /* ── Nav links as a full-width dropdown ── */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms ease, opacity 200ms ease;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(216, 223, 218, 0.6);
  }

  .nav-links .button {
    min-width: unset;
    margin: 12px 16px 14px;
    width: calc(100% - 32px);
  }

  .nav--mobile-open .nav-links {
    max-height: 500px;
    opacity: 1;
  }

  .hero {
    min-height: 60vh;
  }

  .hero::before {
    background:
      url("assets/tina-tax-hero-001.png") center / cover no-repeat;
  }

  .hero-inner {
    padding: 62px 0 70px;
  }

  .hero-content {
    padding: 24px 20px;
    width: calc(100% - 40px);
  }

  .quick-points,
  .about-layout,
  .service-grid,
  .step-grid,
  .split,
  .trust-band .section-inner,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  section {
    padding: 58px 0;
  }

  .contact-panel {
    padding: 22px;
  }
}

.required-marker {
  color: #d93025;
  display: flex;
  flex-direction: row;
}

/* NATIVE FLIP: Styles applied instantly when a field is marked invalid */
input:user-invalid,
select:user-invalid,
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border: 2px solid #d93025;
  background-color: #fce8e6;
}

/* Inline Error Text styling */
.inline-error {
  color: #d93025;
  font-size: 14px;
  font-weight: 400;
  min-height: 18px; /* Prevents layout shifting when text appears */
}

/* Global Summary Box styling */
.error-summary {
  background-color: #fce8e6;
  border-left: 4px solid #d93025;
  padding: 16px;
  border-radius: 4px;
}

.error-summary h2 {
  color: #a51d24;
  margin: 0 0 8px 0;
  font-size: 18px;
}

.error-summary ul {
  margin: 0;
  padding-left: 20px;
  color: #a51d24;
}

.error-summary a {
  color: #a51d24;
  font-weight: bold;
}

.label-container {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

@media (max-width: 560px) {
  .topbar-inner,
  .nav-inner,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
    /* display: flex; */
    flex-direction: row;
    justify-content: space-between;
  }

  .brand span:last-child {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 48px 0;
  }

  section + section {
    margin-top: 0;
  }
}

/* ── IRS Resources Section ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.resource-card h3 {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 1.1rem;
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 120ms ease, border-color 120ms ease;
}

.resource-link:hover {
  background: #eef2ee;
  border-color: rgba(31, 58, 95, 0.3);
}

.resource-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
}

/* ── FAQ Section ─ */
.faq {
  background: var(--paper);
}

.faq-list {
  max-width: 780px;
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.faq-item details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--teal-dark);
  transition: transform 200ms ease;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ── Newsletter Band ── */
.newsletter-band {
  background: var(--sage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* .newsletter-form input[type="email"] {
  flex: 1 1 200px;
} */

.newsletter-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-dark);
  min-height: 22px;
}

.newsletter-status.error {
  color: #9b2c2c;
}

@media (max-width: 860px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .newsletter-band {
    padding: 48px 0;
  }

  .newsletter-inner {
    width: calc(100% - 24px);
    padding: 0 12px;
  }

  .newsletter-inner h2 {
    font-size: 1.7rem;
  }

  .newsletter-inner p.section-copy {
    font-size: 0.98rem;
  }

  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }

  .newsletter-status {
    order: 1;
    min-height: auto;
    margin-bottom: 6px;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    align-self: flex-start;
  }
}

