/* ===============================
   Base & Reset
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* ===============================
   Layout
================================ */

.container {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Reduce space between header and main content */
main.container {
  margin-top: 20px;
}

/* ===============================
   Header (Ad-safe)
================================ */

.site-header {
  background: transparent;
  border-bottom: none;
  margin: 0;
  padding: 8px 0;
}

/* Reserved space for future ads */
.header-ad-slot {
  min-height: 0;         /* No ad yet */
  width: 100%;
}

/* Header inner */
.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo */
.site-header img {
  height: 38px;
  width: auto;
}

/* ===============================
   Header spacing fix
================================ */

.site-header .container {
  margin: 0 auto;
  padding: 0;
}

/* ===============================
   Typography
================================ */

h1 {
  text-align: center;
  font-size: 2rem;
  color: #1a73e8;
  margin-bottom: 10px;
}

h2 {
  color: #1a73e8;
  margin-top: 40px;
  margin-bottom: 15px;
}

h3 {
  color: #1a73e8;
  margin-top: 30px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 0;
}

.hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

/* ===============================
   Forms & Inputs
================================ */

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}

input[type="number"],
input[type="date"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #1a73e8;
}

/* ===============================
   Results Box
================================ */

.result {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1.05rem;
}

.result p {
  margin: 8px 0;
}

/* ===============================
   Tool List (Homepage)
================================ */

.tools {
  margin-top: 40px;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tool-list a {
  display: block;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.tool-list a:hover {
  background: #f1f5ff;
}

.tool-title {
  display: block;
  font-weight: 600;
}

.tool-description {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95em;
  color: #555;
}

/* Wage calculators page: "Start here" list polish (reuses tool cards) */
#start-here.tools {
  margin-top: 25px; /* prevents extra-large gap */
}

#start-here .tool-list {
  margin-top: 15px; /* keeps header-to-cards spacing consistent */
}

/* ===============================
   Footer
================================ */

.site-footer {
  background: transparent;
  border-top: none;
  margin-top: 40px;
}

.site-footer .container {
  text-align: center;
  padding: 10px 0;
}

.footer-links {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-links a {
  color: #777;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 400px) {
  .container {
    margin: 25px auto;
    padding: 0 15px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* ===============================
   Mobile Header
================================ */

@media (max-width: 480px) {

  .header-inner {
    padding: 6px 0;
  }

  .site-header img {
    height: 32px;
  }
}

/* =========================
   Tool list grouping labels
   ========================= */

.tool-group {
  list-style: none;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.tool-group + li {
  margin-top: 0.25rem;
}

.cta-banner {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: #f7f9fc;
  border-left: 3px solid #1a73e8;
  border-radius: 6px;
}

/* Normalize select styling to match inputs */
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Focus state to match inputs */
select:focus {
  outline: none;
  border-color: #111;
}

label {
  position: relative;
}

label select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
}

/* Normalize textarea styling to match inputs */
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #111;
  line-height: 1.5;
  resize: vertical;
}

/* Focus state */
textarea:focus {
  outline: none;
  border-color: #111;
}

/* ===============================
   FAQ Section
================================ */

.faq-section {
  margin-top: 50px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===============================
   Hero Section (Homepage)
================================ */

.hero {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero p {
  max-width: 460px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #555;
}

/* ===============================
   CTA Grid
================================ */

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 35px 0;
}

.cta-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.cta-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.cta-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.cta-note {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: #f8f9fb;
  border-left: 4px solid #d0d7de;
  font-size: 0.95rem;
}

.cta-note p {
  margin: 0;
}

.hub-link {
  margin: 2.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  text-align: center;
}

.hub-link a {
  color: #1a73e8;
  text-decoration: none;
}

.hub-link a:hover {
  text-decoration: underline;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 500;
}

/* ===============================
   Lead Capture / Email Form (Compact + Consistent)
================================ */

.lead-capture {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.lead-capture form {
  display: grid;
  gap: 10px;
}

.lead-capture label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.lead-capture input[type="text"],
.lead-capture input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.lead-capture button {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background-color: #1a73e8;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.lead-capture button:hover {
  background-color: #1666c1;
}

/* Tighter text spacing inside lead capture */
.lead-capture p,
.lead-capture .hint {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ===============================
   Popular Calculators Section
================================ */

.popular-calculators {
  margin: 35px 0 45px 0;
  padding: 25px 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.popular-calculators h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.calculator-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.highlight-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.highlight-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.highlight-item h3 a {
  color: #1a73e8;
  text-decoration: none;
}

.highlight-item h3 a:hover {
  text-decoration: underline;
}

.highlight-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* Desktop: 2 columns for highlights */
@media (min-width: 600px) {
  .calculator-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .popular-calculators {
    padding: 30px 25px;
  }
}

/* ===============================
   California Section Styling
================================ */

#california {
  margin-top: 40px;
  padding: 20px;
  background: #fffbf0;
  border-left: 4px solid #f9a825;
  border-radius: 8px;
}

#california h2 {
  margin-top: 0;
  color: #d84315;
}

#california ul {
  margin: 15px 0;
  padding-left: 20px;
}

#california li {
  margin-bottom: 12px;
  line-height: 1.6;
}

#california li a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

#california li a:hover {
  text-decoration: underline;
}

/* ===============================
   Enhanced "Who For" Section
================================ */

#who-for ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

#who-for li {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

#who-for li strong {
  color: #1a73e8;
}

#who-for li a {
  color: #1a73e8;
  text-decoration: none;
}

#who-for li a:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .popular-calculators {
    padding: 20px 15px;
    margin: 30px 0;
  }

  .popular-calculators h2 {
    font-size: 1.25rem;
  }

  .highlight-item {
    padding: 14px 16px;
  }

  #california {
    padding: 16px;
  }
}

/* Mobile polish */
@media (max-width: 480px) {
  .lead-capture {
    padding: 12px;
  }

  .lead-capture button {
    width: 100%;
  }
}
