/* Mar Mar Homes — matches the previous www.marmarhomes.com: Open Sans body, Proxima Nova headings
   (Montserrat here: Proxima Nova is a commercial Adobe font), blue #19478c, cyan #01d8ff.
   Sizes and colors were measured from the live site. */
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --primary: #19478c;       /* Mar Mar blue */
  --primary-deep: #10305f;
  --accent: #01d8ff;        /* cyan: decoration and text on dark backgrounds only */
  --accent-text: #19478c;
  --sage: #9fe9fb;
  --ink: #231f20;
  --text: #4a4a4a;
  --grey-bg: #fafafa;
  --line: #eeeeee;
  --footer-bg: #231f20;
  --error: #b0261b;
  --font: "Open Sans", "Segoe UI", Calibri, Arial, sans-serif;
  --font-head: "Montserrat", "Proxima Nova", "Segoe UI", Arial, sans-serif;
  --wrap: 75rem;
  --header-h: 100px;
  --bar-h: 65px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }   /* in-page links land below the fixed header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 1rem; line-height: 1.7; color: var(--text); background: #fff; overflow-x: clip; padding-bottom: var(--bar-h); }
img, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 300; font-family: var(--font-head); color: var(--primary); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 0 0 0.5rem; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.4rem; font-weight: 400; }
h4, h5 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0.3rem; color: var(--ink); }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 60; }
.skip-link:focus { left: 0.5rem; }

/* Buttons: solid blue, Proxima-style caps */
.button {
  display: inline-block; background: var(--primary); color: #fff; border: 1px solid var(--primary); cursor: pointer;
  font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-transform: uppercase;
  padding: 1.25rem 2.5rem; line-height: 1.2; text-decoration: none; transition: background-color .3s, color .3s;
}
.button:hover { background: #fff; color: var(--primary); }
.button.light { background: #fff; color: var(--primary); }
.button.light:hover { background: var(--primary); color: #fff; }

/* Header: fixed at the top. Over a page's opening photo it is transparent with the white logo
   (body.header-overlay, set by site.js); once scrolled it turns 90% white with the color logo. */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); transition: background-color .4s ease-out, border-color .4s ease-out; }
.header-overlay .site-header { position: fixed; left: 0; right: 0; }
.header-overlay:not(.scrolled):not(.menu-open) .site-header { background: transparent; border-bottom-color: transparent; }
.header-row { display: flex; align-items: center; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; position: relative; }
.brand img { display: block; height: 65px; width: auto; transition: opacity .4s ease-out; }
.brand .logo-white { position: absolute; inset: 0; opacity: 0; }
.header-overlay:not(.scrolled):not(.menu-open) .brand .logo-white { opacity: 1; }
.header-overlay:not(.scrolled):not(.menu-open) .brand .logo-color { opacity: 0; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: clamp(1.5rem, 5vw, 4.5rem); }
.main-nav a {
  display: block; padding: 0.5rem 0; color: var(--text); text-decoration: none; text-transform: uppercase;
  font-family: var(--font); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.02em; white-space: nowrap; transition: color .4s ease-out;
}
.header-overlay:not(.scrolled):not(.menu-open) .main-nav a { color: #fff; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; }

/* Home hero: the old site's background video, 85% of the window tall */
.hero { position: relative; background: var(--primary-deep); overflow: hidden; height: 85vh; min-height: 37.5rem; }
.hero-media, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.1); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3.75rem; }
.hero h1 { color: #fff; font-weight: 400; font-size: clamp(3rem, 11.9vw, 7.5rem); line-height: 1; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 3px solid #fff; width: min(100%, 56rem); }
.hero-sub { color: #fff; font-family: var(--font-head); font-weight: 300; font-size: clamp(1.4rem, 5vw, 3.1rem); line-height: 1.7; margin: 0; max-width: 56rem; }
/* Fade in on arrival, as the old site's intro animation did */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub { animation: hero-in .8s cubic-bezier(.65,0,.35,1) both; }
  .hero h1 { animation-delay: .9s; }
  .hero-sub { animation-delay: 1.1s; }
}
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
/* Scroll button: white half-circle on the bottom edge */
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); width: 100px; height: 55px; border-radius: 100px 100px 0 0; background: #fff; color: var(--primary); display: grid; place-items: center; padding-top: 10px; }
.hero-scroll:hover { color: var(--accent); }

/* Centred intro bands */
.intro-band, .models-band { padding-block: 4.5rem; text-align: center; }
.intro { max-width: 40rem; }
.intro h2 { margin: 0 0 0.45rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; }
.models-band .intro h2::after { content: ""; display: block; width: 115px; border-bottom: 1px solid var(--line); margin: 1.5rem auto 1.9rem; }
.intro p { font-size: 1rem; line-height: 1.7; }

/* Community tiles: photo, community wordmark and status; blue on hover */
.community-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-tiles li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }   /* a lone last tile spans the row, as on the old site */
.community-tiles a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 400px; padding: 2.8rem 3.4rem; color: #fff; text-decoration: none; overflow: hidden; background: var(--ink); text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.community-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-tiles a::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: .45; transition: background-color .4s ease-out, opacity .4s ease-out; }
.community-tiles a:hover::after, .community-tiles a:focus-visible::after { background: var(--primary); opacity: .9; }
.community-tiles .wordmark { position: relative; z-index: 2; width: min(100%, 250px); height: 100px; fill: #fff; }
.tile-status { position: relative; z-index: 2; font-family: var(--font-head); text-transform: uppercase; font-size: 1.125rem; font-weight: 600; }
.community-tiles a::before { content: "\2022\2022\2022"; position: absolute; z-index: 2; left: 0; right: 0; bottom: 15px; font-size: 1.5rem; letter-spacing: 0.15em; line-height: 1; color: #fff; }

/* Custom, Custom, Custom!: white panel over a full-width photo */
.why-band { position: relative; }
.why-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-band > .wrap { width: 100%; }
.why-panel { position: relative; background: rgba(25, 71, 140, .95); color: #fff; width: 50%; min-height: 413px; padding: 63px; display: flex; flex-direction: column; justify-content: center; }
.why-panel h2 { margin-top: 0; color: var(--accent); }

/* Our Team: text beside a photo */
.team-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 4rem; }
.team-band h2 { margin-top: 0; font-size: clamp(2rem, 4.8vw, 3rem); }
.team-band img { display: block; width: 100%; }
/* Model details (bedrooms, baths, square feet ...) */
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; background: var(--grey-bg); padding: 1.25rem 1.5rem; max-width: 36rem; }
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; }
.card figcaption h3 a { color: inherit; text-decoration: none; }
.card figcaption h3 a:hover { color: var(--primary); text-decoration: underline; }
/* Interior page banner: full-width photo, centered white title */
.page-banner { position: relative; width: 100vw; margin: 0 0 2.5rem calc(50% - 50vw); background: var(--ink); text-align: center; }
.page-banner img { display: block; width: 100%; height: clamp(14rem, 30vw, 28rem); object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; }
.page-banner h1, .page-banner p { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; margin: 0; z-index: 1; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.page-banner h1 { top: 40%; transform: translate(-50%, -50%); font-size: clamp(2.2rem, 5vw, 3.75rem); border-bottom: 3px solid #fff; padding: 0 1rem 0.6rem; white-space: nowrap; }
.page-banner p { top: calc(40% + 3.5rem); font-size: 1.25rem; width: min(90%, 40rem); }
.page-banner:not(:has(img)) { background: none; }
.page-banner:not(:has(img))::before { display: none; }
.page-banner:not(:has(img)) h1 { position: static; transform: none; color: var(--ink); border: 0; padding-top: 2rem; text-shadow: none; }
.page-head { padding-block: 2.5rem 1rem; }
.page-head h1 { color: var(--ink); }
.page-head p { font-size: 1.15rem; max-width: 60ch; }

/* Content pages */
.cms-page { padding-bottom: 4rem; }
.cms-page > p, .cms-page > ul, .cms-page > ol, .split-cell p { max-width: 72ch; }
.cms-page h2 { color: var(--accent-text); font-weight: 300; }
.cms-page h2 strong { font-weight: 300; }
.cms-page ul li::marker { color: var(--accent); }


.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-block: 2rem 2rem; border-bottom: 1px solid #ddd; margin-bottom: 1rem; }
.product-hero > img { order: 2; width: 100%; }
.product-summary { order: 1; font-size: 1rem; }
.product-summary h1 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.3rem); }
.product-summary h2 { font-size: 1rem; font-weight: 400; color: var(--ink); margin: 1rem 0 0.2rem; }
.product-summary h2 a { color: var(--accent-text); text-decoration: none; font-weight: 700; }
.product-summary p a { color: var(--ink); font-weight: 700; text-decoration: none; }
.product-summary p a:hover, .product-summary h2 a:hover { color: var(--primary); }
.cms-page > h2 { font-size: 1.6rem; padding-bottom: 0.75rem; position: relative; }
.cms-page > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; background: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0 2.5rem; }
.card { margin: 0; background: #fafafa; border: 1px solid #e3e3e3; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.card figcaption { padding: 0.9rem 1rem 1.1rem; font-size: 0.9rem; }
.card figcaption h2, .card figcaption h3 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--ink); }
.card figcaption h2::after { display: none; }
.card figcaption h4, .card figcaption h5 { margin: 0; font-size: 0.95rem; }
.card figcaption p:last-child { margin-bottom: 0; }
.card figcaption a { display: inline-block; margin-top: 0.5rem; background: var(--primary); color: #fff; text-decoration: none; text-transform: uppercase; padding: 0.5rem 1rem; font-size: 0.95rem; }
.card figcaption a:hover { background: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; margin: 2.5rem 0; }
.split-cell > img:only-child, .split-cell > p > img { width: 100%; }
.split-cell h2:first-child { margin-top: 0; }

/* FAQ */
.toc { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; border-bottom: 1px solid #ddd; }
.toc a { display: inline-block; padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.toc a::after { content: " ›"; }
.toc a:hover { color: var(--primary); }
.faq-item { border-bottom: 1px solid #ddd; max-width: 60rem; }
.faq-item summary { cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 0; font-size: 1.2rem; color: var(--ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 3rem; padding-bottom: 4rem; align-items: start; }
.form-layout > div > h2:first-child { color: var(--accent-text); margin-top: 0; }
.inquiry { max-width: 44rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-short { max-width: 14rem; }
label { font-weight: 400; color: var(--ink); margin-bottom: 0.3rem; }
.optional { font-weight: 300; color: #777; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 0.6rem 0.7rem; width: 100%; }
input::placeholder, textarea::placeholder { color: #888; }
input[type="file"] { border-style: dashed; }
input.input-validation-error, select.input-validation-error, textarea.input-validation-error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.95rem; margin-top: 0.25rem; font-weight: 400; }
.hint { color: #6a6d74; font-size: 0.95rem; margin: 0.3rem 0 0; }
.inquiry .button { background: var(--accent); color: #fff; padding-inline: 2.5rem; }
.inquiry .button:hover { background: var(--primary); }
.form-group { border: 1px solid #ddd; padding: 0 1rem; margin-bottom: 1rem; }
.form-group summary { cursor: pointer; font-weight: 400; color: var(--ink); padding: 0.8rem 0; }
.form-group[open] { padding-bottom: 0.5rem; }
fieldset.form-group { padding: 0.25rem 1rem 0.5rem; margin-inline: 0; }
.form-group legend { font-weight: 400; color: var(--ink); padding: 0 0.4rem; }

/* Contact Us: the order details only show for "Existing Orders".
   No script needed; browsers without :has() show both, and the server drops whatever doesn't apply. */
@supports selector(:has(*)) {
  .inquiry [data-show-for] { display: none; }
  .inquiry:has(#Input_Subject option[value="Existing Orders"]:checked) [data-show-for="service"] { display: block; }
}
.form-alert { color: var(--error); border-left: 4px solid var(--error); padding: 0.5rem 1rem; margin-bottom: 1rem; }
.form-alert.validation-summary-valid { display: none; }
.form-alert ul { margin: 0; padding-left: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--grey-bg); padding: 1.5rem 2rem; border-left: 4px solid var(--accent); }
.thanks h2 { margin-top: 0; color: var(--ink); }
.form-aside { background: var(--grey-bg); padding: 1.75rem; }
.form-aside h2 { margin: 0 0 0.5rem; font-size: 1.3rem; font-style: italic; }
.form-aside h2 + address, .form-aside p + h2 { margin-top: 1.25rem; }
.form-aside address { font-style: italic; font-weight: 400; margin-bottom: 0.75rem; }
.form-aside .phone { font-size: 1.4rem; text-decoration: none; }

/* Search */
.search-page-form { display: flex; gap: 0.5rem; max-width: 36rem; }
.search-results ol { padding-left: 1.2rem; max-width: 60rem; }
.search-results li { margin-bottom: 1.25rem; }
.search-results li > a { font-weight: 400; font-size: 1.15rem; }
.search-results li p { margin: 0.2rem 0 0; }

/* Footer: one dark line, as on the old site */
.site-footer { background: var(--footer-bg); color: #9b9b9b; font-size: 0.875rem; padding-block: 1.1rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-row p { margin: 0; }

/* Contact bar fixed along the bottom of every page */
.contact-bar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: var(--bar-h); display: flex; align-items: stretch; background: #fafafa; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.5; }
.contact-bar-phone { display: flex; align-items: center; gap: 2.5rem; padding-right: 3rem; border-right: 1px solid var(--line); color: var(--text); text-decoration: none; }
.contact-bar-ico { width: 60px; align-self: stretch; display: grid; place-items: center; background: #f5f5f5; border-right: 1px solid var(--line); color: var(--accent); }
.contact-bar-help { margin: 0; padding: 0 3rem; display: flex; flex-direction: column; justify-content: center; }
.contact-bar-title { color: var(--accent); text-transform: uppercase; }
.contact-bar-help br, .contact-bar-phone br { display: none; }
.contact-bar-button { margin-left: auto; display: flex; align-items: center; padding: 0 2.5rem; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-transform: uppercase; text-decoration: none; transition: background-color .3s; }
.contact-bar-button:hover { background: var(--primary-deep); color: #fff; }
.contact-bar-phone:hover { color: var(--primary); }
.contact-bar .contact-bar-title { display: block; }
/* The old site keeps its desktop layout down to tablet width (768px). */
@media (max-width: 48rem) {
  .community-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-tiles li:last-child:nth-child(3n+1) { grid-column: auto; }
  .product-hero, .split, .team-band { grid-template-columns: 1fr; }
  .product-hero > img { order: 0; }
  .form-layout { grid-template-columns: 1fr; }
  .why-panel { width: 100%; }
  :root { --header-h: 76px; }
  .brand img { height: 50px; }
  /* Menu behind a button (site.js); without the script it stays a scrolling row */
  .has-menu-toggle .menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--text); }
  .header-overlay:not(.scrolled):not(.menu-open) .menu-toggle { color: #fff; }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .3s; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -8px; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-open .menu-toggle .bars { background: transparent; }
  .menu-open .menu-toggle .bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }
  .header-row { flex-wrap: wrap; }
  .main-nav { width: 100%; overflow-x: auto; }
  .has-menu-toggle .main-nav { display: none; }
  .menu-open .main-nav { display: block; padding-bottom: 1rem; }
  .main-nav ul { gap: 0; }
  .has-menu-toggle .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.8rem 0; font-size: 0.8rem; border-top: 1px solid var(--line); }
  .contact-bar-help { display: none; }
  .contact-bar-phone { gap: 1rem; padding-right: 1rem; }
  .contact-bar-button { padding: 0 1.25rem; font-size: 0.85rem; }
}
@media (max-width: 40rem) {
  .hero { min-height: 23.5rem; height: 75vh; }
  .hero-content { padding: 1.5rem; }
  .why-panel { padding: 1.75rem 1.5rem; }
  .page-banner p { display: none; }
  .field-row, .community-tiles { grid-template-columns: 1fr; }
  .community-tiles a { min-height: 260px; }
  .footer-row { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}/* Series pages (400/500/600/800/Patio Door): photo with title graphic overlaid, blue band, row listing */
.series-banner { width: 100vw; margin-left: calc(50% - 50vw); }
.series-photo { position: relative; margin: 0; background: var(--ink); }
.series-photo > img:first-child { display: block; width: 100%; height: clamp(16rem, 34vw, 32rem); object-fit: cover; }
.series-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(66%, 62rem); height: auto; pointer-events: none; }
.series-band { background: var(--primary); text-align: center; padding: 1.6rem 1rem; }
.series-band h1 { color: #fff; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: none; margin: 0; }

.breadcrumb ol { list-style: none; margin: 0; padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 1rem; }
.breadcrumb li + li::before { content: "\25C6"; color: var(--accent); font-size: 0.7em; margin: 0 0.7rem; vertical-align: 0.15em; }
.breadcrumb a { color: var(--accent-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-banner .breadcrumb { position: absolute; left: 0; right: 0; top: calc(40% + 3.2rem); z-index: 1; }
.page-banner .breadcrumb ol { justify-content: center; padding: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.page-banner .breadcrumb a { color: #fff; text-decoration: underline; }
.page-banner .breadcrumb li + li::before { color: #fff; }
.page-banner p ~ .breadcrumb { top: calc(40% + 6.5rem); }
.page-banner + .breadcrumb, .product-hero + .breadcrumb { border-bottom: 1px solid #ddd; margin-bottom: 1rem; }

.gallery.listing { grid-template-columns: 1fr; gap: 2rem; background: var(--grey-bg); width: 100vw; margin: 0 0 3rem calc(50% - 50vw); padding: 2rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.listing .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; background: #fff; border: 0; }
.listing .card img { aspect-ratio: 16 / 11; height: 100%; }
.listing .card figcaption { padding: 2.5rem 3rem; font-size: 1rem; }
.listing .card figcaption h2 { font-size: 1.6rem; font-weight: 300; text-transform: uppercase; margin-bottom: 0.9rem; }
.listing .card figcaption a { padding: 0.7rem 1.4rem; margin-top: 0.75rem; }

@media (max-width: 60rem) {
  .listing .card { grid-template-columns: 1fr; }
  .listing .card figcaption { padding: 1.5rem; }
  .page-banner .breadcrumb { display: none; }
}

/* Products landing page: bottom-left banner title, 3-column cards on grey */
.page-banner.banner-left { margin-bottom: 0; text-align: left; }
.page-banner.banner-left::before { display: none; }
.page-banner.banner-left h1 {
  top: auto; bottom: 12%; transform: none; text-shadow: 0 1px 10px rgba(0,0,0,.3);
  left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); padding: 0 1rem 0.6rem 0;
}
.page-banner.banner-left + .breadcrumb {
  width: 100vw; margin: 0 0 0 calc(50% - 50vw); border: 0; background: var(--grey-bg);
  padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.page-banner.banner-left + .breadcrumb ol { padding: 1.1rem 0 0.4rem; font-size: 0.9rem; }
.gallery.landing {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; background: var(--grey-bg);
  width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 0.75rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 4rem;
}
.landing .card { background: #fff; border: 0; padding: 3px 3px 0; }
.landing .card img { aspect-ratio: auto; object-fit: initial; height: auto; }
.landing .card figcaption { text-align: center; padding: 2.75rem 1.5rem 2.25rem; }
.landing .card figcaption h3 { font-size: 1.6rem; font-weight: 300; color: var(--ink); margin: 0 0 1rem; }
.landing .card figcaption a { font-size: 1.15rem; font-weight: 400; padding: 0.7rem 1.1rem; margin-top: 0; }
.page-banner.banner-left ~ .gallery.landing + * { margin-top: 0; }
.cms-page:has(.gallery.landing) { padding-bottom: 0; }

@media (max-width: 60rem) {
  .gallery.landing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .gallery.landing { grid-template-columns: 1fr; }
  .page-banner.banner-left h1 { position: absolute; }
}
/* Interior page banners, as on the old site: tall photo, big caps title over a white rule,
   breadcrumbs on a dark fade along the bottom edge. */
.page-banner { margin-bottom: 3rem; }
.page-banner img { height: 82vh; min-height: 26rem; max-height: 52rem; }
.page-banner::before { background: rgba(0,0,0,.1); }
.page-banner h1 { top: 45%; font-weight: 400; font-size: clamp(2.4rem, 8.9vw, 5.6rem); line-height: 1; text-shadow: none; white-space: normal; width: min(90%, 56rem); border-bottom: 2px solid #fff; padding: 0 0 1.25rem; }
.page-banner p { top: calc(45% + clamp(2.4rem, 8.9vw, 5.6rem) / 2 + 2.5rem); font-family: var(--font-head); font-weight: 300; font-size: clamp(1.1rem, 2.6vw, 1.75rem); text-shadow: none; }
.page-banner .breadcrumb, .page-banner p ~ .breadcrumb { top: auto; bottom: 0; height: 54px; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)); }
.page-banner .breadcrumb ol { font-size: 0.875rem; font-weight: 600; text-shadow: none; }
.page-banner .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-banner .breadcrumb li + li::before { content: "\2022"; color: #fff; font-size: 1em; vertical-align: 0; margin: 0 0.6rem; }
.cms-page h2 { color: var(--primary); }
.cms-page > h2::after { display: none; }
/* ===== Mar Mar blocks, rebuilt from the old site (classes come from SiteMigrator's Mar Mar conversion) ===== */
.full-bleed, .about-band, .band-grey, .cta-band, .model-cards, .model-hero, .page-banner.banner-corner { width: 100vw; margin-left: calc(50% - 50vw); }
.cms-page p:has(> img:only-child) { text-align: center; }   /* the old site centred pictures in text blocks */

/* Community hero: the site plan fills the window, title bottom-left */
.page-banner.banner-corner { margin-bottom: 0; text-align: left; }
.page-banner.banner-corner img { height: 100vh; max-height: none; min-height: 30rem; }
.page-banner.banner-corner::before { background: rgba(0,0,0,.35); }
.page-banner.banner-corner h1 { top: auto; bottom: 150px; left: 30px; transform: none; width: auto; max-width: calc(100% - 60px); border: 0; padding: 0; font-weight: 500; font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1; text-align: left; }

/* "About the Project": blue band, blue box overlapping the hero with a cyan title */
.about-band { position: relative; background: var(--primary); padding-bottom: 130px; margin-bottom: 0; }
.about-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(25, 71, 140, .96); }
.about-band h2, .about-band > p { position: relative; z-index: 2; }
.about-band h2 { margin: -60px 0 0 130px; width: min(419px, calc(100% - 2.5rem)); background: var(--primary); padding: 36px 40px 72px; color: var(--accent); font-size: 2.1rem; font-weight: 500; line-height: 1; text-align: center; }
.about-band h2::after { content: ""; display: block; width: 110px; border-bottom: 1px solid #fff; margin: 14px auto 0; }
.about-band > p { color: #fff; margin: 1.5rem 130px 0; max-width: 40rem; }

/* Centred section titles ("Models", "Luxury Homes") */
.section-title { text-align: center; padding-top: 63px; }
.section-title h2 { margin: 0 0 0.45rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-title p { margin: 0 0 2.5rem; }

/* Grey sections (lots, floor plans) */
.band-grey { background: #eee; padding: 63px max(15px, calc((100vw - var(--wrap)) / 2)); margin-bottom: 0; }
.band-grey .section-title { padding-top: 0; }

/* Model cards: photo under a dark veil, text in white, three dots */
.gallery.model-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 0; margin-bottom: 0; }
.card.model-card { position: relative; display: block; border: 0; background: #000; padding: 150px 50px 45px; color: #fff; text-align: center; overflow: hidden; }
.card.model-card > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.card.model-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.45); transition: background-color .4s ease-out; }
.card.model-card:hover::before { background: rgba(25, 71, 140, .9); }
.card.model-card figcaption { position: relative; z-index: 2; padding: 0 15px; font-size: 1rem; line-height: 1.7; }
.card.model-card figcaption h3 { color: #fff; font-size: 1.125rem; font-weight: 300; text-transform: uppercase; margin: 0 0 1rem; }
.card.model-card figcaption h3 a, .card.community-card figcaption h3 a, .card.lot-card figcaption h3 a { display: inline; background: none; padding: 0; margin: 0; color: inherit; font-size: inherit; text-transform: inherit; }
.card.model-card figcaption h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.card.model-card figcaption::after { content: ""; display: block; width: 40px; height: 8px; margin: 30px auto 0; background: radial-gradient(circle, #fff 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x; }

/* Lot rows (community lots, Home Finder, Available Homes): zoomed site plan | text panel */
.gallery.lot-rows { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.gallery.lot-rows > .button { align-self: center; margin-top: 20px; }
.card.lot-card { position: relative; flex-direction: row; min-height: 354px; border: 0; background: #fafafa; overflow: hidden; }
.card.lot-card > img { width: 60%; aspect-ratio: auto; object-fit: cover; transform: scale(1.6); }
.card.lot-card figcaption { position: relative; z-index: 1; width: 40%; background: #fafafa; padding: 40px; border-right: 3px solid var(--primary); font-size: 1rem; line-height: 1.7; }
.card.lot-card figcaption h3 { color: var(--primary); font-size: 1.375rem; font-weight: 300; line-height: 1.2; margin: 0 0 1rem; }
.card.lot-card figcaption a { display: inline; background: none; color: var(--accent); padding: 0; margin: 0; text-transform: none; font-size: inherit; }
.card.lot-card .badge { position: absolute; z-index: 2; top: 0; left: 0; width: 60%; margin: 0; background: var(--primary); color: #fff; padding: 10px 20px; text-align: center; font-weight: 800; text-transform: uppercase; }

/* Neighborhoods list: photo | name, price, text | buttons */
.gallery.community-cards { display: flex; flex-direction: column; gap: 20px; }
.card.community-card { position: relative; display: grid; grid-template-columns: 1fr 2fr; border: 0; border-right: 3px solid var(--primary); background: #fff; }
.card.community-card > img { height: 100%; min-height: 152px; aspect-ratio: auto; object-fit: cover; }
.card.community-card .badge { position: absolute; top: 0; right: calc(100% * 2 / 3); margin: 0; background: var(--accent); color: #fff; padding: 10px 20px; font-weight: 600; text-transform: uppercase; }
.card.community-card figcaption { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; align-content: center; padding: 0; background: linear-gradient(to right, #fafafa 50%, #fff 50%); font-size: 1rem; }
.card.community-card figcaption > * { grid-column: 1; margin: 0 40px; }
.card.community-card figcaption > :first-child { margin-top: 40px; }
.card.community-card figcaption > :last-child:not(.button) { margin-bottom: 40px; }
.card.community-card figcaption h3 { color: var(--primary); font-size: 1.375rem; font-weight: 300; }
.card.community-card figcaption h6 { color: var(--text); font-size: 1.125rem; font-weight: 600; margin-block: 0.4rem; }
.card.community-card figcaption .button { grid-column: 2; display: block; text-align: center; padding: 20px; margin: 12px 40px; }
.card.community-card figcaption .button:first-of-type { margin-top: 40px; }

/* Model page: photo mosaic (large left, two stacked right) with the elevation name */
.model-hero { position: relative; display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: 1fr 1fr; height: 570px; background: #000; }
.model-hero > a { display: block; overflow: hidden; }
.model-hero > a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-hero > a:first-of-type { grid-row: 1 / 3; }
.model-hero > a:nth-of-type(n+4) { display: none; }
.model-hero h2 { position: absolute; left: 15px; bottom: 30px; margin: 0; color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.35); pointer-events: none; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 60px; border: 0; background: #fff; color: var(--primary); cursor: pointer; display: grid; place-items: center; }
.slide-nav.prev { left: 0; }
.slide-nav.next { right: 0; }
.cms-page > nav.breadcrumb ol { padding: 1.1rem 0; font-size: 0.875rem; }
.cms-page > nav.breadcrumb li + li::before { content: "\2022"; color: var(--text); font-size: 1em; vertical-align: 0; margin: 0 0.6rem; }

/* Model page: description | "Model Design Details" sidebar */
.model-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; margin-bottom: 3rem; }
.model-desc { padding: 63px; font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.model-desc h2 { margin-top: 0; }
.model-specs { background: #fafafa; padding: 41px 37px; }
.model-specs h5 { color: var(--primary); font-size: 1.375rem; font-weight: 300; margin: 0 0 1rem; }
.model-specs h5 ~ h5 { margin-top: 2rem; }
.model-specs .specs { background: none; padding: 0; gap: 0 1rem; grid-template-columns: 1fr 1fr; font-size: 1rem; }
.model-specs .specs dt { font-weight: 600; color: var(--text); }

/* Floor plans: four per row, cropped thumbnails that open full size */
.gallery.floor-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.card.plan-card { background: none; border: 0; padding: 10px; }
.card.plan-card img { height: 256px; aspect-ratio: auto; object-fit: cover; }
.card.plan-card figcaption { padding: 1.25rem 0 0; text-align: center; }
.card.plan-card figcaption h3 { color: var(--primary); font-size: 1.375rem; font-weight: 300; }

/* Community model list: photo slideshow | name, summary, Learn More, specs */
.model-rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 3rem; }
.model-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; border: 1px solid var(--line); }
.model-row-photos { position: relative; overflow: hidden; background: #000; }
.model-row-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model-row-photos img:not(:first-of-type) { display: none; }
.model-row-text { background: #fafafa; padding: 40px 20px 40px 30px; }
.model-row-text h3 { color: var(--primary); font-size: 1.375rem; font-weight: 300; margin: 0 0 1rem; }
.model-row-text .specs { background: none; padding: 0; margin-top: 1.5rem; grid-template-columns: max-content 1fr max-content 1fr; gap: 0.3rem 1rem; max-width: none; }
.model-row-text .specs dt { font-weight: 600; color: var(--text); }

/* "Interested in this community?": blue panel on the right half of a photo, with the appointment form */
.cta-band { position: relative; margin-bottom: 0; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .split { position: relative; margin: 0; gap: 0; align-items: stretch; }
.cta-band .split-cell:last-child { background: rgba(25, 71, 140, .95); color: #fff; padding: 63px; }
.cta-band h2 { color: var(--accent); margin-top: 0; }
.cta-band p { color: #fff; }
.appointment { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.5rem; }
.appointment input, .appointment textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); color: #fff; padding: 0.7rem 0; text-transform: uppercase; font-size: 0.85rem; }
.appointment input::placeholder, .appointment textarea::placeholder { color: rgba(255,255,255,.85); }
.appointment textarea { grid-column: 1 / -1; resize: vertical; }
.appointment .button { grid-column: 1 / -1; justify-self: start; background: #fff; color: var(--primary); border-color: #fff; }
.appointment .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Lightbox (floor plans, model photos), as the old site's fancybox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }

/* ----- Tablet and phone ----- */
@media (max-width: 48rem) {
  .page-banner.banner-corner img { height: 70vh; min-height: 22rem; }
  .page-banner.banner-corner h1 { bottom: 90px; left: 20px; }
  .about-band { padding-bottom: 60px; }
  .about-band h2 { margin: -40px auto 0; padding: 28px 24px 40px; font-size: 1.8rem; }
  .about-band > p { margin-inline: 1.25rem; }
  .gallery.model-cards { grid-template-columns: 1fr; }
  .card.model-card { padding: 80px 30px 40px; }
  .card.lot-card { flex-direction: column; }
  .card.lot-card > img { width: 100%; height: 240px; transform: none; }
  .card.lot-card figcaption { width: 100%; border-right: 0; border-bottom: 3px solid var(--primary); padding: 24px; }
  .card.lot-card .badge { width: 100%; }
  .card.community-card { grid-template-columns: 1fr; }
  .card.community-card > img { height: 200px; }
  .card.community-card .badge { right: 0; }
  .card.community-card figcaption { grid-template-columns: 1fr; background: #fafafa; }
  .card.community-card figcaption > *, .card.community-card figcaption .button { grid-column: 1; margin: 0 24px; }
  .card.community-card figcaption > :first-child { margin-top: 24px; }
  .card.community-card figcaption .button { margin-block: 0 12px; }
  .card.community-card figcaption .button:first-of-type { margin-top: 16px; }
  .card.community-card figcaption > :last-child { margin-bottom: 24px; }
  .model-hero { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 60vw; min-height: 240px; }
  .model-hero > a:first-of-type { grid-row: auto; }
  .model-hero > a:not(:first-of-type) { display: none; }
  .model-detail { grid-template-columns: 1fr; }
  .model-desc { padding: 32px 0 0; font-size: 1rem; }
  .model-specs { padding: 28px 24px; }
  .gallery.floor-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.plan-card img { height: 180px; }
  .card.plan-card figcaption h3 { font-size: 1.1rem; }
  .model-row { grid-template-columns: 1fr; min-height: 0; }
  .model-row-photos { height: 260px; }
  .model-row-text { padding: 24px; }
  .model-row-text .specs { grid-template-columns: max-content 1fr; }
  .cta-band .split { grid-template-columns: 1fr; }
  .cta-band .split-cell:first-child { display: none; }
  .cta-band .split-cell:last-child { padding: 40px 24px; }
  .appointment { grid-template-columns: 1fr; }
}