/* ============================================================
   1099 Tax Calculator — Main Stylesheet
   Colors: Navy #1a2e4a | Gold #f5a623 | White #ffffff
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2e4a;
  --navy2:  #243d60;
  --gold:   #f5a623;
  --gold2:  #e09510;
  --white:  #ffffff;
  --light:  #f4f7fb;
  --gray:   #6b7280;
  --border: #d1d9e6;
  --green:  #16a34a;
  --red:    #dc2626;
  --shadow: 0 4px 24px rgba(26,46,74,0.10);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: #1f2937;
  line-height: 1.6;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 0.75rem; }
a  { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER / NAV ── */
header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
}
.logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }
nav a {
  color: rgba(255,255,255,0.85);
  margin-left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); text-decoration: none; }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold2); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white);
  padding: 60px 20px 50px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p  { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 680px; margin: 0 auto 28px; }
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
}
.trust-item {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item .check { color: var(--gold); font-weight: 700; }

/* ── AD UNIT ── */
.ad-unit {
  background: #f0f4f8;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  margin: 24px auto;
  max-width: 740px;
  color: var(--gray);
  font-size: 0.78rem;
}
.ad-unit p { margin: 0; }

/* ── CALCULATOR CARD ── */
.calc-section { padding: 40px 20px; }
.calc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}
.calc-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 28px;
}
.calc-header h2 { color: var(--white); font-size: 1.2rem; }
.calc-header p  { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin: 4px 0 0; }
.calc-body { padding: 28px; }

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold2);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.form-group .hint {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0;
}
.full-width { grid-column: 1 / -1; }

.btn-calculate {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.btn-calculate:hover  { background: var(--gold2); }
.btn-calculate:active { transform: scale(0.99); }

/* ── RESULTS ── */
#results { display: none; margin-top: 28px; }
.results-header {
  text-align: center;
  margin-bottom: 20px;
}
.results-header h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.results-header p  { font-size: 0.85rem; color: var(--gray); margin: 0; }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 580px) { .results-grid { grid-template-columns: 1fr; } }

.result-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.result-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  margin-bottom: 4px;
}
.result-card .value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
}
.result-card .sub {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}
.result-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
  grid-column: 1 / -1;
}
.result-card.highlight .label { color: rgba(255,255,255,0.65); }
.result-card.highlight .value { color: var(--gold); font-size: 2rem; }
.result-card.highlight .sub   { color: rgba(255,255,255,0.6); }
.result-card.green-card { border-color: #bbf7d0; background: #f0fdf4; }
.result-card.green-card .value { color: var(--green); }

.quarterly-dates {
  background: var(--light);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
}
.quarterly-dates h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.dates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 480px) { .dates-grid { grid-template-columns: 1fr; } }
.date-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
}
.date-item.next { background: #fff7ed; border-color: var(--gold); font-weight: 700; }
.date-item .qtr { color: var(--gray); }
.date-item.next .qtr { color: var(--gold2); }

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn-secondary {
  flex: 1;
  min-width: 140px;
  padding: 11px 16px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ── EMAIL CAPTURE ── */
.email-capture {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: 10px;
  padding: 20px 22px;
  margin-top: 20px;
  color: var(--white);
}
.email-capture h4 { font-size: 1rem; margin-bottom: 6px; }
.email-capture p  { font-size: 0.83rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.email-form { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
}
.email-form button {
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}
.email-form button:hover { background: var(--gold2); }

/* ── FAQ ── */
.faq-section { padding: 50px 20px; background: var(--white); }
.faq-section h2 { text-align: center; color: var(--navy); margin-bottom: 8px; }
.faq-section .section-sub { text-align: center; color: var(--gray); margin-bottom: 36px; font-size: 0.95rem; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-q h3 { font-size: 0.97rem; color: var(--navy); flex: 1; }
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-item.open .faq-icon { background: var(--gold); color: var(--navy); }
.faq-a {
  display: none;
  padding-top: 12px;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── TIPS SECTION ── */
.tips-section { padding: 50px 20px; background: var(--light); }
.tips-section h2 { text-align: center; color: var(--navy); margin-bottom: 32px; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.tip-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1rem; }
.tip-card p  { font-size: 0.88rem; color: #4b5563; margin: 0; }
.tip-card a  { color: var(--gold2); font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 36px 20px 24px;
  text-align: center;
  font-size: 0.83rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-disclaimer { max-width: 680px; margin: 12px auto 0; font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* ── UTILITY ── */
.section-divider { height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy)); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ── PRINT ── */
@media print {
  header, footer, .ad-unit, .email-capture, .btn-calculate, .results-actions { display: none !important; }
  body { background: white; }
  .calc-card { box-shadow: none; }
}

/* ── MOBILE NAV ── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; }
@media (max-width: 700px) {
  .hamburger { display: block; }
  nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy2); padding: 16px 20px; flex-direction: column; }
  nav.open { display: flex; flex-direction: column; }
  nav a { margin: 8px 0; font-size: 1rem; }
}
