/*
 * cms-modules.css — baseline styling for the Phase 2 CMS module library
 * (docs/cms, issue #23). Kept separate from the built app.css and intentionally
 * lightweight + mobile-first: the brief deprioritises visual design, so this
 * gives editors a presentable, consistent default without bespoke per-page CSS.
 * Uses the brand custom properties already defined in app.css (:root).
 */

/* ── Section wrappers, themes & spacing (envelope settings) ─────────────── */
.section-block { padding: 2.5rem 0; }
.section-block--spacing-sm { padding: 1.25rem 0; }
.section-block--spacing-lg { padding: 4rem 0; }
.section-block--theme-light { background: var(--bg-alt, #f5f7f5); }
.section-block--theme-dark  { background: var(--brand-dark, #243d22); color: #fff; }
.section-block--theme-brand { background: var(--brand, #31522e); color: #fff; }
.section-block--theme-dark a, .section-block--theme-brand a { color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.kk-btn {
    display: inline-block; padding: .75rem 1.5rem; border-radius: var(--radius-md, 4px);
    font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer;
    border: 2px solid transparent; transition: background .15s, color .15s;
}
.kk-btn--primary { background: var(--brand, #31522e); color: #fff; }
.kk-btn--primary:hover { background: var(--brand-dark, #243d22); }
.kk-btn--secondary { background: transparent; color: var(--brand, #31522e); border-color: var(--brand, #31522e); }
.kk-btn--secondary:hover { background: var(--brand, #31522e); color: #fff; }
.kk-btn--link { background: transparent; color: var(--brand, #31522e); padding: .5rem 0; }

/* ── Service Hero ──────────────────────────────────────────────────────── */
.kk-service-hero { display: grid; gap: 2rem; align-items: center; }
.kk-service-hero__h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 .5rem; }
.kk-service-hero__seo { color: var(--text-muted, #5a6471); margin: 0 0 1rem; }
.kk-service-hero__value-prop { font-size: 1.15rem; margin: 0 0 1rem; }
.kk-service-hero__chips, .kk-service-hero__bullets { list-style: none; padding: 0; margin: 0 0 1rem; }
.kk-service-hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.kk-chip { background: var(--bg-alt, #f5f7f5); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; }
.kk-service-hero__bullets li { padding: .25rem 0; }
.kk-service-hero__promise { font-weight: 600; margin: 0 0 1rem; }
.kk-service-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.kk-service-hero__price { font-weight: 700; color: var(--brand, #31522e); }
.kk-service-hero__media img { width: 100%; height: auto; border-radius: var(--radius-md, 4px); }
@media (min-width: 768px) { .kk-service-hero { grid-template-columns: 1fr 1fr; } .kk-service-hero__h1 { font-size: 2.6rem; } }

/* ── Promise (3 steps) ─────────────────────────────────────────────────── */
.kk-promise__heading, .kk-included__heading, .kk-audience__heading, .kk-steps__heading,
.kk-features__heading, .kk-reviews__heading, .kk-stats__heading, .kk-pickup__heading,
.kk-booking__heading, .kk-related__heading, .kk-price-table__heading {
    font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin: 0 0 1.5rem;
}
.kk-promise__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.kk-promise__step { text-align: center; }
.kk-promise__icon { display: inline-flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--brand, #31522e); color: #fff;
    font-size: 1.5rem; margin-bottom: .75rem; }
.kk-promise__step-title { margin: 0 0 .25rem; }
.kk-promise__note { text-align: center; font-weight: 600; margin: 1.25rem 0 0; }
.kk-promise__actions, .kk-steps__actions, .kk-audience__actions, .kk-pickup__actions,
.kk-price-table__actions, .kk-rating-summary__actions { text-align: center; margin-top: 1.25rem; }
@media (min-width: 768px) { .kk-promise__steps { grid-template-columns: repeat(3, 1fr); } }

/* ── Price Table & Price-From ──────────────────────────────────────────── */
.kk-price-table { width: 100%; border-collapse: collapse; }
.kk-price-table__row { border-bottom: 1px solid var(--border, #dde4db); }
.kk-price-table__row--popular { background: var(--brand-faint, #f5f7f5); }
.kk-price-table__service { text-align: left; padding: .85rem .5rem; font-weight: 600; }
.kk-price-table__price { text-align: right; padding: .85rem .5rem; white-space: nowrap; font-weight: 700; }
.kk-price-table__badge { display: inline-block; margin-left: .5rem; font-size: .7rem; font-weight: 700;
    background: var(--brand, #31522e); color: #fff; border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; }
.kk-price-table__note { display: block; font-weight: 400; font-size: .85rem; color: var(--text-muted, #5a6471); }
.kk-price-table__prefix, .kk-price-table__unit { font-weight: 400; font-size: .85rem; color: var(--text-muted, #5a6471); }
.kk-price-table__disclaimer { text-align: center; color: var(--text-muted, #5a6471); margin: 1rem 0 0; }
.kk-price-from { display: inline-block; font-weight: 700; font-size: 1.25rem; color: var(--brand, #31522e);
    background: var(--bg-alt, #f5f7f5); border-radius: var(--radius-md, 4px); padding: .5rem 1rem; text-decoration: none; }
.kk-price-from__prefix { font-weight: 400; font-size: .9rem; }

/* ── Checklists / grids (What's Included, Audience, Features, Related) ──── */
.kk-included__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.kk-included__list--cols-2 { grid-template-columns: 1fr; }
.kk-included__item i { color: var(--brand, #31522e); margin-right: .5rem; }
.kk-included__item--no i { color: var(--text-muted, #5a6471); }
.kk-included__footnote { color: var(--text-muted, #5a6471); margin-top: 1rem; }
.kk-audience__grid, .kk-features__grid, .kk-related__grid {
    display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
.kk-audience__card, .kk-features__card, .kk-related__card {
    background: #fff; border: 1px solid var(--border, #dde4db); border-radius: var(--radius-md, 4px);
    padding: 1.25rem; text-decoration: none; color: inherit; display: block;
}
.kk-features__card[href]:hover, .kk-related__card[href]:hover { border-color: var(--brand, #31522e); }
.kk-audience__icon, .kk-features__icon, .kk-related__icon, .kk-stats__icon {
    font-size: 1.75rem; color: var(--brand, #31522e); display: block; margin-bottom: .5rem;
}
@media (min-width: 600px) {
    .kk-included__list--cols-2 { grid-template-columns: 1fr 1fr; }
    .kk-audience__grid, .kk-features__grid--cols-2, .kk-related__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
    .kk-features__grid--cols-3, .kk-related__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
    .kk-features__grid--cols-4, .kk-related__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.kk-steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.kk-steps__item { display: flex; gap: 1rem; align-items: flex-start; }
.kk-steps__number { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--brand, #31522e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.kk-steps__title { margin: .15rem 0 .25rem; }

/* ── Rating Summary & Stats ────────────────────────────────────────────── */
.kk-rating-summary, .kk-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; text-align: center; }
.kk-rating-summary__value, .kk-stats__value { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand, #31522e); }
.kk-rating-summary__label, .kk-stats__label { display: block; color: var(--text-muted, #5a6471); font-size: .9rem; }
.kk-rating-summary__source { text-align: center; color: var(--text-muted, #5a6471); margin-top: 1rem; }
@media (min-width: 768px) { .kk-rating-summary, .kk-stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Google Reviews ────────────────────────────────────────────────────── */
.kk-reviews__list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.kk-reviews__card { background: #fff; border: 1px solid var(--border, #dde4db); border-radius: var(--radius-md, 4px); padding: 1.25rem; margin: 0; }
.kk-reviews__stars { color: #f5a623; margin-bottom: .5rem; }
.kk-reviews__text { margin: 0 0 .75rem; font-style: italic; }
.kk-reviews__author { font-weight: 600; }
.kk-reviews__date { color: var(--text-muted, #5a6471); font-weight: 400; }
@media (min-width: 768px) { .kk-reviews__list { grid-template-columns: repeat(3, 1fr); } }

/* ── Pickup & Return ───────────────────────────────────────────────────── */
.kk-pickup__steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.kk-pickup__step { text-align: center; }
.kk-pickup__icon { font-size: 1.75rem; color: var(--brand, #31522e); display: block; margin-bottom: .5rem; }
.kk-pickup__cost { text-align: center; font-weight: 600; margin-top: 1rem; }
@media (min-width: 768px) { .kk-pickup__steps { grid-template-columns: repeat(3, 1fr); } }

/* ── Booking Form ──────────────────────────────────────────────────────── */
.kk-booking__form { max-width: 640px; margin: 0 auto; }
.kk-booking__intro { text-align: center; margin: 0 0 1.5rem; }
.kk-booking__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.kk-booking__label { display: block; font-weight: 600; margin-bottom: 1rem; }
.kk-booking__input { display: block; width: 100%; padding: .65rem .75rem; margin-top: .35rem;
    border: 1px solid var(--border-strong, #b8c9b4); border-radius: var(--radius-md, 4px); font: inherit; font-weight: 400; }
.kk-booking__consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: 0 0 1.25rem; }
.kk-booking__submit { width: 100%; }
@media (min-width: 600px) { .kk-booking__row { grid-template-columns: 1fr 1fr; } }

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.kk-cta-banner { display: grid; gap: 1.25rem; align-items: center; text-align: center;
    background: var(--brand, #31522e); color: #fff; border-radius: var(--radius-md, 4px); padding: 2rem; }
.kk-cta-banner__heading { font-family: var(--font-display); margin: 0 0 .5rem; }
.kk-cta-banner__subtext { margin: 0; opacity: .9; }
.kk-cta-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.kk-cta-banner .kk-btn--secondary { color: #fff; border-color: #fff; }
.kk-cta-banner .kk-btn--secondary:hover { background: #fff; color: var(--brand, #31522e); }
@media (min-width: 768px) { .kk-cta-banner { grid-template-columns: 2fr 1fr; text-align: left; } .kk-cta-banner__actions { justify-content: flex-end; } }

/* ─────────────────────────────────────────────────────────────────────────
   Chunk C — homepage, global chrome & utility modules
───────────────────────────────────────────────────────────────────────── */

/* ── Homepage Hero ─────────────────────────────────────────────────────── */
.kk-home-hero { display: grid; gap: 2rem; align-items: center; }
.kk-home-hero__h1 { font-family: var(--font-display); font-size: 2.1rem; margin: 0 0 .75rem; }
.kk-home-hero__subheading { font-size: 1.15rem; margin: 0 0 1.25rem; }
.kk-home-hero__chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.kk-home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.kk-home-hero__quick-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.kk-home-hero__quick-link { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem;
    background: var(--bg-alt, #f5f7f5); border-radius: 999px; font-weight: 600; text-decoration: none; color: inherit; }
.kk-home-hero__quick-link:hover { background: var(--brand, #31522e); color: #fff; }
.kk-home-hero__media img { width: 100%; height: auto; border-radius: var(--radius-md, 4px); }
@media (min-width: 768px) { .kk-home-hero { grid-template-columns: 1fr 1fr; } .kk-home-hero__h1 { font-size: 2.8rem; } }

/* ── Page Header ───────────────────────────────────────────────────────── */
.section-block--page-header { padding: 2rem 0 1rem; }
.kk-page-header__title { font-family: var(--font-display); font-size: 2rem; margin: 0 0 .5rem; }
.kk-page-header__subtitle { color: var(--text-muted, #5a6471); font-size: 1.1rem; margin: 0; }
.kk-page-header__crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .75rem; font-size: .9rem; }
.kk-page-header__crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--text-muted, #5a6471); }

/* ── Value Proposition ─────────────────────────────────────────────────── */
.kk-value-prop { display: grid; gap: 1.5rem; align-items: center; }
.kk-value-prop__heading { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 1rem; }
.kk-value-prop__bullets { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.kk-value-prop__bullets i { color: var(--brand, #31522e); }
.kk-value-prop__actions { margin-top: 1.25rem; }
.kk-value-prop__media img { width: 100%; height: auto; border-radius: var(--radius-md, 4px); }
@media (min-width: 768px) { .kk-value-prop--with-media { grid-template-columns: 3fr 2fr; } }

/* ── Service Packages ──────────────────────────────────────────────────── */
.kk-packages__heading { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin: 0 0 1.5rem; }
.kk-packages__grid { display: grid; gap: 1.25rem; }
.kk-package { position: relative; border: 1px solid var(--border-strong, #b8c9b4); border-radius: var(--radius-md, 4px);
    padding: 1.5rem; display: flex; flex-direction: column; }
.kk-package--highlighted { border-color: var(--brand, #31522e); border-width: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.kk-package__flag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%);
    background: var(--brand, #31522e); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .8rem; border-radius: 999px; }
.kk-package__name { font-family: var(--font-display); margin: 0 0 .5rem; }
.kk-package__price { margin: 0 0 1rem; }
.kk-package__amount { font-size: 1.8rem; font-weight: 700; color: var(--brand, #31522e); }
.kk-package__period { color: var(--text-muted, #5a6471); }
.kk-package__features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; flex: 1; }
.kk-package__features i { color: var(--brand, #31522e); }
.kk-packages__note { text-align: center; color: var(--text-muted, #5a6471); margin: 1.25rem 0 0; }
@media (min-width: 768px) { .kk-packages__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

/* ── Contact / Callback form ───────────────────────────────────────────── */
.kk-contact-form__heading { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin: 0 0 .75rem; }
.kk-contact-form__intro { text-align: center; margin: 0 0 1.5rem; }
.kk-contact-form__form { max-width: 560px; margin: 0 auto; }
.kk-contact-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.kk-contact-form__label { display: block; font-weight: 600; margin-bottom: 1rem; }
.kk-contact-form__input { display: block; width: 100%; padding: .65rem .75rem; margin-top: .35rem;
    border: 1px solid var(--border-strong, #b8c9b4); border-radius: var(--radius-md, 4px); font: inherit; font-weight: 400; }
.kk-contact-form__consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: 0 0 1.25rem; }
.kk-contact-form__submit { width: 100%; }
@media (min-width: 600px) { .kk-contact-form__row { grid-template-columns: 1fr 1fr; } }

/* ── Service Category Grid ─────────────────────────────────────────────── */
.kk-categories__heading { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin: 0 0 1.5rem; }
.kk-categories__grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.kk-category-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; text-align: center;
    border: 1px solid var(--border-strong, #b8c9b4); border-radius: var(--radius-md, 4px); text-decoration: none; color: inherit;
    transition: box-shadow .15s, transform .15s; }
a.kk-category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.kk-category-card__icon { font-size: 2rem; color: var(--brand, #31522e); }
.kk-category-card__title { font-family: var(--font-display); margin: .25rem 0 0; font-size: 1.1rem; }
.kk-category-card__text { color: var(--text-muted, #5a6471); font-size: .9rem; margin: 0; }
.kk-category-card__price { font-weight: 700; color: var(--brand, #31522e); margin-top: auto; }
@media (min-width: 768px) {
    .kk-categories__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
    .kk-categories__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Contact Details ───────────────────────────────────────────────────── */
.kk-contact-details__heading { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 1rem; }
.kk-contact-details__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.kk-contact-details__item { display: flex; align-items: center; gap: .6rem; }
.kk-contact-details__item i { color: var(--brand, #31522e); font-size: 1.2rem; }
.kk-contact-details__actions { margin-top: 1.25rem; }

/* ── Form Confirmation ─────────────────────────────────────────────────── */
.kk-confirmation { text-align: center; max-width: 560px; margin: 0 auto; }
.kk-confirmation__icon { font-size: 3rem; color: var(--brand, #31522e); display: block; margin-bottom: 1rem; }
.kk-confirmation__heading { font-family: var(--font-display); margin: 0 0 1rem; }
.kk-confirmation__actions { margin-top: 1.5rem; }

/* ── Spacer / Divider ──────────────────────────────────────────────────── */
.kk-spacer { padding: 0 !important; }
.kk-spacer--sm { height: 1rem; }
.kk-spacer--md { height: 2.5rem; }
.kk-spacer--lg { height: 4.5rem; }
.kk-spacer--divider { display: flex; align-items: center; }
.kk-spacer--divider::after { content: ""; display: block; width: 100%;
    border-top: 1px solid var(--border-strong, #b8c9b4); }

/* ── Anchor target (scroll offset for sticky chrome) ───────────────────── */
.kk-anchor { display: block; position: relative; top: -80px; visibility: hidden; }

/* ── Sticky Mobile CTA Bar (A5, mobile-only) ───────────────────────────── */
.kk-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: flex; gap: .5rem; padding: .5rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--border-strong, #b8c9b4); box-shadow: 0 -2px 12px rgba(0,0,0,.1);
    transition: transform .2s ease; }
.kk-sticky-cta--hidden { transform: translateY(110%); }
.kk-sticky-cta__book { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--brand, #31522e); color: #fff; text-decoration: none; font-weight: 700;
    border-radius: var(--radius-md, 4px); padding: .55rem .75rem; line-height: 1.15; }
.kk-sticky-cta__price { font-size: .8rem; font-weight: 600; opacity: .9; }
.kk-sticky-cta__call { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    min-width: 4.5rem; padding: .55rem; text-decoration: none; font-weight: 600; font-size: .8rem;
    color: var(--brand, #31522e); border: 2px solid var(--brand, #31522e); border-radius: var(--radius-md, 4px); }
.kk-sticky-cta__call i { font-size: 1.2rem; }
@media (min-width: 768px) { .kk-sticky-cta { display: none; } }
