/*
Theme Name: Maps and Pages
Theme URI: https://www.mapsandpages.co.uk
Author: Maps and Pages
Author URI: https://www.mapsandpages.co.uk
Description: A light block theme for Maps and Pages. Navy, teal and cream, with Fraunces headings and Source Sans 3 text. Made for plain, fast, local pages.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mapsandpages
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { text-underline-offset: 0.18em; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }
.mp-grid > *, .mp-form-card > * { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Header ---------- */
.mp-header {
  position: sticky; top: 0; z-index: 50;
  background: #F6F3ED; /* no backdrop-filter: it would trap the mobile menu overlay inside the header */
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .mp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mp-header { top: 46px; } }
.mp-header-inner {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 76px;
  display: flex !important; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap;
}
.mp-header-inner > * { margin: 0 !important; }
.mp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--navy); flex-shrink: 0; }
.mp-logo:hover { color: var(--wp--preset--color--navy); }
.mp-logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--wp--preset--color--teal); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(27,122,112,.28); }
.mp-logo-word { font-family: var(--wp--preset--font-family--serif); font-weight: 640; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.mp-logo-word small { display: block; font-family: var(--wp--preset--font-family--sans); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-top: 3px; }
.mp-header-right { display: flex; align-items: center; gap: 14px; }
.mp-header .wp-block-navigation { gap: 26px; font-weight: 600; font-size: .98rem; }
.mp-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--navy); }
.mp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--teal); }
.mp-nav-cta, .mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.mp-nav-cta { padding: 10px 16px; font-size: .95rem; white-space: nowrap; background: var(--wp--preset--color--teal); color: #fff !important; box-shadow: 0 8px 18px rgba(27,122,112,.25); }
.mp-nav-cta:hover { background: var(--wp--preset--color--teal-dark); transform: translateY(-1px); }
.mp-nav-cta .mp-short { display: none; }
.wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--navy); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background: #fff; width: 42px; height: 42px; align-items: center; justify-content: center; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--navy) !important; }
/* Use the burger menu up to 900px wide (WordPress does 600px by default) */
@media (min-width: 600px) and (max-width: 900px) {
  .mp-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .mp-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
}
@media (max-width: 900px) { .mp-logo-word small { display: none; } .mp-nav-cta .mp-full { display: none; } .mp-nav-cta .mp-short { display: inline; } }
@media (max-width: 520px) { .mp-header-inner { width: calc(100% - 32px); gap: 10px; } .mp-logo-word { font-size: 1.08rem; } .mp-header-right { gap: 10px; } }

/* ---------- Sections ---------- */
.mp-section { padding: 88px 20px; }
.mp-section-tight { padding: 56px 20px; }
.mp-white { background: #fff; }
.mp-sand { background: var(--wp--preset--color--sand); }
.mp-dark { background: var(--wp--preset--color--navy); color: #E8EEF4; }
.mp-dark h2, .mp-dark h3, .mp-dark h1 { color: #F6F3ED; }
.mp-dark p { color: #C5D0DB; }
.mp-dark a { color: #8ED8D0; }
.mp-center { text-align: center; }
.mp-lead { margin: 0 auto 40px; max-width: 640px; color: var(--wp--preset--color--muted); font-size: 1.125rem; }
.mp-center.mp-lead, p.mp-lead.mp-center { text-align: center; }
.mp-section h2 { margin-bottom: 12px; }
.mp-narrow { max-width: 760px; margin-inline: auto; }
@media (max-width: 900px) { .mp-section { padding: 64px 20px; } }
@media (max-width: 520px) { .mp-section { padding: 52px 16px; } }

/* ---------- Hero ---------- */
.mp-hero { padding: 56px 20px 72px; }
.mp-hero h1 { font-size: clamp(2.15rem, 4.2vw, 3.35rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 18px; }
.mp-hero .mp-hero-copy { font-size: 1.2rem; color: var(--wp--preset--color--muted); margin: 0 0 28px; max-width: 36em; }
.mp-hero-note { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.mp-hero-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: 40px; align-items: center; }
.mp-hero-grid.mp-hero-plain { grid-template-columns: 1fr; }
.mp-page-hero { padding: 56px 20px 40px; background: var(--wp--preset--color--cream); }
.mp-page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.mp-page-hero .mp-hero-copy { font-size: 1.18rem; color: var(--wp--preset--color--muted); margin: 0 0 24px; max-width: 40em; }
.mp-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--wp--preset--color--teal-soft); color: var(--wp--preset--color--teal-dark); font-weight: 650; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px 6px 8px; border-radius: 999px; margin: 0 0 18px; }
.mp-eyebrow:before, .mp-area-name:before {
  content: ""; width: 16px; height: 16px; flex: none; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-6.4 7-12a7 7 0 1 0-14 0c0 5.6 7 12 7 12z' fill='%231B7A70'/%3E%3Ccircle cx='12' cy='10' r='2.2' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 900px) { .mp-hero { padding: 36px 16px 48px; } .mp-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons (core Button block) ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { font-weight: 650; border-radius: 999px; padding: 13px 22px; line-height: 1.2; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; text-decoration: none; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--teal); color: #fff; box-shadow: 0 8px 18px rgba(27,122,112,.25); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--teal-dark); color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border-color: #C9D0D6; box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--navy); background: #fff; color: var(--wp--preset--color--navy); }
.mp-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.5); }
.mp-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
.mp-btn-light .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--navy) !important; box-shadow: none !important; }
.mp-center-buttons.wp-block-buttons { justify-content: center; }
@media (max-width: 520px) { .mp-stack-buttons.wp-block-buttons { display: grid; } .mp-stack-buttons .wp-block-button, .mp-stack-buttons .wp-block-button__link { width: 100%; text-align: center; } }

/* ---------- Map card ---------- */
.mp-map-card { background: linear-gradient(180deg, #16324F 0%, #10243E 100%); border-radius: 24px; padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(16,36,62,.12); color: #E8EEF4; position: relative; overflow: hidden; }
.mp-map-card:before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; background: radial-gradient(circle, rgba(42,154,142,.35), transparent 65%); pointer-events: none; }
.mp-map-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: relative; }
.mp-map-card-top p { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; color: #9DB0C4; }
.mp-map-svg { width: 100%; height: auto; display: block; }
.mp-map-svg .lbl { font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif; fill: #F6F3ED; font-size: 18px; font-weight: 600; paint-order: stroke fill; stroke: #0E2138; stroke-width: 4px; stroke-linejoin: round; }
.mp-map-svg .lbl.major { font-size: 20.5px; font-weight: 700; }
.mp-map-svg .county-label { font-family: "Source Sans 3", "Segoe UI", sans-serif; fill: #8ED8D0; font-size: 15px; font-weight: 700; letter-spacing: .16em; opacity: .7; }
.mp-map-svg .sea-label { font-family: "Source Sans 3", "Segoe UI", sans-serif; fill: #9BB0C4; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.mp-map-labels-mobile { display: none; }
.mp-pin-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; position: relative; justify-content: center; }
.mp-pin-list span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 10px; font-size: .82rem; color: #F4F7FA; }
@media (max-width: 900px) {
  .mp-map-labels-desktop { display: none; } .mp-map-labels-mobile { display: block; }
  .mp-map-svg .lbl { font-size: 23px; stroke-width: 5px; } .mp-map-svg .lbl.major { font-size: 25px; }
  .mp-map-svg .county-label { font-size: 20px; } .mp-map-svg .sea-label { font-size: 18px; }
  .mp-map-card { padding: 14px 12px 12px; }
}

/* ---------- Problem band ---------- */
.mp-problem { background: var(--wp--preset--color--navy); color: #E8EEF4; padding: 42px 20px; }
.mp-problem h2 { color: #F6F3ED; margin-bottom: 10px; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.mp-problem p { margin: 0; color: #C5D0DB; font-size: 1.08rem; }
.mp-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .mp-problem-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Grids and cards ---------- */
.mp-grid { display: grid; gap: 22px; }
.mp-cols-2 { grid-template-columns: 1fr 1fr; }
.mp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mp-cols-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mp-gap-lg { gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .mp-cols-2, .mp-cols-3 { grid-template-columns: 1fr; }
  .mp-cols-5 { grid-template-columns: 1fr 1fr; }
  .mp-cols-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
}
.mp-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 26px 24px 24px; box-shadow: 0 10px 30px rgba(16,36,62,.08); }
.mp-card h3 { margin: 0 0 8px; font-size: 1.28rem; }
.mp-card p { margin: 0; color: var(--wp--preset--color--muted); }
.mp-card p + p, .mp-card ul + p { margin-top: 12px; }
.mp-card .mp-more { margin-top: 14px; font-weight: 650; }
.mp-card .mp-more a { text-decoration: none; }
.mp-icon { width: 46px; height: 46px; border-radius: 12px; background-color: var(--wp--preset--color--teal-soft); background-repeat: no-repeat; background-position: center; background-size: 22px; margin-bottom: 16px; }
.mp-icon-posts { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5h14v10H5V5z' stroke='%2314635B' stroke-width='1.8'/%3E%3Cpath d='M8 19h8' stroke='%2314635B' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M9 9h6M9 12h4' stroke='%2314635B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mp-icon-pages { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 4h7l5 5v11H7V4z' stroke='%2314635B' stroke-width='1.8'/%3E%3Cpath d='M14 4v5h5M10 13h6M10 16h4' stroke='%2314635B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mp-icon-reviews { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 7h14v10H5V7z' stroke='%2314635B' stroke-width='1.8'/%3E%3Cpath d='M5 9l7 5 7-5' stroke='%2314635B' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Steps */
.mp-step { padding-top: 8px; }
.mp-step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--wp--preset--color--navy); color: #fff; display: grid; place-items: center; font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.15rem; margin: 0 0 16px; }
.mp-step h3 { margin: 0 0 8px; font-size: 1.25rem; }
.mp-step p { margin: 0; color: var(--wp--preset--color--muted); }
.mp-steps { gap: 28px; }

/* Example Google post card */
.mp-gbp-card { background: #fff; border-radius: 20px; border: 1px solid #E5E7EB; box-shadow: 0 18px 50px rgba(16,36,62,.12); overflow: hidden; max-width: 520px; }
.mp-gbp-card > * { margin-block: 0; }
.mp-gbp-label { background: #FFF6DC; color: #6A4F12; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 16px; border-bottom: 1px solid #F0E4B8; margin: 0; }
.mp-gbp-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; }
.mp-gbp-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #2A9A8E, #14635B); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.mp-gbp-head strong { display: block; font-size: .95rem; color: #202124; }
.mp-gbp-head span.mp-sub { display: block; font-size: .8rem; color: #5F6368; }
.mp-gbp-photo { margin: 0 16px; border-radius: 12px; overflow: hidden; background: #D7E3E1; height: 168px; position: relative; }
.mp-gbp-photo svg { width: 100%; height: 168px; display: block; }
.mp-gbp-photo-caption { position: absolute; left: 10px; bottom: 10px; background: rgba(16,36,62,.72); color: #fff; font-size: .72rem; padding: 4px 8px; border-radius: 6px; }
.mp-gbp-card .mp-gbp-title { margin: 0; padding: 14px 16px 0; font-family: var(--wp--preset--font-family--sans); font-weight: 700; font-size: 1.02rem; color: #202124; }
.mp-gbp-body { padding: 8px 16px 16px; color: #3C4043; font-size: .95rem; line-height: 1.55; margin: 0; }
.mp-gbp-body p { margin: 0 0 .7em; color: #3C4043; }
.mp-gbp-body p:last-child { margin-bottom: 0; }
.mp-gbp-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.mp-gbp-btn { flex: 1; text-align: center; border: 1px solid #DADCE0; border-radius: 20px; padding: 8px 10px; font-size: .85rem; font-weight: 650; color: #1A73E8; background: #fff; }
.mp-example-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mp-example-list .mp-gbp-card { max-width: none; width: 100%; }
@media (max-width: 900px) { .mp-gbp-card { margin: 0 auto; } }

/* Prices */
.mp-prices { max-width: 860px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mp-price-card { background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; }
.mp-price-card > * { margin-block: 0; }
.mp-price-card.mp-featured { background: var(--wp--preset--color--navy); color: #E8EEF4; border-color: var(--wp--preset--color--navy); }
.mp-price-card .mp-tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--teal-dark); margin-bottom: 10px; }
.mp-featured .mp-tag { color: #8ED8D0; }
.mp-price-card h3 { margin: 0; font-size: 1.6rem; }
.mp-featured h3 { color: #F6F3ED; }
.mp-amount { font-family: var(--wp--preset--font-family--serif); font-size: 2.6rem; font-weight: 700; color: var(--wp--preset--color--navy); letter-spacing: -0.03em; margin: 10px 0 4px !important; line-height: 1; }
.mp-featured .mp-amount { color: #fff; }
.mp-amount span { font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.mp-featured .mp-amount span { color: #9DB0C4; }
.mp-price-card ul { margin: 18px 0 24px !important; padding: 0; list-style: none; }
.mp-price-card li { position: relative; padding: 0 0 10px 22px; }
.mp-price-card li:before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--teal); }
.mp-featured li:before { background: #8ED8D0; }
.mp-price-card .wp-block-buttons { margin-top: auto; }
.mp-price-card p.mp-small { font-size: .88rem; color: var(--wp--preset--color--muted); margin-top: 12px; }
.mp-featured p.mp-small { color: #9DB0C4; }
.mp-ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.mp-ticks li { position: relative; padding: 0 0 8px 24px; }
.mp-ticks li:before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--teal); }
@media (max-width: 900px) { .mp-prices { grid-template-columns: 1fr; } }

/* Areas */
.mp-area { position: relative; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 22px 12px 18px; text-align: center; box-shadow: 0 10px 30px rgba(16,36,62,.08); transition: transform .15s ease; }
.mp-area:hover { transform: translateY(-2px); }
.mp-area > * { margin: 0 !important; }
.mp-area-name { display: block; margin-top: 8px !important; font-weight: 700; color: var(--wp--preset--color--navy); font-size: 1.02rem; }
.mp-area-name:before { display: block; width: 22px; height: 22px; margin: 0 auto 8px; }
.mp-area-name a { color: var(--wp--preset--color--navy); text-decoration: none; }
.mp-area-name a:after { content: ""; position: absolute; inset: 0; }
.mp-area-sub { color: var(--wp--preset--color--muted); font-size: .85rem; }
.mp-areas-note { text-align: center; margin: 22px 0 0; color: var(--wp--preset--color--muted); }

/* FAQ (core Details block) */
.mp-faq { max-width: 760px; margin-inline: auto; }
.wp-block-details.mp-faq-item, .mp-faq .wp-block-details { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 4px 20px; margin: 0 0 12px; }
.mp-faq .wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mp-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.mp-faq .wp-block-details summary:after { content: "+"; font-size: 1.4rem; color: var(--wp--preset--color--teal); font-weight: 500; line-height: 1; }
.mp-faq .wp-block-details[open] summary:after { content: "\2013"; }
.mp-faq .wp-block-details p { margin: 0 0 16px; color: var(--wp--preset--color--muted); }

/* Form (Contact Form 7) */
.mp-form-card { background: #fff; color: var(--wp--preset--color--ink); border-radius: 20px; padding: 28px; max-width: 760px; margin: 0 auto; box-shadow: 0 18px 50px rgba(16,36,62,.12); }
.mp-form-card p { color: var(--wp--preset--color--ink); }
.mp-form-card .wpcf7-form { display: grid; gap: 16px; }
.mp-form-card .wpcf7-form p { margin: 0; }
.mp-form-card .mp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-form-card label { display: block; font-weight: 650; font-size: .9rem; color: var(--wp--preset--color--navy); margin-bottom: 6px; }
.mp-form-card .req { color: var(--wp--preset--color--teal); }
.mp-form-card .hint { font-weight: 500; color: var(--wp--preset--color--muted); font-size: .8rem; }
.mp-form-card input[type=text], .mp-form-card input[type=email], .mp-form-card input[type=tel], .mp-form-card textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #D5D0C8; border-radius: 10px; background: #FFFCF8; color: var(--wp--preset--color--ink); }
.mp-form-card input:focus, .mp-form-card textarea:focus { outline: 2px solid var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal); }
.mp-form-card textarea { min-height: 96px; resize: vertical; }
.mp-form-card input[type=submit], .mp-form-card button[type=submit] { background: var(--wp--preset--color--teal); color: #fff; border: 2px solid transparent; border-radius: 999px; padding: 13px 22px; font: inherit; font-weight: 650; min-width: 220px; cursor: pointer; box-shadow: 0 8px 18px rgba(27,122,112,.25); }
.mp-form-card input[type=submit]:hover { background: var(--wp--preset--color--teal-dark); }
.mp-form-card .wpcf7-not-valid-tip { color: #B3261E; font-size: .85rem; }
.mp-form-card .wpcf7-response-output { margin: 0 !important; border-radius: 10px; padding: 12px 14px !important; }
.mp-form-card .mp-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mp-form-note { margin: 0; color: var(--wp--preset--color--muted); font-size: .9rem; }
.mp-form-card .mp-form-note { margin-top: 14px; }
.mp-hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 520px) { .mp-form-card { padding: 20px 16px; } .mp-form-card .mp-form-row { grid-template-columns: 1fr; } .mp-form-card input[type=submit] { width: 100%; } }

/* ---------- Text pages (terms, privacy, guides) ---------- */
.mp-prose { max-width: 760px; margin-inline: auto; }
.mp-prose h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.mp-prose h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.mp-prose > :first-child { margin-top: 0; }
.mp-prose ul, .mp-prose ol { padding-left: 1.3em; }
.mp-prose li { margin-bottom: .4em; }
.mp-notice { background: var(--wp--preset--color--teal-soft); border-left: 4px solid var(--wp--preset--color--teal); border-radius: 8px; padding: 14px 18px; }
.mp-notice p { margin: 0; }
.mp-msg { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 18px 20px; }
.mp-msg > * { margin-block: 0 .6em; }
.mp-msg > :last-child { margin-bottom: 0; }
.mp-msg .mp-msg-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wp--preset--color--teal-dark); }
.mp-guide-list { display: grid; gap: 18px; }
.mp-guide-list .mp-card h3 a { text-decoration: none; }
.mp-link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; }
.mp-link-list li { margin: 0; }
.mp-link-list a { font-weight: 650; text-decoration: none; }
.mp-link-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.mp-footer { background: var(--wp--preset--color--navy-deep); color: #C5D0DB; padding: 48px 20px 28px; }
.mp-footer a { color: #E8EEF4; text-decoration: none; }
.mp-footer a:hover { color: #8ED8D0; }
.mp-footer-inner { width: min(1120px, 100%); margin: 0 auto; }
.mp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mp-footer-grid > * { margin-block: 0; }
.mp-footer .mp-logo, .mp-footer .mp-logo-word { color: #F6F3ED; }
.mp-footer .mp-logo-word small { color: #9DB0C4; }
.mp-footer p { margin: 12px 0 0; color: #C5D0DB; }
.mp-footer h3 { margin: 0 0 10px; color: #F6F3ED; font-family: var(--wp--preset--font-family--sans); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.mp-footer ul { list-style: none; margin: 0; padding: 0; }
.mp-footer li { margin: 0 0 8px; }
.mp-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: .88rem; }
.mp-footer-bottom p { margin: 0; }
@media (max-width: 900px) { .mp-footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mp-footer { padding-inline: 16px; } }

/* ---------- Default page (new pages Kerry adds) ---------- */
.mp-default-title { padding: 48px 20px 8px; }
.mp-default-title h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; margin: 0 auto; max-width: 760px; }
.mp-default-body { padding: 16px 20px 72px; }

/* ---------- Layout wrappers ---------- */
.mp-wrap { max-width: 1120px; margin-inline: auto; width: 100%; }
.mp-wrap-narrow { max-width: 760px; margin-inline: auto; width: 100%; }
.mp-hero-grid > * { margin-block: 0; }
.mp-main .wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0; }
.mp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .mp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mp-footer-grid { grid-template-columns: 1fr; } }
.mp-section .mp-lead { margin-top: 0; }
.mp-section .mp-grid, .mp-section .mp-prices, .mp-section .mp-faq { margin-top: 0; }
.mp-section .mp-center + .mp-grid, .mp-section .mp-lead + .mp-grid, .mp-section .mp-lead + .mp-prices, .mp-section .mp-lead + .mp-faq { margin-top: 0; }
.mp-gbp-photo svg { height: 168px; }
.mp-small-note { font-size: .9rem; color: var(--wp--preset--color--muted); }
.mp-dark .mp-small-note { color: #9DB0C4; }
.mp-sample-heading { margin-top: 0; }
.mp-mt { margin-top: 28px !important; }
.mp-mt-lg { margin-top: 44px !important; }
.mp-form-card br { display: none; }
.mp-example-grid .mp-gbp-card { max-width: none; }
.mp-form-card .wpcf7-spinner { margin: 0 0 0 10px; }
.mp-form-card .mp-form-actions p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-top { align-items: start; }

/* ---------- Fixes after testing in a real WordPress ---------- */
*, *::before, *::after { box-sizing: border-box; }
.mp-prices > * { margin-block: 0; }
.mp-step p.mp-step-num { color: #fff; }
.mp-hero .mp-hero-note { margin-top: 18px; }
.mp-muted { color: var(--wp--preset--color--muted); }
.mp-form-card .wpcf7-form-control-wrap { display: block; }
.mp-form-card .mp-form-row > * { min-width: 0; }
.mp-form-card a { color: var(--wp--preset--color--teal-dark); }
.mp-form-card textarea { max-height: 220px; }
.mp-areas-note a, .mp-center a { font-weight: 600; }

/* Mobile menu (burger) layout */
.mp-nav-only-mobile { display: none !important; }
.is-menu-open .mp-nav-only-mobile { display: block !important; }
.is-menu-open .mp-nav-only-mobile a { background: var(--wp--preset--color--teal); color: #fff !important; border-radius: 999px; padding: 10px 18px; margin-top: 8px; }
.mp-header .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px 32px; }
.mp-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; justify-content: flex-start; padding-top: 28px; }
.mp-header .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 18px; font-size: 1.3rem; }
.mp-header .is-menu-open .wp-block-navigation-item { align-items: flex-start; }
.mp-header .is-menu-open .wp-block-navigation__responsive-container-content,
.mp-header .is-menu-open .wp-block-navigation__container,
.mp-header .is-menu-open .wp-block-navigation-item,
.mp-header .is-menu-open .wp-block-page-list { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
.mp-header .is-menu-open .wp-block-navigation__container { flex-direction: column; width: 100%; }
.is-menu-open .mp-nav-only-mobile a { padding: 12px 24px; white-space: nowrap; font-size: 1.05rem; }
.mp-header .is-menu-open .mp-nav-only-mobile .wp-block-navigation-item__content { padding: 12px 24px !important; }
