/* ==========================================================================
   WordPress additions to the design: things the HTML prototype did not have
   (blog, standard pages, 404, search, form errors, admin bar).
   Uses the design tokens from main.css.
   ========================================================================== */

/* honeypot field on the contact forms */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* form submit feedback */
.form-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 24px 0; font-size: 0.92rem; color: var(--ink-2); }
.form-check-input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--indigo); flex: none; }
.form-check-label { flex: 1; line-height: 1.45; }
.form-check-label a { color: var(--indigo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-check .invalid-feedback { flex-basis: 100%; font-size: 0.82rem; color: #b3364a; font-weight: 600; }
.form-check .invalid-feedback:empty { display: none; }
.form-check.is-invalid .form-check-input { outline: 2px solid #d35b6e; outline-offset: 2px; }
.form__error { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-weight: 600; font-size: 0.95rem; }
.form__error[hidden] { display: none; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }

/* logged-in admin bar: keep the fixed header, menu and transition below it */
body.admin-bar .hdr { top: var(--wp-admin--admin-bar--height, 32px); }
body.admin-bar .menu { padding-top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 782px) { body.admin-bar .hdr { top: 0; } }

/* standard pages, posts, archives */
.prose { padding-block: clamp(40px, 7vw, 96px); }
.prose__in { max-width: 760px; margin-inline: auto; font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose__in > * + * { margin-top: 1.2em; }
.prose__in h2, .prose__in h3, .prose__in h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin-top: 1.8em; }
.prose__in h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose__in h3 { font-size: 1.4rem; }
.prose__in a:not(.btn) { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose__in ul, .prose__in ol { padding-left: 1.3em; list-style: revert; }
.prose__in li + li { margin-top: 0.4em; }
.prose__in img, .prose__in video { max-width: 100%; height: auto; border-radius: 16px; }
.prose__in blockquote { padding-left: 1.2em; border-left: 3px solid var(--cyan); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.prose__in table { width: 100%; border-collapse: collapse; }
.prose__in th, .prose__in td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose__thumb { margin: 0 0 2em; }
.prose--nav { padding-top: 0; }
.nav-links { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav-links a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.pagination { margin-top: 48px; }
.pagination .nav-links { justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--indigo); color: #fff; }

.postlist { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.postcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.postcard__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.postcard__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.postcard__meta { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.postcard__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.postcard__title a { color: var(--ink); }

/* search form (404, empty results) */
.nbsearch { display: flex; gap: 12px; flex-wrap: wrap; }
.nbsearch input[type="search"] { flex: 1 1 240px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: inherit; color: var(--ink); }

/* comments */
.commentlist { list-style: none; padding: 0; }
.commentlist li { padding: 16px 0; border-bottom: 1px solid var(--line); }
#respond input[type="text"], #respond input[type="email"], #respond input[type="url"], #respond textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font: inherit; }
#respond .submit { padding: 12px 24px; border-radius: 999px; border: 0; background: var(--indigo); color: #fff; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   Header top bar: larger text, phone number + social icons side by side
   (--top / --hdr drive the header height and every hero's top padding)
   ========================================================================== */
:root { --top: 42px; --hdr: calc(84px + var(--top)); }
.hdr__top { font-size: 0.95rem; }
.hdr__top-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hdr__tel { font-size: 1rem; letter-spacing: 0.01em; white-space: nowrap; }
.hdr__top .i { width: 17px; height: 17px; }

.hdr__social { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0 0 0 18px; border-left: 1px solid rgba(255, 255, 255, 0.24); list-style: none; }
.hdr__top .hdr__social a { justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: rgba(255, 255, 255, 0.9); transition: background-color 0.3s, color 0.3s, transform 0.3s; }
.hdr__top .hdr__social .i { width: 18px; height: 18px; color: currentColor; }
.hdr__top .hdr__social a:hover, .hdr__top .hdr__social a:focus-visible { background: rgba(255, 255, 255, 0.14); color: var(--cyan); transform: translateY(-1px); }

/* six menu items: tighten the desktop nav a little before the burger takes over */
.hdr__nav > ul > li > a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hdr__nav > ul { gap: clamp(12px, 1.3vw, 20px); }
  .hdr__nav > ul > li > a { font-size: 0.9rem; }
}

@media (max-width: 720px) {
  :root { --top: 40px; --hdr: calc(72px + var(--top)); }
  .hdr__top { font-size: 0.9rem; }
  .hdr__top-tag { display: none; } /* phone + icons use the full bar on phones */
  .hdr__top-right { width: 100%; justify-content: space-between; gap: 12px; }
  .hdr__tel { font-size: 0.95rem; }
  .hdr__social { padding-left: 0; border-left: 0; gap: 4px; }
  .hdr__top .hdr__social a { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
  .hdr__top .hdr__social a { width: 28px; height: 28px; }
  .hdr__top .hdr__social { gap: 0; }
}


/* Application Packet page: HubSpot form (replaces the old step cards) */
.hsform { padding-block: clamp(32px, 6vw, 88px); }
.hsform__card { max-width: 860px; margin-inline: auto; padding: clamp(20px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r, 24px); }
.hsform .hs-form-frame { width: 100%; min-height: 360px; } /* reserve room so the page doesn't jump when the form loads */
.hsform iframe { max-width: 100%; }
