/*
Theme Name: New Season Bookkeeping
Theme URI: https://newseason-bookkeeping.com
Author: New Season Bookkeeping, LLC
Description: Custom theme for New Season Bookkeeping, LLC — a home-based bookkeeping oversight service in Columbia, Missouri. Navy and cream nautical identity with a Newsreader and Inter type pairing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newseason-bookkeeping
Tags: business, custom-logo, custom-menu, one-column, accessibility-ready
*/

/* ==========================================================================
   New Season Bookkeeping — base stylesheet
   Palette: deep navy ink, sailcloth cream, harbor mist
   ========================================================================== */

:root {
  --navy-900: #0f2a4a;
  --navy-800: #14345c;
  --navy-700: #1a3e6e;
  --navy-500: #3c6395;
  --navy-200: #b9cade;

  --cream: #f7f4ee;
  --sand: #ece7dd;
  --mist: #eef2f6;
  --white: #ffffff;

  --ink: #16232f;
  --ink-soft: #4a5967;
  --rule: #d8d2c7;

  --brass: #b0894a;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.site-header {
  background: var(--navy-800);
  color: var(--white);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  text-decoration: none;
}

.brand-mark img {
  height: 74px;
  width: auto;
}

.brand-center { text-align: center; }

.brand-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--white);
}

/* The title doubles as a link home, so it must not look like body link text. */
.brand-title a {
  color: inherit;
  text-decoration: none;
}

.brand-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.brand-title a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.header-cta { justify-self: end; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-light {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--white);
}
.btn-light:hover { background: var(--navy-200); border-color: var(--navy-200); }

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
  border: 1px solid var(--navy-800);
}
.btn-navy:hover { background: var(--navy-700); }

/* ---------- Navigation -------------------------------------------------- */

.site-nav {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.site-nav ul {
  display: flex;
  justify-content: flex-start;
  gap: clamp(1.5rem, 5vw, 3.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-phone:hover { color: var(--navy-200); }

.site-nav ul a {
  color: var(--navy-200);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav ul a:hover { color: var(--white); }
.site-nav ul a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  /* Mobile is edge to edge — a framed photo that narrow leaves no room for the
     headline. The frame is introduced at 701px and up, below. */
  min-height: clamp(300px, 46vw, 420px);
  background-image: url("assets/img/hero-office.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #14345C;
  text-align: center;
  /* The decorative glow behind .hero-inner bleeds past the viewport on narrow
     screens, so clip it here rather than let the page scroll sideways. */
  overflow: hidden;
}

/* From tablet up, the photograph is framed to the header's content box: its
   left edge lines up with the sailboat mark and its right edge with the phone
   number, using the same measurement .wrap uses. The 3:2 spacer shares one grid
   cell with .hero-inner, so the frame matches the picture exactly while still
   growing if the headline ever needs more room than the image height allows.
   'contain' means nothing is ever cropped. */
@media (min-width: 701px) {
  .hero {
    width: min(100% - var(--pad) * 2, calc(var(--wrap) - var(--pad) * 2));
    margin-inline: auto;
    min-height: 0;
  }

  .hero::before {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    aspect-ratio: 1800 / 1200;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 30, 54, 0.70) 0%, rgba(10, 30, 54, 0.55) 38%, rgba(10, 30, 54, 0.35) 68%, rgba(10, 30, 54, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  justify-self: center;
  /* Sit the copy in the upper third, over the smooth sky rather than across the
     bright monitor screens, so it stays legible. */
  align-self: start;
  max-width: 760px;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad) 2rem;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: -1rem -2rem;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, rgba(8, 26, 48, 0.4) 0%, rgba(8, 26, 48, 0.22) 55%, rgba(8, 26, 48, 0) 78%);
  pointer-events: none;
}

.hero-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(6, 20, 38, 0.9), 0 1px 26px rgba(6, 20, 38, 0.65);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13pt;
  line-height: 1.6;
  color: #eef4fa;
  text-shadow: 0 1px 6px rgba(6, 20, 38, 0.95), 0 1px 18px rgba(6, 20, 38, 0.7);
  margin: 0;
  text-wrap: balance;
}

/* ---------- Options section --------------------------------------------- */

.options {
  background: var(--sand);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.options-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.options-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0;
  color: var(--navy-900);
  text-wrap: balance;
}

.options-kicker {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 34ch;
}

/* ---------- Accordion --------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--rule);
}

.acc-item {
  border-bottom: 1px solid var(--rule);
}

/* Static, non-collapsible header row */
.acc-item-static {
  padding: 1.35rem 0;
}

.acc-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--navy-900);
}

.acc-heading-text {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 52ch;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: 0;
  padding: 1.35rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--navy-900);
  transition: color 0.2s ease;
}

.acc-trigger:hover {
  color: var(--navy-500);
}

/* ---------- Icon (Plus / Minus) ---------------------------------------- */

.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* Both bars of the "+" icon — rewritten for consistent boldness */
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-900); /* unified bold navy */
  height: 2.2px;               /* increased thickness for consistent boldness */
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.2s ease;
}

/* Horizontal bar */
.acc-icon::before {
  top: 50%;
  left: 0;
  width: 18px;
  transform: translateY(-50%);
}

/* Vertical bar */
.acc-icon::after {
  left: 50%;
  top: 0;
  width: 2.2px;
  height: 18px;
  transform: translateX(-50%);
}

/* Expanded state: turn "+" into "-" */
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* Hover state: unify icon color with text hover */
.acc-trigger:hover .acc-icon::before,
.acc-trigger:hover .acc-icon::after {
  background: var(--navy-500);
}

/* ---------- Panel ------------------------------------------------------- */

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.42s ease; /* smoother animation */
}

.acc-panel-inner {
  padding: 0.4rem 0 1.8rem;
  max-width: 62ch;
  color: var(--ink-soft);
}

.acc-panel-inner p {
  margin: 0 0 1rem;
}

.acc-panel-inner p:last-child {
  margin-bottom: 0;
}

.acc-lead {
  color: var(--ink);
  font-weight: 500;
}

.acc-sub {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 0.6rem;
}

.acc-panel-inner .acc-list + .acc-sub {
  margin-top: 1.4rem;
}

/* ---------- List -------------------------------------------------------- */

.acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  font-size: 1.05rem; /* smoother hierarchy */
}

.acc-list li {
  padding-left: 1.15rem;
  position: relative;
}

.acc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.acc-list strong {
  color: var(--navy-900);
  font-weight: 600;
}


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

.site-footer {
  background: var(--navy-900);
  color: var(--navy-200);
  padding-block: 2.75rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand,
.footer-copy { flex: 0 0 auto; }

.footer-copy { margin: 0; white-space: nowrap; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-brand img { height: 42px; width: auto; }

.footer-disclaimer {
  flex: 1 1 320px;
  margin: 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(185, 202, 222, 0.78);
}

.site-footer a { color: var(--navy-200); }
.site-footer a:hover { color: var(--white); }

/* ---------- Simple page body -------------------------------------------- */

.page-section { padding-block: clamp(3rem, 7vw, 5rem); }

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-900);
  margin: 0 0 1.25rem;
}

.page-section p { max-width: 66ch; color: var(--ink-soft); }

/* ---------- About page --------------------------------------------------- */

.prose { max-width: 74ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}

.about-intro { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.about-intro .page-title {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}

/* A second heading line that sits under .page-title on its own, a few points
   smaller so the greeting stays dominant. */
/* On About the name line is centred beneath the left-aligned greeting. */
.about-intro .page-subtitle { text-align: center; }

.prose .page-subtitle,
.page-subtitle {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 1.6rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink) !important;
}

.about-intro p + p { margin-top: 1.1rem; }

.about-second-look {
  background: var(--sand);
  border-block: 1px solid var(--rule);
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.section-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 1.25rem;
}

.about-second-look p { max-width: 74ch; color: var(--ink-soft); margin: 0; }
.about-second-look p + p { margin-top: 1.1rem; }

.bullets {
  list-style: none;
  margin: 1.15rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--ink-soft);
}

.bullets li {
  padding-left: 1.15rem;
  position: relative;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.badge-row {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.badge-row li { display: flex; }

.badge-row img {
  display: block;
  height: clamp(96px, 11vw, 130px);
  width: auto;
}

.about-closing {
  background: var(--navy-800);
  padding-block: clamp(2.75rem, 6vw, 3.75rem);
  text-align: center;
}

.closing-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 60ch;
  margin: 0 auto 1.75rem;
  text-wrap: balance;
}

/* ---------- Services page ------------------------------------------------ */

.services-intro { padding-bottom: clamp(2.25rem, 4vw, 3rem); }

.services-intro .page-title { margin-bottom: 1.4rem; }

.service-block {
  padding-block: clamp(2.5rem, 5.5vw, 3.75rem);
  border-top: 1px solid var(--rule);
}

.service-block.alt { background: var(--sand); }

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

.service-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.service-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-lead span { color: var(--navy-700); font-weight: 600; }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.service-list li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.65;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.service-list strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-900);
  margin-bottom: 0.3rem;
}

@media (max-width: 780px) {
  .service-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-lead { max-width: none; }
}

/* ---------- Contact page ------------------------------------------------- */

.contact-intro { padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.contact-intro .page-title { margin-bottom: 1.2rem; }

.contact-form-section {
  background: var(--sand);
  border-block: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5.5vw, 3.75rem);
}

.contact-form {
  max-width: 720px;
  display: grid;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.field label span { color: var(--brass); }

.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field input::placeholder { color: #9aa6b2; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(60, 99, 149, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid { border-color: #b3524a; }

.select-wrap { position: relative; }

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy-500);
  border-bottom: 2px solid var(--navy-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select:invalid { color: #9aa6b2; }

.field-row[hidden] { display: none; }

/* Phone number sits alongside a narrower extension box. */
.field-row.phone-row { grid-template-columns: 2.4fr 1fr; }

.field label .field-hint {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-note span { color: var(--brass); }

.contact-form .btn {
  justify-self: start;
  cursor: pointer;
  font-family: var(--sans);
}

.contact-person {
  padding-block: clamp(2.5rem, 5.5vw, 3.75rem);
  text-align: center;
}

.portrait {
  margin: 0 auto 1.75rem;
  width: clamp(210px, 24vw, 280px);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.contact-details a {
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-details a:hover {
  color: var(--navy-900);
  border-bottom-color: var(--brass);
}

@media (max-width: 640px) {
  .field-row,
  .field-row.phone-row { grid-template-columns: 1fr; }
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 860px) {
  .header-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo cta"
      "center center";
    row-gap: 1rem;
  }
  .brand-mark { grid-area: logo; }
  .header-cta { grid-area: cta; }
  .brand-center { grid-area: center; }
  .brand-mark img { height: 48px; }

  .nav-inner { flex-wrap: wrap; row-gap: 0.6rem; }
  .site-nav ul { flex-wrap: wrap; gap: 1.1rem 1.6rem; }

  .options-grid { grid-template-columns: 1fr; }
}

/* On the narrowest phones the 3:2 image band is short, so trim the headline
   padding to keep the copy inside the picture instead of spilling onto the
   navy fill below it. */
@media (max-width: 430px) {
  .hero-inner {
    padding: 1.25rem var(--pad) 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn { padding: 0.6rem 1.1rem; font-size: 0.7rem; }
  .brand-mark img { height: 42px; }
}

/* ---------- WordPress integration ---------------------------------------- */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--white);
  color: var(--navy-900);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.5rem;
}

img { max-width: 100%; height: auto; }

.prose h2,
.prose h3 { color: var(--navy-900); font-family: var(--serif); }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-top: 2rem; }
.prose ul:not([class]) { padding-left: 1.15rem; color: var(--ink-soft); line-height: 1.7; }
.prose ul:not([class]) li { margin-bottom: 0.5rem; }
.prose a:not(.btn) { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--navy-900); }

/* Form feedback */

.form-message {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.15rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 720px;
}

.form-message.is-success {
  background: #e8f1e8;
  border: 1px solid #a9c6a9;
  color: #2c4a2c;
}

.form-message.is-error {
  background: #f7e9e8;
  border: 1px solid #d4a9a5;
  color: #6d2f2a;
}

.field-error {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #a33c33;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #a33c33; }

/* 404 */

.error-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }

/* Band utilities used by the [nsb_band] shortcode */

.band-cream { background: var(--cream); }
.band-mist  { background: var(--mist); border-block: 1px solid var(--rule); }
.band-sand  { background: var(--sand); border-block: 1px solid var(--rule); }

.band-sand p,
.band-mist p { color: var(--ink-soft); }

.band-navy { background: var(--navy-800); color: var(--navy-200); }
.band-navy .page-title,
.band-navy .section-heading { color: var(--white); }
.band-navy p { color: var(--navy-200); }
.band-navy a:not(.btn) { color: var(--white); }

/* Safety net: content placed directly in the page body without a band
   still sits inside the readable column instead of running edge to edge. */

main > p,
main > ul,
main > ol,
main > h2,
main > h3,
main > h4,
main > blockquote,
main > figure,
main > table {
  max-width: min(74ch, calc(var(--wrap) - 3rem));
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* The confirmation message replaces the form, so centre it in the band. */

.contact-form-section.is-complete { text-align: center; }

.contact-form-section.is-complete .form-message {
  margin-inline: auto;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
}

/* A status message is read, not operated — no focus ring. */
.form-message:focus { outline: none; }
