/*
 * carnival-local.css
 * Shared brand styles for all Carnival Internet regional microsite templates.
 * Scoped to .cl-* classes to avoid conflicts with Astra or Elementor.
 */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --cl-purple:  #512663;
    --cl-yellow:  #FFD359;
    --cl-dark:    #130629;
    --cl-body:    #221F20;
    --cl-white:   #ffffff;
    --cl-light:   #f8f5fc;
    --cl-radius:  14px;
    --cl-font:    'Plus Jakarta Sans', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
.cl-page {
    font-family: var(--cl-font);
    color: var(--cl-body);
}

.cl-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.cl-hero {
    position: relative;
    background: var(--cl-dark);
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    overflow: hidden;
    color: var(--cl-white);
}

.cl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(19,6,41,0.82) 40%, rgba(81,38,99,0.3) 100%);
    pointer-events: none;
}

.cl-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.cl-hero__eyebrow {
    display: inline-block;
    background: var(--cl-yellow);
    color: var(--cl-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.cl-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cl-white);
    margin: 0 0 20px;
}

.cl-hero h1 em {
    font-style: normal;
    color: var(--cl-yellow);
}

.cl-hero__sub {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.82;
    margin: 0 0 32px;
}

.cl-hero__cta {
    display: inline-block;
    background: var(--cl-yellow);
    color: var(--cl-dark);
    font-family: var(--cl-font);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.cl-hero__cta:hover {
    background: #ffc820;
    transform: scale(1.03);
    text-decoration: none;
    color: var(--cl-dark);
}

/* ── Section shared ─────────────────────────────────────────────────────────── */
.cl-section {
    padding: 72px 0 80px;
}

.cl-section--dark {
    background: var(--cl-dark);
    color: var(--cl-white);
}

.cl-section--purple {
    background: var(--cl-purple);
    color: var(--cl-white);
}

.cl-section--light {
    background: var(--cl-light);
}

.cl-section--white {
    background: var(--cl-white);
}

.cl-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.cl-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
    background: rgba(255,211,89,0.15);
    color: var(--cl-yellow);
    border: 1px solid rgba(255,211,89,0.25);
}

.cl-eyebrow--dark {
    background: rgba(81,38,99,0.1);
    color: var(--cl-purple);
    border-color: rgba(81,38,99,0.15);
}

.cl-section-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.cl-section--dark .cl-section-head h2,
.cl-section--purple .cl-section-head h2 {
    color: var(--cl-white);
}

.cl-section--light .cl-section-head h2,
.cl-section--white .cl-section-head h2 {
    color: var(--cl-purple);
}

.cl-section-head p {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Benefit cards grid ─────────────────────────────────────────────────────── */
.cl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.cl-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--cl-radius);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cl-card--light {
    background: var(--cl-white);
    border-color: rgba(81,38,99,0.1);
    box-shadow: 0 2px 16px rgba(81,38,99,0.07);
}

.cl-card--light:hover {
    box-shadow: 0 10px 30px rgba(81,38,99,0.12);
}

.cl-card__icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1;
}

.cl-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cl-yellow);
    margin: 0 0 8px;
}

.cl-card--light .cl-card__title {
    color: var(--cl-purple);
}

.cl-card__body {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* ── Neighbourhood pills ────────────────────────────────────────────────────── */
.cl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.cl-pill {
    background: rgba(255,211,89,0.12);
    border: 1px solid rgba(255,211,89,0.3);
    color: var(--cl-yellow);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 100px;
}

.cl-pill--dark {
    background: rgba(81,38,99,0.08);
    border-color: rgba(81,38,99,0.2);
    color: var(--cl-purple);
}

/* ── CTA band ───────────────────────────────────────────────────────────────── */
.cl-cta-band {
    background: var(--cl-yellow);
    padding: 60px 0;
    text-align: center;
}

.cl-cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--cl-dark);
    margin: 0 0 12px;
}

.cl-cta-band p {
    color: var(--cl-dark);
    opacity: 0.75;
    margin: 0 0 28px;
    font-size: 1rem;
}

.cl-btn {
    display: inline-block;
    background: var(--cl-dark);
    color: var(--cl-white);
    font-family: var(--cl-font);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.cl-btn:hover {
    background: var(--cl-purple);
    transform: scale(1.03);
    text-decoration: none;
    color: var(--cl-white);
}

.cl-btn--yellow {
    background: var(--cl-yellow);
    color: var(--cl-dark);
}

.cl-btn--yellow:hover {
    background: #ffc820;
    color: var(--cl-dark);
}

.cl-btn--outline {
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--cl-white);
}

.cl-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--cl-white);
}

/* ── Packages ───────────────────────────────────────────────────────────────── */
.cl-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cl-pkg-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--cl-radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.cl-pkg-card__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cl-yellow);
    margin: 0 0 10px;
}

.cl-pkg-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 0 20px;
    flex: 1;
}

.cl-pkg-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.cl-pkg-card__features li {
    font-size: 0.87rem;
    padding: 5px 0 5px 20px;
    position: relative;
    opacity: 0.85;
}

.cl-pkg-card__features li::before {
    content: '✓';
    color: var(--cl-yellow);
    font-weight: 800;
    position: absolute;
    left: 0;
}

/* ── FAQ accordion ──────────────────────────────────────────────────────────── */
.cl-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-faq__item {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--cl-radius);
    overflow: hidden;
}

.cl-faq__item--light {
    border-color: rgba(81,38,99,0.12);
    background: var(--cl-white);
}

.cl-faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: var(--cl-font);
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--cl-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

.cl-faq__item--light .cl-faq__q {
    color: var(--cl-dark);
}

.cl-faq__q[aria-expanded="true"] {
    color: var(--cl-yellow);
}

.cl-faq__item--light .cl-faq__q[aria-expanded="true"] {
    color: var(--cl-purple);
}

.cl-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--cl-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-faq__icon svg {
    width: 9px;
    height: 9px;
    fill: var(--cl-dark);
    transition: transform 0.25s;
}

.cl-faq__q[aria-expanded="true"] .cl-faq__icon svg {
    transform: rotate(180deg);
}

.cl-faq__a {
    display: none;
    padding: 0 24px 20px;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.8;
}

.cl-faq__item.open .cl-faq__a {
    display: block;
}

/* ── Two-col layout ─────────────────────────────────────────────────────────── */
.cl-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cl-two-col--flip {
    direction: rtl;
}

.cl-two-col--flip > * {
    direction: ltr;
}

.cl-two-col__img {
    width: 100%;
    border-radius: var(--cl-radius);
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

/* ── Checklist ──────────────────────────────────────────────────────────────── */
.cl-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cl-checklist li::before {
    content: '✓';
    display: inline-flex;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--cl-yellow);
    color: var(--cl-dark);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ── Testimonials ───────────────────────────────────────────────────────────── */
.cl-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.cl-testimonial {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--cl-radius);
    padding: 28px 24px;
}

.cl-testimonial__quote {
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.85;
    margin: 0 0 16px;
    font-style: italic;
}

.cl-testimonial__author {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cl-yellow);
}

/* ── FAQ answer text ────────────────────────────────────────────────────────── */
.cl-faq__a {
    color: #ffffff !important;
    opacity: 0.85;
}

/* ── Hide WP page title output from GeneratePress ───────────────────────────── */
.page-title,
.entry-title,
.page-header,
.main-title {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cl-hero { padding: 70px 0 56px; }
    .cl-section { padding: 52px 0 60px; }
    .cl-two-col { grid-template-columns: 1fr; gap: 32px; }
    .cl-two-col--flip { direction: ltr; }
}

@media (max-width: 480px) {
    .cl-cards { grid-template-columns: 1fr; }
    .cl-pkg-grid { grid-template-columns: 1fr; }
    .cl-testimonials { grid-template-columns: 1fr; }
}
