/*
Theme Name: Free Tax Buffalo Editable
Theme URI: https://freetaxbuffalo.org/
Author: Free Tax Buffalo
Description: An editable, accessible WordPress theme for Free Tax Buffalo and its IRS VITA services.
Version: 3.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: free-tax-buffalo
*/

:root {
  --ftb-blue: #164f9c;
  --ftb-blue-dark: #0b3269;
  --ftb-sky: #eaf4ff;
  --ftb-gold: #f6bd3a;
  --ftb-ink: #152238;
  --ftb-muted: #58677b;
  --ftb-white: #fff;
  --ftb-line: #dce5ef;
  --ftb-shadow: 0 18px 48px rgba(21, 34, 56, .12);
  --ftb-radius: 20px;
  --ftb-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ftb-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--ftb-blue); }
img { max-width: 100%; height: auto; }
.post-password-form {
  max-width: 620px;
  padding: 28px;
  border: 1px solid var(--ftb-line);
  border-radius: var(--ftb-radius);
  background: var(--ftb-sky);
  box-shadow: var(--ftb-shadow);
}
.post-password-form label {
  display: block;
  font-weight: 700;
}
.post-password-form input[type="password"] {
  width: 100%;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--ftb-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.post-password-form input[type="submit"] {
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ftb-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.container { width: min(calc(100% - 40px), var(--ftb-width)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; padding: 12px 18px; background: #fff; }

.announcement {
  padding: 9px 0;
  color: #fff;
  background: var(--ftb-blue-dark);
  font-size: 14px;
  text-align: center;
}
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ftb-line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 2vw, 28px); }
.brand, .site-logo { flex: 0 0 auto; }
.site-logo img { display: block; width: auto; max-width: min(260px, 42vw); max-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ftb-blue-dark); text-decoration: none; font-weight: 850; line-height: 1.05; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ftb-blue); font-size: 16px; box-shadow: 0 7px 18px rgba(22,79,156,.22); }
.brand-text small { display: block; margin-top: 5px; color: var(--ftb-muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.custom-logo { width: auto; max-height: 62px; }
.nav-wrap { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.5vw, 24px); min-width: 0; }
.nav-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(10px, 1.2vw, 18px); padding: 0; margin: 0; list-style: none; }
.nav-menu li, .nav-menu a, .header-cta { white-space: nowrap; }
.nav-menu li { position: relative; }
.nav-menu a { display: block; color: var(--ftb-ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--ftb-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ftb-shadow);
  list-style: none;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { padding: 10px 12px; border-radius: 8px; }
.nav-menu .sub-menu a:hover { background: var(--ftb-sky); }
.header-cta { flex: 0 0 auto; }
.nav-menu a:hover { color: var(--ftb-blue); }
.menu-toggle { display: none; border: 0; padding: 9px; color: var(--ftb-blue-dark); background: transparent; font-size: 26px; }

.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 21px; border: 2px solid var(--ftb-blue);
  border-radius: 999px; color: #fff; background: var(--ftb-blue);
  font-weight: 800; line-height: 1.2; text-decoration: none; transition: .18s ease;
}
.button:hover { transform: translateY(-2px); background: var(--ftb-blue-dark); border-color: var(--ftb-blue-dark); }
.button.secondary { color: var(--ftb-blue); background: #fff; }
.button.gold { color: var(--ftb-blue-dark); border-color: var(--ftb-gold); background: var(--ftb-gold); }

.hero { position: relative; overflow: hidden; padding: 90px 0 82px; background: linear-gradient(125deg, #f4f9ff 0%, #e6f2ff 58%, #fff8e7 100%); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -100px; border: 70px solid rgba(22,79,156,.08); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 65px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ftb-blue); font-size: 14px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: "✓"; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ftb-blue); }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.03em; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(43px, 6vw, 72px); }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 22px; }
.hero-copy { max-width: 690px; margin-bottom: 30px; color: var(--ftb-muted); font-size: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--ftb-muted); font-size: 14px; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: var(--ftb-blue); }
.help-card { padding: 32px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--ftb-shadow); }
.help-card h2 { font-size: 27px; }
.help-list { padding: 0; margin: 24px 0; list-style: none; }
.help-list li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--ftb-line); }
.help-list li:last-child { border: 0; }
.help-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ftb-blue); background: var(--ftb-sky); font-weight: 900; }

.stats { position: relative; z-index: 5; margin-top: -26px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: var(--ftb-radius); background: var(--ftb-blue); box-shadow: var(--ftb-shadow); }
.stat { padding: 28px 20px; color: #fff; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; white-space: nowrap; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.83); font-size: 14px; }
.home-refund-notice { padding: 22px 0; color: #4c3a00; background: #fff3cd; border-top: 1px solid #f0d77c; border-bottom: 1px solid #f0d77c; }
.home-refund-notice p { margin: 0; text-align: center; font-size: 17px; }

.section { padding: 92px 0; }
.section.alt { background: #f7faff; }
.section-heading { max-width: 710px; margin: 0 auto 48px; text-align: center; }
.section-heading p { color: var(--ftb-muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 30px; border: 1px solid var(--ftb-line); border-radius: var(--ftb-radius); background: #fff; box-shadow: 0 10px 35px rgba(21,34,56,.06); }
.card-number { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: #fff; background: var(--ftb-blue); font-weight: 900; }
.card p { color: var(--ftb-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.visual-panel { min-height: 440px; display: grid; align-content: center; padding: 48px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, var(--ftb-blue), var(--ftb-blue-dark)); box-shadow: var(--ftb-shadow); }
.visual-panel .big { font-size: clamp(70px, 10vw, 120px); font-weight: 900; line-height: .9; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 33px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ftb-blue); font-size: 12px; font-weight: 900; }

.cta { padding: 70px 0; color: #fff; background: var(--ftb-blue-dark); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.78); }

.faq { max-width: 850px; margin: auto; }
.faq details { margin-bottom: 13px; border: 1px solid var(--ftb-line); border-radius: 14px; background: #fff; }
.faq summary { padding: 19px 22px; cursor: pointer; color: var(--ftb-ink); font-weight: 800; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ftb-muted); }

.site-footer { padding: 62px 0 24px; color: rgba(255,255,255,.78); background: #081e3d; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .9fr; gap: 50px; }
.site-footer h3 { color: #fff; font-size: 18px; }
.site-footer a { color: rgba(255,255,255,.84); text-decoration: none; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.copyright { padding-top: 24px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; }
.content-area { min-height: 60vh; padding: 70px 0; }
.content-area > * { max-width: 850px; margin-left: auto; margin-right: auto; }
.page-hero { padding: 60px 0; color: #fff; background: linear-gradient(125deg, var(--ftb-blue), var(--ftb-blue-dark)); }
.page-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); }
.page-hero p { max-width: 720px; margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 19px; }
.page-content h2 { margin-top: 46px; color: var(--ftb-blue-dark); }
.page-content h3 { margin-top: 30px; }
.page-content .wp-block-buttons { margin: 28px 0; }
.page-content .notice { padding: 20px 24px; margin: 28px 0; border-left: 5px solid var(--ftb-gold); border-radius: 8px; background: #fff7df; }
.page-content .info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 30px 0; }
.page-content .info-card { padding: 26px; border: 1px solid var(--ftb-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(21,34,56,.06); }
.page-content .info-card h3 { margin-top: 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.page-content th, .page-content td { padding: 14px; border: 1px solid var(--ftb-line); text-align: left; vertical-align: top; }
.page-content th { color: #fff; background: var(--ftb-blue); }
.editable-home > .wp-block-group { margin-top: 0; margin-bottom: 0; }
.editable-home .stats-grid { grid-template-columns: repeat(3, 1fr); }
.editable-home .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 13px; }
.editable-home .wp-block-button__link { color: #fff; }
.editable-home .is-style-outline .wp-block-button__link { color: var(--ftb-blue); background: #fff; }
.editable-home .location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.editable-home .location-grid .wp-block-group { padding: 26px; border: 1px solid var(--ftb-line); border-radius: var(--ftb-radius); background: #fff; }
.editor-note { padding: 12px 18px; color: #4c3a00; background: #fff3cd; border-left: 4px solid var(--ftb-gold); }

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 88px; padding: 22px; background: #fff; border-bottom: 1px solid var(--ftb-line); box-shadow: var(--ftb-shadow); }
  .nav-wrap.open { display: block; }
  .nav-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .nav-menu a { display: block; padding: 10px; }
  .nav-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 18px; border: 0; background: transparent; box-shadow: none; }
  .nav-menu .sub-menu a { font-size: 14px; }
  .header-cta { margin: 14px 10px 2px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .editable-home .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .cards { grid-template-columns: 1fr; }
  .editable-home .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-content .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--ftb-width)); }
  .brand-text { font-size: 15px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 18px; }
  .help-card { padding: 24px; }
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .editable-home .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat strong { font-size: 35px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
