/* ============================================================================
   Marketing pages — INTERIM presentable styling
   Home / Our Hens / Our Eggs / Our Story
   ----------------------------------------------------------------------------
   These pages are the original site's migrated Gutenberg content (legacy heroes,
   columns, media-text review blocks, a couple of dead Kadence rows). They lost
   their styling when the old theme was retired. This is a NON-DESTRUCTIVE layer
   over that existing markup so the pages read cleanly for the client — to be
   replaced wholesale when Andy's final design lands. Scoped to .mf-marketing and
   loaded only on these pages, so the shop / cart / portal are untouched.
   ========================================================================== */

/* ---- content root: let each section span the full width ------------------ */
.mf-marketing .mf-page-fullwidth { overflow-x: hidden; }
.mf-marketing .mf-page-fullwidth .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.mf-marketing .mf-page-content {
  font-family: var(--font-body);
  color: #4a4436;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---- section rhythm: generous vertical padding + alternating bands -------- */
.mf-marketing .mf-page-content > * {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.mf-marketing .mf-page-content > *:nth-child(even) {
  background: var(--off-white);
}
/* the leading hero (a cover, or the homepage banner group) sits flush — no
   band, no extra padding — whatever wrapper it happens to be. */
.mf-marketing .mf-page-content > *:first-child {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
}

/* ---- constrain each section's inner content to a readable column --------- */
.mf-marketing .wp-block-cover__inner-container,
.mf-marketing .wp-block-group__inner-container,
.mf-marketing .kt-row-column-wrap,
.mf-marketing .wp-block-media-text,
.mf-marketing .inner-content-container,
.mf-marketing .restrict-widthx {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  box-sizing: border-box;
}
/* a group nested inside another shouldn't re-pad */
.mf-marketing .wp-block-group__inner-container .wp-block-group__inner-container {
  padding-left: 0;
  padding-right: 0;
}

/* ---- typography ---------------------------------------------------------- */
.mf-marketing .mf-page-content h1,
.mf-marketing .mf-page-content h2,
.mf-marketing .mf-page-content h3,
.mf-marketing .mf-page-content h4 {
  font-family: var(--font-head);
  color: var(--teal);
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
}
.mf-marketing .mf-page-content h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.mf-marketing .mf-page-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.mf-marketing .mf-page-content p { margin: 0 0 var(--sp-3); }
.mf-marketing .mf-page-content p:last-child { margin-bottom: 0; }
.mf-marketing .mf-page-content a { color: var(--terracotta); }

/* ---- hero cover ---------------------------------------------------------- */
.mf-marketing .wp-block-cover {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.mf-marketing .wp-block-cover.hero_image { min-height: 480px; }
/* darken for legible white text (covers both the span + ::before variants) */
.mf-marketing .wp-block-cover .wp-block-cover__background,
.mf-marketing .wp-block-cover.has-background-dim::before {
  background-color: rgba(0, 0, 0, 0.38);
}
.mf-marketing .wp-block-cover__inner-container { max-width: 780px; position: relative; z-index: 1; }
.mf-marketing .hero_title,
.mf-marketing .wp-block-cover h1,
.mf-marketing .wp-block-cover h2 {
  color: #fff !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 var(--sp-2);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.mf-marketing .hero_subtitle,
.mf-marketing .wp-block-cover p {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* ---- images -------------------------------------------------------------- */
.mf-marketing .wp-block-image,
.mf-marketing figure {
  margin: 0;
}
.mf-marketing .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-sm);
}
/* Standalone feature images (not in a column) run the full readable width and
   stack tall — cap + centre them so a run of them reads as a tidy editorial
   column rather than sprawling. Column images already fit their column. */
.mf-marketing .wp-block-image {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.mf-marketing .wp-block-column .wp-block-image,
.mf-marketing .wp-block-media-text .wp-block-image {
  max-width: 100%;
}

/* ---- columns (side-by-side text / image) --------------------------------- */
.mf-marketing .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
  margin: 0;
}
.mf-marketing .wp-block-column {
  flex: 1 1 280px;
  margin: 0;
  min-width: 0;
}

/* ---- legacy N-across galleries (.restrict-widthx > .column.fourth) --------
   The migrated content uses old float-column classes (.fourth = quarter,
   .fourth-half = half) that lost their grid — so a row of photos stacks. Lay
   them back out as a responsive row. */
.mf-marketing .restrict-widthx {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  align-items: flex-start;
}
.mf-marketing .restrict-widthx > h2,
.mf-marketing .restrict-widthx > h3,
.mf-marketing .restrict-widthx > p {
  flex: 1 1 100%;
  text-align: center;
}
.mf-marketing .column.fourth { flex: 1 1 calc(25% - var(--sp-4)); min-width: 210px; }
.mf-marketing .column.fourth-half { flex: 1 1 calc(50% - var(--sp-4)); min-width: 260px; }
.mf-marketing .column img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* ---- media-text review blocks -------------------------------------------- */
.mf-marketing .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.mf-marketing .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---- review / pull quotes ------------------------------------------------ */
.mf-marketing blockquote {
  border: none;
  margin: 0;
  padding: 0;
}
.mf-marketing blockquote p {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--teal);
}
.mf-marketing blockquote cite,
.mf-marketing blockquote .wp-block-quote__citation {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
}

/* ---- buttons (e.g. the homepage "Shop now" link) ------------------------- */
.mf-marketing .inner-content-container > a,
.mf-marketing .wp-block-button__link {
  display: inline-block;
  margin-top: var(--sp-3);
  background: var(--teal);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mf-marketing .inner-content-container > a:hover,
.mf-marketing .wp-block-button__link:hover {
  background: var(--brown);
  color: #fff;
}

/* ---- homepage specifics -------------------------------------------------- */
.mf-marketing .homepage_slider .wp-block-cover {
  min-height: 460px;
}
.mf-marketing .mobile-v { text-align: center; }
.mf-marketing .inner-content-container h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
/* dead Kadence rows carried inline min-heights (for background images that no
   longer render) which leave huge empty bands — collapse them to fit content. */
.mf-marketing .kb-row-layout-wrap { text-align: center; }
.mf-marketing .wp-block-kadence-column,
.mf-marketing .kt-row-column-wrap,
.mf-marketing .kadence-column-inner,
.mf-marketing [class*="kt-inner-column-height"] {
  min-height: 0 !important;
  height: auto !important;
}

/* ---- mobile -------------------------------------------------------------- */
@media (max-width: 782px) {
  .mf-marketing .mf-page-content > * {
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-6);
  }
  .mf-marketing .wp-block-columns { flex-direction: column; align-items: stretch; }
  .mf-marketing .wp-block-media-text { grid-template-columns: 1fr; }
  .mf-marketing .wp-block-cover { min-height: 320px; }
  .mf-marketing .wp-block-cover.hero_image { min-height: 340px; }
}

/* ============================================================================
   HOME PAGE — front-page.php custom sections (Andy's design)
   Scoped to .mf-marketing (body class added on is_front_page()).
   ========================================================================== */

/* ----- HERO — inset within .container, per Andy's design: H1 top-left,
   postcode card bottom-left, hand-script + arrow over the hens ----- */
.hp-hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  margin-top: var(--sp-4);
}

/* light top gradient only — enough for white H1 legibility over the treeline */
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 20, 0.38) 0%, rgba(0, 30, 20, 0.10) 45%, rgba(0, 30, 20, 0) 70%);
}

.hp-hero-title {
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 48px;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

/* chunky marker script on a curved arc + visible down arrow (design) */
.hp-hero-hand {
  position: absolute;
  z-index: 1;
  top: 40%;
  right: 20%;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.hp-hand-curve {
  /* tight dark edge + soft halo so the script stays legible over the
     bright sky/pallet band in the farmer hero photo */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  /* the textPath arc carries the middle letters above the viewBox —
     without this the default svg clipping cuts "range" in half */
  overflow: visible;
}

.hp-hand-curve text {
  font-family: var(--font-hand);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.03em;
  fill: #fff;
}

/* arrow sits right under the middle of the text (design), not far right */
.hp-hand-arrow {
  align-self: center;
  margin: -4px 0 0 70px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* postcode panel — white card, bottom-left of the hero */
.hp-postcode-panel {
  position: absolute;
  z-index: 1;
  left: 48px;
  bottom: 44px;
  width: 440px;
  max-width: calc(100% - 32px);
  background: #fff;
  padding: var(--sp-4) var(--sp-5);
}

.hp-postcode-panel::after { display: none; }

.hp-postcode-heading {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.hp-postcode-sub {
  font-size: 15px;
  color: #555;
  margin: 0 0 var(--sp-3);
  line-height: 1.5;
}

/* input + separate round button, like the design */
.hp-postcode-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hp-postcode-form .input {
  flex: 1;
  border: 1px solid var(--sage);
  border-radius: 8px;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  min-width: 0;
}

.hp-postcode-btn {
  border: none;
  width: 46px;
  height: 46px;
  /* the theme's base `button` rule sets 12px/22px padding, which left a
     2px content box in this fixed 46px circle and crushed the arrow SVG */
  padding: 0;
  border-radius: 50%;
  background: var(--pink-bg);
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.15s, color 0.15s;
}

.hp-postcode-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hp-postcode-btn:hover { background: var(--terracotta); color: #fff; }

.hp-postcode-result {
  margin-top: var(--sp-2);
  font-size: 15px;
  line-height: 1.5;
}

.hp-postcode-result.is-success { color: var(--dark-green); }
.hp-postcode-result.is-error { color: #c0392b; }
.hp-postcode-result a { color: var(--teal); text-decoration: underline; }

/* ----- FRESH FROM THE FARM — one off-white panel; card bodies are WHITE
   insets (design p1) ----- */
.hp-fresh {
  padding: var(--sp-6) 0;
}

.hp-fresh-panel {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

/* design p1: the rule under "Fresh from the farm" is PARTIAL (~1/3 width);
   the chef's-choice title keeps the full-width rule */
.hp-fresh-panel .hp-section-title {
  border-bottom: none;
  padding-bottom: 0;
}

.hp-fresh-panel .hp-section-title::after {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background: var(--sage);
  margin-top: var(--sp-2);
}

.hp-section-title {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 400;
  color: var(--black);
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
}

.hp-fresh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.hp-fresh-card {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.hp-fresh-card::after { display: none; }

.hp-fresh-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.hp-fresh-body {
  padding: var(--sp-4);
  background: #fff;
}

.hp-fresh-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  margin: 0 0 var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
}

.hp-fresh-body p {
  font-size: 16px;
  color: var(--black);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
}

/* ----- THE CHEF'S CHOICE ----- */
.hp-chefs {
  padding: 0 0 var(--sp-7);
}

.hp-chefs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.hp-chefs-inner::after { display: none; }

.hp-chefs-content {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.hp-chefs-content .hp-section-title { margin: 0; }

.hp-chefs-content p {
  font-size: 16px;
  color: var(--black);
  line-height: 1.65;
  margin: 0;
}

.hp-chefs-quote {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--teal);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: none;
}

.hp-chefs-cite {
  font-size: 13px;
  color: #777;
  font-style: normal;
}

.hp-chefs-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

/* ----- HOME PAGE RESPONSIVE ----- */
@media (max-width: 900px) {
  .hp-hero {
    height: auto;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 16px 20px;
  }
  .hp-hero-title {
    position: static;
    font-size: 30px;
    margin-bottom: auto; /* pushes hand + panel to the bottom */
  }
  .hp-hero-hand {
    position: static;
    align-self: flex-end;
    font-size: 24px;
    margin: 10px 6px;
  }
  .hp-postcode-panel {
    position: static;
    width: 100%;
    max-width: none;
  }
  .hp-fresh-grid { grid-template-columns: 1fr; }
  .hp-chefs-inner { grid-template-columns: 1fr; }
  .hp-chefs-image { min-height: 280px; }
}

/* =============================================================================
   THE MAYFIELD WAY PAGE — page-the-mayfield-way.php
   ============================================================================= */

.mw-page {
  padding: var(--sp-6) 0 var(--sp-7);
}

.mw-page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--teal);
  margin: 0 0 var(--sp-3);
}

.mw-page-intro {
  font-size: 17px;
  color: #4a4436;
  line-height: 1.7;
  margin: 0 0 var(--sp-6);
  max-width: 780px;
}

.mw-section {
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
}

.mw-section-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 var(--sp-3);
}

.mw-rule {
  border: none;
  border-top: 1px solid var(--sage);
  margin: 0 0 var(--sp-4);
}

.mw-section-intro {
  font-size: 16px;
  color: #4a4436;
  line-height: 1.7;
  margin: 0 0 var(--sp-5);
  max-width: 820px;
}

.mw-section-img {
  margin: 0 0 var(--sp-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mw-section-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.mw-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
}

/* feature cards are WHITE insets on the off-white panel (design p2) */
.mw-feature {
  background: #fff;
  padding: var(--sp-3);
}

.mw-feature h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 8px;
  margin: 0 0 var(--sp-2);
}

.mw-feature p {
  font-size: 15px;
  color: #4a4436;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 700px) {
  .mw-feature-grid { grid-template-columns: 1fr; }
  .mw-section-img img { height: 220px; }
  .mw-section { padding: var(--sp-4); }
}

/* =============================================================================
   FAQ PAGE — page-eggs-delivered-to-your-door.php
   ============================================================================= */

.mf-faq-panel {
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
}

.mf-faq-intro {
  font-size: 17px;
  color: #4a4436;
  line-height: 1.7;
  margin: 0 0 var(--sp-5);
  max-width: 640px;
}

/* accordion sits on a WHITE inner area inset in the panel (design p3) */
.mf-faq-list {
  background: #fff;
  padding: 10px 32px;
}

.mf-faq-item {
  border-bottom: 1px solid var(--sage);
}

.mf-faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-4) 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  gap: var(--sp-3);
  text-transform: none; /* theme buttons are uppercase; design shows sentence case */
  letter-spacing: normal;
}

.mf-faq-toggle:hover {
  color: var(--teal);
}

/* +/− sits in a small beige circle on the right, per Andy's design. */
.mf-faq-icon {
  font-size: 18px;
  font-weight: 400;
  color: #4a4436;
  flex: 0 0 auto;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3e3d9;
  border-radius: 50%;
}

.mf-faq-body {
  display: none;
  padding: 0 0 var(--sp-4);
}

.mf-faq-body.is-open {
  display: block;
}

.mf-faq-body p {
  font-size: 16px;
  color: #4a4436;
  line-height: 1.7;
  margin: 0;
}

/* =============================================================================
   BLOG LIST PAGE — page-news.php
   ============================================================================= */

.mf-blog-card {
  margin-bottom: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
}

.mf-blog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.mf-blog-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

.mf-blog-read-btn {
  flex: 0 0 auto;
  font-size: 13px;
  padding: 13px 26px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* body is a WHITE inset on the panel (design p4); excerpt left, optional
   featured photo right (below the headline row — client request). */
.mf-blog-card-body {
  background: #fff;
  padding: var(--sp-3) var(--sp-4);
}

.mf-blog-card-body.has-thumb {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.mf-blog-thumb {
  flex: 0 0 240px;
  display: block;
}

.mf-blog-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.mf-blog-excerpt {
  font-size: 15px;
  color: #4a4436;
  line-height: 1.65;
  margin: 0;
  flex: 1 1 auto;
}

.mf-no-posts {
  font-size: 16px;
  color: #777;
  padding: var(--sp-5) 0;
}

.mf-pagination {
  margin: var(--sp-5) 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mf-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
}

.mf-pagination .page-numbers.current {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

@media (max-width: 600px) {
  .mf-blog-card-head { flex-direction: column; align-items: flex-start; }
  .mf-blog-card-body.has-thumb { flex-direction: column; }
  .mf-blog-thumb { flex: 0 0 auto; width: 100%; }
  .mf-blog-thumb img { height: 180px; }
}

/* =============================================================================
   BLOG SINGLE — single.php
   ============================================================================= */

.mf-single-post {
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
}

.mf-post-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 var(--sp-3);
}

.mf-post-thumbnail {
  margin: var(--sp-4) 0 var(--sp-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mf-post-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* one photo per viewport: under-headline image on desktop, top image on mobile */
.mf-single-post .mobile-thumbnail {
  display: none;
}

@media (max-width: 782px) {
  .mf-single-post .mobile-thumbnail {
    display: block;
    margin-top: 0;
  }
  .mf-single-post .desktop-thumbnail {
    display: none;
  }
}

.news-back::before {
  content: "\2190\00a0";
}

/* article body is a WHITE inset on the panel (design p5) */
.mf-post-content {
  font-size: 16px;
  color: #4a4436;
  line-height: 1.75;
  background: #fff;
  padding: var(--sp-4) var(--sp-5);
}

.mf-post-content p { margin: 0 0 var(--sp-3); }
.mf-post-content p:last-child { margin-bottom: 0; }
.mf-post-content h2, .mf-post-content h3 {
  font-family: var(--font-head);
  color: var(--teal);
  margin: var(--sp-5) 0 var(--sp-3);
}
.mf-post-content a { color: var(--terracotta); }
.mf-post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* =============================================================================
   CONTACT PAGE — page-contact-us.php (approved design language; stand-in
   until Andy's version, easy to restyle)
   ============================================================================= */

.mf-contact-intro {
  font-size: 17px;
  color: #4a4436;
  line-height: 1.7;
  margin: 0 0 var(--sp-5);
  max-width: 640px;
}

.mf-contact-panel {
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
}

.mf-contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-5);
  align-items: start;
}

/* white insets on the off-white panel — the site's signature layering */
.mf-contact-card {
  background: #fff;
  padding: var(--sp-4) var(--sp-5);
}

.mf-contact-card h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
}

.mf-contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}

.mf-contact-ic {
  color: var(--teal);
  flex: 0 0 auto;
  margin-top: 3px;
}

.mf-contact-row h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 2px;
}

.mf-contact-row p {
  font-size: 15px;
  color: #4a4436;
  line-height: 1.6;
  margin: 0;
}

.mf-contact-row a {
  color: var(--teal);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mf-contact-hand {
  font-size: 24px;
  color: var(--teal);
  margin: var(--sp-4) 0 var(--sp-2);
}

.mf-contact-note {
  font-size: 14px;
  color: #4a4436;
  margin: 0;
}

.mf-contact-note a { color: var(--terracotta); text-decoration: underline; }

/* Ninja form: inherit the theme's field styling, brand the submit */
.mf-contact-form .nf-field-label label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.mf-contact-form input[type="text"],
.mf-contact-form input[type="email"],
.mf-contact-form input[type="tel"],
.mf-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
}

.mf-contact-form input[type="button"],
.mf-contact-form input[type="submit"],
.mf-contact-form .nf-form-content button {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 800px) {
  .mf-contact-grid { grid-template-columns: 1fr; }
  .mf-contact-card { padding: var(--sp-4); }
}

/* Ninja Forms enqueues its CSS after ours — outrank it for the submit */
.mf-marketing .mf-contact-form .nf-form-content input[type="button"],
.mf-marketing .mf-contact-form .nf-form-content input[type="submit"],
.mf-marketing .mf-contact-form .nf-form-content button {
  background: var(--teal) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  padding: 13px 26px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  min-height: 44px;
  width: auto;
}
.mf-marketing .mf-contact-form .nf-form-content input[type="button"]:hover,
.mf-marketing .mf-contact-form .nf-form-content button:hover {
  filter: brightness(1.06);
}

/* "Our Customers" portrait (James & Gemma): heads sit near the top of the
   2400x960 photo, so the default centred cover-crop cut James's head off
   (client 2026-10-09). Anchor the crop to the top. */
.mw-section-img--people img { object-position: center top; }

/* Checkout address lookup (goaddress.io) — postcode -> pick your address,
   above the manual street fields (client 2026-10-09, reduce address errors). */
.mfe-address-lookup { margin: 0 0 20px; padding: 16px; background: #fff; border: 1px solid var(--line, #e2d8cc); border-radius: 10px; }
.mfe-address-lookup > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #2c2823; }
.mfe-address-lookup .mfe-addr-row { display: flex; gap: 8px; }
.mfe-address-lookup #mfe-addr-pc { flex: 1 1 auto; min-width: 0; }
.mfe-address-lookup #mfe-addr-find { flex: none; white-space: nowrap; }
.mfe-address-lookup .mfe-addr-results { width: 100%; margin-top: 10px; height: 44px; border: 1px solid var(--sage, #4d7e81); border-radius: 6px; padding: 0 10px; background: #fff; font-size: 14px; }
.mfe-address-lookup .mfe-addr-msg { margin: 8px 0 0; font-size: 13px; color: var(--risk, #a8402f); }
.mfe-address-lookup .mfe-addr-manual { margin: 10px 0 0; font-size: 12px; color: #6b6257; text-align: center; }
@media (max-width: 480px) { .mfe-address-lookup .mfe-addr-row { flex-direction: column; } }
