/*
Theme Name: The London Heart
Author: INSPIRE
Author URI: https://inspiredm.co.uk/
Version: 1.0.0
Text Domain: the-london-heart
*/

@import url("assets/fonts/fonts.css");

/* ─── Design Tokens ───────────────────────────────────────────────────────── */

:root {
  --navy:    #1a2a44;
  --navy-l:  #243758;
  --navy-d:  #0e1a2e;
  --gold:    #b08442;
  --gold-l:  #c79a58;
  --gold-d:  #8a6a1f;
  --clay:    #bf582a;
  --clay-d:  #a8512e;
  --rose:    #e8c8b6;
  --cream:   #fbf7f1;
  --cream-2: #f3ebde;
  --cream-3: #ead9c2;
  --paper:   #fffdf9;
  --ink:     #2a2422;
  --ink-2:   #4a3f3a;
  --ink-3:   #6b5e57;

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --line:    #e8dccb;
  --line-2:  #d6c4ab;

  --shadow-1: rgba(198, 106, 74, 0.32) 0px 4px 14px 0px;
  --shadow-2: rgba(198, 106, 74, 0.25) 0px 0px 0px 4px;
  --shadow-3: rgba(74, 55, 40, 0.04) 0px 1px 2px 0px,
              rgba(74, 55, 40, 0.06) 0px 8px 28px 0px,
              rgba(74, 55, 40, 0.05) 0px 24px 48px 0px;
  --shadow-card: 0 1px 2px rgba(74,55,40,0.04), 0 8px 28px rgba(74,55,40,0.06), 0 24px 48px rgba(74,55,40,0.05);
  --shadow-4: rgba(0, 0, 0, 0.4) 0px 8px 24px 0px;
  --shadow-5: rgba(74, 55, 40, 0.18) 0px 6px 18px 0px;

  --radius-pill: 999px;
  --radius-card: 12px;
  --radius-sm:   8px;
  --radius-md:   10px;

  --container-max: 1240px;
  --pad-mobile: 24px;
  --pad-tablet: 40px;
  --pad-desktop: 40px;
  --section-gap: 120px;
}
/* ─── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background-color: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--clay); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--clay-d); }
a:focus-visible { outline: 3px solid rgba(198, 106, 74, 0.4); outline-offset: 3px; border-radius: 3px; }
ul, ol { padding-left: 1.25em; }

/* ─── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 500; }
h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.8px; }
h2 { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.4px; }
h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.2; }
h4 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; }
h5 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
h6 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; }
p { font-size: 1rem; line-height: 1.65; color: var(--ink-2); margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
blockquote { border-left: 3px solid var(--clay); padding: 1rem 1.5rem; margin: 2rem 0; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
blockquote cite { display: block; font-family: var(--font-body); font-size: 0.875rem; font-style: normal; color: var(--ink-3); margin-top: 0.75rem; }
code, pre { font-family: "Courier New", monospace; font-size: 0.875rem; background: var(--cream); border-radius: var(--radius-sm); }
code { padding: 0.15em 0.4em; }
pre { padding: 1.25rem; overflow-x: auto; }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ─── Section Background Classes ─────────────────────────────────────────── */

.section-cream { background-color: var(--cream); }
.section-cream-2 { background-color: var(--cream-2); }
.section-paper { background-color: var(--paper); }
.section-navy { background-color: var(--navy); color: #ffffff; }
.section-dark { background-color: var(--navy-d); color: #ffffff; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--pad-desktop); }

/* No wide container variant — all containers share the 1240px max */

.content-area { padding-block: var(--section-gap); }
@media (max-width: 900px) {
  .content-area { padding-top: 76px; /* matches fixed header height */ }
}
.page-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }

/* ─── Site Header ─────────────────────────────────────────────────────────── */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; height: 76px; display: flex; align-items: center; transition: background 280ms ease, box-shadow 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease; }
.site-header.scrolled { background: rgba(251, 247, 241, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(74, 55, 40, 0.06); }

/* No padding-top on site-content — the fixed nav overlays content on all pages. Each page's content (hero image, opening image block, etc.) handles its own top spacing to account for the 76px nav height. */

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: var(--navy); line-height: 1; white-space: nowrap; transition: color 280ms ease; }

/* Home page: white before scroll, dark once scrolled or nav open */

.home .site-title, .page-template-page-full-width .site-title a { color: #ffffff; }
.nav-open .site-title, .nav-open .site-title a { color: var(--navy); }
.page-template-page-full-width .scrolled a { color: var(--navy); }
.home .site-header.scrolled .site-title, .home .site-header.nav-open .site-title, .page-template-page-full-width .site-header.scrolled .site-title, .page-template-page-full-width .site-header.nav-open .site-title { color: var(--navy); }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--clay); }
.site-logo img { height: 40px; width: auto; }
page-template-page-full-width

/* ─── Primary Navigation ──────────────────────────────────────────────────── */

.main-navigation { display: flex; align-items: center; gap: 32px; }
.main-navigation ul { display: flex; align-items: center; gap: 36px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0; position: relative; transition: color 200ms ease; }
.page-template-page-full-width .main-navigation a, .page-template-page-full-width .main-navigation .current-menu-item > a { color: #fff }
.page-template-page-full-width .scrolled .main-navigation a { color: var(--navy); }
.main-navigation a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--clay); transition: width 220ms ease; }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { width: 100%; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--navy); }

/* Home page: white nav links before scroll (desktop only — mobile overrides below) */

.home .main-navigation a { color: rgba(255, 255, 255, 0.88); }
.home .main-navigation a:hover, .home .main-navigation .current-menu-item > a { color: #ffffff; }
.home .site-header.scrolled .main-navigation a { color: var(--ink-2); }
.home .site-header.scrolled .main-navigation a:hover { color: var(--navy); }
.main-navigation .nav-cta > a { background-color: var(--clay); color: #ffffff; padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 500; font-size: 0.875rem; height: 40px; display: inline-flex; align-items: center; box-shadow: var(--shadow-1); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.main-navigation .nav-cta > a:hover { background-color: var(--clay-d); box-shadow: var(--shadow-2); }

/* Dropdown */

.main-navigation li { position: relative; }
.main-navigation ul ul { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: #ffffff; border-radius: var(--radius-card); box-shadow: var(--shadow-3); border: 1px solid var(--line); padding: 8px; flex-direction: column; gap: 2px; z-index: 200; }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { display: block; border-radius: var(--radius-sm); white-space: nowrap; font-size: 0.9375rem; }

/* Nav CTA — Book a Consultation */

.nav-book-cta { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; white-space: nowrap; padding: 11px 22px; height: 40px; border-radius: var(--radius-pill); background-color: var(--clay); color: #ffffff !important; text-decoration: none; box-shadow: 0 4px 14px rgba(198, 106, 74, 0.32); transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; flex-shrink: 0; }
.nav-book-cta:hover { background-color: var(--clay-d); color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(198, 106, 74, 0.42); }

/* ─── Mobile fixed bottom CTA ────────────────────────────────────────────── */

/* Hidden on desktop */

.mobile-book-cta { display: none; }

/* ─── Hamburger toggle ────────────────────────────────────────────────────── */

.menu-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; z-index: 101; /* above the overlay */ position: relative; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger span { display: block; height: 1.5px; width: 100%; border-radius: 2px; background-color: var(--ink); transition: transform 300ms ease, opacity 300ms ease, background-color 280ms ease; transform-origin: center; }

/* Home page: white before scroll, dark once scrolled or nav open */

.home .hamburger span, .page-template-page-full-width .hamburger span  { background-color: #ffffff; }
.home .site-header.scrolled .hamburger span, .home .site-header.nav-open .hamburger span, .page-template-page-full-width .site-header.scrolled .hamburger span, .page-template-page-full-width .site-header.nav-open .hamburger span { background-color: var(--ink); }
.site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Animate to × when menu is open */

.menu-toggle.is-active .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn, button, input[type="submit"], input[type="button"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; border: none; outline: none; transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, color 0.2s ease; }
.btn, input[type="submit"], input[type="button"] { background-color: var(--clay); color: #ffffff; height: 40px; padding: 0 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-1); }
.btn:hover, input[type="submit"]:hover, input[type="button"]:hover { background-color: var(--clay-d); color: #ffffff; box-shadow: var(--shadow-2); }
.btn:active, input[type="submit"]:active, input[type="button"]:active { opacity: 0.85; box-shadow: none; }
.btn:focus-visible, input[type="submit"]:focus-visible { outline: 3px solid rgba(198, 106, 74, 0.4); outline-offset: 3px; }
.btn--secondary { background-color: transparent; color: var(--ink); border: 1px solid var(--ink-3); height: 50px; padding: 0 28px; font-size: 0.9375rem; box-shadow: none; }
.btn--secondary:hover { background-color: transparent; border-color: var(--clay); color: var(--clay); box-shadow: none; }
.btn--lg { height: 50px; padding: 0 32px; font-size: 1rem; }
.btn--ghost { background-color: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.6); height: 50px; padding: 0 28px; font-size: 0.9375rem; box-shadow: none; }
.btn--ghost:hover { background-color: rgba(255, 255, 255, 0.12); color: #ffffff; box-shadow: none; }
a.kb-button:hover { transform: translateY(-2px)}

/* ─── Forms ───────────────────────────────────────────────────────────────── */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], textarea, select { display: block; width: 100%; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink); background-color: #ffffff; border: 1px solid var(--ink-3); border-radius: var(--radius-pill); padding: 0 20px; height: 40px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; }
textarea { height: auto; min-height: 120px; padding-block: 12px; border-radius: var(--radius-md); resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5e57' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
input:focus, textarea:focus, select:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(198, 106, 74, 0.2); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
label { display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */

.card { background-color: #ffffff; border-radius: var(--radius-card); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.card__image { aspect-ratio: 16 / 10; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: 28px 32px; }
.card__meta { font-size: 0.8125rem; font-weight: 500; color: var(--clay); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.card__title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 12px; }
.card__excerpt { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.card__footer { padding: 0 32px 28px; display: flex; align-items: center; gap: 16px; }

/* ─── Section Styles ──────────────────────────────────────────────────────── */

.section { padding-block: var(--section-gap); }
.section--cream { background-color: var(--cream); }
.section--cream-2 { background-color: var(--cream-2); }
.section--navy { background-color: var(--navy); color: #ffffff; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy p { color: #ffffff; }
.section-header { margin-bottom: 60px; }
.section-header--center { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 60px; }
.section-label { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; color: var(--clay); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; display: block; }

/* ─── Grid Utilities ──────────────────────────────────────────────────────── */

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Blog / Archive ──────────────────────────────────────────────────────── */

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post-card { display: flex; flex-direction: column; }
.archive-header { padding-block: 80px 0; border-bottom: 1px solid var(--line); margin-bottom: 80px; }
.archive-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; color: var(--ink); }
.archive-description { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 560px; }

/* Pagination */

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 80px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; color: var(--ink); border: 1px solid var(--line); transition: all 0.2s ease; text-decoration: none; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background-color: var(--clay); color: #ffffff; border-color: var(--clay); box-shadow: var(--shadow-1); }

/* ─── Single Post ─────────────────────────────────────────────────────────── */

.post-header { padding-block: 80px 60px; max-width: 760px; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.875rem; color: var(--ink-3); margin-bottom: 24px; flex-wrap: wrap; }
.post-meta a { color: var(--clay); font-weight: 500; }
.post-meta__sep { color: var(--line); }
.post-featured-image { margin-bottom: 60px; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 7; }
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content { max-width: 760px; }
.post-content h2, .post-content h3, .post-content h4 { margin-block: 2rem 1rem; }
.post-content p, .post-content ul, .post-content ol { margin-bottom: 1.25rem; }
.post-content li { line-height: 1.65; color: var(--ink-2); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-tag { display: inline-flex; align-items: center; padding: 6px 14px; background-color: var(--cream); color: var(--ink-2); border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 500; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.post-tag:hover { background-color: var(--clay); color: #ffffff; }

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */

.widget { margin-bottom: 10px; }
.widget-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--cream); font-size: 0.9375rem; color: var(--ink-2); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ink-2); transition: color 0.2s ease; }
.widget ul li a:hover { color: var(--clay); }

/* ─── Site Footer ─────────────────────────────────────────────────────────── */

.site-footer { background-color: var(--navy-d); color: rgba(255, 255, 255, 0.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .site-title { color: #ffffff; font-size: 0.9375rem; letter-spacing: 2.6px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; line-height: 1.65; max-width: 320px; }
.footer-widget-title { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.45); margin-bottom: 18px; }
.footer-nav { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav li { margin-bottom: 0; }
.footer-nav a { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; text-decoration: none; transition: color 150ms ease; }
.footer-nav a:hover { color: var(--clay); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-reg { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.footer-col h5 { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 2px; text-transform: uppercase; font-weight: 600 }
.footer-col p a { color: rgba(255,255,255,0.8); font-size: 14px }
.footer-col p a:hover { color: var(--clay); }

/* ─── WordPress Core Classes ──────────────────────────────────────────────── */

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--ink-3); margin-top: 8px; font-style: italic; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; margin-block: 24px; }
.alignwide { max-width: calc(var(--container-max) + 80px); margin-inline: -40px; margin: 0 auto }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #ffffff; border: 2px solid var(--clay); border-radius: var(--radius-sm); clip: auto !important; clip-path: none; color: var(--clay); display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; height: auto; left: 8px; line-height: normal; padding: 12px 24px; text-decoration: none; top: 8px; width: auto; z-index: 100000; box-shadow: var(--shadow-3); }

/* ─── Front Page & Full Width Pages ──────────────────────────────────────── */

.site-main--front, .full-width-page .entry-content { padding: 0; }
.site-main--front .entry-content, .full-width-page .entry-content { max-width: none; }

/* Constrain readable text blocks on full-width pages */

.front-page-content > .wp-block-paragraph, .front-page-content > .wp-block-heading, .front-page-content > .wp-block-list, .front-page-content > .wp-block-quote, .front-page-content > .wp-block-pullquote, .front-page-content > .wp-block-buttons, .front-page-content > .wp-block-separator, .front-page-content > .wp-block-table { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--pad-desktop); }
.front-page-content > .wp-block-columns { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--pad-desktop); }
.front-page-content > .wp-block-image.alignwide { max-width: calc(var(--container-max) + 80px); margin-inline: auto; padding-inline: 0; }
@media (max-width: 900px) {
  .front-page-content > .wp-block-paragraph, .front-page-content > .wp-block-heading, .front-page-content > .wp-block-list, .front-page-content > .wp-block-quote, .front-page-content > .wp-block-pullquote, .front-page-content > .wp-block-buttons, .front-page-content > .wp-block-separator, .front-page-content > .wp-block-table, .front-page-content > .wp-block-columns { padding-inline: var(--pad-mobile); }
}
.sticky { position: relative; }

/* ─── Gutenberg Block Overrides ───────────────────────────────────────────── */

.wp-block-button__link { background-color: var(--clay); color: #ffffff; border-radius: var(--radius-pill) !important; font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; padding: 11px 22px; box-shadow: var(--shadow-1); transition: background-color 0.2s ease; }
.wp-block-button__link:hover { background-color: var(--clay-d); color: #ffffff; }
.wp-block-image img { border-radius: var(--radius-card); }
.wp-block-quote { border-left: 3px solid var(--clay); padding: 1rem 1.5rem; margin: 2rem 0; }
.wp-block-quote p { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */

.error-404 { text-align: center; padding-block: 120px; }
.error-404 .error-code { font-family: var(--font-display); font-size: clamp(6rem, 15vw, 12rem); font-weight: 500; color: var(--line); line-height: 1; margin-bottom: 24px; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --section-gap: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .page-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --pad-desktop: var(--pad-mobile); --section-gap: 60px; }

  /* On mobile, alignwide's negative margin pushes content beyond the viewport, creating horizontal overflow that breaks position:fixed. Remove it. */

  .alignwide { max-width: 90%; margin-inline: 0 55; width: 90%; }
  .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }

  /* Show hamburger toggle */

  .menu-toggle { display: flex; }

  /* Fixed bottom booking bar */

  .mobile-book-cta { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; /* Use env(safe-area-inset-bottom) for iPhone home indicator. The extra 12px base padding ensures the button sits above mobile browser chrome (which collapses on scroll). */ padding: 12px var(--pad-mobile) max(16px, env(safe-area-inset-bottom, 16px)); background: rgba(251, 247, 241, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-book-cta__link { display: flex; align-items: center; justify-content: center; width: 70%; background: var(--clay); color: #ffffff; font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.2px; padding: 10px 0; border-radius: var(--radius-pill); text-decoration: none; box-shadow: 0 4px 14px rgba(198, 106, 74, 0.32); transition: background-color 180ms ease, box-shadow 180ms ease; margin: 0 auto}
  .mobile-book-cta__link:hover, .mobile-book-cta__link:active { background-color: var(--clay-d); color: #ffffff; box-shadow: 0 8px 22px rgba(198, 106, 74, 0.42); }

  /* Mobile header: title left, hamburger right — booking button removed from header */

  .site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

  /* Sit above the nav overlay (z-index:99) within the site-header stacking context */

  .site-branding { z-index: 101; }

  /* Hide the header CTA on mobile — replaced by fixed bottom bar */

  .nav-book-cta { display: none; }

  /* ── Full-screen overlay ──────────────────────────────── */

  .main-navigation { position: fixed; inset: 0; z-index: 99; /* below header (z-index:100) so toggle stays clickable */ display: flex; flex-direction: column; align-items: center; justify-content: center; /* No background or backdrop-filter here — they cause a visible rendering stripe in some browsers even when opacity is 0 */ background: transparent; /* Hidden state */ opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 350ms ease, visibility 350ms ease; }
  .main-navigation.is-open { opacity: 1; visibility: visible; pointer-events: auto; background: rgba(251, 247, 241, 0.90); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

  /* Nav list — vertically + horizontally centred, column */

  .main-navigation ul { flex-direction: column; align-items: center; justify-content: center; gap: 0; width: auto; list-style: none; padding: 0; margin: 0; text-align: center; }

  /* Nav links — large display typeface (dark on all pages including home, cream overlay) */

  .home .main-navigation a, .main-navigation a { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 500; color: var(--ink); padding: 14px 0; display: block; text-align: center; width: auto; letter-spacing: -0.2px; }
  .home .main-navigation a:hover, .home .main-navigation .current-menu-item > a, .main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--clay); }

  /* Underline centred on mobile */

  .main-navigation a::after { left: 50%; transform: translateX(-50%); }
  .main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { width: 60%; }

  /* Suppress sub-menus on mobile */

  .main-navigation ul ul { display: none; }

  /* Footer stays 2-col at 900px */

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; margin-bottom: 60px }
  .posts-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Single-column footer only at small mobile */

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