/* =====================================================================
   E&R Enterprise – public website (Phase 2 redesign)
   Brand colours come from the logo: teal #178177 and mint #48D4AA.
   ===================================================================== */

/* Self-hosted fonts (SIL Open Font License – see /public/web/fonts) */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lagoon: #0b4f4a;      /* deep teal: footer, overlays, strong text on mint */
  --lagoon-2: #0e5e57;
  --teal: #178177;        /* brand primary */
  --teal-dk: #126a62;
  --mint: #48d4aa;        /* accent */
  --mint-soft: #c9f1e3;
  --ink: #132b29;         /* body text */
  --ink-2: #4a615e;       /* secondary text */
  --mist: #edf5f2;        /* alternate section background */
  --line: #d5e5e0;
  --paper: #ffffff;
  --sold: #b23a2e;

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-lift: 0 18px 40px -22px rgba(11, 79, 74, .45);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dk); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.muted { color: var(--ink-2); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lagoon); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .97rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dk); color: #fff; }
.btn-mint { background: var(--mint); color: var(--lagoon); }
.btn-mint:hover { background: #63ddb8; color: var(--lagoon); }
.btn-ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--lagoon); border-color: #fff; }
.btn-whatsapp { background: #0f7a3d; color: #fff; }
.btn-whatsapp:hover { background: #0b6332; color: #fff; }
.btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--teal-dk); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--lagoon); color: #cfe9e2; font-size: .86rem; }
.topbar .wrap { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #e6f6f1; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--mint); }
.topbar .group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar .at { opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: 1440px; display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand .er-mark { width: 40px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; color: var(--lagoon); }
.brand-tag { font-size: .62rem; letter-spacing: .26em; color: var(--teal); margin-top: 5px; font-weight: 700; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-toggle {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .3em; padding: .55em .8em; border-radius: 10px;
  font: 600 .96rem/1 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--mist); color: var(--teal-dk); }
.nav-toggle .ico { width: 1em; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--lagoon); cursor: pointer; border-radius: 10px; }
.menu-btn .ico { width: 28px; height: 28px; }

/* mega menu panel */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: min(760px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(11,79,74,.45); padding: 18px; display: none;
}
.nav-item.is-open > .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega a {
  display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.mega a:hover { background: var(--mist); }
.mega img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--mist); }
.mega .name { font-weight: 700; font-size: .93rem; line-height: 1.25; }
.mega .count { font-size: .8rem; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--lagoon); overflow: hidden; isolation: isolate; }
.hero-slides { position: relative; min-height: clamp(560px, 82vh, 760px); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active > img { transform: scale(1); }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8,58,54,.94) 0%, rgba(11,79,74,.78) 42%, rgba(11,79,74,.15) 78%);
}
.hero-copy { max-width: 640px; padding: 40px 0 150px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #d9efe9; max-width: 54ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: var(--gutter); bottom: 34px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--mint); }

/* the sourcing route – the signature element */
.route {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; pointer-events: none;
}
.route .wrap { position: relative; }
.route svg { display: block; width: min(720px, 100%); height: auto; overflow: visible; }
.route .lane { fill: none; stroke-width: 5; stroke-linecap: round; }
.route .node { fill: var(--lagoon); stroke: var(--mint); stroke-width: 3; }
.route .hub { fill: var(--mint); }
.route text { font: 700 13px var(--font-body); fill: #e8f7f2; letter-spacing: .02em; }
.route text.small { font-weight: 500; font-size: 11.5px; fill: #a9d8cc; }
.route .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .5s cubic-bezier(.6,.1,.2,1) forwards; }
.route .draw.d2 { animation-delay: .75s; }
.route .draw.d3 { animation-delay: 1.9s; animation-duration: 1.4s; }
.route .fade { opacity: 0; animation: fade .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- category tabs + tiles ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--paper); padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.tabs button {
  border: 0; background: none; padding: .6em 1.15em; border-radius: 999px; cursor: pointer;
  font: 700 .93rem var(--font-body); color: var(--ink-2);
}
.tabs button[aria-selected="true"] { background: var(--teal); color: #fff; }
.tab-panel[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile {
  position: relative; display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3.2;
  text-decoration: none; color: #fff; background: var(--lagoon);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,79,74,0) 40%, rgba(8,50,46,.88) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 18px 16px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.tile-name { font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.tile-count { font-size: .82rem; color: var(--mint-soft); white-space: nowrap; }
.tile:hover { color: #fff; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text { max-width: 62ch; }
.about-text p { color: var(--ink-2); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.1rem; }
.facts { display: flex; gap: 34px; flex-wrap: wrap; margin: 28px 0 30px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--teal); line-height: 1; }
.fact span { font-size: .9rem; color: var(--ink-2); }
.about-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media img { border-radius: var(--radius-l); width: 100%; height: 100%; object-fit: cover; }
.about-media img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.about-media img:not(:first-child) { aspect-ratio: 1; }

/* ---------- process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--mint)); border-radius: 3px; }
.steps li { position: relative; padding-right: 24px; counter-increment: step; }
.step-num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--teal); color: var(--teal); margin-bottom: 18px;
}
.step-num .ico { width: 24px; height: 24px; }
.step-num::after {
  content: counter(step); position: absolute; top: -6px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint); color: var(--lagoon); font: 800 .75rem/22px var(--font-body); text-align: center;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* ---------- real estate band ---------- */
.re-band { position: relative; background: var(--lagoon); color: #e3f4ef; overflow: hidden; }
.re-band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.re-band h2 { color: #fff; }
.re-band p { color: #c3e3da; max-width: 58ch; }
.re-band .focus { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.re-band .focus li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: #e3f4ef; }
.re-band .focus .ico { color: var(--mint); margin-top: 3px; }
.re-featured { display: grid; gap: 14px; }
.re-featured .prop-card { flex-direction: row; }
.re-featured .prop-card .media { width: 42%; aspect-ratio: auto; min-height: 150px; flex: none; }
.re-featured .prop-card .body { padding: 14px 16px; }
.re-featured .prop-card .title { font-size: 1rem; }
.re-featured .prop-card .facts { display: none; }
.re-visual { position: relative; aspect-ratio: 1; max-width: 380px; justify-self: end; width: 100%; }
.re-visual svg { width: 100%; height: 100%; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.videos video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; border-radius: var(--radius-m); background: var(--lagoon); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.quote { margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; }
.quote .ico { color: var(--mint); width: 34px; height: 34px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--ink); flex: 1; }
.quote .who { font-weight: 800; font-size: .95rem; }
.quote .org { font-size: .88rem; color: var(--ink-2); }
.scroll-hint { display: flex; gap: 8px; }
.scroll-hint button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal); cursor: pointer; display: grid; place-items: center; }
.scroll-hint button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 0; font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--teal); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .card { background: var(--mist); border-radius: var(--radius-l); padding: 26px; margin-top: 18px; }

/* ---------- partners ---------- */
.partners { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.partners img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- page banner (inner pages) ---------- */
.page-banner { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-banner .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-banner--plain .wrap { grid-template-columns: 1fr; }
.page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-banner .lead { color: var(--ink-2); max-width: 62ch; }
.page-banner .lead.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.page-banner img { border-radius: var(--radius-l); aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9db5b0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.more-toggle { background: none; border: 0; color: var(--teal-dk); font-weight: 700; padding: 0; cursor: pointer; font-size: .95rem; }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card-p { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, box-shadow .25s; }
.card-p:hover { border-color: #a9d6ca; box-shadow: var(--shadow-lift); color: var(--ink); }
.card-p .media { position: relative; aspect-ratio: 1; background: #f6faf9; display: grid; place-items: center; }
.card-p .media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s ease; }
.card-p:hover .media img { transform: scale(1.04); }
.card-p .chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.94); color: var(--teal-dk); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.card-p .chip .ico { width: 14px; height: 14px; }
.card-p .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-p .name { font-weight: 700; line-height: 1.35; }
.card-p .ref { font-size: .8rem; color: var(--ink-2); }
.card-p .go { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 700; color: var(--teal); display: inline-flex; gap: 6px; align-items: center; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; list-style: none; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.pager a:hover { border-color: var(--teal); color: var(--teal); }
.pager .is-active span { background: var(--teal); border-color: var(--teal); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); border: 2px dashed var(--line); border-radius: var(--radius-l); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.stage {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-l); overflow: hidden;
  background: #f6faf9; border: 1px solid var(--line); cursor: zoom-in; padding: 0;
}
.stage img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .15s ease-out; transform-origin: center; }
.stage.is-zooming img { transform: scale(2.2); }
.stage .zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(11,79,74,.86); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; pointer-events: none;
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 2px solid var(--line); background: #f6faf9; padding: 4px; cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button[aria-current="true"] { border-color: var(--teal); }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.product-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--mist); color: var(--teal-dk); font-size: .84rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; text-decoration: none; }
.product-desc { color: var(--ink); max-width: 62ch; }
.product-desc table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: .95rem; }
.product-desc th, .product-desc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.product-desc th { background: var(--mist); font-weight: 700; }
.product-desc tr:nth-child(even) td { background: #fafcfb; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.assurance { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.assurance li { display: flex; gap: 10px; }
.assurance .ico { color: var(--teal); margin-top: 3px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-m); background: var(--mist); }
.contact-card .ico { width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
.contact-card h3 { margin: 0 0 2px; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink-2); text-decoration: none; }
.contact-card a:hover { color: var(--teal); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-lift); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: 500 1rem var(--font-body); color: var(--ink); background: #fbfdfc; border: 1.5px solid var(--line);
  border-radius: 12px; padding: .8em .95em; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(72,212,170,.25); background: #fff; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }
.notice.ok, .alert-success { background: #e3f6ee; color: #11653f; padding: 14px 16px; border-radius: 12px; }
.notice.err, .alert-warning, .alert-danger { background: #fdecea; color: #922; padding: 14px 16px; border-radius: 12px; }
.alert-info { background: #e5f4f9; color: #15586b; padding: 12px 14px; border-radius: 12px; }
.alert-success p, .alert-warning p { margin: 0; }
.close { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--lagoon); color: #bfdcd4; padding: clamp(48px, 7vw, 80px) 0 0; font-size: .96rem; }
.site-footer a { color: #e3f4ef; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--mint); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact-line .ico { color: var(--mint); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.socials a:hover { background: var(--mint); color: var(--lagoon); border-color: var(--mint); }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .86rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .dev-credit { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .dev-credit:hover { color: #fff; }
.footer-bottom button { background: none; border: 0; color: #bfdcd4; cursor: pointer; font: inherit; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom button:hover { color: var(--mint); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45);
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { background: #178c46; color: #fff; }

/* ---------- login dialog ---------- */
.login-dialog { border: 0; padding: 0; border-radius: var(--radius-l); width: min(420px, 92vw); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.login-dialog::backdrop { background: rgba(8,40,37,.6); backdrop-filter: blur(3px); }
.login-dialog .head { background: var(--lagoon); color: #fff; padding: 26px 28px 22px; display: flex; gap: 14px; align-items: center; }
.login-dialog .head .er-mark { width: 38px; height: 44px; }
.login-dialog .head strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.login-dialog .head span { font-size: .85rem; color: #bfe3d9; }
.login-dialog form { padding: 24px 28px 28px; }
.login-dialog .x { position: absolute; right: 12px; top: 12px; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; }


/* =====================================================================
   Real estate division (Phase 3)
   ===================================================================== */
.re-hero { background: radial-gradient(120% 140% at 85% 10%, #13685f 0%, var(--lagoon) 55%, #083a36 100%); color: #d9efe9; overflow: hidden; }
.re-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.re-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.re-hero .lead { font-size: 1.15rem; color: #cfe9e2; max-width: 52ch; margin-bottom: 1.6em; }
.re-hero .division { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--mint); margin-bottom: 14px; }
.re-hero .division .er-mark { width: 22px; height: 26px; }
.re-hero-art svg { width: 100%; max-width: 440px; margin-left: auto; display: block; }
.crumbs--light, .crumbs--light a { color: #a9d8cc; }
.crumbs--light li + li::before { color: #5f9e93; }

.filters { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) auto; gap: 12px; align-items: end; background: var(--mist); padding: 16px; border-radius: var(--radius-l); margin-bottom: 30px; }
.filters .field { margin: 0; }
.filters label { font-size: .82rem; }
.filters input, .filters select { padding: .65em .8em; background: #fff; }
.filter-actions { display: flex; gap: 14px; align-items: center; padding-bottom: 2px; }

.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.prop-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: box-shadow .25s, border-color .2s; }
.prop-card:hover { border-color: #a9d6ca; box-shadow: var(--shadow-lift); color: var(--ink); }
.prop-card .media { position: relative; aspect-ratio: 4/3; background: var(--mist); overflow: hidden; }
.prop-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prop-card:hover .media img { transform: scale(1.04); }
.prop-card.status-sold .media img { filter: grayscale(.55) brightness(.92); }
.prop-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-card .kind { font-size: .82rem; color: var(--teal-dk); font-weight: 700; }
.prop-card .title { font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.prop-card .place { font-size: .9rem; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.prop-card .place .ico { color: var(--teal); margin-top: 3px; }
.prop-card .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-2); }
.prop-card .facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #9db5b0; margin-right: 14px; vertical-align: middle; }
.prop-card .price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--lagoon); }
.prop-card .price small { font-family: var(--font-body); font-size: .78rem; color: var(--ink-2); font-weight: 600; }

.badge { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.badge + .badge { left: auto; right: 14px; }
.badge-available { background: var(--mint); color: var(--lagoon); }
.badge-under_offer { background: #f3c55b; color: #4d3500; }
.badge-sold { background: var(--sold); color: #fff; }
.badge-featured { background: #fff; color: var(--teal-dk); }
.badge-inline { position: static; display: inline-block; margin-bottom: 10px; }

.re-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.re-about-head { position: sticky; top: calc(var(--header-h) + 24px); }
.re-point { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.re-point:first-child { padding-top: 0; }
.re-point:last-child { border-bottom: 0; }
.re-point p { color: var(--ink-2); margin: 0; max-width: 66ch; }
.re-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); }
.re-icon .ico { width: 24px; height: 24px; }
.focus-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.focus-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius-m); border: 1px solid var(--line); font-weight: 600; }
.focus-grid .ico { color: var(--teal); margin-top: 3px; }
.re-vision { background: var(--lagoon); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.re-vision h2 { color: var(--mint); font-size: 1.05rem; font-family: var(--font-body); font-weight: 800; }
.re-vision blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.55; max-width: 46ch; color: #eaf7f3; }

.choice { border: 0; padding: 0; margin: 0 0 16px; }
.choice legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.choice label { display: inline-flex; margin: 0 8px 8px 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { padding: .5em 1em; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; background: #fbfdfc; }
.choice input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.small-print { font-size: .82rem; margin: 10px 0 0; text-align: center; }
.enquiry-wrap { max-width: 760px; }

.prop-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .2em; }
.prop-head .place { color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.prop-head .place .ico { color: var(--teal); }
.prop-layout { grid-template-columns: 1.35fr .65fr; margin-top: 18px; }
.stage--photo { aspect-ratio: 16 / 10.5; }
.stage--photo img { object-fit: cover; padding: 0; }
.stage--empty { display: grid; place-items: center; cursor: default; }
.gallery--wide { position: static; }
.sold-ribbon { position: absolute; top: 26px; left: -48px; transform: rotate(-35deg); background: var(--sold); color: #fff; font-weight: 800; letter-spacing: .12em; padding: 8px 60px; font-size: .95rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.prop-body { margin-top: 28px; }
.prop-summary { font-size: 1.15rem; font-weight: 600; color: var(--ink); max-width: 62ch; }
.h-sm { font-family: var(--font-body); font-size: 1.15rem; font-weight: 800; margin-top: 28px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.feature-list li { display: flex; gap: 10px; }
.feature-list .ico { color: var(--teal); margin-top: 4px; }
.prop-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.price-box { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; background: #fff; box-shadow: var(--shadow-lift); }
.price-box .label { font-size: .85rem; font-weight: 700; color: var(--teal-dk); }
.price-box .price { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--lagoon); line-height: 1.3; margin: 4px 0; }
.facts-list { margin: 18px 0 20px; display: grid; gap: 0; }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.facts-list dt { color: var(--ink-2); }
.facts-list dd { margin: 0; font-weight: 700; text-align: right; }

@media (max-width: 1080px) { .filters { grid-template-columns: 1fr 1fr 1fr; } .filter-actions { grid-column: 1 / -1; } }
@media (max-width: 960px) {
  .re-hero .wrap, .re-about, .prop-layout { grid-template-columns: 1fr; }
  .re-hero-art { display: none; }
  .re-about-head, .prop-aside { position: static; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .prop-grid { grid-template-columns: 1fr; }
  .focus-grid, .feature-list { grid-template-columns: 1fr; }
  .re-point { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .site-header .brand-tag { display: none; }
}
@media (max-width: 1360px) {
  .main-nav .nav-link, .main-nav .nav-toggle { padding: .5em .45em; font-size: .88rem; }
  .nav-cta { margin-left: 4px; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  :root { --header-h: 66px; }
  .menu-btn { display: inline-flex; }
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 40px; overflow-y: auto; display: none; margin: 0; border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 6px 0 12px; }
  .mega-grid { grid-template-columns: 1fr; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  .brand .er-mark { width: 34px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .about-grid, .faq-grid, .re-band .wrap, .page-banner .wrap, .product, .contact-grid { grid-template-columns: 1fr; }
  .re-visual { display: none; }
  .faq-aside, .gallery { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .steps::before { display: none; }
  .page-banner img { max-height: 280px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .hide-sm { display: none; }
  .brand-tag { display: none; }
  .hero-copy { padding-bottom: 150px; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(8,58,54,.72) 0%, rgba(8,58,54,.86) 55%, rgba(8,50,46,.95) 100%); }
  .route svg { width: 100%; }
  .route text { font-size: 24px; }
  .route text.small { display: none; }
  .route .lane { stroke-width: 7; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; border-radius: 16px; scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
  .hero-dots { bottom: auto; top: 18px; }
  .field-row, .re-band .focus { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-p .body { padding: 10px 12px 12px; }
  .card-p .name { font-size: .93rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-body { flex-direction: column; align-items: flex-start; padding: 12px; gap: 2px; }
  .tile-name { font-size: .95rem; }
  .thumbs button { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .route .draw { stroke-dashoffset: 0; }
  .route .fade { opacity: 1; }
}

/* Phase 6 QA: let grid columns shrink; wide spec tables scroll inside their box */
.product > *, .about-grid > *, .faq-grid > *, .contact-grid > *, .re-about > *, .page-banner .wrap > * { min-width: 0; }
.product-desc { overflow-wrap: anywhere; }
.product-desc table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-desc img { max-width: 100%; height: auto; }
.crumbs li { overflow-wrap: anywhere; }
.product-desc th, .product-desc td { overflow-wrap: normal; word-break: normal; min-width: 6.5em; }
