/* ==========================================================
   Mosaik Homes homepage layout (Dec 2026 refresh)
   Loaded only by index.php, after style.css.
   ========================================================== */

/* ---------- Hero: Coming Soon slider ---------- */
.home-hero,
.home-hero .owl-item {
    min-height: 0;
    height: 82vh;
    min-height: 560px;
}
.home-hero .item[data-overlay-dark]:before {
    background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.25) 100%);
    opacity: 1;
}
.home-hero .caption .container {
    padding-top: 60px;
}
.home-hero .hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.home-hero .caption h6 {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 6px;
    margin-bottom: 18px;
}
.home-hero .caption h6:before,
.home-hero .caption h6:after {
    content: '';
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,.6);
}
.home-hero .caption h1.hero-name {
    font-size: 76px;
    line-height: 1.05em;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.home-hero .caption h1.hero-logo {
    margin-bottom: 14px;
}
.home-hero .caption h1.hero-logo img,
.home-hero .owl-item h1.hero-logo img {
    display: block;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    max-width: 340px;
    max-height: 150px;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,.5));
}
.home-hero .caption h1.hero-logo-wide img {
    max-width: 460px;
    width: 100%;
}
.home-hero .caption p.hero-location {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.home-hero .hero-tagline {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 26px;
}
.home-hero .hero-copy .butn-dark {
    margin-top: 14px;
}
.home-hero .owl-nav {
    display: none; /* the right-side circles replace the arrows */
}
@media screen and (max-width: 767px) {
    .home-hero,
    .home-hero .owl-item {
        height: 78vh;
        min-height: 520px;
    }
    .home-hero .item[data-overlay-dark]:before {
        background: rgba(0,0,0,.5);
    }
    .home-hero .caption .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .home-hero .caption h1.hero-name {
        font-size: 46px !important;
    }
    .home-hero .caption h1.hero-logo img {
        max-width: 240px;
        max-height: 110px;
    }
    .home-hero .caption p.hero-location {
        letter-spacing: 5px;
    }
    .home-hero .hero-tagline {
        font-size: 18px;
    }
}

/* Hero caption: each line enters in turn */
.home-hero .hero-copy > * {
    opacity: 0;
}
/* switch off the theme's all-at-once fadeInUp from js/custom.js */
.home-hero .hero-copy > .animated {
    animation-name: none;
}
.home-hero.hero-ready .owl-item.active .hero-copy > * {
    animation: heroUp .9s cubic-bezier(.22,.61,.36,1) both;
}
.home-hero.hero-ready .owl-item.active .hero-copy > h6 { animation-delay: .15s; }
.home-hero.hero-ready .owl-item.active .hero-copy > .hero-logo {
    animation-name: heroLogo;
    animation-duration: 1.1s;
    animation-delay: .4s;
}
.home-hero.hero-ready .owl-item.active .hero-copy > .hero-location { animation-delay: .75s; }
.home-hero.hero-ready .owl-item.active .hero-copy > .hero-tagline { animation-delay: .95s; }
.home-hero.hero-ready .owl-item.active .hero-copy > .butn-dark { animation-delay: 1.2s; }
.home-hero.hero-ready .owl-item.active .caption h6:before,
.home-hero.hero-ready .owl-item.active .caption h6:after {
    animation: heroLine .9s cubic-bezier(.22,.61,.36,1) .35s both;
}
@keyframes heroUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
@keyframes heroLogo {
    from { opacity: 0; transform: scale(.94); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}
@keyframes heroLine {
    from { width: 0; }
    to   { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero .hero-copy > * { opacity: 1; }
    .home-hero.hero-ready .owl-item.active .hero-copy > *,
    .home-hero.hero-ready .owl-item.active .caption h6:before,
    .home-hero.hero-ready .owl-item.active .caption h6:after { animation: none; }
}

/* Hero slide dots: right edge, ring fills while a slide is showing */
.home-hero {
    position: relative;
}
.home-hero .hero-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 5;
}
.home-hero .hero-dot {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.home-hero .hero-dot svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.home-hero .hero-dot circle {
    fill: none;
    stroke-width: 1.5;
}
.home-hero .hero-dot-track {
    stroke: rgba(255,255,255,0);
    transition: stroke .3s;
}
.home-hero .hero-dot-progress {
    stroke: #fff;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
}
.home-hero .hero-dot-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .3s, transform .3s;
}
.home-hero .hero-dot:hover .hero-dot-core {
    background: #fff;
}
.home-hero .hero-dot.is-active .hero-dot-track {
    stroke: rgba(255,255,255,.25);
}
.home-hero .hero-dot.is-active .hero-dot-core {
    background: #fff;
    transform: scale(1.15);
}
.home-hero .hero-dot.is-active .hero-dot-progress {
    animation: heroRing var(--hero-duration, 6000ms) linear forwards;
}
.home-hero .hero-dot:focus-visible {
    outline: 2px solid #29aae2;
    outline-offset: 2px;
    border-radius: 50%;
}
@keyframes heroRing {
    to { stroke-dashoffset: 0; }
}
@media screen and (max-width: 767px) {
    .home-hero .hero-dots {
        right: 50%;
        top: auto;
        bottom: 28px;
        transform: translateX(50%);
        flex-direction: row;
        gap: 8px;
    }
}

/* ---------- About Mosaik Homes ---------- */
.home-about {
    padding: 60px 0 100px;
    background: #2b2b32;
    position: relative;
    z-index: 2;
}
.home-about-intro {
    padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.home-about .section-title {
    white-space: nowrap;
    font-size: clamp(26px, 3.2vw, 45px);
}
.home-about-pillars .material-symbols-outlined {
    font-size: 42px;
    color: #fff;
    margin-bottom: 14px;
    font-variation-settings: 'wght' 200;
}
.home-about-pillars h5 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.home-about-pillars p {
    font-size: 14px;
    line-height: 1.6em;
    margin-bottom: 0;
}
@media screen and (max-width: 991px) {
    .home-about-intro {
        padding-right: 15px;
        border-right: 0;
        margin-bottom: 50px;
    }
    .home-about-pillars > div {
        margin-bottom: 36px;
    }
}

/* ---------- Featured Community slider ---------- */
.home-featured {
    position: relative;
    background: #202226;
    overflow: hidden;
    z-index: 2;
}
.home-featured .owl-stage {
    display: flex;
}
.home-featured .owl-item {
    display: flex;
    float: none;
}
.home-featured-slide {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #202226;
}
.home-featured-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.home-featured-slide .container {
    position: relative;
    z-index: 2;
}
.home-featured-panel {
    max-width: 440px;
    padding: 80px 0;
}
.home-featured-panel .section-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}
.home-featured-panel .section-subtitle:before {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,.6);
}
.home-featured .owl-item img.home-featured-logo,
.home-featured img.home-featured-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 320px;
    max-height: 130px;
    object-fit: contain;
    margin-bottom: 22px;
}
.home-featured-lead {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.home-featured-detail {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #29aae2;
    margin-bottom: 20px;
}
.home-featured-panel .butn-dark {
    margin-top: 10px;
}
.home-featured .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    text-align: center;
}
.home-featured .owl-dots .owl-dot span {
    background: rgba(255,255,255,.35);
}
.home-featured .owl-dots .owl-dot.active span,
.home-featured .owl-dots .owl-dot:hover span {
    background: #29aae2;
}
.home-featured .owl-nav {
    bottom: 30px;
    right: 6%;
}
.home-featured .owl-nav [class*=owl-] {
    width: 40px;
    height: 40px;
    line-height: 34px;
    background: transparent !important;
    border-radius: 50%;
    color: #fff !important;
    font-size: 10px !important;
    margin-right: 2px;
    border: 1px solid rgba(255,255,255,.4) !important;
}
.home-featured .owl-nav [class*=owl-]:hover {
    background: #fff !important;
    color: #252525 !important;
}
@media screen and (max-width: 991px) {
    .home-featured-slide {
        display: block;
        min-height: 0;
    }
    .home-featured-media {
        position: relative;
        width: 100%;
        height: 300px;
        clip-path: none;
    }
    .home-featured-panel {
        max-width: none;
        padding: 50px 9px 80px;
    }
}

/* ---------- Active Communities (tabs) ---------- */
.home-communities {
    padding: 110px 0 90px;
    background: #2b2b32;
    position: relative;
    z-index: 2;
}
.home-communities .section-subtitle {
    display: inline-flex;
    gap: 16px;
}
.home-communities .section-subtitle:before,
.home-communities .section-subtitle:after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,.5);
}
.home-tabs {
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 30px auto 50px;
    border: 1px solid rgba(255,255,255,.25);
}
.home-tab {
    flex: 1 1 0;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 10px;
    cursor: pointer;
    position: relative;
    transition: background .3s;
}
.home-tab:last-child {
    border-right: 0;
}
.home-tab:hover {
    background: rgba(255,255,255,.06);
}
.home-tab.is-active {
    background: #29aae2;
}
.home-tab.is-active:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    margin-left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #29aae2;
}
.home-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.home-card,
.home-card:hover {
    display: block; /* style.css sets a:hover {display:inline-block}, which shrank the cards */
}
.home-card {
    background: #252525;
    margin-bottom: 30px;
}
.home-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #1d1d22;
}
.home-card-img > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
/* Even dark veil so every logo reads; deepens on hover */
.home-card-img:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,20,26,.45);
    transition: background .5s ease;
    z-index: 1;
}
.home-card:hover .home-card-img > img:first-child,
.home-card:focus-visible .home-card-img > img:first-child {
    transform: scale(1.06);
}
.home-card:hover .home-card-img:after,
.home-card:focus-visible .home-card-img:after {
    background: rgba(20,20,26,.7);
}
.home-card-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto !important;
    max-width: 70%;
    max-height: 55%;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.6));
    z-index: 2;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.home-card:hover .home-card-logo,
.home-card:focus-visible .home-card-logo {
    transform: translate(-50%, calc(-50% - 16px));
}
.home-card-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}
.home-card-cta i {
    font-size: 11px;
    margin-left: 6px;
}
.home-card:hover .home-card-cta,
.home-card:focus-visible .home-card-cta {
    opacity: 1;
    transform: none;
}
.home-card-wordmark {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
    z-index: 2;
    padding: 0 12px;
}
.home-card-body {
    position: relative;
    padding: 18px 50px 18px 20px;
}
.home-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1.3em;
}
.home-card-place {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #29aae2;
}
.home-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color .3s;
}
.home-card:hover .home-card-arrow {
    color: #29aae2;
}
/* Touch screens: no hover, so keep the call to action visible */
@media (hover: none) {
    .home-card-cta {
        opacity: 1;
        transform: none;
    }
    .home-card-logo {
        transform: translate(-50%, calc(-50% - 12px));
    }
}
@media screen and (max-width: 575px) {
    .home-tab-panel .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .home-card-img {
        aspect-ratio: 16 / 9;
    }
    .home-tab {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 12px 4px;
    }
}

/* ---------- Design Studio ---------- */
.home-studio {
    padding: 100px 0 110px;
    background: #202226;
    position: relative;
    z-index: 2;
}
.home-studio-img {
    overflow: hidden;
}
.home-studio-img img {
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.home-studio-copy {
    padding-left: 50px;
}
@media screen and (max-width: 991px) {
    .home-studio-copy {
        padding: 40px 15px 0;
    }
}

/* Register CTA sits on its own band after the redesign */
.home-cta-band {
    background: #2b2b32;
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

/* ==========================================================
   Scroll motion (driven by js/home-motion.js)
   Only active when the script has added .home-motion to <html>,
   so the page still shows everything if JS is off.
   ========================================================== */
.home-motion .rv {
    transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1), clip-path 1.2s cubic-bezier(.77,0,.18,1);
    transition-delay: var(--rv-delay, 0ms);
}
.home-motion .rv-up {
    opacity: 0;
    transform: translateY(34px);
}
.home-motion .rv-pillar {
    opacity: 0;
    transform: translateY(40px);
}
.home-motion .rv-pillar .material-symbols-outlined {
    display: inline-block;
    transform: scale(.4) rotate(-25deg);
    opacity: 0;
    transition: transform .8s cubic-bezier(.34,1.56,.64,1), opacity .5s ease;
    transition-delay: calc(var(--rv-delay, 0ms) + 250ms);
}
.home-motion .rv-pillar.in .material-symbols-outlined {
    transform: none;
    opacity: 1;
}
.home-motion .rv-card {
    opacity: 0;
    transform: translateY(40px) scale(.97);
}
.home-motion .rv-wipe {
    clip-path: inset(0 100% 0 0);
}
.home-motion .rv-wipe img {
    transform: scale(1.15);
    transition: transform 1.8s cubic-bezier(.22,.61,.36,1) .1s;
}
.home-motion .rv.in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
}
.home-motion .rv-wipe.in img {
    transform: none;
}
/* the card lift on hover should not wait for the entrance delay */
.home-motion .rv-card.in {
    transition-delay: var(--rv-delay, 0ms), var(--rv-delay, 0ms), 0ms;
}

/* Section subtitle lines draw in */
.home-motion .home-communities .section-subtitle:before,
.home-motion .home-communities .section-subtitle:after {
    transform: scaleX(0);
    transition: transform .9s cubic-bezier(.22,.61,.36,1) .3s;
}
.home-motion .home-communities .section-subtitle:before { transform-origin: right; }
.home-motion .home-communities .section-subtitle:after { transform-origin: left; }
.home-motion .home-communities.in-view .section-subtitle:before,
.home-motion .home-communities.in-view .section-subtitle:after {
    transform: none;
}

/* About: divider line grows down */
@media screen and (min-width: 992px) {
    .home-motion .home-about-intro {
        border-right-color: transparent;
        background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) no-repeat right top / 1px 0;
        transition: background-size 1.4s cubic-bezier(.22,.61,.36,1) .3s;
    }
    .home-motion .home-about.in-view .home-about-intro {
        background-size: 1px 100%;
    }
}

/* Featured: photo wipes in on the diagonal, copy follows line by line */
.home-motion .home-featured .home-featured-panel > * {
    opacity: 0;
}
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > * {
    animation: heroUp .9s cubic-bezier(.22,.61,.36,1) both;
}
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(1) { animation-delay: .35s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(2) { animation-delay: .5s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(3) { animation-delay: .65s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(4) { animation-delay: .75s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(5) { animation-delay: .85s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel > :nth-child(6) { animation-delay: 1s; }
.home-motion .home-featured.in-view .owl-item.active .home-featured-panel .section-subtitle:before {
    animation: heroLine .9s cubic-bezier(.22,.61,.36,1) .5s both;
}
@media screen and (min-width: 992px) {
    .home-motion .home-featured.in-view .owl-item.active .home-featured-media {
        animation: featWipe 1.3s cubic-bezier(.77,0,.18,1) both;
    }
}
@media screen and (max-width: 991px) {
    .home-motion .home-featured.in-view .owl-item.active .home-featured-media {
        animation: heroUp 1s cubic-bezier(.22,.61,.36,1) both;
    }
}
@keyframes featWipe {
    from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 86% 100%); }
    to   { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
}

/* Design Studio photo eases while hovered */
.home-studio-img img {
    transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.home-studio-img:hover img {
    transform: scale(1.04);
}
