/* NY Highway Use Tax — main.css (UTF-8) */

:root {
  --navy: #003087;
  --navy-dark: #001A41;
  --navy-light: #1a4da6;
  --gold: #C8102E;
  --gold-dark: #9e0c24;
  --gold-light: #e8354f;
  --accent: #FFB81C;
  --accent-dark: #d99a10;
  --white: #fff;
  --off-white: #f5f7fb;
  --gray-100: #e8edf5;
  --gray-200: #d0d8e4;
  --gray-400: #7a8699;
  --gray-600: #4a5568;
  --gray-800: #1a2332;
  --success: #1a7f4e;
  --warning: #b8860b;
  --danger: #c0392b;
  --info: #2e6da4;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --container: 72rem;
  --header-h: 4.5rem;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(0, 48, 135, 0.12);
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--gray-800);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--navy); margin-top: 0; font-optical-sizing: auto; font-feature-settings: "ss01" on; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy-light); }
a:hover { color: var(--gold-dark); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.88); }
.section-header { max-width: 42rem; margin-bottom: 2.5rem; }
.section-header.centered { margin-inline: auto; text-align: center; }
.section-label { display: inline-block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.65rem; }
.section-dark .section-label { color: var(--gold-light); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--accent); color: var(--navy-dark); padding: 0.5rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--navy);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-text small { font-family: var(--font-sans); font-size: 0.62rem; color: var(--gray-600); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: flex-start; gap: 5px;
  width: 2.5rem; height: 2.5rem; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.5rem; height: 2px; background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Subheader navigation */
.site-subnav {
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.site-subnav .container { padding-left: 0; padding-right: 1.25rem; overflow-x: hidden; }
.subnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}
.subnav-list li { margin: 0; }
.subnav-list a {
  display: block;
  padding: 0.9rem 0.5rem;
  text-decoration: none;
  color: var(--gray-800);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.subnav-list a:hover,
.subnav-list a.active {
  color: var(--navy);
  background: rgba(0, 48, 135, 0.05);
  border-bottom-color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.65rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600; letter-spacing: 0.03em; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-cta { background: var(--accent); color: var(--navy-dark); }
.btn-cta:hover { background: var(--accent-dark); color: var(--navy-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn-xl { padding: 1rem 1.75rem; font-size: 1.125rem; }
.btn-header { white-space: nowrap; }
.btn-footer { margin-top: 1rem; width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.breadcrumbs { background: var(--off-white); border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--gray-400); }
.breadcrumbs a { color: var(--gray-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 4rem 0 5rem;
}
.hero h1, .hero h2 { color: var(--white); }
.hero-lead { font-family: var(--font-sans); font-size: 1.15rem; line-height: 1.75; max-width: 38rem; color: rgba(255,255,255,0.92); font-weight: 400; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.badge {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 999px;
  background: rgba(255, 184, 28, 0.2); color: var(--accent); border: 1px solid rgba(255, 184, 28, 0.4);
}
.hero-card {
  background: var(--white); color: var(--gray-800); border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.hero-card h2 { color: var(--navy); font-size: 1.35rem; }
.hero-card ul { padding-left: 1.1rem; }
.hero-contact { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.hero-contact a { color: var(--accent); }

.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white); padding: 3rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .lead { font-family: var(--font-sans); font-size: 1.12rem; line-height: 1.75; max-width: 42rem; color: rgba(255,255,255,0.92); font-weight: 400; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 48, 135, 0.06);
}
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; text-align: center;
}
.stat-item { background: var(--white); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--gray-200); }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--gold-dark); }
.stat-label { font-size: 0.875rem; color: var(--gray-600); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.content-block { max-width: 40rem; }

.info-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.info-block {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1.25rem;
}
.section:not(.section-dark) .info-block {
  background: var(--white); border-color: var(--gray-200);
}
.info-block.warning { border-left: 4px solid var(--warning); }
.info-block.success { border-left: 4px solid var(--success); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table thead { background: var(--navy); color: var(--white); }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.compare-table tbody tr:hover { background: var(--off-white); }
.compare-table .highlight { background: rgba(255, 184, 28, 0.15); font-weight: 600; }

.quarter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.quarter-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; }
.q-label { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.q-period, .q-due { margin-top: 0.35rem; }
.q-late { margin-top: 0.5rem; font-size: 0.85rem; color: var(--danger); font-weight: 600; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  margin: 0; padding: 1.5rem; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); box-shadow: 0 2px 10px rgba(0, 48, 135, 0.06);
}
.testimonial-quote { font-style: italic; color: var(--gray-800); }
.testimonial-card footer { margin-top: 1rem; font-size: 0.875rem; color: var(--gray-600); }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--navy); }

.faq-list { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; border: 0; background: var(--off-white);
  padding: 1rem 1.25rem; font: inherit; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-question::after { content: "+"; color: var(--gold); font-size: 1.25rem; font-weight: 700; }
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 30rem; }
.faq-answer p { padding: 0 1.25rem 1rem; margin: 0; color: var(--gray-600); }

.cta-block { background: var(--navy); color: var(--white); text-align: center; }
.cta-block-inner { max-width: 40rem; margin-inline: auto; }
.cta-block h2 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }

.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: 2rem; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius);
}

.cta-banner { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); padding: 2.5rem 0; }
.cta-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-banner-text h2 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.cta-banner-text p { font-family: var(--font-sans); color: var(--navy-dark); margin: 0; max-width: 36rem; line-height: 1.65; }

.states-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.state-card {
  padding: 1rem; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.state-card.featured { border-color: var(--accent); background: rgba(255, 184, 28, 0.1); }
.state-card strong { color: var(--navy); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { margin-bottom: 0.5rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.65rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 1rem; height: 1rem;
  border-radius: 3px; background: var(--gold); opacity: 0.85;
}

.process-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.process-steps li {
  counter-increment: step; padding: 1.25rem 1.25rem 1.25rem 3.5rem; position: relative;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
}
.process-steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1.1rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}

.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem;
  border-left: 4px solid var(--info); background: rgba(46, 109, 164, 0.08);
}
.alert.warning { border-left-color: var(--warning); background: rgba(184, 134, 11, 0.1); }
.alert.danger { border-left-color: var(--danger); background: rgba(192, 57, 43, 0.08); }
.alert.success { border-left-color: var(--success); background: rgba(26, 127, 78, 0.08); }

.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { font-size: 0.9rem; max-width: 22rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.footer-contact a { color: var(--gold-light); text-decoration: none; }
.footer-links h3 { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem;
}
.back-to-top { color: var(--gold-light); text-decoration: none; font-weight: 600; }

/* Callback widget */
.callback-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2000; }
.callback-widget-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.1rem; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.35); cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.callback-widget-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 48, 135, 0.42);
}
.callback-widget-icon { flex-shrink: 0; }
.callback-widget-modal {
  position: fixed; inset: 0; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.callback-widget-modal[hidden] { display: none; }
.callback-widget-backdrop {
  position: absolute; inset: 0; background: rgba(0, 26, 65, 0.55);
}
.callback-widget-panel {
  position: relative; width: min(100%, 24rem);
  background: var(--white); border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem; box-shadow: 0 20px 50px rgba(0, 48, 135, 0.25);
  animation: callback-slide-up 0.25s ease;
}
@keyframes callback-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.callback-widget-close {
  position: absolute; top: 0.65rem; right: 0.75rem;
  width: 2rem; height: 2rem; border: 0; background: transparent;
  color: var(--gray-600); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.callback-widget-close:hover { color: var(--navy); }
.callback-widget-panel h2 {
  margin: 0 2rem 0.35rem 0; font-size: 1.35rem; color: var(--navy);
}
.callback-widget-subtitle {
  margin: 0 0 1.25rem; color: var(--gray-600); font-size: 0.92rem; line-height: 1.5;
}
.callback-field { margin-bottom: 1rem; }
.callback-field label {
  display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--navy);
}
.callback-optional { font-weight: 400; color: var(--gray-400); font-size: 0.82rem; }
.callback-field input,
.callback-field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font: inherit; color: var(--gray-800);
  background: var(--white); transition: border-color var(--ease), box-shadow var(--ease);
}
.callback-field input:focus,
.callback-field textarea:focus {
  outline: none; border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.12);
}
.callback-field textarea { resize: vertical; min-height: 5rem; }
.callback-widget-submit { width: 100%; margin-top: 0.25rem; }
.callback-widget-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.callback-widget-status {
  margin-bottom: 0.75rem; padding: 0.75rem 0.9rem; border-radius: var(--radius);
  font-size: 0.9rem; line-height: 1.45;
}
.callback-widget-status.is-success {
  background: rgba(26, 127, 78, 0.1); color: var(--success); border: 1px solid rgba(26, 127, 78, 0.25);
}
.callback-widget-status.is-error {
  background: rgba(192, 57, 43, 0.08); color: var(--danger); border: 1px solid rgba(192, 57, 43, 0.2);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .btn-header { display: none; }
  .site-subnav {
    display: none;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 8px 16px rgba(0, 48, 135, 0.08);
  }
  .site-subnav.open { display: block; }
  .site-subnav .container { padding: 0; }
  .subnav-list { flex-direction: column; }
  .subnav-list a {
    padding: 1.7rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    border-left: 3px solid transparent;
    white-space: normal;
  }
  .subnav-list a.active {
    border-left-color: var(--gold);
    border-bottom-color: var(--gray-200);
  }
  .hero-inner, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner-inner, .cta-inline { flex-direction: column; align-items: flex-start; }
  .compare-table { display: block; overflow-x: auto; }
  .callback-widget { right: 1rem; bottom: 1rem; }
  .callback-widget-label { display: none; }
  .callback-widget-toggle { padding: 0.95rem; border-radius: 50%; }
}