/* ==========================================================================
   Rainbow Beach Estate – homepage rebuild
   ========================================================================== */

:root {
  --primary: #5b7f95;
  --primary-dark: #4a6b80;
  --topbar: #cce3e7;
  --text: #222;
  --muted: #5b7f95;
  --white: #fff;
  --dark: #222;
  --topbar-h: 39px;
  --container: 1110px;
  --narrow: 1110px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, opacity .2s; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: var(--narrow); }
.text-right { text-align: right; }

/* Background image sections: the path is passed with --bg, resolved relative to this stylesheet.
   A colour fallback keeps the section readable when the image file is missing. */
.bg-image {
  position: relative;
  background-color: #3d5a6c;
  background-image: linear-gradient(rgba(50,50,50,0), rgba(0,0,0,.5)), var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Announcement bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1001;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--topbar);
  padding: 0 16px;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
}
.topbar a { color: var(--primary); overflow: hidden; text-overflow: ellipsis; }
.topbar a:hover { color: var(--primary-dark); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 1000;
  transition: background-color .3s, box-shadow .3s;
}
.header__inner {
  max-width: 1340px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  transition: height .3s;
}
.header__logo img { height: 58px; width: auto; transition: height .3s; }

.header.is-scrolled { background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.header.is-scrolled .nav > ul > li > a { color: var(--primary); }
.header.is-scrolled .header__inner { height: 70px; }
.header.is-scrolled .header__logo img { height: 40px; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 6px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 10px 20px;
  color: var(--white);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.nav > ul > li > a:hover { opacity: .75; }
.nav .fa-angle-down { font-size: 12px; margin-left: 2px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid #eee;
}
.dropdown a:hover { background: var(--primary); color: var(--white); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); }

/* ---------- Click-to-call (inline voice embed) ----------
   Sits in the header after the nav. Outlined pill: white over the hero,
   primary blue once the header turns white on scroll. */
.nav { margin-left: auto; }
.nav-actions { display: flex; align-items: center; flex: none; margin-left: 14px; }

#lexisgrid-voice .lgv-wrap { position: relative; }
#lexisgrid-voice .lgv-btn {
  display: flex;
  align-items: center;
  gap: .6em;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s;
}
#lexisgrid-voice .lgv-btn:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--white);
  color: var(--primary);
}
#lexisgrid-voice .lgv-btn .lgv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--topbar);
  flex: none;
  animation: rbe-pulse-light 1.8s infinite;
}
@keyframes rbe-pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(204, 227, 231, .8); }
  70%  { box-shadow: 0 0 0 8px rgba(204, 227, 231, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 227, 231, 0); }
}
@keyframes rbe-pulse-dark {
  0%   { box-shadow: 0 0 0 0 rgba(91, 127, 149, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(91, 127, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 127, 149, 0); }
}
/* status sits out of flow so a state change cannot resize the header */
#lexisgrid-voice .lgv-status {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: var(--white);
  opacity: .85;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* white header (scrolled on desktop, always on mobile): blue outline */
.header.is-scrolled #lexisgrid-voice .lgv-btn { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.header.is-scrolled #lexisgrid-voice .lgv-btn:hover { background: var(--primary); color: var(--white); }
.header.is-scrolled #lexisgrid-voice .lgv-btn .lgv-dot { background: var(--primary); animation-name: rbe-pulse-dark; }
.header.is-scrolled #lexisgrid-voice .lgv-btn:hover .lgv-dot { background: var(--white); }
.header.is-scrolled #lexisgrid-voice .lgv-status { color: var(--primary); text-shadow: none; }

/* call states win over both header colours */
#lexisgrid-voice .lgv-btn.lgv-connecting,
.header.is-scrolled #lexisgrid-voice .lgv-btn.lgv-connecting { background: rgba(91, 127, 149, .18); }
/* in-call stays red: "end call" must not read as a normal brand button */
#lexisgrid-voice .lgv-btn.lgv-active,
.header.is-scrolled #lexisgrid-voice .lgv-btn.lgv-active {
  background: #dc2626;
  box-shadow: inset 0 0 0 1.5px #dc2626;
  color: #fff;
}
#lexisgrid-voice .lgv-btn.lgv-active .lgv-dot,
.header.is-scrolled #lexisgrid-voice .lgv-btn.lgv-active .lgv-dot { background: #fff; animation: none; }
#lexisgrid-voice .lgv-btn.lgv-active .lgv-square { background: #fff; width: 7px; height: 7px; }

/* narrower desktops: tighten the nav so the call button fits on one line */
@media (min-width: 992px) and (max-width: 1399px) {
  .nav > ul { gap: 0; }
  .nav > ul > li > a { padding: 10px 12px; font-size: 15px; letter-spacing: .05em; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .nav > ul > li > a { padding: 10px 8px; font-size: 13px; letter-spacing: .02em; }
  #lexisgrid-voice .lgv-btn { height: 40px; padding: 0 16px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(calc(100vh - var(--topbar-h)), 1130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--topbar-h) + 100px) 0 80px;
  background-image: linear-gradient(rgba(50,50,50,0), rgba(0,0,0,.8)), var(--bg);
  color: var(--white);
  text-align: center;
}
.hero__logo { width: 360px; max-width: 70%; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.hero p { font-size: clamp(15px, 1.2vw, 20px); margin-bottom: 20px; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 76px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.hero__scroll svg { width: 38px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero__scroll:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Intro ---------- */
.intro { padding: 180px 0 80px; }
.intro .container { max-width: 1140px; }
.intro__title {
  color: var(--primary);
  font-size: clamp(24px, 2.2vw, 42px);
  max-width: 1080px;
  margin-bottom: 80px;
}
.intro p { color: var(--muted); font-size: 13px; line-height: 2; }

.arrow-link { color: var(--primary); }
.arrow-link:hover { color: var(--text); }
.arrow-link--lg { font-size: 20px; }
.arrow-link--blue { color: #2b6ea6; }

/* ---------- Banners ---------- */
.banner {
  min-height: 666px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.banner h2 { font-size: clamp(24px, 2.4vw, 40px); }
.banner h2 a:hover { opacity: .8; }

.banner--cta { min-height: 770px; align-items: center; }
.banner--cta h2 { margin-bottom: 26px; }
.btn-outline {
  display: inline-block;
  padding: 20px 26px;
  border: 2px solid var(--white);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 16px;
}
.btn-outline:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Location ---------- */
.location { background: var(--primary); color: var(--white); padding: 110px 0 0; }
.location .container { max-width: 1140px; }
.location h2 { font-size: clamp(24px, 2.4vw, 40px); margin-bottom: 14px; }
.location p { line-height: 1.95; margin-bottom: 0; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 120px 16px 0;
}
.tile {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.2)), var(--bg);
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform .6s;
}
.tile:hover::before { transform: scale(1.06); }
.tile span {
  position: relative;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.tile:first-child span { color: var(--white); }

/* ---------- Split (text + image) ---------- */
.split { position: relative; padding: 100px 0; overflow: hidden; }
.split__inner { display: flex; align-items: center; gap: 30px; }
.split__text, .split__media { flex: 1; }
.split__media img { width: 100%; }
.split h2 { color: var(--primary); font-size: clamp(26px, 2.4vw, 42px); margin-bottom: 10px; }
.split .muted { color: var(--muted); }
.split p { font-size: 14px; }

.split--team {
  padding: 100px 0 120px;
  background: url('../img/team-squiggle.png') no-repeat right bottom / contain;
}
.split--team .split__inner { align-items: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 3fr 5fr 4fr;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer__logo { display: flex; justify-content: center; padding-top: 30px; }
.footer__logo img { width: 200px; }
.footer h3 {
  display: flex;
  align-items: flex-end;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 20px;
}
.footer h3::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(0,0,0,.5); margin-bottom: 4px; }
.footer ul { list-style: none; margin: 0; padding: 0; }

.link-list li { border-bottom: 1px solid rgba(0,0,0,.25); }
.link-list li.sub { border-bottom: 0; }
.link-list li.sub a { position: relative; padding-left: 22px; }
.link-list li.sub a::before { content: "-"; position: absolute; left: 0; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  text-transform: uppercase;
  font-size: 13px;
}
.link-list a:hover { opacity: .7; }

.contact-list li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.contact-list i { width: 14px; text-align: center; }
.contact-list a:hover { opacity: .7; }

.copyright { background: var(--dark); color: var(--white); padding: 22px 0; }
.copyright p { margin: 0; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.text-center { text-align: center; }

/* Page banner with centred title */
.page-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--topbar-h) + 100px) 0 60px;
  text-align: center;
  color: var(--white);
  background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.35)), var(--bg);
}
.page-hero--tall { min-height: 740px; }
.page-hero h1 { font-size: clamp(28px, 2.6vw, 48px); max-width: 1000px; margin: 0 auto; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.page-hero__sub { margin: 8px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* Generic content block */
.content { padding: 90px 0; }
.content .container { max-width: 1140px; }
.content__title { color: var(--primary); font-size: clamp(24px, 2.2vw, 40px); margin-bottom: 6px; }
.content__title--xl { font-size: clamp(26px, 2.5vw, 46px); margin-bottom: 18px; }
.content__lead { color: var(--primary); font-size: clamp(17px, 1.3vw, 24px); line-height: 1.3; margin-bottom: 40px; font-weight: 400; }
.content__lead--bold { font-weight: 700; margin: 10px 0 40px; }
.content__small { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 1em; }
.content--center { text-align: center; }
.content--tight { padding: 70px 0 0; }
.content--center .btn-solid { margin-top: 60px; }
.content--tight .btn-solid { margin-top: 0; }

.section--blue { background: var(--primary); color: var(--white); }
.section--blue .content__title,
.section--blue .content__lead,
.section--blue h2 { color: var(--white); }

/* Buttons */
.btn-solid {
  display: inline-block;
  padding: 24px 26px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-solid:hover { background: var(--primary-dark); }
.btn-solid--sm { padding: 14px 16px; font-size: 13px; }

/* Plans and placeholder figures */
.plan-figure { margin: 50px 0 0; }
.plan-figure img { width: 100%; }
.content--tight .plan-figure { margin-top: 0; }
.figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, #f3f6f8, #f3f6f8 12px, #eaf0f3 12px, #eaf0f3 24px);
  border: 1px dashed #b9c9d3;
  color: var(--primary);
  font-size: 15px;
}
.figure-placeholder i { font-size: 44px; }
.figure-placeholder--masterplan { aspect-ratio: 1110 / 780; }

/* Lot table */
.table-wrap { margin: 80px -30px 0; overflow-x: auto; }
.lot-table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--text); }
.lot-table th { text-align: left; font-weight: 700; text-transform: uppercase; padding: 14px 16px; vertical-align: bottom; background: #f7f7f7; }
.lot-table td { padding: 10px 16px; vertical-align: top; }
.lot-table tbody tr:nth-child(odd) { background: #f1f1f1; }
.lot-table th + th, .lot-table td + td { border-left: 1px solid #fff; }

/* Centred CTA text */
.cta-block { padding: 40px 0 90px; text-align: center; }
.cta-block h2 { color: var(--primary); font-size: clamp(24px, 2vw, 36px); max-width: 1140px; margin: 0 auto 24px; }

/* Gallery */
.gallery-section { padding: 30px 0 110px; }
.section-title--caps { color: var(--primary); text-align: center; text-transform: uppercase; font-size: clamp(24px, 2vw, 36px); margin-bottom: 80px; }
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}
.gallery a { flex: 0 0 calc((100% - 60px) / 3); max-width: 350px; display: block; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 1px 6px rgba(0,0,0,.12); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* Steps (registered blocks) */
.steps { font-size: 12px; line-height: 1.9; }
.steps h3 { font-size: 18px; font-weight: 400; margin: 40px 0 10px; }
.steps ul { padding-left: 16px; margin: 0 0 1em; }
.steps__note { font-style: italic; margin-top: 40px; }

.listing { margin: 60px 0 80px; font-size: 12px; }
.listing h3 { color: var(--primary); font-size: 26px; margin-bottom: 8px; }
.listing__tag { font-weight: 700; color: var(--text); margin-bottom: 10px; }
.listing ul { color: var(--muted); padding-left: 16px; }
.listing__price { color: var(--primary); font-weight: 700; }

/* Feature rows (text + image/slider) */
.feature { padding: 30px 0; }
.feature--grey { background: #f5f5f5; }
.feature .split__inner { gap: 60px; align-items: flex-start; max-width: 1140px; }
.feature .split__text { padding: 40px 0 20px 30px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.feature h2 { color: var(--primary); font-size: clamp(20px, 1.6vw, 28px); margin-bottom: 20px; }
.feature .feature__title--lg { font-size: clamp(26px, 2.2vw, 40px); margin-bottom: 8px; }
.feature hr { border: 0; border-top: 1px solid #e3e3e3; margin: 0 0 30px; }
.feature ul { padding-left: 16px; margin: 0 0 1em; }
.feature.section--blue { padding: 50px 0; }
.feature.section--blue .split__text { color: var(--white); padding-top: 0; }
.feature.section--blue h2 { color: var(--white); }
.feature .split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.arrow-link--dark { color: var(--text); font-weight: 700; }

.slider { position: relative; overflow: hidden; }
.slider img { display: none; }
.slider img.is-active { display: block; }
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.slider__btn--prev { left: 0; }
.slider__btn--next { right: 0; }

/* Full-width image strip */
.strip { height: 440px; background-image: var(--bg); }

/* Team */
.team-member { padding: 100px 0 40px; }
.team-member:last-child { padding-bottom: 110px; }
.team-member .split__inner { gap: 60px; align-items: center; max-width: 1140px; }
.team-member .split__text { font-size: 12px; line-height: 1.9; color: var(--muted); padding-left: 30px; }
.team-member h2 { color: var(--primary); font-size: clamp(24px, 1.8vw, 32px); margin-bottom: 10px; }
.team-member__contact { color: #9fb7c5; margin: 0; }
.team-member__contact + p:not(.team-member__contact) { margin-top: 16px; }
.team-member .split__media { display: flex; justify-content: center; }
.team-member__photo { width: 420px; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.team-member__photo--right { object-position: 82% center; }
.team-member__photo--left { object-position: 22% center; }

/* Enquire */
.enquire { padding: 0 0 90px; }
.enquire__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; max-width: 1170px; }
.enquire__form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.enquire label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.enquire label span { color: #c0392b; }
.enquire input, .enquire textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  font: inherit;
  font-size: 12px;
  color: var(--text);
}
.enquire input:focus, .enquire textarea:focus { outline: none; border-color: var(--primary); }
.enquire textarea { resize: vertical; min-height: 120px; }
.enquire__status { font-size: 12px; color: var(--primary); margin-top: 10px; }
.enquire__contact h3 { display: flex; align-items: flex-end; color: var(--primary); font-size: 15px; font-weight: 400; margin-bottom: 20px; }
.enquire__contact h3::after { content: ""; flex: 1; border-bottom: 1px solid #b9c9d3; margin: 0 0 4px 6px; }
.contact-list--dark li { color: var(--text); font-size: 12px; }
.contact-list--dark i { color: var(--primary); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  left: 16px; bottom: 16px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 3px;
  background: #111;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  z-index: 999;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(-20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  body { font-size: 15px; }
  .container { padding: 0 30px; }

  /* Top bar and header scroll with the page on mobile */
  .topbar {
    position: static;
    height: auto;
    padding: 6px 30px;
    font-size: 19px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
  .topbar a { overflow: visible; }

  .header, .header.is-scrolled { position: relative; top: 0; background: var(--white); box-shadow: none; }
  .header__inner, .header.is-scrolled .header__inner { height: 100px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 58px; }

  .nav-toggle { display: flex; border: 0; padding: 8px 0 8px 8px; }
  .header__logo { order: 1; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 14px; }
  /* the call button stays on mobile: it is the point of the demo */
  #lexisgrid-voice .lgv-btn { height: 38px; padding: 0 14px; font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
  #lexisgrid-voice .lgv-btn .lgv-dot { background: var(--primary); animation-name: rbe-pulse-dark; }
  #lexisgrid-voice .lgv-status { color: var(--primary); text-shadow: none; }
  .nav-toggle span { background: var(--primary); height: 2px; width: 20px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 5;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 80vh; overflow-y: auto; }
  .nav > ul { flex-direction: column; gap: 0; padding: 0 30px 16px; }
  .nav > ul > li > a { justify-content: space-between; color: var(--primary); font-size: 15px; padding: 13px 0; border-bottom: 1px solid #eee; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: var(--text); padding-left: 16px; font-size: 14px; }

  .hero { min-height: 756px; padding: 60px 0; }
  .hero__logo { width: 150px; margin-bottom: 30px; }
  .hero h1 { font-size: 28px; line-height: 1.22; margin-bottom: 12px; }
  .hero p { font-size: 20px; line-height: 1.25; margin-bottom: 24px; }
  .hero__scroll { width: 88px; height: 76px; background: rgba(0,0,0,.1); }

  .intro { padding: 42px 0 40px; }
  .intro__title { font-size: 28px; margin-bottom: 42px; }
  .intro p { font-size: 15px; line-height: 1.7; }

  .banner { min-height: 412px; align-items: center; padding: 60px 0; }
  .banner h2 { font-size: 28px; }
  .banner--cta { min-height: 480px; }
  .btn-outline { font-size: 18px; padding: 24px 26px; }

  .location { padding-top: 70px; }
  .location h2 { font-size: 28px; }
  .location p { font-size: 15px; line-height: 1.7; }
  .tiles { grid-template-columns: repeat(2, 1fr); padding: 80px 15px 0; }
  .tile { min-height: 248px; }
  .tile span { font-size: 24px; }

  .split { padding: 70px 0 60px; }
  .split__inner { flex-direction: column; align-items: stretch; gap: 50px; }
  .split__text, .split__media { width: 100%; }
  .split h2 { font-size: 28px; }
  .split p { font-size: 15px; line-height: 1.7; }
  .split--team { padding-bottom: 60px; background-position: left 60%; background-size: 220% auto; }
  .split--team .split__inner { gap: 0; }
  .split--team .text-right { text-align: left; margin: 0; }

  .footer .container { padding: 0 15px; }
  .footer__grid { grid-template-columns: 1fr; gap: 50px; padding-top: 80px; padding-bottom: 80px; }
  .footer__logo { justify-content: flex-start; padding-top: 0; }
  .footer h3 { font-size: 15px; margin-bottom: 30px; }
  .link-list a { font-size: 15px; padding: 7px 0; }
  .contact-list li { font-size: 15px; margin-bottom: 6px; }
  .copyright { padding: 26px 0; }
  .copyright p { font-size: 15px; }
  /* Inner pages */
  .page-hero, .page-hero--tall { min-height: 356px; padding: 60px 0; }
  .page-hero h1 { font-size: 28px; }
  .content { padding: 60px 0; }
  .content__title, .content__title--xl { font-size: 28px; }
  .content__lead { font-size: 20px; }
  .content__small, .steps, .listing, .feature .split__text, .team-member .split__text, .enquire label, .contact-list--dark li { font-size: 15px; }
  .table-wrap { margin: 40px -30px 0; }
  .lot-table { font-size: 15px; }
  .lot-table th, .lot-table td { padding: 8px; }
  .cta-block h2, .section-title--caps { font-size: 28px; }
  .section-title--caps { margin-bottom: 40px; }
  .gallery { gap: 16px; }
  .gallery a { flex-basis: 100%; max-width: none; }
  .feature { padding: 0; }
  .feature .split__inner { gap: 20px; padding-bottom: 50px; }
  .feature .split__text { padding: 50px 0 0; }
  .feature h2 { font-size: 28px; }
  .strip { height: 220px; }
  .team-member { padding: 60px 0 0; }
  .team-member:last-child { padding-bottom: 60px; }
  .team-member .split__text { padding-left: 0; }
  .enquire__grid, .enquire__form { grid-template-columns: 1fr; gap: 20px; }
  .enquire input, .enquire textarea { font-size: 16px; }
}


@media (max-width: 575px) {
  #lexisgrid-voice .lgv-btn { height: 34px; padding: 0 12px; font-size: 11px; letter-spacing: .04em; }
  #lexisgrid-voice .lgv-status { font-size: 10px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 50px; }
  .tiles { grid-template-columns: 1fr; }
  .contact-list li { word-break: break-word; }
}
