/*
Theme Name:  New Movement Media
Theme URI:   https://newmovementmedia.com
Author:      Shawn Lyles
Author URI:  https://newmovementmedia.com
Description: Custom classic theme for New Movement Media — a solo-operated venture studio and AI implementation agency in Oakland, CA. Light sky-blue canvas, white cards, charcoal typography, confident red accents.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newmovementmedia
Tags:        one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================================
   1. DESIGN TOKENS
   Edit brand colors, fonts, spacing here — everything else inherits.
   ========================================================================= */
:root {
  /* Brand palette */
  --nmm-red: #d32027;        /* Primary red — solid buttons, icons, accents      */
  --nmm-red-dark: #b3181e;   /* Darker red — hover states & text links on blue   */
  /*   (#B3181E passes WCAG AA (>4.5:1) as text on the sky-blue background;      */
  /*    the brighter #D32027 sits right at ~4.5:1, so links use the dark shade.) */
  --nmm-charcoal: #3a3a3c;   /* Headings, nav text, footer background            */
  --nmm-sky: #dceef9;        /* Main page background — light, airy sky blue      */
  --nmm-sky-deep: #b8ddf2;   /* Alternating section backgrounds                  */
  --nmm-white: #ffffff;      /* Cards / content panels                           */
  --nmm-ink: #1c1c1e;        /* Body text                                        */
  --nmm-ink-soft: #4d4d50;   /* Secondary text (passes AA on sky + white)        */

  /* Typography */
  --nmm-font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --nmm-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Shape & elevation */
  --nmm-radius: 14px;
  --nmm-radius-sm: 8px;
  --nmm-shadow: 0 6px 24px rgba(28, 28, 30, 0.08), 0 2px 6px rgba(28, 28, 30, 0.05);
  --nmm-shadow-lift: 0 14px 34px rgba(28, 28, 30, 0.14), 0 4px 10px rgba(28, 28, 30, 0.07);

  /* Glossy accent used on red buttons / badges (subtle, not skeuomorphic) */
  --nmm-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%);

  /* Layout */
  --nmm-container: 1160px;
  --nmm-gutter: 1.25rem;
  --nmm-header-h: 76px;
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--nmm-header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--nmm-font-body);
  font-size: 1.0625rem; /* 17px */
  font-weight: 400;
  line-height: 1.65;
  color: var(--nmm-ink);
  background-color: var(--nmm-sky);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nmm-font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--nmm-charcoal);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--nmm-red-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--nmm-charcoal);
}

ul, ol {
  padding-left: 1.3em;
}

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  border-left: 4px solid var(--nmm-red);
  color: var(--nmm-ink-soft);
  font-style: italic;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(58, 58, 60, 0.08);
  border-radius: 4px;
}

code { padding: 0.15em 0.4em; }

pre {
  padding: 1em 1.2em;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--nmm-sky-deep);
  margin: 2.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

th, td {
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--nmm-sky-deep);
}

/* Visible focus states everywhere (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--nmm-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Honor users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   3. ACCESSIBILITY HELPERS
   ========================================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--nmm-charcoal);
  color: var(--nmm-white);
  padding: 0.7em 1.2em;
  border-radius: 0 0 var(--nmm-radius-sm) var(--nmm-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--nmm-white);
}

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--nmm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--nmm-gutter);
  padding-right: var(--nmm-gutter);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--deep {
  background-color: var(--nmm-sky-deep);
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* Small red overline label above section headings */
.section-label {
  display: inline-block;
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nmm-red-dark);
  margin-bottom: 0.9rem;
}

.section-intro {
  max-width: 640px;
  color: var(--nmm-ink-soft);
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.btn {
  display: inline-block;
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — glossy red, matches the logo's dimensional feel */
.btn--red {
  background-color: var(--nmm-red);
  background-image: var(--nmm-gloss);
  color: var(--nmm-white);
  box-shadow: 0 6px 16px rgba(211, 32, 39, 0.32);
}

.btn--red:hover,
.btn--red:focus-visible {
  background-color: var(--nmm-red-dark);
  color: var(--nmm-white);
  box-shadow: 0 10px 22px rgba(211, 32, 39, 0.4);
}

/* Secondary — charcoal outline */
.btn--outline {
  background: transparent;
  border-color: var(--nmm-charcoal);
  color: var(--nmm-charcoal);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--nmm-charcoal);
  color: var(--nmm-white);
}

/* Outline variant for dark (charcoal) backgrounds */
.btn--outline-light {
  background: transparent;
  border-color: var(--nmm-white);
  color: var(--nmm-white);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background-color: var(--nmm-white);
  color: var(--nmm-charcoal);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* =========================================================================
   6. SITE HEADER & NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(220, 238, 249, 0.85); /* sky blue, slightly translucent */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* .is-scrolled is toggled by assets/js/main.js once the page scrolls */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 18px rgba(28, 28, 30, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nmm-header-h);
}

.site-branding a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-branding img,
.site-branding .custom-logo {
  max-height: 44px;
  width: auto;
}

/* Text fallback when no logo image is available */
.site-branding__text {
  font-family: var(--nmm-font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--nmm-charcoal);
  white-space: nowrap;
}

.site-branding__text .brand-media {
  color: var(--nmm-red);
}

/* Desktop nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nmm-charcoal);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--nmm-red-dark);
  border-bottom-color: var(--nmm-red);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 26px;
  height: 2px;
  background: var(--nmm-charcoal);
  transition: background-color 0.15s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--nmm-charcoal);
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after  { top: 8px; }

/* Toggle → X while panel is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile slide-in panel + overlay */
.nav-overlay {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(320px, 85vw);
    background: var(--nmm-white);
    box-shadow: -12px 0 40px rgba(28, 28, 30, 0.18);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .main-nav a {
    font-size: 1.15rem;
  }

  .nav-overlay.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(28, 28, 30, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  /* Keep the toggle above the open panel so it can close it */
  .nav-toggle {
    position: relative;
    z-index: 1300;
  }
}

/* =========================================================================
   7. HERO (front page)
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero__subhead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--nmm-ink-soft);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Subtle concentric-circle target motif, echoing the logo.
   Pure CSS — sits behind the hero copy on the right. */
.hero__target {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(211, 32, 39, 0.16) 0 12%,
      rgba(255, 255, 255, 0.55) 12% 24%,
      rgba(211, 32, 39, 0.11) 24% 36%,
      rgba(255, 255, 255, 0.45) 36% 48%,
      rgba(211, 32, 39, 0.07) 48% 60%,
      rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero__target {
    width: 360px;
    height: 360px;
    right: -180px;
    opacity: 0.7;
  }
}

/* =========================================================================
   8. CARDS & GRIDS
   ========================================================================= */
.card-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: var(--nmm-white);
  border-radius: var(--nmm-radius);
  box-shadow: var(--nmm-shadow);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nmm-shadow-lift);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--nmm-ink-soft);
  flex-grow: 1;
}

.card__link {
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--nmm-red-dark);
  margin-top: 0.5rem;
}

.card__link::after {
  content: ' \2192'; /* → */
}

.card__link:hover {
  color: var(--nmm-charcoal);
}

/* Small red dot/icon spot above venture card titles */
.card__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  background:
    radial-gradient(circle at 50% 38%,
      rgba(255, 255, 255, 0.65) 0 18%,
      var(--nmm-red) 22% 45%,
      var(--nmm-white) 48% 62%,
      var(--nmm-red) 65% 100%);
  box-shadow: 0 4px 10px rgba(211, 32, 39, 0.3);
}

/* =========================================================================
   9. SERVICE / PRICING CARDS
   ========================================================================= */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card__price {
  font-family: var(--nmm-font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--nmm-red-dark);
  margin: 0.2rem 0 1rem;
}

.pricing-card__price small {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nmm-ink-soft);
}

.pricing-card--featured {
  border: 2px solid var(--nmm-red);
  box-shadow: var(--nmm-shadow-lift);
}

/* "Most Popular" corner ribbon */
.pricing-card__ribbon {
  position: absolute;
  top: 22px;
  right: -42px;
  transform: rotate(45deg);
  background: var(--nmm-red);
  background-image: var(--nmm-gloss);
  color: var(--nmm-white);
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45em 3.2em;
  box-shadow: 0 3px 8px rgba(28, 28, 30, 0.25);
}

.pricing-card .btn {
  margin-top: 1.4rem;
  align-self: flex-start;
}

/* =========================================================================
   10. STEPS (“How it works”)
   ========================================================================= */
.steps {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  background: var(--nmm-white);
  border-radius: var(--nmm-radius);
  box-shadow: var(--nmm-shadow);
  padding: 2rem 1.8rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--nmm-red);
  background-image: var(--nmm-gloss);
  color: var(--nmm-white);
  font-family: var(--nmm-font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(211, 32, 39, 0.3);
}

/* =========================================================================
   11. TECH BADGES / PILLS
   ========================================================================= */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-block;
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nmm-charcoal);
  background: var(--nmm-white);
  border: 1px solid var(--nmm-sky-deep);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  box-shadow: 0 2px 6px rgba(28, 28, 30, 0.06);
}

/* =========================================================================
   12. CTA BAND (charcoal)
   ========================================================================= */
.cta-band {
  background: linear-gradient(180deg, #454547 0%, var(--nmm-charcoal) 100%);
  color: var(--nmm-white);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band h2 {
  color: var(--nmm-white);
  margin-bottom: 0.4em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* =========================================================================
   13. ABOUT PAGE — founder & timeline
   ========================================================================= */
.founder {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 340px) 1fr;
  align-items: start;
  margin-top: 2.5rem;
}

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

.founder__photo img {
  border-radius: var(--nmm-radius);
  box-shadow: var(--nmm-shadow-lift);
}

/* Graceful placeholder when assets/img/founder.jpg is missing */
.founder__placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--nmm-radius);
  background:
    radial-gradient(circle at 50% 34%,
      rgba(211, 32, 39, 0.14) 0 20%,
      rgba(255, 255, 255, 0.8) 22% 40%,
      rgba(211, 32, 39, 0.1) 42% 58%,
      var(--nmm-white) 60%),
    var(--nmm-white);
  box-shadow: var(--nmm-shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.4rem;
  color: var(--nmm-ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--nmm-sky-deep);
}

.timeline li {
  position: relative;
  padding: 0 0 1.8rem 2.6rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nmm-red);
  background-image: var(--nmm-gloss);
  box-shadow: 0 0 0 4px var(--nmm-sky);
}

.timeline__year {
  font-family: var(--nmm-font-head);
  font-weight: 800;
  color: var(--nmm-red-dark);
  display: block;
  margin-bottom: 0.2em;
}

/* =========================================================================
   14. FORMS (contact + search + comments)
   ========================================================================= */
.form-card {
  background: var(--nmm-white);
  border-radius: var(--nmm-radius);
  box-shadow: var(--nmm-shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 680px;
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--nmm-charcoal);
  margin-bottom: 0.45rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--nmm-ink-soft);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="search"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--nmm-ink);
  background: var(--nmm-white);
  border: 1.5px solid var(--nmm-sky-deep);
  border-radius: var(--nmm-radius-sm);
  padding: 0.75em 1em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--nmm-red);
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.15);
  outline: none;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

/* Honeypot — visually removed but present for bots. Do NOT use display:none
   (some bots skip hidden fields); off-screen keeps it fillable by them. */
.nmm-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success / error notices */
.form-notice {
  border-radius: var(--nmm-radius-sm);
  padding: 1em 1.3em;
  margin-bottom: 1.6rem;
  font-weight: 500;
}

.form-notice--success {
  background: #e2f4e6;
  border: 1.5px solid #218739;
  color: #14532d;
}

.form-notice--error {
  background: #fdeaea;
  border: 1.5px solid var(--nmm-red);
  color: #8f1319;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.7rem;
  max-width: 480px;
}

.search-form input[type="search"] {
  flex: 1;
  font: inherit;
  border: 1.5px solid var(--nmm-sky-deep);
  border-radius: 999px;
  padding: 0.7em 1.2em;
  background: var(--nmm-white);
}

.search-form input[type="search"]:focus {
  border-color: var(--nmm-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.15);
}

/* =========================================================================
   15. BLOG / CONTENT TEMPLATES
   ========================================================================= */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.content-area {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.entry-card {
  background: var(--nmm-white);
  border-radius: var(--nmm-radius);
  box-shadow: var(--nmm-shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.entry-card .post-thumbnail img {
  border-radius: var(--nmm-radius-sm);
  margin-bottom: 1.5rem;
}

.entry-title a {
  color: var(--nmm-charcoal);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--nmm-red-dark);
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--nmm-ink-soft);
  margin-bottom: 1.2rem;
}

.entry-meta a {
  color: var(--nmm-ink-soft);
}

.entry-content a {
  color: var(--nmm-red-dark);
}

/* Wide/aligned images inside post content */
.entry-content img {
  border-radius: var(--nmm-radius-sm);
}

.alignwide { margin-left: -2rem; margin-right: -2rem; max-width: none; }
.alignfull { margin-left: -2rem; margin-right: -2rem; max-width: none; }

@media (max-width: 700px) {
  .alignwide, .alignfull { margin-left: 0; margin-right: 0; }
}

.post-navigation,
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
  font-weight: 600;
}

.pagination .nav-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 2.4em;
  text-align: center;
  padding: 0.45em 0.7em;
  border-radius: var(--nmm-radius-sm);
  background: var(--nmm-white);
  box-shadow: var(--nmm-shadow);
  text-decoration: none;
  color: var(--nmm-charcoal);
  font-weight: 700;
}

.pagination .page-numbers.current {
  background: var(--nmm-red);
  color: var(--nmm-white);
}

/* 404 */
.error-404 {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.error-404 .search-form {
  margin: 2rem auto 0;
}

/* =========================================================================
   16. FOOTER (charcoal)
   ========================================================================= */
.site-footer {
  background: var(--nmm-charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--nmm-white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--nmm-sky-deep);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 2.5rem;
}

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

.footer-brand img {
  max-height: 40px;
  width: auto;
  margin-bottom: 1rem;
  /* The logo has charcoal text — lift it on the dark footer with a white chip */
  background: var(--nmm-white);
  border-radius: var(--nmm-radius-sm);
  padding: 8px 12px;
}

.footer-brand__text {
  font-family: var(--nmm-font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--nmm-white);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-brand__text .brand-media {
  color: var(--nmm-red);
}

.footer-heading {
  font-family: var(--nmm-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nmm-sky-deep);
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li,
.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================================
   17. SCROLL ANIMATIONS
   Elements with .fade-up start hidden and slide in when they enter the
   viewport (assets/js/main.js adds .is-visible via IntersectionObserver).
   If JS never runs, everything stays visible — .fade-up only hides content
   once the <html> element has the .js class.
   ========================================================================= */
html.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .fade-up {
    opacity: 1;
    transform: none;
  }
}
