/*
Theme Name: R5 Homes Custom
Theme URI: https://r5homes.com/
Description: R5 Homes Custom Theme
Author: Antigravity
Author URI: https://r5homes.com/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: r5-homes-custom
*/

:root {
  --paper: #EEF2FB;
  --paper-2: #E0E7F5;
  --ink: #121A30;
  --ink-soft: #48506A;
  --forest: #16213F;
  --forest-2: #22356A;
  --clay: #2747D6;
  --clay-deep: #1C34A8;
  --accent-lite: #7E97FF;
  --sage: #8C9AC4;
  --highligter: #FFFF00;
  --line: rgba(18, 26, 48, .14);
  --shadow: 0 18px 50px -18px rgba(22, 33, 63, .45);
  --r: 18px;
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'EB Garamond', serif;
}

/* Global Reset */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.display-text {
  font-family: var(--font-heading);
  line-height: 1;
}

/* ---------- Base & Components ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  display: block;
}

a {
  text-decoration: none;
  color: var(--clay);
}

a:hover {
  color: var(--clay-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clay-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(39, 71, 214, .5);
}

.btn-light {
  background: var(--paper);
  color: var(--forest);
}

.btn-light:hover {
  background: #fff;
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-top {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.header-top-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-branding {
  flex: 1;
}

.site-branding img.custom-logo {
  max-height: 45px;
  width: auto;
  display: block;
}

.header-tagline {
  flex: 2;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

.header-contact .phone {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--ink);
  transition: color 0.2s;
}

.header-contact .phone:hover {
  color: var(--clay);
}

.header-contact .phone i {
  color: var(--clay);
}

/* Header Bottom / Navigation */
.header-bottom {
  background: var(--forest);
}

.header-bottom .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 16px 22px;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item>a:not([href*="#"]),
.main-navigation li.current-menu-ancestor>a:not([href*="#"]),
.main-navigation li.current-page-ancestor>a:not([href*="#"]) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.main-navigation .menu-item-has-children>a::after {
  content: '\f0d7';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.8em;
  opacity: 0.8;
}

/* Dropdown */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--forest);
  min-width: 240px;
  flex-direction: column;
  z-index: 100;
  box-shadow: var(--shadow);
}

.main-navigation li:hover>ul {
  display: flex;
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  padding: 14px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  width: 100%;
}

.dropdown-toggle {
  display: none;
}

.main-navigation ul ul .menu-item-has-children>a::after {
  content: '\f0da';
  /* Right arrow for sub-sub menus */
  float: right;
  margin-top: 2px;
}

.main-navigation ul ul ul {
  top: 0;
  left: 100%;
}

/* Mobile Toggle & Contact Info */
.mobile-contact-info {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 14px 0;
  width: 100%;
  text-align: right;
}

@media (max-width: 880px) {
  .header-tagline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu-wrapper {
    display: none;
    flex-direction: column;
    background: var(--forest);
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .mobile-menu-wrapper.show {
    display: flex;
  }

  .main-navigation ul#primary-menu {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .main-navigation ul ul {
    position: static;
    display: none !important;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    min-width: 100%;
  }

  .main-navigation ul ul.toggled {
    display: block !important;
  }

  .main-navigation ul ul a {
    padding-left: 44px;
  }

  .main-navigation .menu-item-has-children>a::after {
    display: none;
    /* Hide default CSS arrow */
  }

  .dropdown-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    color: #fff;
    padding: 16px 22px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
  }

  .dropdown-toggle.toggled {
    transform: rotate(180deg);
  }

  .mobile-contact-info {
    display: block;
    padding: 24px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-contact-info a {
    color: #fff !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 0 !important;
    margin-bottom: 24px;
    font-size: 1.05rem;
  }

  .mobile-contact-info .mobile-address {
    margin-bottom: 24px;
  }

  .mobile-contact-info strong {
    font-weight: 600;
  }
}

/* ---------- Contact & Footer ---------- */
.contact {
  background: var(--forest);
  color: var(--paper);
  padding: 80px 0;
}

.contact .eyebrow {
  color: var(--accent-lite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 14ch;
  margin: 10px 0;
}

.contact .lead {
  color: rgba(238, 242, 251, .78);
  font-size: 1.1rem;
  margin: 18px 0 26px;
  max-width: 40ch;
}

.quick {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.quick .btn {
  padding: 14px 22px;
}

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form p.fp {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* ---------- Internal Pages ---------- */
.page-hero {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.page-hero .page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 2;
  color: #fff;
}

.page-breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

.page-breadcrumbs a {
  color: var(--clay);
  text-decoration: none;
  font-weight: 500;
}

.page-breadcrumbs a:hover {
  text-decoration: underline;
}

.boxed-content-area {
  padding-top: 60px;
  padding-bottom: 80px;
  line-height: 1.7;
  color: var(--ink);
}

.boxed-content-area h1,
.boxed-content-area h2,
.boxed-content-area h3,
.boxed-content-area h4 {
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 600;
}

.boxed-content-area h1:first-child,
.boxed-content-area h2:first-child,
.boxed-content-area h3:first-child {
  margin-top: 0;
}

.boxed-content-area p,
.boxed-content-area ul,
.boxed-content-area ol {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

.boxed-content-area li {
  margin-bottom: 0.5em;
}

@media(max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

.contact-heading {
  color: var(--paper);
}

.placeholder-box {
  background: rgba(0, 0, 0, 0.03);
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.placeholder-text {
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
}

.form-alt {
  margin-top: 20px;
  text-align: center;
}

.form-alt a {
  color: var(--clay);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  background: var(--ink);
  color: rgba(238, 242, 251, .7);
  padding: 50px 0 30px;
  font-size: .9rem;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(238, 242, 251, .14);
}

.foot-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--paper);
  font-weight: 700;
}

.foot-logo a {
  color: var(--paper);
  text-decoration: none;
}

.foot-logo img {
  max-width: 160px;
  height: auto;
  display: block;
}

.foot-col h5 {
  color: var(--paper);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.foot-col a {
  display: block;
  padding: 4px 0;
  color: rgba(238, 242, 251, .7);
  transition: color .2s;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--clay);
}

.foot-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.foot-bottom {
  padding-top: 22px;
  font-size: .8rem;
  opacity: .6;
}

.foot-logo-text {
  color: #fff;
  margin-bottom: 0;
}

.foot-desc {
  max-width: 40ch;
  margin-top: 16px;
  line-height: 1.6;
}

.foot-address {
  margin-top: 20px;
  font-size: 0.9em;
  opacity: 0.8;
}

.foot-address a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Floor Plans ---------- */
.plans {
  background: var(--paper-2);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan .ph {
  height: 150px;
  background: linear-gradient(135deg, var(--sage), var(--forest-2));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
  cursor: pointer;
}

.plan .ph .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.plan .ph .photo[src=""],
.plan .ph .photo:not([src]) {
  display: none;
}

.plan .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(18, 26, 48, .65), rgba(18, 26, 48, 0) 55%);
  pointer-events: none;
}

.plan .ph .name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1;
  pointer-events: none;
}

.plan .ph .sqft {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(18, 26, 48, .6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
  pointer-events: none;
}

.plan .ph::before {
  content: "View floor plan \2192";
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  background: var(--clay);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.plan:hover .ph::before {
  opacity: 1;
  transform: none;
}

.plan .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan .tag {
  font-size: .86rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.4;
}

.plan .stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.plan .stats span {
  font-size: .82rem;
  color: var(--ink-soft);
}

.plan .stats b {
  color: var(--ink);
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.plan .adu {
  font-size: .8rem;
  color: var(--forest-2);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.45;
}

.plan .pricing {
  margin-top: auto;
}

.plan .pr {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--line);
}

.plan .pr.net {
  border: none;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 2px solid var(--forest);
  align-items: baseline;
}

.plan .pr .v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan .pr.net .v {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--clay);
}

.plan .pr.net span:first-child {
  font-weight: 700;
}

.plan .pricing.none {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 2px solid var(--line);
}

.plan .pricing.none .pop {
  font-size: .84rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.plan .pricing.none .getp {
  font-size: .86rem;
  color: var(--clay);
  font-weight: 700;
}

.plan .pricing.none .getp:hover {
  color: var(--clay-deep);
}

@media(max-width:980px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Single Floorplan Template ---------- */
.sfp-hero {
  position: relative;
  padding: 100px 0 80px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.sfp-hero .page-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.sfp-subtitle {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.sfp-meta-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.sfp-meta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sfp-breadcrumbs {
  font-size: .86rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.sfp-breadcrumbs a {
  color: var(--clay);
  transition: color .2s;
}

.sfp-breadcrumbs a:hover {
  color: var(--clay-deep);
}

.sfp-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.sfp-stat {
  font-size: .95rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sfp-stat b {
  color: var(--ink);
  font-size: 1.1rem;
}

.sfp-content-split {
  padding: 80px 0;
  background: var(--paper);
}

.sfp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.sfp-text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--ink);
}

.sfp-post-content {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.sfp-post-content p {
  margin-bottom: 16px;
}

.sfp-more-details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 30px;
  background: var(--paper-2);
}

.sfp-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.sfp-adu-features {
  padding: 80px 0;
  background: var(--paper-2);
}

.sfp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.sfp-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}

.sfp-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.sfp-feature i {
  font-size: 1.2rem;
}

.sfp-explorer {
  padding: 80px 0;
  background: var(--paper);
}

.sfp-explorer-box {
  background: var(--forest);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sfp-explorer-header {
  padding: 24px;
  background: var(--ink);
}

.sfp-explorer-body {
  padding: 30px;
  background: #fff;
}

.sfp-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.sfp-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .2s;
}

.sfp-tab:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.sfp-tab.active {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

.sfp-tab-content-wrapper {
  display: flex;
  justify-content: center;
}

.sfp-tab-pane {
  display: none;
  width: 100%;
}

.sfp-tab-pane.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.sfp-tab-pane img {
  max-width: 100%;
  width: 480px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.sfp-tab-pane iframe {
  width: 100%;
  height: 540px;
  border: none;
  border-radius: 12px;
}

.sfp-back-link {
  font-weight: 700;
  color: var(--clay);
  font-size: 1.1rem;
}

.sfp-back-link:hover {
  color: var(--clay-deep);
  text-decoration: underline;
}

.sfp-cta {
  background: var(--forest);
  color: #fff;
  padding: 80px 0;
}

.sfp-cta h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 24px;
}

@media(max-width:880px) {
  .sfp-grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Pagination (Blog) ---------- */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  font-size: .95rem;
}

.pagination .page-numbers:hover {
  background: var(--clay);
  color: #fff;
}

.pagination .page-numbers.current {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 4px 12px rgba(39, 71, 214, 0.3);
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
  width: auto;
  border-radius: 999px;
  padding: 0 20px;
}

/* ---------- Communities Global ---------- */
.comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.comm {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}

.comm:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.comm .cph {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, var(--sage), var(--forest-2));
  overflow: hidden;
}

.comm .cph .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.comm .cph .photo[src=""],
.comm .cph .photo:not([src]) {
  display: none;
}

.comm .cph .loc {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(18, 26, 48, .6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.comm .cbody {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.comm h3 {
  font-size: 1.55rem;
  margin-bottom: 9px;
}

.comm p {
  color: var(--ink-soft);
  font-size: .96rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.comm .mapit {
  margin-top: auto;
  align-self: flex-start;
  font-size: .9rem;
}

.comm-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comm-actions .btn {
  font-size: .88rem;
}

@media(max-width:760px) {
  .comm-grid {
    grid-template-columns: 1fr;
  }
}

/* --- COMPONENT & UTILITY REFACTORING --- */

.page-breadcrumbs-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.boxed-content-area {
  max-width: 900px;
  margin: 0 auto;
}

.post-meta-date {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cbody-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.post-navigation-links {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.sfp-tab-desc {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.section-head-desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cph-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sage), var(--forest-2));
}

.foot-map-wrap {
  margin-top: 20px;
  max-width: 400px;
}

.foot-map-wrap iframe {
  border: 0;
  border-radius: 8px;
}

.social-icon {
  width: 20px;
  text-align: center;
}

.blog-loop-wrap {
  padding: 80px 28px;
}

.pagination-wrap {
  margin-top: 60px;
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.sfp-more-details summary {
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sfp-explorer-header h3 {
  color: #fff;
  margin: 0;
}

.mt-40 {
  margin-top: 40px;
}

.mb-60 {
  margin-bottom: 60px;
}

.pt-100 {
  padding-top: 100px !important;
}

.pb-100 {
  padding-bottom: 100px !important;
}

.mb-50 {
  margin-bottom: 50px !important;
}

.mb-80 {
  margin-bottom: 80px !important;
}

.boxed-800 {
  max-width: 800px;
  margin: 0 auto;
}

.comm-grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

.bg-gradient-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.7), rgba(22, 33, 63, 0.7));
}

.features-section {
  padding: 60px 28px 20px;
  text-align: center;
}

.features-title {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-bottom: 30px;
  font-size: 2.4rem;
}

.features-list-wrap {
  display: inline-block;
  text-align: left;
  margin-bottom: 40px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
}

.text-clay {
  color: var(--clay);
}

.w-30 {
  width: 30%;
}

.trust-strip-home {
  justify-content: center;
  margin-top: 20px !important;
  margin-bottom: 24px !important;
}

.mr-10 {
  margin-right: 10px;
}

.justify-center {
  justify-content: center;
}

.plans-section {
  padding: 80px 0;
  background: var(--paper-2);
  margin-top: 60px;
}

.custom-logo {
  max-width: 200px;
}

.bg-blog-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.7), rgba(22, 33, 63, 0.7)), url('https://r5homes.com/wp-content/uploads/2025/08/adu-insights.jpg');
}

.bg-adu-news-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.7), rgba(22, 33, 63, 0.7)), url('https://r5homes.com/wp-content/uploads/2025/09/gitl-on-phone.jpeg');
}

.bg-case-study-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.7), rgba(22, 33, 63, 0.7)), url('https://r5homes.com/wp-content/uploads/2025/09/couple-with-boxes.jpeg');
  background-position: bottom;
}

.bg-floorplan-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.7), rgba(22, 33, 63, 0.7)), url('https://r5homes.com/wp-content/uploads/2025/08/couple-floorplans.jpg');
  background-position: center;
}

.bg-home-hero {
  background-image: linear-gradient(rgba(22, 33, 63, 0.5), rgba(22, 33, 63, 0.5)), url('https://r5homes.com/wp-content/uploads/2026/06/home-sunset-3.webp');
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   HOMEPAGE & MODAL STYLES CONSOLIDATED
   ========================================================================== */
/* Scoped variables for the homepage */
.r5-custom-homepage {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain pattern only on the homepage */
.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reset margin/padding/box-sizing only within the homepage sections */


.r5-custom-homepage html {
  scroll-behavior: smooth;
}

.r5-custom-homepage h1,
.r5-custom-homepage h2,
.r5-custom-homepage h3,
.r5-custom-homepage .display {
  font-weight: 600;
  line-height: 1.1;
}

.r5-custom-homepage .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.r5-custom-homepage a {
  color: inherit;
  text-decoration: none;
}

.r5-custom-homepage .eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
}

/* ---------- buttons ---------- */
.r5-custom-homepage .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s;
}

.r5-custom-homepage .btn-primary {
  background: var(--clay);
  color: #fff;
}

.r5-custom-homepage .btn-primary:hover {
  background: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(39, 71, 214, .5);
}

.r5-custom-homepage .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.r5-custom-homepage .btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.r5-custom-homepage .btn-light {
  background: var(--paper);
  color: var(--forest);
}

.r5-custom-homepage .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- hero ---------- */
.r5-custom-homepage .hero {
  position: relative;
  padding: 74px 0 60px;
  overflow: hidden;
}

.r5-custom-homepage .hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.r5-custom-homepage .hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
}

.r5-custom-homepage .hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.r5-custom-homepage .hero p.sub {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 22px 0 12px;
  max-width: 38ch;
}

.r5-custom-homepage .hero.bg-home-hero h1,
.r5-custom-homepage .hero.bg-home-hero p.sub {
  color: var(--paper);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.r5-custom-homepage .hero.bg-home-hero h1 em {
  color: var(--accent-lite);
}

.r5-custom-homepage .hero.bg-home-hero .eyebrow {
  color: var(--accent-lite);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.r5-custom-homepage .hero.bg-home-hero .btn-ghost {
  border-color: rgba(238, 242, 251, 0.5);
  color: var(--paper);
}

.r5-custom-homepage .hero.bg-home-hero .btn-ghost:hover {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--paper);
}

.r5-custom-homepage .hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.r5-custom-homepage .hero .btn {
  padding: 15px 26px;
  font-size: 1rem;
}

.r5-custom-homepage .trust-strip {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 500;
}

.r5-custom-homepage .trust-strip b {
  color: var(--ink);
}

.r5-custom-homepage .trust-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.r5-custom-homepage .tv-link {
  color: var(--clay);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.r5-custom-homepage .tv-link:hover {
  border-color: var(--clay);
}

.r5-custom-homepage .hero-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 0;
}

.r5-custom-homepage .videos-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

@media(max-width:880px) {
  .r5-custom-homepage .hero-videos {
    grid-template-columns: 1fr;
  }
}

.r5-custom-homepage .video-slider-wrap {
  position: relative;
  max-width: 480px;
  margin-top: 26px;
}

.r5-custom-homepage .video-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.r5-custom-homepage .video-slider::-webkit-scrollbar {
  display: none;
}

.r5-custom-homepage .slider-arrow {
  position: absolute;
  top: calc(50% - 20px - 6px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(22, 33, 63, .15);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  color: var(--clay);
  transition: all 0.2s;
}

.r5-custom-homepage .slider-arrow:hover {
  background: var(--clay);
  color: #fff;
}

.r5-custom-homepage .slider-arrow.prev {
  left: -20px;
}

.r5-custom-homepage .slider-arrow.next {
  right: -20px;
}

.r5-custom-homepage .slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -2px;
}

.r5-custom-homepage .slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.5;
  transition: all 0.2s;
  cursor: pointer;
}

.r5-custom-homepage .slider-dots .dot.active {
  opacity: 1;
  background: var(--clay);
  width: 20px;
  border-radius: 4px;
}

.r5-custom-homepage .tv-video {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px -16px rgba(22, 33, 63, .5);
}

.r5-custom-homepage .tv-video iframe,
.r5-custom-homepage .tv-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  background: #000;
}

.r5-custom-homepage .tv-cap {
  padding: 11px 14px;
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.r5-custom-homepage .tv-cap .badge {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-right: 6px;
}

.r5-custom-homepage .tv-fallback {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.r5-custom-homepage .tv-fallback .tv-thumb {
  position: relative;
  flex: 0 0 150px;
  background: linear-gradient(135deg, var(--forest-2), var(--ink));
  display: grid;
  place-items: center;
}

.r5-custom-homepage .tv-fallback .tv-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(246, 242, 251, .92);
  color: var(--clay);
  display: grid;
  place-items: center;
  font-size: .95rem;
  padding-left: 3px;
}

@media(max-width:880px) {
  .r5-custom-homepage .video-slider-wrap {
    max-width: none;
  }

  .r5-custom-homepage .slider-arrow.prev {
    left: 0;
  }

  .r5-custom-homepage .slider-arrow.next {
    right: 0;
  }
}

/* hero visual = the calculator */
.r5-custom-homepage .calc {
  background: var(--forest);
  color: var(--paper);
  border-radius: 24px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.r5-custom-homepage .calc h3 {
  font-size: 1.32rem;
  margin-bottom: 4px;
  color: var(--paper);
}

.r5-custom-homepage .calc .calc-sub {
  font-size: .84rem;
  color: rgba(238, 242, 251, .7);
  margin-bottom: 20px;
}

.r5-custom-homepage .field {
  margin-bottom: 16px;
}

.r5-custom-homepage .field label {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--sage);
}

.r5-custom-homepage .field label b {
  color: #fff;
  font-weight: 700;
}

.r5-custom-homepage .calc #lbl-rent {
  color: var(--highligter);
}

.r5-custom-homepage input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(238, 242, 251, .22);
  outline: none;
}

.r5-custom-homepage input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clay);
  cursor: pointer;
  border: 3px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.r5-custom-homepage input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clay);
  cursor: pointer;
  border: 3px solid var(--paper);
}

.r5-custom-homepage .result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 242, 251, .18);
}

.r5-custom-homepage .result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .92rem;
  margin-bottom: 9px;
  color: rgba(238, 242, 251, .82);
}

.r5-custom-homepage .result-row.net {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(238, 242, 251, .22);
}

.r5-custom-homepage .result-row.net .lbl {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.r5-custom-homepage .result-row .val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
}

.r5-custom-homepage .result-row.net .val {
  font-size: 2rem;
  color: var(--accent-lite);
  font-weight: 600;
}

.r5-custom-homepage .calc .btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.r5-custom-homepage .trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 36px;
  flex-wrap: wrap;
}

.r5-custom-homepage .disclaimer {
  font-size: .84rem;
  color: rgba(238, 242, 251, .7);
  margin-top: 16px;
}

@keyframes calcPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 71, 214, .55), var(--shadow)
  }

  70% {
    box-shadow: 0 0 0 18px rgba(39, 71, 214, 0), var(--shadow)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(39, 71, 214, 0), var(--shadow)
  }
}

.r5-custom-homepage .calc.pulse {
  opacity: 1;
  transform: none;
  animation: calcPulse 1.1s ease-out 2;
}

@media(max-width:880px) {
  .r5-custom-homepage .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- section base ---------- */
.r5-custom-homepage section {
  padding: 80px 0;
}

.r5-custom-homepage .section-head {
  /* max-width: 680px; */
  margin-bottom: 46px;
}

.r5-custom-homepage .section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin: 14px 0 0;
}

.r5-custom-homepage .section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-top: 14px;
}

/* ---------- math compare ---------- */
.r5-custom-homepage .compare {
  background: var(--paper-2);
}

.r5-custom-homepage .compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0 auto;
}

.r5-custom-homepage .ccard {
  background: var(--paper);
  border-radius: var(--r);
  padding: 30px;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.r5-custom-homepage .ccard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.r5-custom-homepage .ccard.r5 {
  background: var(--forest);
  color: var(--paper);
  border: none;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.r5-custom-homepage .ccard.r5:hover {
  transform: translateY(-5px);
}

.r5-custom-homepage .ccard h4 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-weight: 700;
}

.r5-custom-homepage .ccard.r5 h4 {
  color: var(--accent-lite);
}

.r5-custom-homepage .crow {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}

.r5-custom-homepage .ccard.r5 .crow {
  border-color: rgba(238, 242, 251, .16);
}

.r5-custom-homepage .crow .num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.r5-custom-homepage .crow.total {
  border-bottom: none;
  margin-top: 6px;
  padding-top: 16px;
  align-items: baseline;
}

.r5-custom-homepage .crow.total span:first-child {
  font-weight: 700;
}

.r5-custom-homepage .crow.total .num {
  font-size: 1.7rem;
}

.r5-custom-homepage .ccard.r5 .crow.total .num {
  color: var(--accent-lite);
}

@media(max-width:680px) {
  .r5-custom-homepage .compare-grid {
    grid-template-columns: 1fr;
  }

  .r5-custom-homepage .ccard.r5 {
    transform: none;
  }
}

/* ---------- qualify ---------- */
.r5-custom-homepage .qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.r5-custom-homepage .qcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}

.r5-custom-homepage .qcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.r5-custom-homepage .qcard .inc {
  font-size: 1.9rem;
  color: var(--forest);
}

.r5-custom-homepage .qcard .inc small {
  font-size: .8rem;
  color: var(--ink-soft);
  display: block;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.r5-custom-homepage .qcard ul {
  list-style: none;
  margin-top: 8px;
}

.r5-custom-homepage .qcard li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-soft);
}

.r5-custom-homepage .qcard li b {
  color: var(--ink);
}

.r5-custom-homepage .qcard li:last-child {
  border: none;
}

@media(max-width:760px) {
  .r5-custom-homepage .qual-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- benefits ---------- */
.r5-custom-homepage .benefits {
  background: var(--forest);
  color: var(--paper);
}

.r5-custom-homepage .benefits .eyebrow {
  color: var(--accent-lite);
}

.r5-custom-homepage .ben-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(238, 242, 251, .14);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 10px;
}

.r5-custom-homepage .ben {
  background: var(--forest);
  padding: 34px;
}

.r5-custom-homepage .ben .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--clay);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.r5-custom-homepage .ben h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
  color: var(--paper);
}

.r5-custom-homepage .ben p {
  color: rgba(238, 242, 251, .74);
  font-size: 1.05rem;
}

.r5-custom-homepage .ben .term {
  font-size: .76rem;
  color: var(--sage);
  margin-top: 12px;
  letter-spacing: .04em;
}

@media(max-width:760px) {
  .r5-custom-homepage .ben-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- difference / table ---------- */
.r5-custom-homepage .diff-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0 50px;
}

@media(max-width:780px) {
  .r5-custom-homepage .diff-tags {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px) {
  .r5-custom-homepage .diff-tags {
    grid-template-columns: 1fr;
  }
}

.r5-custom-homepage .tag,
.plan .tag {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-style: normal;
  width: 100%;
  line-height: 1.4;
}

.r5-custom-homepage .tag::before,
.plan .tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  margin-top: 6px;
}

.r5-custom-homepage .cmp-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.r5-custom-homepage table.cmp {
  width: 100%;
  min-width: 415px;
  border-collapse: collapse;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.r5-custom-homepage table.cmp th,
.r5-custom-homepage table.cmp td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}

.r5-custom-homepage table.cmp thead th {
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
}

.r5-custom-homepage table.cmp thead th:nth-child(2) {
  background: var(--clay);
}

.r5-custom-homepage table.cmp td:nth-child(2) {
  background: var(--paper-2);
}

.r5-custom-homepage table.cmp td:not(:first-child) {
  text-align: center;
  font-weight: 700;
}

.r5-custom-homepage table.cmp .yes {
  color: var(--forest-2);
}

.r5-custom-homepage table.cmp .no {
  color: #b9aa93;
}

.r5-custom-homepage table.cmp tbody tr:last-child td {
  border-bottom: none;
}

.r5-custom-homepage table.cmp td:first-child {
  font-weight: 600;
}

/* ---------- floor plans ---------- */
.r5-custom-homepage .plans {
  background: var(--paper-2);
}



/* ---------- communities ---------- */


/* ---------- stories ---------- */
.r5-custom-homepage .stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.r5-custom-homepage .story {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.r5-custom-homepage .story .vid {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--forest-2), var(--ink));
  position: relative;
  display: grid;
  place-items: center;
}

.r5-custom-homepage .story .play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(238, 242, 251, .92);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 1.1rem;
  transition: transform .2s;
}

.r5-custom-homepage .story:hover .play {
  transform: scale(1.12);
}

.r5-custom-homepage .story .q {
  padding: 22px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.r5-custom-homepage .story .who {
  padding: 0 22px 22px;
  font-size: .86rem;
  color: var(--ink-soft);
  font-weight: 600;
}

@media(max-width:880px) {
  .r5-custom-homepage .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- faq ---------- */
.r5-custom-homepage .faq-wrap {
  max-width: 800px;
}

.r5-custom-homepage .faq-item {
  border-bottom: 1px solid var(--line);
}

.r5-custom-homepage .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 1.12rem;
  color: var(--ink);
  transition: color .2s;
}

.r5-custom-homepage .faq-item summary:hover {
  color: var(--clay);
}

.r5-custom-homepage .faq-item summary::-webkit-details-marker {
  display: none;
}

.r5-custom-homepage .faq-item summary .ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  color: var(--clay);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .25s, background .2s, color .2s;
}

.r5-custom-homepage .faq-item[open] summary .ico {
  transform: rotate(45deg);
  background: var(--clay);
  color: #fff;
}

.r5-custom-homepage .faq-item .ans {
  padding: 0 2px 22px;
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.62;
  max-width: 70ch;
}

.r5-custom-homepage .faq-item .ans ul {
  margin: 8px 0 0 18px;
}

.r5-custom-homepage .faq-item .ans li {
  margin: 5px 0;
}

.r5-custom-homepage .faq-item .ans b {
  color: var(--ink);
}

.r5-custom-homepage .faq-note {
  max-width: 800px;
  font-size: .74rem;
  color: var(--ink-soft);
  opacity: .8;
  margin-top: 26px;
  line-height: 1.5;
}



/* sticky mobile call - scoped to target page template only */
.home .mobile-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--clay);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-weight: 700;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
  display: none;
}

@media(max-width:680px) {
  .home .mobile-call {
    display: block;
  }
}

/* load animation */
.r5-custom-homepage .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none
  }
}

.r5-custom-homepage .d1 {
  animation-delay: .05s
}

.r5-custom-homepage .d2 {
  animation-delay: .15s
}

.r5-custom-homepage .d3 {
  animation-delay: .25s
}

.r5-custom-homepage .d4 {
  animation-delay: .35s
}

.r5-custom-homepage .d5 {
  animation-delay: .45s
}



/* floor plan modal */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 26, 48, .62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  overflow-y: auto;
}

.pm-overlay.open {
  display: flex;
}

.pm-box {
  background: var(--paper);
  border-radius: 20px;
  max-width: 880px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
}

.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.pm-close:hover {
  background: var(--clay);
  color: #fff;
}

.pm-box h3 {
  font-size: 1.85rem;
  padding-right: 40px;
}

.pm-sub {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 18px;
}

.pm-desc {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
  display: none;
}

.pm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.pm-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .2s;
}

.pm-tab:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.pm-tab.active {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

.pm-body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.pm-body img {
  max-width: 100%;
  width: 385px;
  height: 385px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.pm-body.photos img {
  height: 256px;
  object-fit: cover;
}

.pm-body iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 12px;
}

.pm-footer-actions {
  text-align: center;
  margin-top: 40px;
}

@media(max-width:560px) {
  .pm-body img {
    width: 100%;
  }

  .pm-box {
    padding: 20px;
  }
}