/* Bermuda Estate — site chrome. Component styles come from the Bermuda Property plugin (public.css). */
:root {
	--be-primary: #0035a0;
	--be-primary-dark: #002a80;
	--be-secondary: #0054a6;
	--be-accent: #0b8278;
	--be-text: #1a1a1a;
	--be-muted: #595959;
	--be-border: #dfe3e8;
	--be-bg: #fff;
	--be-bg-alt: #f4f6f9;
	--be-radius: 8px;
	--be-container: 1200px;
	--be-gutter: 1rem;
	--be-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bprop-text: var(--be-text);
	--bprop-muted: var(--be-muted);
	--bprop-border: var(--be-border);
	--bprop-bg: var(--be-bg);
	--bprop-bg-alt: var(--be-bg-alt);
	--bprop-radius: var(--be-radius);
}
@media (min-width: 768px) { :root { --be-gutter: 1.5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--be-font); font-size: 1rem; line-height: 1.6; color: var(--be-text); background: var(--be-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--be-primary); }
a:hover { color: var(--be-primary-dark); }
:focus-visible { outline: 3px solid var(--be-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; color: var(--be-text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 10000; width: auto; height: auto; clip: auto; padding: .75rem 1rem; background: var(--be-primary); color: #fff; border-radius: var(--be-radius); }
.be-container { max-width: var(--be-container); margin: 0 auto; padding: 0 var(--be-gutter); }
.be-main { padding: 2rem 0 3rem; }
.be-main--home, .be-main--full { padding: 0; }
.be-section { padding: 3.5rem 0; }
.be-section__header { text-align: center; margin-bottom: 2rem; }
.be-section__title--center { text-align: center; }
.be-section__subtitle { margin: 0; color: var(--be-muted); font-size: 1.05rem; }
.be-section__more { text-align: center; margin: 2rem 0 0; }
.be-button--lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.be-button--light { background: #fff; border-color: #fff; color: var(--be-primary); }
.be-button--light:hover { background: var(--be-bg-alt); border-color: var(--be-bg-alt); color: var(--be-primary-dark); }
.be-intro { margin-bottom: 2rem; }

/* ---------- Header ---------- */
.be-header { background: var(--be-bg); border-bottom: 1px solid var(--be-border); position: relative; z-index: 1000; }
.be-header--sticky { position: sticky; top: 0; transition: box-shadow .2s; }
.be-header--sticky.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.be-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.be-header__brand { display: flex; align-items: center; }
.be-header__brand img { max-height: 56px; width: auto; display: block; }
.be-header__name { font-size: 1.25rem; font-weight: 800; color: var(--be-text); text-decoration: none; }
.be-header__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--be-border); border-radius: var(--be-radius); background: var(--be-bg); cursor: pointer; }
.be-header__burger-bar { display: block; height: 2px; background: var(--be-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.be-header__burger[aria-expanded="true"] .be-header__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.be-header__burger[aria-expanded="true"] .be-header__burger-bar:nth-child(2) { opacity: 0; }
.be-header__burger[aria-expanded="true"] .be-header__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.be-nav { display: none; }
.be-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--be-bg); border-bottom: 1px solid var(--be-border); box-shadow: 0 12px 24px rgba(0, 0, 0, .1); padding: .5rem var(--be-gutter) 1rem; max-height: calc(100vh - 72px); overflow-y: auto; }
.be-nav__list { list-style: none; margin: 0; padding: 0; }
.be-nav__list li { position: relative; }
.be-nav__list a { display: block; padding: .8rem .25rem; color: var(--be-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--be-border); }
.be-nav__list .menu-item-has-children > a { padding-right: 3rem; }
.be-nav__toggle { position: absolute; right: 0; top: .35rem; width: 2.5rem; height: 2.5rem; border: 0; background: none; color: var(--be-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.be-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.be-nav__list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; display: none; }
.be-nav__list li.is-open > .sub-menu { display: block; }
.be-nav__list .current-menu-item > a, .be-nav__list .current-menu-ancestor > a { color: var(--be-primary); }
.be-nav__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-top: 1rem; }
.be-header__phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--be-primary); text-decoration: none; white-space: nowrap; }
@media (min-width: 1024px) {
	.be-header__burger { display: none; }
	.be-nav { display: flex !important; align-items: center; gap: 1.5rem; position: static !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important; }
	.be-nav__list { display: flex; align-items: center; gap: .25rem; }
	.be-nav__list a { padding: .6rem .75rem; border: 0; border-radius: var(--be-radius); }
	.be-nav__list a:hover { background: var(--be-bg-alt); color: var(--be-primary); }
	.be-nav__list .menu-item-has-children > a { padding-right: 1.9rem; }
	.be-nav__toggle { top: .25rem; right: .1rem; width: 1.8rem; height: 2.2rem; }
	.be-nav__list .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; padding: .4rem; margin: 0; background: var(--be-bg); border: 1px solid var(--be-border); border-radius: var(--be-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); display: none; z-index: 10; }
	.be-nav__list li:hover > .sub-menu, .be-nav__list li:focus-within > .sub-menu, .be-nav__list li.is-open > .sub-menu { display: block; }
	.be-nav__list .sub-menu a { padding: .55rem .75rem; white-space: nowrap; }
	.be-nav__contact { padding: 0; }
}

/* ---------- Banner ---------- */
.be-banner { padding: 2.5rem 0; background: var(--be-secondary); color: #fff; }
.be-banner--image { position: relative; background-size: cover; background-position: center; padding: 4rem 0; }
.be-banner--image::before { content: ""; position: absolute; inset: 0; background: rgba(0, 53, 160, .72); }
.be-banner .be-container { position: relative; }
.be-banner__title { margin: 0; color: #fff; }
.be-banner__subtitle { margin: .5rem 0 0; color: rgba(255, 255, 255, .85); max-width: 60ch; }
.be-breadcrumbs { margin: 0 0 1rem; }

/* ---------- Hero ---------- */
.be-hero { position: relative; padding: 4rem 0 3rem; background: var(--be-secondary); color: #fff; }
.be-hero--image { background-size: cover; background-position: center; min-height: 60vh; display: flex; align-items: center; }
.be-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 60, .55), rgba(0, 20, 60, .35)); }
.be-hero__inner { position: relative; width: 100%; }
.be-hero__title { max-width: 18ch; margin: 0 0 .75rem; color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.be-hero__subtitle { max-width: 60ch; margin: 0 0 1.25rem; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.be-hero__actions { margin: 0 0 2rem; }
.be-hero__search { color: var(--be-text); }
.be-hero__search .bprop-search { background: rgba(255, 255, 255, .96); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); }

/* ---------- Home sections ---------- */
.be-section--properties { background: var(--be-bg-alt); }
.be-trust { text-align: center; }
.be-trust img { max-width: 760px; width: 100%; }
.be-section--offer { background: var(--be-secondary); color: #fff; }
.be-section--image { position: relative; background-size: cover; background-position: center; }
.be-section--image::before { content: ""; position: absolute; inset: 0; background: rgba(0, 66, 116, .78); }
.be-section--image .be-container { position: relative; }
.be-section--offer .be-section__title, .be-cta__title { color: #fff; }
.be-offer { max-width: 760px; text-align: center; }
.be-offer__text { font-size: 1.1rem; line-height: 1.7; }
.be-section--cta { background: var(--be-primary); color: #fff; text-align: center; }
.be-cta__title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .5rem; }
.be-cta__text { max-width: 62ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.be-agent { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .be-agent { grid-template-columns: 320px 1fr; } }
.be-agent__photo img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.be-agent__designations { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--be-primary); }
.be-agent__name { margin-bottom: .25rem; }
.be-agent__name a { color: inherit; text-decoration: none; }
.be-agent__tagline { margin: 0 0 1rem; color: var(--be-muted); font-weight: 500; }
.be-agent__bio { color: var(--be-text); }
.be-agent__contact { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: 0; }
.be-agent__contact li { display: inline-flex; align-items: center; gap: .4rem; }
.be-agent__contact a { color: var(--be-text); text-decoration: none; font-weight: 600; }
.be-section--testimonials .bprop-testimonial { background: var(--be-bg-alt); border: 0; max-width: 820px; margin: 0 auto; }
.be-section--articles { background: var(--be-bg-alt); }

/* ---------- Articles ---------- */
.be-post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .be-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .be-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.be-post-card { position: relative; display: flex; flex-direction: column; background: var(--be-bg); border: 1px solid var(--be-border); border-radius: var(--be-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.be-post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--be-bg-alt); }
.be-post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.be-post-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.be-post-card__date { font-size: .8rem; color: var(--be-muted); }
.be-post-card__title { margin: 0; font-size: 1.15rem; }
.be-post-card__title a { color: var(--be-text); text-decoration: none; }
.be-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.be-post-card__excerpt { margin: 0; color: var(--be-muted); font-size: .95rem; }
.be-post-card__more { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; }
.be-article__inner { display: grid; gap: 2rem; }
.be-article__inner.has-sidebar { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .be-article__inner.has-sidebar { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); } }
.be-article__main { max-width: 820px; }
.be-article__header { margin-bottom: 1.5rem; }
.be-article__meta { color: var(--be-muted); font-size: .9rem; display: flex; gap: 1rem; }
.be-article__image { margin: 0 0 2rem; }
.be-article__image img { width: 100%; border-radius: var(--be-radius); }
.be-article__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--be-border); display: flex; flex-direction: column; gap: 1.5rem; }
.be-share { display: flex; align-items: center; gap: .75rem; }
.be-share__label { font-weight: 600; font-size: .9rem; }
.be-share__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.be-share__list a { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 1px solid var(--be-border); border-radius: 50%; color: var(--be-text); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.post-navigation a { display: flex; flex-direction: column; text-decoration: none; color: var(--be-text); max-width: 48%; }
.be-nav-label { font-size: .8rem; color: var(--be-muted); }
.be-nav-title { font-weight: 600; }
.nav-next { text-align: right; }
.be-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2rem; }
.be-pagination .page-numbers { display: inline-flex; min-width: 2.4rem; justify-content: center; padding: .5rem .75rem; border: 1px solid var(--be-border); border-radius: var(--be-radius); text-decoration: none; color: var(--be-text); }
.be-pagination .page-numbers.current { background: var(--be-primary); border-color: var(--be-primary); color: #fff; }

/* ---------- Prose / page content ---------- */
.be-prose { line-height: 1.75; }
.be-prose > * { max-width: 820px; }
.be-prose > .alignwide, .be-prose > .alignfull, .be-prose > .bprop, .be-prose > .wp-block-group, .be-prose > .wp-block-columns, .be-prose > .bprop-form-wrap, .be-prose > .wp-block-bermuda-property-listings { max-width: none; }
.be-prose--full > * { max-width: none; }
.be-prose img { border-radius: var(--be-radius); }
.be-prose .wp-block-file { padding: .75rem 1rem; background: var(--be-bg-alt); border-radius: var(--be-radius); }
.be-prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--be-primary); color: var(--be-muted); }
.be-prose table { border-collapse: collapse; width: 100%; }
.be-prose th, .be-prose td { padding: .5rem .75rem; border: 1px solid var(--be-border); text-align: left; }
.be-page .bprop-form-wrap { max-width: 900px; }
.be-page .bprop-listing { margin-top: 1rem; }
.be-page .bprop-calc { margin-bottom: 2rem; }
.be-search-form { display: flex; gap: .5rem; max-width: 640px; margin: 0 0 2rem; }
.be-search-form input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--be-border); border-radius: var(--be-radius); font: inherit; }
.be-search-results { display: flex; flex-direction: column; gap: 1.25rem; }
.be-result { padding: 1.25rem; border: 1px solid var(--be-border); border-radius: var(--be-radius); }
.be-result__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.be-result__type { margin: 0 0 .5rem; font-size: .8rem; color: var(--be-muted); text-transform: uppercase; letter-spacing: .05em; }
.be-result__excerpt { margin: 0; }
.be-404 { text-align: center; padding: 2rem 0; }
.be-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.be-404 .be-search-form { margin: 0 auto; }
.be-empty { color: var(--be-muted); }
.be-similar { margin-top: 3rem; }
.be-main--property .bprop-property__header { margin-top: 1.5rem; }
.be-main--listing .bprop-listing { margin-top: .5rem; }

/* ---------- Footer ---------- */
.be-footer { margin-top: 3rem; background: var(--be-secondary); color: #d7e5f5; font-size: .95rem; }
.be-footer a { color: #fff; }
.be-footer__grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 720px) { .be-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.be-footer__logo img { max-height: 72px; width: auto; background: #fff; padding: .5rem .75rem; border-radius: var(--be-radius); }
.be-footer__name { font-size: 1.25rem; font-weight: 700; color: #fff; }
.be-footer__title { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.be-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.be-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.be-footer__contact .bprop-icon { color: #fff; margin-top: .15rem; }
.be-footer__contact address { font-style: normal; }
.be-footer__contact a { text-decoration: none; }
.be-footer__contact a:hover { text-decoration: underline; }
.be-footer__menu { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.be-footer__menu a { text-decoration: none; }
.be-footer__badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.be-footer__badges img { max-height: 90px; width: auto; background: #fff; padding: .4rem; border-radius: 6px; }
.be-footer__licence { font-weight: 600; color: #fff; }
.be-footer__pipa { font-size: .85rem; }
.be-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }
.be-footer__bottom p { margin: 0; }
.be-footer__top { margin-left: auto; text-decoration: none; }

/* ---------- Comments ---------- */
.be-comments { margin-top: 2.5rem; }
.be-comments__list { list-style: none; padding: 0; }
.be-comments__list .comment { padding: 1rem 0; border-top: 1px solid var(--be-border); }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--be-border); border-radius: var(--be-radius); font: inherit; }
.comment-form .submit { padding: .7rem 1.25rem; border: 0; border-radius: var(--be-radius); background: var(--be-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
