/* ========================================
   Brad Maple, CPA — V1 StoryBrand Version
   Brand-matched: Dosis, beige/tan, teal accent
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary: #313131;
  --beige: #cfcabe;
  --tan: #c2a990;
  --accent: #00d084;
  --accent-hover: #00b871;
  --text: #444;
  --text-light: #666;
  --neutral: #b5bdbc;
  --white: #ffffff;
  --bg: #f9f9f9;
  --card-shadow: 0 2px 6px rgba(0,0,0,0.08);
  --btn-shadow: 0 4px 8px rgba(49,49,49,0.15);
  --radius: 12px;
  --btn-radius: 9999px;
  --font: 'Dosis', sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 32px;
  font-family: var(--font); font-weight: 600; font-size: 16px;
  border-radius: var(--btn-radius); border: none; cursor: pointer;
  transition: all 0.3s ease; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,208,132,0.25); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 8px rgba(0,208,132,0.2); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(49,49,49,0.97); backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: box-shadow 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--max-width); margin: 0 auto;
}
.logo img { height: 45px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-weight: 600; font-size: 15px; letter-spacing: 0.3px;
  position: relative; color: rgba(255,255,255,0.85);
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 10px 24px; font-size: 14px; }
.nav .btn::after { display: none; }
.mobile-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--white); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 550px; display: flex; align-items: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center top; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(49,49,49,0.5) 0%, rgba(49,49,49,0.35) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { margin-bottom: 16px; color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.hero p { font-size: 1.15rem; margin-bottom: 28px; line-height: 1.7; color: rgba(255,255,255,0.9); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-beige { background: var(--beige); }
.section-bg { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; color: var(--text-light); }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--beige); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow); transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: var(--tan); }
.card-white { background: var(--white); }
.card-white:hover { background: var(--bg); }
.card-icon {
  width: 52px; height: 52px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; color: var(--white);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; line-height: 1.7; }

/* ── Steps ── */
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--accent); color: var(--white);
  font-weight: 800; font-size: 1.5rem; border-radius: 50%; margin-bottom: 16px;
}

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-number { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.95rem; font-weight: 500; }

/* ── Two Column ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { margin-bottom: 14px; line-height: 1.8; }
.two-col-img img { border-radius: var(--radius); box-shadow: var(--card-shadow); width: 100%; object-fit: cover; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--beige); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow); position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: Georgia, serif; font-size: 4rem;
  color: var(--accent); position: absolute; top: 8px; left: 20px; line-height: 1;
}
.testimonial-card p { padding-top: 20px; font-style: italic; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.stars { color: #f5a623; font-size: 1.2rem; margin-bottom: 8px; }

/* ── Services ── */
.service-detail {
  background: var(--bg); border-radius: var(--radius); padding: 40px;
  margin-bottom: 28px; box-shadow: var(--card-shadow); border-left: 4px solid var(--accent);
}
.service-detail h3 { margin-bottom: 6px; }
.service-detail .subtitle { font-weight: 500; color: var(--tan); margin-bottom: 16px; }
.service-detail ul { list-style: none; padding: 0; margin: 16px 0; }
.service-detail ul li { padding: 6px 0 6px 24px; position: relative; font-size: 0.95rem; }
.service-detail ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--primary);
}
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; padding: 0; color: var(--text); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--neutral);
  border-radius: 4px; font-family: var(--font); font-size: 15px;
  margin-bottom: 16px; transition: border-color 0.3s; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,208,132,0.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--primary); }
.contact-form .checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.contact-form .checkbox-row input { width: auto; margin: 0; }
.contact-info-card { background: var(--bg); border-radius: var(--radius); padding: 32px; margin-bottom: 20px; }
.contact-info-card h3 { margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info-item .icon {
  width: 40px; height: 40px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; color: var(--white);
}

/* ── CTA ── */
.cta-banner { text-align: center; padding: 48px 24px; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Header ── */
.page-header { background: var(--beige); padding: 120px 0 60px; text-align: center; }
.page-header h1 { margin-bottom: 10px; }
.page-header p { max-width: 560px; margin: 0 auto; color: var(--tan); font-size: 1.1rem; font-weight: 500; }

/* ── Footer ── */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* ── Fade ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); gap: 16px; }
  .mobile-toggle { display: block; }
  .hero { min-height: 420px; padding: 100px 24px 60px; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
