/* taxrepgainesville.com - one stylesheet for every page.
   Layout follows backoffice2.net. Colors are the Duda site's theme.
   tr_site_build.pl copies this file to /css/site.css. */

:root {
  --navy: #092d5f;
  --navy-deep: #061d3e;
  --gold: #f9d28d;
  --gold-deep: #c8973f;
  --teal: #007575;
  --text: #222222;
  --slate: #44505f;
  --light: #f6f6f6;
  --cream: #fbf4e6;
  --line: rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.65;
  font-size: 18px;
}

a { color: var(--teal); }
h1, h2, h3, .nav-logo, .footer-logo { font-family: 'PT Serif', Georgia, serif; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  height: 66px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a, .sub-toggle {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font: 600 0.82rem/1 'Source Sans 3', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active,
.sub-toggle:hover, .sub-toggle.active { color: var(--gold); }

.sub-toggle::after { content: ' ▾'; font-size: 0.75em; }

.has-sub { position: relative; }

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 280px;
  list-style: none;
  background: var(--navy-deep);
  padding: 10px 0;
  margin-top: 14px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.sub-menu::before {	/* keeps the menu open while the pointer crosses the gap */
  content: '';
  position: absolute;
  top: -17px; left: 0; right: 0;
  height: 14px;
}

.sub-menu a {
  display: block;
  padding: 10px 18px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu { display: block; }

.nav-phone {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.nav-phone-li { display: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 26px; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--navy);
  padding: 72px 32px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 115%, rgba(0,117,117,0.45) 0%, transparent 70%);
  pointer-events: none;
}

.page-header > * { position: relative; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border: 1px solid rgba(249,210,141,0.45);
  border-radius: 2px;
  margin-bottom: 22px;
}

.page-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 18px;
}

.page-header .intro {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 26px;
}

.page-header .btn-row { justify-content: center; margin-bottom: 0; }

.byline { font-size: 0.9rem; color: rgba(255,255,255,0.65); letter-spacing: 0.03em; }
.byline a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; }

/* Home hero: bigger, left aligned on wide screens */
.hero { padding: 104px 32px 96px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

/* ── BODY ── */
.main-section { padding: 64px 32px 72px; }
.container { max-width: 1080px; margin: 0 auto; }
.prose { max-width: 740px; margin: 0 auto; }

.prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 46px 0 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 30px 0 10px;
}

.prose p { color: var(--slate); margin-bottom: 20px; }
.prose p.lead { font-size: 1.18rem; color: var(--text); margin-bottom: 26px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; color: var(--slate); }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--navy); }
.prose a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(0,117,117,0.35); }
.prose a:hover { border-bottom-color: var(--teal); }
.prose a.btn { border-bottom: 2px solid var(--gold); color: var(--navy); }
.prose a.btn:hover { color: #fff; border-color: var(--teal); }

.callout {
  background: var(--cream);
  border-left: 4px solid var(--gold-deep);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  color: var(--slate);
  margin: 0 0 26px;
}

.callout strong { display: block; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 0 0 26px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--slate); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--light); }

/* FAQ: each question is a <details> so answers stay in the page text */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font: 700 1.1rem/1.4 'PT Serif', Georgia, serif;
  color: var(--navy);
  padding: 14px 32px 14px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--teal); font-size: 1.4rem; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 12px; }

/* ── HOME SECTIONS ── */
.band { padding: 72px 32px; }
.band-light { background: var(--light); }
.band h2.band-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 28px 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.card h2, .card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 1rem; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.quote {
  background: #fff;
  border-radius: 4px;
  padding: 28px 26px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}

.quote::before {
  content: '“';
  position: absolute;
  top: 4px; left: 18px;
  font: 700 3.6rem/1 'PT Serif', Georgia, serif;
  color: var(--gold);
}

.quote p { color: var(--slate); font-size: 1rem; padding-top: 22px; }
.quote footer { margin-top: 14px; font-weight: 700; color: var(--navy); }

.center-link { text-align: center; margin-top: 30px; }

.cta-band {
  background: var(--navy);
  text-align: center;
  padding: 64px 32px;
}

.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 26px; }

/* ── POST EXTRAS ── */
.keep-reading { max-width: 740px; margin: 56px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.section-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.back-link { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--teal); text-decoration: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 48px 32px;
  text-align: center;
  font-size: 0.92rem;
}

.footer-logo { display: block; font-size: 1.3rem; color: #fff; text-decoration: none; margin-bottom: 8px; }
.footer-tag { max-width: 460px; margin: 0 auto 10px; }
.footer-phone { display: block; color: var(--gold); font-weight: 700; font-size: 1.05rem; text-decoration: none; margin: 12px 0; }
.footer-small { margin: 0 auto 6px; }
.footer-small a { color: inherit; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 16px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .nav-phone { display: none; }
}

@media (max-width: 960px) {
  .site-nav { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 4px 16px 16px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .sub-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu { position: static; box-shadow: none; border-top: 0; margin: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
  .sub-menu::before { display: none; }
  .nav-phone-li { display: list-item; }
  .nav-phone-li a { color: var(--gold); }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .page-header { padding: 52px 16px 46px; }
  .hero { padding: 64px 16px 56px; }
  .main-section, .band, .cta-band { padding-left: 16px; padding-right: 16px; }
  .main-section { padding-top: 44px; }
  .site-footer { padding: 40px 16px; }
}

/* ── BLOG LIST ── */
.post-list { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.post-card time { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.post-card h2 { font-size: 1.3rem; line-height: 1.3; margin: 6px 0 8px; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); }
.post-card p { color: var(--slate); font-size: 1rem; }

/* ── FORMS ── */
.site-form {
  background: var(--light);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 28px 28px 22px;
  margin: 8px 0 30px;
  display: grid;
  gap: 16px;
}
.site-form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.site-form input[type=text], .site-form input[type=email], .site-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid #c9ced6;
  border-radius: 3px;
  background: #fff;
  width: 100%;
}
.site-form input:focus, .site-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.site-form fieldset { border: 0; display: grid; gap: 8px; }
.site-form legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.98rem; }
.site-form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text); }
.site-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.site-form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-note { color: var(--slate); margin: 0; }
.form-note.small { font-size: 0.88rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #b3261e; white-space: pre-line; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .site-form .form-row { grid-template-columns: 1fr; } .site-form { padding: 22px 16px 18px; } }

/* ── RELATED POSTS ── */
.related-links { display: grid; gap: 12px; }
.related-link {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.related-link:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: rgba(0,117,117,0.35); }
.related-link strong { display: block; color: var(--navy); margin-bottom: 3px; font-size: 1.02rem; }
.related-link span { display: block; color: var(--slate); font-size: 0.92rem; line-height: 1.55; }

/* ── SHORT ANSWER ── the first thing on most pages: the answer, before the detail */
.prose p.short-answer {
  background: var(--cream);
  border-left: 4px solid var(--gold-deep);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 28px;
}
.prose p.short-answer strong:first-child { color: var(--navy); }

/* ── AUTHOR BOX ── end of every post */
.author-box {
  max-width: 740px;
  margin: 48px auto 0;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: var(--light);
  border-radius: 4px;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.author-name { font: 700 1.05rem/1.3 'PT Serif', Georgia, serif; color: var(--navy); text-decoration: none; }
.author-name:hover { color: var(--teal); }
.author-box p { margin: 4px 0 0; color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) { .author-box { align-items: flex-start; } }

/* ── FREE GUIDE BOX ── shown on related pages once the guide PDFs are live */
.guide-box {
  max-width: 740px;
  margin: 40px auto 0;
  padding: 22px 24px;
  background: var(--cream);
  border-left: 4px solid var(--gold-deep);
  border-radius: 0 4px 4px 0;
}
.guide-box p { color: var(--slate); margin-bottom: 14px; }
.guide-box strong { color: var(--navy); }
.guides-band .band-title { margin-bottom: 14px; }
.guides-band .center-link { margin-top: 0; }
