/* Sevierville CPAs — single shared stylesheet
   Palette + type are set here; edit the variables to rebrand. */
:root {
  --red: #C2002D;
  --red-dark: #9d0025;
  --ink: #000;
  --dark: #313131;
  --body: #646464;
  --light: #f7f7f7;
  --white: #fff;
  --radius: 40px;
  --max: 1140px;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; }
h1 { font-size: 44px; }
h2 { font-size: 33px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 38px;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--light); }

/* Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.site-header .bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { width: 160px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > div { position: relative; }
.nav a {
  color: var(--dark);
  font-size: 16px;
  font-weight: 400;
  padding: 8px 0;
  display: inline-block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--red); }
.nav .caret { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--white);
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 6px;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 20px; font-size: 15px; border-bottom: none; }
.header-cta { white-space: nowrap; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--dark); }

/* Sticky mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--red);
  text-align: center;
  padding: 14px;
}
.call-bar a { color: var(--white); font-weight: 700; font-size: 17px; }

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0 110px;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero .wrap { display: flex; align-items: center; gap: 40px; width: 100%; }
.hero-card {
  background: var(--red);
  color: var(--white);
  padding: 56px 44px;
  max-width: 480px;
  flex: 0 0 auto;
}
.hero-card h2 { color: var(--ink); font-size: 33px; margin-bottom: 18px; }
.hero-card p { color: var(--white); margin-bottom: 28px; }
.hero-title {
  flex: 1;
  color: var(--white);
  font-size: 46px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero-inner-title { color: var(--white); font-size: 46px; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* Page hero (interior pages) */
.page-hero {
  background-size: cover;
  background-position: center;
  padding: 110px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,.5); }

/* Sections */
section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-red { background: var(--red); }
.section-red h1, .section-red h2, .section-red h3, .section-red h4, .section-red p { color: var(--white); }
.center { text-align: center; }
.split { display: flex; gap: 56px; align-items: center; }
.split > * { flex: 1; min-width: 0; }
.split img { border-radius: 6px; }
.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.mt { margin-top: 28px; }

/* Feature checklist */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin: 24px 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 10px; color: var(--dark); font-weight: 400; }
.features svg { width: 18px; height: 18px; fill: var(--red); flex: 0 0 auto; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .card-body { padding: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 14px; }

/* Numbered values grid (about) / steps (contact) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.num { font-size: 40px; font-weight: 700; color: var(--red); line-height: 1; }
.step h4 { margin: 10px 0 6px; }

/* Industry list */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.industries h3 { font-size: 19px; margin-bottom: 8px; }

/* Forms (Coraline embed, lazy-loaded) */
.form-card { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.coraline-form { margin-top: 18px; }
.coraline-form__placeholder {
  border: 2px dashed var(--red);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
}
.coraline-form__placeholder strong { color: var(--dark); font-size: 17px; }
.coraline-form__load-btn { margin-top: 10px; }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: 26px; margin: 30px 0 10px; }
.countdown .unit { text-align: center; min-width: 84px; }
.countdown .val { font-size: 44px; font-weight: 700; color: var(--white); line-height: 1.1; }
.countdown .lbl { font-size: 13px; color: var(--white); letter-spacing: 1px; text-transform: uppercase; }

/* Testimonial */
.quote { font-size: 22px; font-weight: 400; color: var(--dark); line-height: 1.6; }
.quote-name { margin-top: 16px; font-weight: 700; color: var(--red); }

/* Blog */
.post-list { display: grid; gap: 34px; }
.post-item { display: flex; gap: 30px; align-items: flex-start; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.post-item img { width: 300px; height: 210px; object-fit: cover; flex: 0 0 auto; }
.post-item .post-body { padding: 26px 26px 26px 0; }
.post-item h3 { margin-bottom: 6px; }
.post-meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 26px; margin: 34px 0 12px; }
.article h3 { font-size: 20px; margin: 26px 0 10px; }
.article ul { margin: 0 0 1em 22px; }
.post-nav { display: flex; justify-content: space-between; margin-top: 44px; font-weight: 400; }

/* Map */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: 8px; }
.map-placeholder {
  position: relative;
  background: #dfe7ee url('/images/sevier-county-map.jpg') center/cover no-repeat;
  height: 380px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder button { box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* Footer */
.site-footer {
  background: var(--white);
  color: var(--body);
  padding: 70px 0 0;
  font-size: 14px;
  border-top: 1px solid #e8e8e8;
}
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; padding-bottom: 52px; }
.site-footer h3 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 10px;
  position: relative;
}
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.site-footer ul { list-style: none; margin-top: 14px; }
.site-footer a { color: var(--body); display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--red); }
.site-footer ul a { transition: color .15s, padding-left .15s; }
.site-footer ul a:hover { color: var(--red); padding-left: 6px; }
.site-footer address { font-style: normal; margin-top: 16px; color: #787878; }
.site-footer .hours {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eee;
  margin-top: 2px;
}
.site-footer .hours span:first-child { color: var(--dark); font-weight: 400; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 16px; }
.footer-tagline { color: #787878; max-width: 320px; }
.site-footer .footer-call {
  padding: 13px 34px;
  margin: 6px 0 4px;
  font-size: 15px;
}
.site-footer .footer-call, .site-footer .footer-call:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #eee; padding: 20px 0; font-size: 13px; color: #999; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  transition: background .2s, border-color .2s;
  padding: 0;
}
.social svg { width: 17px; height: 17px; fill: #787878; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social a:hover svg { fill: var(--white); }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--white);
  color: var(--red);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero-title, .hero-inner-title { font-size: 38px; }
  h1 { font-size: 36px; }
}
@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: 0 12px 20px rgba(0,0,0,.1);
  }
  .nav.open { display: flex; }
  .nav > div { width: 100%; }
  .nav a { padding: 10px 0; width: 100%; }
  .dropdown-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 18px; min-width: 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .call-bar { display: block; }
  body { padding-bottom: 54px; }
  .hero .wrap { flex-direction: column; }
  .hero { padding: 60px 0; }
  .hero-title, .hero-inner-title { font-size: 30px; }
  .hero-card { padding: 40px 28px; }
  .split { flex-direction: column; gap: 30px; }
  .cards, .industries, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; }
  .post-item img { width: 100%; }
  .post-item .post-body { padding: 0 24px 24px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  section { padding: 48px 0; }
  .countdown { gap: 14px; }
  .countdown .val { font-size: 32px; }
}
