/* KayStay shared layout + typography (homepage + guest pages) */
:root {
    --brand-50: #f9faf8;
    --brand-100: #f0f3ee;
    --brand-200: #e1e7de;
    --brand-800: #5e6360;
    --brand-900: #343836;
    --brand-accent: #7a8c66;
    --brand-accent-hover: #6a7a58;
    --white: #ffffff;
    --section-x: 1rem;
    --section-y: 2.5rem;
    --text-eyebrow: 10px;
    --text-label: 11px;
    --text-body: 0.875rem;
    --text-body-lg: 1rem;
    --text-section-title: clamp(1.5rem, 3.5vw, 2.25rem);
    --text-page-title: clamp(1.875rem, 5vw, 3rem);
}

@media (min-width: 640px) {
    :root { --section-x: 1.5rem; }
}

@media (min-width: 768px) {
    :root { --section-y: 3.5rem; }
}

@media (min-width: 1024px) {
    :root { --section-x: 2rem; }
}

.section-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--section-x);
    padding-right: var(--section-x);
}

.page-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--brand-900);
    background: var(--brand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-section {
    border-bottom: 1px solid var(--brand-200);
}

.page-section--white { background: var(--white); }
.page-section--muted { background: var(--brand-50); }

.page-section__inner {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.content-narrow {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.content-medium {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.content-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(122, 140, 102, 0.2);
    background: rgba(122, 140, 102, 0.05);
    font-size: var(--text-eyebrow);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.content-eyebrow--pill {
    border: none;
    background: #eef3e8;
    color: #5c7046;
    letter-spacing: 0.12em;
    padding: 0.3125rem 0.75rem;
}

.content-section-title {
    margin: 0 0 1rem;
    font-size: var(--text-section-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--brand-900);
}

.content-page-title {
    margin: 0 0 0.75rem;
    font-size: var(--text-page-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--brand-900);
}

.content-lead {
    margin: 0;
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--brand-800);
    font-weight: 400;
}

@media (min-width: 768px) {
    .content-lead {
        font-size: var(--text-body-lg);
        line-height: 1.65;
    }
}

.content-lead--light {
    opacity: 0.85;
}

.text-center { text-align: center; }

.promo-card {
    position: relative;
    padding: 1.5rem 1.375rem 1.375rem;
    border-radius: 1rem;
    border: 1px solid #dce6d4;
    background: linear-gradient(180deg, #f9fbf7 0%, #ffffff 100%);
    text-align: center;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: var(--brand-accent);
    border-radius: 0 0 4px 4px;
}

.promo-card__badge {
    display: inline-block;
    margin: 0.25rem 0 0.625rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #eef3e8;
    color: #5c7046;
}

.promo-card__title {
    font-size: var(--text-section-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--brand-900);
}

.promo-card__tagline {
    font-size: var(--text-body);
    line-height: 1.5;
    color: var(--brand-800);
    margin: 0 auto;
    max-width: 28rem;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: var(--text-label);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--brand-accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(122, 140, 102, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover {
    background: var(--brand-accent-hover);
    transform: translateY(-1px);
}

.content-section-title.text-center {
    margin-bottom: 1.5rem;
}

.promo-card .btn-accent {
    margin-top: 1.25rem;
}

.section-label {
    margin: 0 0 0.25rem;
    font-size: var(--text-eyebrow);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-800);
}

.step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 60rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .step-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.125rem;
    }
}

.step-card {
    background: var(--white);
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    padding: 1.35rem 1.25rem 1.25rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .step-card:hover {
        border-color: var(--brand-accent);
        transform: translateY(-4px);
        box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.1);
    }
}

.step-card__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.step-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.step-card__badge {
    display: block;
    font-size: var(--text-eyebrow);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-800);
    opacity: 0.75;
    margin-bottom: 0.375rem;
}

.step-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--brand-900);
}

.step-card__desc {
    font-size: var(--text-body);
    line-height: 1.55;
    color: var(--brand-800);
    margin: 0;
}

/* Hub pages — Extended, Signature, Concierge, Owner */

body.hub-page {
    background: var(--white);
}

.hub-page__section {
    padding: var(--section-y) 0 calc(var(--section-y) + 0.5rem);
    background: var(--white);
    border-bottom: 1px solid var(--brand-200);
}

.hub-page__section--flush {
    border-bottom: none;
    padding-bottom: 0;
}

.hub-page__header {
    text-align: left;
    max-width: 72rem;
    margin: 0 0 1.5rem;
}

.hub-page__headline {
    margin: 0;
    line-height: 1.2;
}

.hub-page__title {
    display: inline;
    font-size: var(--text-section-title);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-900);
}

.hub-page__subtitle {
    display: inline;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--brand-800);
    opacity: 0.85;
}

.hub-page__subtitle::before {
    content: ': ';
    opacity: 0.45;
    font-weight: 400;
}

@media (max-width: 767px) {
    .hub-page__header {
        display: none;
    }

    .hub-page__subtitle {
        display: none;
    }

    .hub-page__section {
        padding-top: 1.25rem;
    }
}

.hub-page__content {
    max-width: 72rem;
    margin: 0;
}

.hub-page__cta {
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .hub-page__header {
        margin-bottom: 2.5rem;
    }

    .hub-page__subtitle {
        font-size: 1rem;
    }
}

.site-footer {
    background: var(--white);
    color: var(--brand-900);
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--brand-200);
}

body.page-with-footer {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.page-with-footer .frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

@media (min-width: 768px) {
    .site-footer { padding: 3rem 0; }
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-footer__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2.5rem;
    }
}

.site-footer__brand {
    display: inline-flex;
    flex-shrink: 0;
}

.site-footer__logo {
    height: 1.75rem;
    width: auto;
    opacity: 0.85;
    display: block;
}

@media (min-width: 768px) {
    .site-footer__logo { height: 2rem; }
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    width: 100%;
}

@media (min-width: 640px) {
    .site-footer__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 42rem;
    }
}

@media (min-width: 768px) {
    .site-footer__cols {
        margin-left: auto;
        width: auto;
    }
}

.site-footer__col {
    min-width: 0;
}

.site-footer__heading {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-800);
    opacity: 0.75;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.site-footer__links a {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--brand-900);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer__links a:hover {
    color: var(--brand-accent);
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--brand-200);
}

@media (min-width: 768px) {
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer__copy {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brand-800);
    opacity: 0.45;
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-800);
    opacity: 0.85;
}

.site-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer__legal a:hover {
    color: var(--brand-accent);
    opacity: 1;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 60rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.125rem;
    }
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--brand-200);
    border-radius: 1.5rem;
    padding: 1.35rem 1.25rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card__quote {
    margin: 0 0 1rem;
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--brand-800);
    flex: 1;
}

.testimonial-card__quote::before {
    content: '\201C';
    color: var(--brand-accent);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 0;
    vertical-align: -0.2em;
    margin-right: 2px;
}

.testimonial-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0.875rem;
    border-top: 1px solid var(--brand-200);
}

.testimonial-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #eef3e8 0%, #dce6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-accent);
    flex-shrink: 0;
}

.testimonial-card__name {
    margin: 0;
    font-size: var(--text-body);
    font-weight: 800;
    color: var(--brand-900);
    line-height: 1.3;
}

.testimonial-card__context {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--brand-800);
    opacity: 0.85;
}

/* OTA trust / verify links */
.portfolio-trust,
.trust-verify {
    margin: 0.75rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.55;
    color: var(--brand-800);
    opacity: 0.85;
}

@media (min-width: 768px) {
    .portfolio-trust,
    .trust-verify {
        font-size: 0.75rem;
    }
}

.portfolio-trust__score,
.trust-verify__score {
    font-weight: 700;
    color: var(--brand-900);
}

.portfolio-trust__sep,
.trust-verify__sep {
    margin: 0 0.35rem;
    opacity: 0.35;
}

.portfolio-trust a,
.trust-verify a,
.testimonials-verify a {
    font-weight: 700;
    color: var(--brand-accent);
    text-decoration: none;
}

.portfolio-trust a:hover,
.trust-verify a:hover,
.testimonials-verify a:hover {
    text-decoration: underline;
}

.testimonials-verify {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-200);
    text-align: center;
}

.testimonials-verify__lead {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-800);
    opacity: 0.7;
}

.testimonials-verify__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.testimonials-verify__row {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brand-800);
}

.testimonials-verify__name {
    font-weight: 800;
    color: var(--brand-900);
    margin-right: 0.35rem;
}

/* Plans matrix — mobile card view */
.plans-matrix-desktop {
    display: none;
}

.plans-matrix-mobile {
    display: block;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .plans-matrix-desktop {
        display: block;
    }
    .plans-matrix-mobile {
        display: none;
    }
}

.plans-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .plans-mobile-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.plans-mobile-tab {
    border: 1px solid var(--brand-200);
    border-radius: 9999px;
    padding: 10px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: inherit;
    background: var(--white);
    color: var(--brand-800);
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.15s ease;
}

.plans-mobile-tab.is-active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--white);
}

.plans-mobile-list {
    background: var(--white);
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.plans-mobile-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--brand-100);
}

.plans-mobile-row:last-child {
    border-bottom: none;
}

.plans-mobile-row__label {
    font-size: var(--text-body);
    font-weight: 700;
    color: var(--brand-900);
    line-height: 1.4;
    flex: 1;
}

.plans-mobile-row__val {
    font-size: var(--text-body);
    font-weight: 800;
    text-align: right;
    flex-shrink: 0;
    min-width: 4rem;
}

.plans-mobile-row__val.is-yes {
    color: var(--brand-accent);
}

.plans-mobile-row__val.is-no {
    color: #cbd5e1;
}

.plans-mobile-row__val.is-text {
    color: var(--brand-800);
}

.step-grid--quad {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .step-grid--quad {
        grid-template-columns: repeat(2, 1fr);
    }
}

.inquiry-form {
    background: var(--white);
    border: 1px solid var(--brand-200);
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .inquiry-form {
        padding: 2rem 2rem 2.25rem;
    }
}

.inquiry-form__title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--brand-900);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-field {
    margin: 0;
}

.form-field label {
    display: block;
    font-size: var(--text-eyebrow);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-800);
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field select {
    width: 100%;
    border: 1px solid var(--brand-200);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: var(--text-body);
    font-family: inherit;
    background: rgba(249, 250, 248, 0.5);
    color: var(--brand-900);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--brand-accent);
    background: var(--white);
}

.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235e6360'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0.25rem 0 1.5rem;
}

.form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--brand-accent);
}

.form-check label {
    font-size: var(--text-body);
    line-height: 1.45;
    color: var(--brand-800);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.btn-submit-primary {
    width: 100%;
    border: none;
    border-radius: 1rem;
    padding: 1.125rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: inherit;
    background: var(--brand-accent);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(122, 140, 102, 0.35);
    transition: background 0.2s ease;
}

.btn-submit-primary:hover {
    background: var(--brand-accent-hover);
}

.btn-submit-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.inquiry-form__status {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: var(--text-body);
    line-height: 1.45;
    text-align: center;
}

.inquiry-form__status--success {
    background: #eef3e8;
    border: 1px solid #d4dfc6;
    color: #5c7046;
}

.inquiry-form__status--error {
    background: #fdf3f2;
    border: 1px solid #ecccc7;
    color: #9c4a3f;
}

.inquiry-form__note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    color: var(--brand-800);
    opacity: 0.85;
}
