/*
  Wheeler & Associates public site: the visual layer (October 2026 facelift).

  Loaded after style.css and responsive.css. Those two files still hold the widgets the data pages use (account
  statement, tax tables, FAQ accordion); this file sets the palette and replaces the page chrome: header, page banner,
  home hero, cards, buttons, footer. No photographs: the only imagery is the logo and the Houston skyline, tinted navy.

  Palette comes from the logo (steel blue and navy). Red is used only for amounts due and warnings.
*/

:root {
  --ink: #172b43;
  --navy: #14304f;
  --navy-deep: #0d2238;
  --blue: #41659c;
  --blue-strong: #33538a;
  --blue-soft: #e8eef7;
  --line: #d6dfeb;
  --surface: #f5f7fa;
  --muted: #566679;
  --danger: #b3261e;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(13, 34, 56, 0.06), 0 6px 20px rgba(13, 34, 56, 0.08);
  --serif: Georgia, 'Times New Roman', serif;

  /* the older stylesheet's variables, pointed at the palette so its widgets pick it up */
  --dark-blue-color: var(--blue);
  --darker-blue: var(--blue-strong);
  --yellow: var(--blue-soft);
  --light-blue: var(--blue);
  --dark-black: var(--navy-deep);
  --carbon-light: var(--blue-soft);
  --gray-light: var(--surface);
}

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); color: var(--navy); letter-spacing: 0; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible { outline: 3px solid #7fa4d8; outline-offset: 2px; }

/* ---- Header ---- */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; max-width: 1560px; margin: 0 auto; padding: 0 20px;
}
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { display: block; height: 48px; width: auto; }

.site-nav .navbar-nav,
.site-drawer .navbar-nav {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0;
  margin: 0; padding: 0; list-style: none;
}
.site-nav .nav-link {
  display: block; padding: 8px 7px; border-radius: var(--radius);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-nav .nav-link:hover { background: var(--blue-soft); color: var(--navy); }
.site-nav .nav-link.active { color: var(--blue-strong); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.site-nav .nav-item:last-child .nav-link {
  margin-left: 6px; color: var(--blue-strong);
}
.site-nav .nav-item:last-child .nav-link:hover { background: var(--blue-soft); color: var(--navy); }

.site-nav { display: none; }
.site-header__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--navy); font-size: 24px;
}

.site-drawer { width: min(320px, 86vw); }
.site-drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.site-drawer .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; }
.site-drawer .nav-link {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-drawer .nav-link.active { color: var(--blue-strong); }

/* ---- Buttons ---- */

.btn-primary, a.btn-primary, .card-btn, .view-btn {
  display: inline-block; padding: 11px 22px; border: 1.5px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-primary:hover, a.btn-primary:hover, .card-btn:hover, .view-btn:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.btn-primary:before, .btn-primary:hover:before { display: none; }
.btn.btn-border {
  border: 1.5px solid var(--blue); border-radius: var(--radius); background: #fff; color: var(--blue-strong); font-weight: 600;
}
.btn.btn-border:hover { background: var(--blue); color: #fff; }

/* ---- Page banner (inner pages) ---- */

.page-banner {
  position: relative; overflow: hidden;
  background: var(--navy-deep) url('../images/banner-main-new-img.png') center 38% / cover no-repeat;
  color: #fff; text-align: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,34,56,.78), rgba(20,48,79,.9)); }
.page-banner .container { position: relative; padding-top: 54px; padding-bottom: 54px; }
.page-banner h1 { margin: 0; color: #fff; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; }

.page-section { padding: 48px 0 72px; }

/* ---- Home hero ---- */

.home-hero {
  position: relative;
  background: var(--navy-deep) url('../images/banner-main-new-img.png') center 35% / cover no-repeat;
  color: #fff; text-align: center;
}
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,34,56,.68) 0%, rgba(20,48,79,.88) 100%); }
.home-hero .container { position: relative; padding-top: 84px; padding-bottom: 150px; }
.home-hero h1 { margin: 0 0 6px; color: #fff; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.1; }
.home-hero__role { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); }
.home-hero__tagline { margin: 6px 0 22px; color: #c8d7ee; font-size: 17px; }
.home-hero__badge {
  display: inline-block; padding: 8px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .22em;
}

.action-cards { position: relative; z-index: 2; margin-top: -92px; padding-bottom: 8px; }
.action-card {
  height: 100%; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column;
}
.action-card h3 { margin: 0 0 6px; font-size: 22px; }
.action-card p { margin: 0 0 16px; color: var(--muted); }
.action-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.action-card--primary { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.action-card--primary h3 { color: #fff; }
.action-card--primary p { color: #dbe6f6; }
.action-card--primary .card-btn { background: #fff; border-color: #fff; color: var(--navy); }
.action-card--primary .card-btn:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }
.action-card__icon { display: block; margin-bottom: 12px; font-size: 30px; line-height: 1; color: var(--blue); }
.action-card--primary .action-card__icon { color: #fff; }
.action-card--navy { background: var(--navy); border: 2px solid #fff; color: #fff; }
.action-card--navy h3 { color: #fff; }
.action-card--navy p { color: #c9d6e8; }
.action-card--navy .action-card__icon { color: #8fb0e0; }
.action-card--navy .card-btn { background: #fff; border-color: #fff; color: var(--navy); }
.action-card--navy .card-btn:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }
.action-card--light { border-top: 4px solid var(--blue); }
.action-card__note { margin: 0; color: #dbe6f6; font-size: 14px; font-weight: 600; }
.action-card__methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.action-card__methods li { display: flex; align-items: center; justify-content: center; width: 58px; height: 38px; border-radius: 6px; background: #fff; }
.action-card__methods img { max-width: 40px; max-height: 26px; width: auto; height: auto; }

/* ---- Home sections ---- */

.home-section { padding: 64px 0; }
.home-section--tint { background: var(--surface); }
.section-heading { margin: 0 0 6px; text-align: center; font-size: clamp(28px, 3.6vw, 38px); }
.section-kicker { margin: 0 0 6px; text-align: center; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.notice-card { max-width: 920px; margin: 0 auto; padding: 32px 36px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.notice-card h3 { margin: 0 0 16px; font-size: 26px; }
.notice-card ul { margin: 0; padding: 0; list-style: none; }
.notice-card li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); }
.notice-card li:first-of-type { border-top: 0; }
.notice-card li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

.about-copy { max-width: 820px; margin: 0 auto; }
.about-copy p { color: var(--ink); font-size: 17px; }
.about-copy .btn-primary { margin-top: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.feature-card { padding: 28px 30px 28px 32px; border: 1px solid #d3deed; border-left: 5px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.feature-card h2 { margin: 0 0 14px; font-size: 24px; }
.feature-card ul { margin: 0; padding: 0; list-style: none; }
.feature-card li { position: relative; padding: 6px 0 6px 24px; }
.feature-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* FAQ accordion (home and FAQ page) */
.faq-section { background: var(--surface); }
.faq-section .accordion-item, .faq-information .accordion-item {
  padding: 0; margin: 0 0 14px; border-color: #c3d0e2 !important;
  box-shadow: 0 1px 2px rgba(20, 48, 79, .08), 0 6px 18px rgba(20, 48, 79, .08);
}
.faq-section .accordion-item:hover, .faq-information .accordion-item:hover { box-shadow: 0 2px 4px rgba(20, 48, 79, .10), 0 10px 24px rgba(20, 48, 79, .12); }
.faq-section .accordion-item .accordion-body, .faq-information .accordion-item .accordion-body { padding: 4px 22px 20px; }
.faq-section .accordion-button:not(.collapsed)::after { filter: brightness(.35); }
.faq-section .accordion-item, .faq-information .accordion-item {
  margin-bottom: 12px; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: #fff; overflow: hidden;
}
.faq-section button.accordion-button, .faq-information .accordion-item button {
  background: #fff; color: var(--navy); font-size: 16px; font-weight: 600; box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed), .faq-information .accordion-button:not(.collapsed) { background: var(--blue-soft); color: var(--navy); }
.faq-section .accordion-body, .faq-information .accordion-body { color: var(--ink); padding: 4px 22px 18px; }
.faq-section .accordion > [class*="col-"], .faq-information .accordion > [class*="col-"] { padding-left: 12px; padding-right: 12px; }
.faq-section button.accordion-button, .faq-information .accordion-item button { padding: 18px 52px 18px 22px; text-align: left; }
.faq-section .accordion-button::after, .faq-section .accordion-button::after, .faq-section .accordion-button:not(.collapsed)::after { right: 20px; top: 50%; transform: translateY(-50%); margin-top: 0; }
.faq-information .accordion-button::after { right: 20px; align-self: center; margin-top: 0; }

/* ---- Footer ---- */

.site-footer { background: var(--navy-deep); color: #c9d6e8; padding: 56px 0 40px; }
.site-footer a { color: #e6eefa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-family: var(--serif); font-size: 19px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 8px; }
.site-footer__logo { display: inline-block; margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius); background: #fff; }
.site-footer__logo img { display: block; height: 44px; width: auto; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.7; }
.site-footer .contact-line { display: flex; gap: 12px; align-items: flex-start; }
.site-footer .contact-line i { color: #8fb0e0; font-size: 18px; line-height: 1.5; }

@media (max-width: 1199.98px) {
  .site-header__inner { min-height: 68px; padding: 0 16px; }
  .site-header__logo img { height: 50px; }
}
@media (max-width: 991.98px) {
  .home-hero .container { padding-top: 56px; padding-bottom: 120px; }
  .action-cards { margin-top: -72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .notice-card { padding: 24px 22px; }
}
@media (max-width: 575.98px) {
  .action-card { padding: 22px 20px; }
  .page-banner .container { padding-top: 38px; padding-bottom: 38px; }
  .home-section { padding: 44px 0; }
}

/* Full nav from 992px, centred on its own row under the logo. Below 992px it is the drawer. */
@media (min-width: 992px) {
  .site-nav { display: block; }
  .site-header__toggle { display: none; }
}
@media (min-width: 992px) {
  .site-header__inner { flex-wrap: wrap; justify-content: center; gap: 0; min-height: 0; padding-top: 10px; }
  .site-header { overflow-x: clip; }
  .site-header__logo img { height: 68px; }
  .site-nav { position: relative; flex: 1 0 100%; margin-top: 8px; }
  .site-nav::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; margin-left: -50vw; background: var(--line); }
  .site-nav .navbar-nav { justify-content: center; }
  .site-nav .nav-link { padding: 11px 10px; font-size: 14.5px; }
  .site-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--blue); }
}
.modal-header.bg-primary { background: var(--navy) !important; }
.modal-header .modal-title { font-family: var(--serif); }

/* ---- Staff login ---- */
.login-card { max-width: 460px; margin: 0 auto; padding: 32px 32px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.login-card__field { margin-bottom: 18px; }
.login-card .form-label { margin-bottom: 6px; color: var(--navy); font-weight: 600; }
.login-card .form-control, .login-card input.text-box { width: 100%; padding: 10px 12px; border: 1px solid #b9c6d8; border-radius: var(--radius); }
.login-card__remember { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--ink); }
.login-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-card__error { margin: 14px 0 0; color: var(--danger); }
.login-card__notice { margin: 22px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--danger); font-weight: 600; text-align: center; }
.login-card__alt { text-align: center; }
.btn-outline-site {
  display: inline-block; padding: 11px 22px; border: 1.5px solid var(--blue); border-radius: var(--radius);
  background: #fff; color: var(--blue-strong); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.btn-outline-site:hover { background: var(--blue); color: #fff; }

/* ---- Contact ---- */
.contact-section { padding: 56px 0; }
.contact-section h2 { margin: 0 0 22px; font-size: clamp(28px, 3.4vw, 36px); }
.contact-associate { height: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.contact-associate h3 { margin: 0 0 10px; font-size: 24px; }
.contact-associate p { margin: 0; color: var(--muted); font-size: 17px; }
.contact-box { gap: 22px 0; }
.contact-box .contact-details { flex: 0 0 50%; max-width: 50%; padding-right: 16px; }
.contact-details .icons { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-strong); font-size: 16px; }
.contact-details .heading-contact { display: block; color: var(--navy); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.contact-details p { margin: 4px 0 0; color: var(--ink); }
.contact-details a { color: var(--blue-strong); }
@media (max-width: 575.98px) { .contact-box .contact-details { flex-basis: 100%; max-width: 100%; } }

/* ---- Page container: one width everywhere (the older responsive.css made it 100% wide on desktop) ---- */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) { .container { padding-left: 16px; padding-right: 16px; } }

/* ---- Content typography for the data and text pages ---- */
:where(.main) :is(h1, h2, h3, h4, h5, h6) { font-family: var(--serif); color: var(--navy); }
:where(.main) h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 700; }
:where(.main) h3 { font-size: 22px; line-height: 1.25; }
:where(.main) h4 { font-size: 19px; line-height: 1.3; }
:where(.main) h5, :where(.main) h6 { font-size: 16px; line-height: 1.35; }
.account-form h2 { letter-spacing: 0; text-transform: none; font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }

/* ---- Phones: less nested padding so statement and district tables fit ---- */
@media (max-width: 575px) {
  .account-section .container { padding-left: 12px; padding-right: 12px; }
  .account-section .col-md-12 { padding-left: 0; padding-right: 0; }
  .account-form { padding-left: 0; padding-right: 0; }
  .tabs-inner-form { padding: 14px 12px; }
  .current-statement .inner-current-statement { margin: 0; max-width: 100%; overflow-x: auto; }
  .tax-year-history-table th, .tax-year-history-table td { padding-left: 6px; padding-right: 6px; }
  .current-statement .inner-current-statement .table-left,
  .current-statement .inner-current-statement .table-right { width: 100%; margin: 0 0 16px; }
}

/* ---- Account search card (search form, statement and record pages) ---- */
.account-section { padding-bottom: 72px; background: linear-gradient(180deg, var(--blue-soft) 0, var(--surface) 420px); }
.account-form h2 { position: relative; padding-bottom: 14px; }
.account-form h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--blue); }
.tabs-inner-form { position: relative; padding: 34px 36px 36px; border-top: 5px solid var(--navy); box-shadow: 0 2px 4px rgba(20, 48, 79, .06), 0 14px 36px rgba(20, 48, 79, .10); }
.account-form .nav-tabs { gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.account-form .nav-tabs .nav-link {
  display: inline-flex; align-items: center; margin: 0 0 -1px; padding: 12px 20px;
  border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0;
  background: transparent; color: var(--muted); font-size: 15px; font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
}
.account-form .nav-tabs .nav-link:hover { background: var(--blue-soft); color: var(--navy); }
.account-form .nav-tabs .nav-link.active { background: var(--blue-soft); border-bottom-color: var(--blue); color: var(--navy); }
.account-form .tab-content .tabs-box > p {
  margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0;
  background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.account-form .tab-content label { margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 600; }
.account-form .tab-content select, .account-form .tab-content input.form-control {
  min-height: 48px; padding: 10px 14px; border: 1px solid #b9c7da; border-radius: 8px; background-color: #fff;
}
.account-form .tab-content select:focus, .account-form .tab-content input.form-control:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 101, 156, .18);
}
.account-form .tab-content .btn-primary { margin-top: 8px; padding: 12px 30px; font-size: 16px; }
@media (max-width: 575.98px) {
  .tabs-inner-form { padding: 22px 16px 24px; }
}

/* ---- District search: same card treatment as the account search ---- */
.account-section .account-section { background: none; padding-bottom: 0; }
.account-section > .container > .tabs-box {
  padding: 34px 36px 36px; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; background: #fff;
  box-shadow: 0 2px 4px rgba(20, 48, 79, .06), 0 14px 36px rgba(20, 48, 79, .10);
}
.account-section > .container > .tabs-box > p {
  margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0;
  background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.account-section > .container > .tabs-box .form-label { margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 600; }
.account-section > .container > .tabs-box .form-select, .account-section > .container > .tabs-box .form-control {
  min-height: 48px; padding: 10px 14px; border: 1px solid #b9c7da; border-radius: 8px; background-color: #fff;
}
.account-section > .container > .tabs-box .form-select:focus, .account-section > .container > .tabs-box .form-control:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 101, 156, .18);
}
@media (max-width: 575.98px) {
  .account-section > .container > .tabs-box { padding: 22px 16px 24px; }
}

/* ---- Staff login: same tint and card treatment as the account pages ---- */
.login-section { padding: 64px 0 80px; background: linear-gradient(180deg, var(--blue-soft) 0, var(--surface) 420px); }
.login-section .login-card {
  border-top: 5px solid var(--navy);
  box-shadow: 0 2px 4px rgba(20, 48, 79, .06), 0 14px 36px rgba(20, 48, 79, .10);
}
.login-section .login-card .form-control { min-height: 48px; border: 1px solid #b9c7da; border-radius: 8px; }
.login-section .login-card .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 101, 156, .18); }
