/* ============================================================
   Marketing Simba — assets/css/wp.css

   WordPress-only additions layered on top of the prototype's
   style.css, which is copied verbatim and never edited. Everything
   here covers surfaces the static prototype never had:

     1. WordPress glue (admin bar, editor output, a11y helpers)
     2. Inner page hero
     3. Prose / WYSIWYG typography
     4. Blog: cards, grid, single post, pagination
     5. Contact Form 7 styling for the newsletter + contact forms
     6. Small additions to prototype components

   All values come from the tokens defined in style.css.
   ============================================================ */


/* ============================================================
   1. WORDPRESS GLUE
   ============================================================ */

/* The prototype sets display on several components that would otherwise
   out-specify [hidden]; force it so JS-toggled elements really hide. */
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 0.75rem 1.25rem;
  background-color: var(--gold);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--bg-dark);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* The fixed nav has to sit below the admin bar for logged-in users. */
body.admin-bar .nav { top: 32px; }

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

/* Anchor links land below the 70px fixed nav rather than under it. */
.ms-section { scroll-margin-top: 70px; }
body.admin-bar .ms-section { scroll-margin-top: 102px; }

/* The prototype hangs section padding off the `section` element itself. Any
   .ms-section that is not a <section> would otherwise render flush against
   its neighbours, so mirror the rule for those. */
div.ms-section { padding: 5rem 5%; }

/* The prototype's <img> tags carry no width/height attributes, so rules like
   `.seo-img-wrap img { width:100%; aspect-ratio:4/5 }` fully determine the box.
   WordPress always emits width= and height=, and where a rule sets no height
   that attribute wins as a presentational hint — the SEO and Why Us images
   rendered at their full 1125px instead of the intended ~525px, stretching
   those sections to roughly double height.

   Author CSS outranks presentational hints, so this hands sizing back to
   aspect-ratio. Any rule that genuinely wants a fixed height (.service-card-img
   img, .process-img-row img, .post-card__img img …) is more specific and still
   wins, so this is safe as a blanket default. */
img { height: auto; }

/* Admin-only diagnostics rendered by section partials. */
.msimba-admin-notice {
  border: 1px dashed rgba(28, 201, 232, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Classic editor alignment + caption output. */
.alignleft  { float: left;  margin: 0.5rem 1.75rem 1.25rem 0; }
.alignright { float: right; margin: 0.5rem 0 1.25rem 1.75rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption img { border-radius: var(--radius); }

.wp-caption-text,
figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  text-align: center;
}

.page-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}


/* ============================================================
   2. INNER PAGE HERO
   Not in the prototype — built from the same eyebrow / display
   heading / gold divider vocabulary as the section headers, with
   the #contact band's diagonal accent wash.
   ============================================================ */

.page-hero {
  background-color: var(--bg-secondary);
  background-image: linear-gradient(135deg, rgba(28, 201, 232, 0.09) 0%, transparent 62%);
  border-bottom: 1px solid rgba(28, 201, 232, 0.12);
  padding: 10.5rem 5% 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 0;
}

.page-hero .section-divider {
  margin: 1.25rem 0 1.5rem;
}

.page-hero__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.page-hero a.section-label:hover {
  color: var(--gold-light);
}

.page-hero .hero-ctas { margin-top: 2rem; }

.page-hero--post .page-hero__inner { max-width: 860px; }

.post-meta {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-meta span { color: rgba(28, 201, 232, 0.45); }


/* ============================================================
   3. PROSE — WYSIWYG output
   ============================================================ */

.prose {
  max-width: 760px;
  color: var(--text-body);
}

.prose > * + * { margin-top: 1.25rem; }

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 3rem;
}

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-top: 2.25rem;
}

.prose h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
}

.prose p { color: var(--text-body); }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--gold-light); }

.prose strong { color: var(--cream); font-weight: 600; }

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose ol { list-style: decimal; }
.prose ul { list-style: none; }

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
}

.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.prose li { font-size: 1.02rem; line-height: 1.7; }

.prose blockquote {
  background-color: var(--bg-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  color: var(--cream);
}

.prose blockquote p { color: inherit; }

.prose img,
.prose figure img,
.prose video,
.prose iframe {
  border-radius: var(--radius);
  max-width: 100%;
}

.prose hr {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 3rem 0;
}

.prose code {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15em 0.45em;
  font-size: 0.88em;
  color: var(--gold-light);
}

.prose pre {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.88rem;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1rem;
  text-align: left;
}

.prose th {
  background-color: var(--bg-card);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Rich-text section surfaces */
.text-block--dark      { background-color: var(--bg-dark); }
.text-block--secondary { background-color: var(--bg-secondary); }
.text-block--card      { background-color: var(--bg-card); }


/* ============================================================
   4. BLOG
   ============================================================ */

.ms-section--post-list,
.ms-section--post-body,
.ms-section--comments { background-color: var(--bg-dark); }

.ms-section--related,
.ms-section--latest-posts { background-color: var(--bg-secondary); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  border-color: rgba(28, 201, 232, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover { color: inherit; }

.post-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__img img { transform: scale(1.05); }

.post-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.post-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-card__title {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
  transition: color 0.2s ease;
}

.post-card:hover .post-card__title { color: var(--gold); }

.post-card__excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.post-card__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.post-card__meta span { color: rgba(28, 201, 232, 0.45); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.pagination .page-numbers {
  min-width: 42px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pagination a.page-numbers:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .page-numbers.current {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
  font-weight: 600;
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

.post-empty {
  text-align: center;
  padding: 3rem 0 1rem;
}

.post-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Single post */
.post-hero-img {
  background-color: var(--bg-dark);
  padding: 3rem 5% 0;
}

.post-hero-img .section-inner {
  max-width: var(--max-width);
}

.post-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  max-width: 760px;
}

.post-tags a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.post-tags a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 760px;
}

.post-nav__item {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav__item:hover {
  border-color: rgba(28, 201, 232, 0.3);
  transform: translateY(-2px);
}

.post-nav__item span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-nav__item strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
}

.post-nav__item--next {
  text-align: right;
  grid-column: 2;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
  max-width: 480px;
}

.search-form input[type="search"] {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  transition: border-color 0.2s ease;
}

.search-form input[type="search"]::placeholder { color: var(--text-muted); }

.search-form input[type="search"]:focus {
  border-color: var(--gold);
  outline: none;
}

.search-form .btn { border-radius: var(--radius); }


/* ============================================================
   5. CONTACT FORM 7
   CF7 wraps every control in a <span class="wpcf7-form-control-wrap">.
   The form templates reuse the prototype's .form-group markup, so the
   only work here is making the wrapper transparent to layout and giving
   the CF7 form element the grid the static <form> had.
   ============================================================ */

.wpcf7 { margin: 0; }

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  transition: border-color 0.2s ease;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select { appearance: none; cursor: pointer; }

.form-group textarea::placeholder,
.form-group select { color: var(--text-muted); }

.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  outline: none;
}

.form-group.has-error input,
.form-group.has-error textarea,
.wpcf7-not-valid {
  border-color: #e2564d !important;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #ff8b83;
}

.wpcf7-spinner {
  margin: 0 0 0 0.75rem;
  background-color: var(--gold);
}

.wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 1.25rem 0 0 !important;
  padding: 0.85rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-body);
  text-align: left;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(226, 86, 77, 0.55) !important;
  color: #ff8b83;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(28, 201, 232, 0.5) !important;
  color: var(--gold-light);
}

/* --- Newsletter: reproduce the prototype's two-column form grid --- */
.newsletter-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  text-align: left;
}

.newsletter-form-wrap .full-width { grid-column: 1 / -1; }

.newsletter-form-wrap .form-actions {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Contact: a panel, since the prototype's band was buttons only --- */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background-color: rgba(13, 31, 44, 0.72);
  border: 1px solid rgba(28, 201, 232, 0.18);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

.contact-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-wrap .full-width { grid-column: 1 / -1; }

.contact-form-wrap .form-actions {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.25rem;
}

.contact-actions--under {
  margin-top: 1.5rem;
  display: block;
}

/* --- Success state swapped in by wp.js on wpcf7mailsent --- */
.form-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.form-success__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--bg-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success h3 { margin-bottom: 0.5rem; }

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* ============================================================
   5b. LOGO
   The prototype had a text wordmark only. When a logo is uploaded
   in Site Options it replaces that text in both the header and the
   footer; --logo-height is printed inline from the editor's value.
   ============================================================ */

:root { --logo-height: 34px; }

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  height: var(--logo-height);
  object-fit: contain;
}

.site-logo--footer img {
  height: calc(var(--logo-height) * 1.15);
  max-width: 240px;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .site-logo img { max-width: 160px; }
}


/* ============================================================
   5c. ICONS (Line Awesome)
   Icons are decorative throughout — adjacent text always carries
   the meaning — so they are aria-hidden and sized in em so they
   track whatever they sit beside.
   ============================================================ */

.la, .las, .lar, .lab, .lal, .lad { vertical-align: -0.05em; }

/* Section icons keep the exact box the prototype's emoji occupied. */
.service-icon .las,
.service-icon .lab { font-size: 1.75rem; color: var(--gold); }

.feature-icon .las,
.feature-icon .lab { font-size: 1.6rem; color: var(--gold); }

.industry-icon .las,
.industry-icon .lab { font-size: 1.1rem; color: var(--gold); }

.check-mark .las { font-size: 0.95rem; }

.quote-mark .las { font-size: 2.6rem; }

/* Inline icons that precede a label. */
.footer-contact-item .las,
.post-card__meta .las,
.post-meta .las,
.post-nav__item span .las,
.pagination .las,
.search-form .btn .las,
.post-empty .btn .las,
.footer-social a .las,
.footer-social a .lab {
  margin-right: 0.45em;
  opacity: 0.85;
}

.post-nav__item--next span .las,
.pagination .next .las { margin-right: 0; margin-left: 0.45em; }

.footer-contact-item .las { color: var(--gold); width: 1.1em; text-align: center; }

.footer-social a {
  display: inline-flex;
  align-items: center;
}

.footer-social a .las,
.footer-social a .lab { font-size: 0.95rem; }

.post-card__meta,
.post-meta { align-items: center; }

.post-card__meta time { display: inline-flex; align-items: center; }

.post-meta span { display: inline-flex; align-items: center; color: inherit; }


/* ============================================================
   5d. CONTACT DETAILS (contact section)
   Phone / email / address as tappable cards above the form.
   ============================================================ */

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  padding: 0;
  max-width: 720px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background-color: rgba(13, 31, 44, 0.55);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

a.contact-detail:hover,
a.contact-detail:focus {
  border-color: var(--gold);
  background-color: rgba(13, 31, 44, 0.9);
  transform: translateY(-2px);
}

.contact-detail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(28, 201, 232, 0.12);
  color: var(--gold);
  font-size: 1.05rem;
}

.contact-detail__body { display: flex; flex-direction: column; }

.contact-detail__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail__value {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

a.contact-detail:hover .contact-detail__value { color: var(--gold); }


/* ============================================================
   5e. FOOTER NEWSLETTER
   Was a full-height homepage section in the prototype. Rebuilt
   as a panel at the top of the footer: eyebrow + heading + copy
   on the left, and a single fused pill control on the right, so
   the input and its button read as one object rather than two
   loose elements floating on the footer background.
   ============================================================ */

.footer-newsletter {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 2.25rem 2.5rem;
  background-color: var(--bg-card);
  background-image: linear-gradient(135deg, rgba(28, 201, 232, 0.10) 0%, transparent 55%);
  border: 1px solid rgba(28, 201, 232, 0.18);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr minmax(330px, 420px);
  align-items: center;
  gap: 3rem;
}

.footer-newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.footer-newsletter__eyebrow .las { font-size: 0.95rem; }

/* Overrides .footer-col h4, which is the small uppercase column heading. */
.footer-newsletter__text h4 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--cream);
  margin-bottom: 0.45rem;
}

.footer-newsletter__text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

/* --- The fused input + button pill --- */
.signup-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.32rem 0.32rem 0.32rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-group:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(28, 201, 232, 0.15);
}

/* min-width:0 lets the input shrink below its ~20-character intrinsic width,
   which is what otherwise pushes the button out of the pill. */
.signup-group .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.signup-group input[type="email"] {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-body);
}

.signup-group input[type="email"]::placeholder { color: var(--text-muted); }

/* The focus ring lives on the whole pill instead, via :focus-within — the
   submit button keeps its own outline. */
.signup-group input[type="email"]:focus { outline: none; }

.signup-group .btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
}

.signup-group .btn:hover { transform: none; }

/* CF7's spinner would sit inside the pill and stretch it. */
.signup-group .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .signup-group { opacity: 0.65; }

.signup-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding-left: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.signup-note .las { font-size: 0.85rem; opacity: 0.8; }

.footer-newsletter__form .wpcf7-response-output {
  margin: 0.75rem 0 0 !important;
  font-size: 0.82rem;
}

.form-success--inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 0.25rem 0;
}

.form-success--inline .form-success__mark {
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-success--inline p { margin: 0; font-size: 0.9rem; color: var(--text-body); }


/* ============================================================
   6. SMALL ADDITIONS TO PROTOTYPE COMPONENTS
   ============================================================ */

/* The prototype set this size inline on the contact button. */
.btn--lg {
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
}

/* Testimonial avatars can now be a photo instead of initials. */
.avatar--photo {
  overflow: hidden;
  background-color: var(--bg-secondary);
  padding: 0;
}

.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The contact band as a class, so blog templates can reuse it without
   duplicating the #contact id (ids must stay unique per page). Mirrors
   the #contact rules in style.css. */
.ms-section--contact {
  background-color: #05111a;
  background-image: linear-gradient(135deg, rgba(28, 201, 232, 0.08) 0%, transparent 60%);
  border-top: 1px solid rgba(28, 201, 232, 0.18);
  text-align: center;
  padding: 6rem 5%;
}

.ms-section--contact h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
}

/* Respect the OS-level motion preference across every animation the
   prototype and this file introduce. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 9rem 5% 3.5rem; }
}

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }

  div.ms-section { padding: 3.5rem 5%; }

  .page-hero { padding: 8rem 5% 3rem; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { grid-column: 1; text-align: left; }

  .newsletter-form-wrap .wpcf7-form,
  .contact-form-wrap .wpcf7-form { grid-template-columns: 1fr; }

  .newsletter-form-wrap .full-width,
  .contact-form-wrap .full-width { grid-column: 1; }

  .contact-form-wrap { padding: 1.75rem 1.25rem 1.5rem; }

  .search-form { flex-direction: column; }

  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .contact-details { flex-direction: column; align-items: stretch; }
  .contact-detail { border-radius: var(--radius); }

  .post-hero-img { padding: 2rem 5% 0; }
  .post-hero-img img { max-height: 300px; }

  .alignleft, .alignright { float: none; margin: 1.25rem 0; }
}

/* Below ~480px the pill has no room for a side-by-side button. */
@media (max-width: 480px) {
  .signup-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 0.5rem;
  }

  .signup-group input[type="email"] { padding: 0.6rem 0.9rem; }
  .signup-group .btn { width: 100%; text-align: center; }
}
