﻿/*
Theme Name: Cohive OnePage Stable
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: High-converting one-page co-living WordPress theme for Cohive.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: cohive-onepage
*/

:root {
    --bg: #f6f7fb;
    --text: #101322;
    --muted: #4a556d;
    --line: #dfe5f1;
    --violet: #7a3ff2;
    --pink: #dd2d8d;
    --teal: #1cb4ab;
    --dark: #060913;
    --green: #21c45e;
    --white: #ffffff;
    --radius: 20px;
    --shadow: 0 12px 34px rgba(7, 15, 36, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Manrope, sans-serif;
    color: var(--text);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.center {
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #6a7287;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.06;
}

h1 {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
}

h2 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
}

h3 {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
}

.lead {
    font-size: clamp(18px, 1.9vw, 30px);
    line-height: 1.45;
    color: #36445f;
    margin: 16px 0 0;
}

.section-lead {
    max-width: 780px;
    margin: 14px auto 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--violet), var(--pink) 60%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cohive-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex: 0 0 auto;
}

.cohive-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    font-size: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-dark {
    background: #060912;
    color: #fff;
}

.btn-light {
    background: #fff;
    border-color: #151c2f;
    color: #151c2f;
}

.btn-outline {
    border-color: #151c2f;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #edf0f6;
}

.topbar-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    letter-spacing: 0.02em;
    font-size: 28px;
}

.brand-copy span {
    color: #667086;
    font-size: 13px;
    font-weight: 700;
}

.top-links {
    display: flex;
    gap: 22px;
    font-weight: 700;
    color: #2f3b55;
}

.top-links a:hover {
    color: var(--violet);
}

.hero {
    padding-top: 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
}

.pill {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0ebff;
    color: #5532d6;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 800;
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #3b4760;
}

.hero-cta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 28px;
}

.trial-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
    font-size: 15px;
    font-weight: 800;
}

.trial-tag strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stats div {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 14px;
    padding: 14px;
}

.stats strong {
    display: block;
    font-size: 33px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #8244e9, #d5328f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats span {
    font-size: 13px;
    font-weight: 700;
    color: #5f6a81;
}

.amenity-ticker {
    background: #090d16;
    color: #fff;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-left 28s linear infinite;
}

.ticker-group {
    display: flex;
    gap: 26px;
    padding: 14px 13px;
}

.tick-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    color: #f7f7f8;
}

.tick-item .cohive-icon {
    color: #9da8c4;
}

@keyframes ticker-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.card-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    min-height: 390px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(6, 10, 19, 0.72), transparent);
    color: #fff;
}

.overlay small {
    font-size: 14px;
    opacity: 0.94;
}

.overlay h3 {
    font-size: 36px;
    margin-top: 4px;
}

.feature-section {
    background: var(--bg);
}

.split {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 22px;
}

.feature-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e3e9f4;
    border-radius: 12px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    color: #28334c;
}

.feature-list .cohive-icon {
    color: #6f3eef;
}

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 26px;
}

.verified {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(160deg, #8147ef, #5f33e4);
    color: #fff;
    border-radius: 18px;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing {
    background: #fff;
}

.pricing-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.price-card {
    background: #fff;
    border: 1px solid #dde3ef;
    border-radius: 22px;
    padding: 24px;
    display: grid;
    gap: 14px;
    align-content: start;
    position: relative;
}

.price-card.featured {
    border: 2px solid #7642ef;
    background: #f8f4ff;
}

.badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: #dd2d8d;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
}

.price {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
    line-height: 1;
}

.price small {
    font-size: 22px;
    color: #8b95a8;
    font-weight: 700;
}

.price-card ul {
    margin: 0;
    padding-left: 19px;
    display: grid;
    gap: 8px;
}

.price-card li {
    color: #2f3a52;
    font-size: 16px;
    font-weight: 700;
}

.price-card .btn {
    width: 100%;
}

.amenity-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.amenity {
    border: 1px solid #e1e7f2;
    border-radius: 16px;
    min-height: 136px;
    padding: 14px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 10px;
    background: #fff;
}

.amenity.active {
    border-color: #ccb8ff;
    box-shadow: 0 12px 25px rgba(95, 57, 218, 0.12);
}

.amenity-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #6f3eef;
    background: #efe9ff;
}

.amenity-icon .cohive-icon {
    width: 24px;
    height: 24px;
}

.amenity span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: #253148;
}

.location {
    background: var(--bg);
}

.location-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.map-wrap,
.contact-card {
    border: 1px solid #e0e6f2;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.map-wrap iframe {
    width: 100%;
    min-height: 520px;
    border: 0;
}

.contact-card {
    padding: 24px;
}

.contact-logo {
    width: 170px;
    margin-bottom: 14px;
}

.contact-sub {
    margin: 8px 0 12px;
    color: #4c5870;
    font-size: 15px;
}

.enquiry-form {
    display: grid;
    gap: 10px;
}

.enquiry-form input,
.enquiry-form select {
    min-height: 46px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
}

.contact-card hr {
    border: 0;
    border-top: 1px solid #e2e8f2;
    margin: 14px 0;
}

.contact-card p {
    margin: 8px 0;
    color: #2f3b54;
}

.contact-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flyer-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
    align-items: center;
    background: linear-gradient(120deg, #0a0f1d, #241344);
    border-radius: 26px;
    padding: 20px;
    color: #fff;
}

.flyer-image {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.flyer-note p {
    color: #ced6e4;
}

.cta-band {
    margin-top: 24px;
    background: radial-gradient(circle at 50% 22%, #3a1450, #060915 70%);
    color: #fff;
    padding: 82px 0;
}

.cta-band .lead {
    color: #c2cad7;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.site-footer {
    background: #f4f6fa;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.small-brand img {
    width: 40px;
    height: 40px;
}

.small-brand .brand-copy strong {
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    color: #697187;
    font-weight: 700;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link .cohive-icon {
    width: 16px;
    height: 16px;
    color: #697187;
}

.float-ctas {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 32;
    display: grid;
    gap: 10px;
}

.float-ctas a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 20, 36, 0.26);
}

.float-ctas .cohive-icon {
    width: 24px;
    height: 24px;
}

.float-fallback {
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    margin-left: -2px;
}

.float-wa {
    background: #21c45e;
}

.float-call {
    background: #7740ee;
}

@media (max-width: 1040px) {
    .hero-grid,
    .split,
    .pricing-grid,
    .location-grid,
    .flyer-wrap {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .amenity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-links {
        display: none;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 26px);
    }

    .section {
        padding: 54px 0;
    }

    .topbar-inner {
        min-height: 72px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy span {
        font-size: 11px;
    }

    .btn {
        min-height: 50px;
        font-size: 17px;
        width: 100%;
    }

    .hero-image img,
    .split-image img {
        height: 360px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .amenity-grid {
        grid-template-columns: 1fr;
    }

    .image-card {
        min-height: 320px;
    }

    .overlay h3 {
        font-size: 30px;
    }

    .contact-actions,
    .hero-cta {
        flex-direction: column;
    }

    .map-wrap iframe {
        min-height: 340px;
    }
}
