/* =========================================================
   Cosmic Oracle — site theme
   Palette: Gold #ffd700 · Red #ab0505 · Wine #9c0e16
            White #ffffff · Purple #7d418d
   Loaded after the legacy theme files, so it wins on ties.
   ========================================================= */

:root {
    --co-gold: #ffd700;
    --co-gold-soft: #fff4b8;
    --co-gold-deep: #c9a100;
    --co-red: #ab0505;
    --co-red-hover: #8f0404;
    --co-wine: #9c0e16;
    --co-wine-dark: #5e070d;
    --co-night: #1f0306;
    --co-white: #ffffff;
    --co-purple: #7d418d;
    --co-purple-dark: #5f2f6c;

    --co-ink: #2a0b10;
    --co-ink-soft: #634a50;
    --co-cream: #fffaf0;
    --co-blush: #fdf3f3;
    --co-lilac: #f6eff8;
    --co-line: #eedfe1;

    --co-radius: 14px;
    --co-radius-sm: 8px;
    --co-shadow: 0 18px 40px -18px rgba(94, 7, 13, .28);
    --co-shadow-lg: 0 30px 60px -24px rgba(94, 7, 13, .38);

    --co-font-head: 'Playfair Display', Georgia, serif;
    --co-font-body: 'DM Sans', system-ui, sans-serif;

    --co-rays: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 215, 0, .07) 0deg 6deg, transparent 6deg 18deg);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html body.co-theme {
    margin: 0;
    font-family: var(--co-font-body) !important;
    font-size: 16px;
    line-height: 1.65;
    color: var(--co-ink);
    background: var(--co-white) !important;
    overflow-x: hidden;
}
/* Resets for the legacy template's global element rules. :where() keeps
   specificity at the element level so any component class wins. */
:where(body.co-theme) :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--co-font-head);
    font-weight: 700;
    color: var(--co-ink);
    letter-spacing: -.01em;
    line-height: 1.2;
}
:where(body.co-theme) :is(p, li, span, input, textarea, select, button, label, b, strong) {
    font-family: inherit;
    letter-spacing: normal;
}
:where(body.co-theme) p { color: var(--co-ink-soft); line-height: 1.7; }
:where(body.co-theme) span { display: inline; font-size: inherit; line-height: inherit; }
:where(body.co-theme) a { display: inline; color: var(--co-red); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
:where(body.co-theme) a:hover { color: var(--co-wine); }
:where(body.co-theme) :is(input, textarea, select, button) { font-family: var(--co-font-body); }
body.co-theme ::selection { background: var(--co-gold); color: var(--co-night); }
body.co-theme::-webkit-scrollbar { width: 10px; }
body.co-theme::-webkit-scrollbar-track { background: var(--co-cream); }
body.co-theme::-webkit-scrollbar-thumb { background: var(--co-wine); border-radius: 10px; }

.co-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.co-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: var(--co-radius-sm);
    border: 2px solid transparent;
    font-family: var(--co-font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.co-btn:hover { transform: translateY(-2px); }
.co-btn i { font-size: 13px; }

body.co-theme .co-btn--primary { background: var(--co-red); color: var(--co-white); box-shadow: 0 12px 24px -12px rgba(171, 5, 5, .7); }
body.co-theme .co-btn--primary:hover { background: var(--co-red-hover); color: var(--co-white); }
body.co-theme .co-btn--gold { background: var(--co-gold); color: var(--co-night); box-shadow: 0 12px 24px -12px rgba(255, 215, 0, .7); }
body.co-theme .co-btn--gold:hover { background: var(--co-gold-soft); color: var(--co-night); }
body.co-theme .co-btn--outline { background: transparent; color: var(--co-purple); border-color: var(--co-purple); }
body.co-theme .co-btn--outline:hover { background: var(--co-purple); color: var(--co-white); }
body.co-theme .co-btn--ghost { background: transparent; color: var(--co-white); border-color: rgba(255, 255, 255, .55); }
body.co-theme .co-btn--ghost:hover { background: var(--co-white); color: var(--co-wine); border-color: var(--co-white); }
.co-btn--block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.co-section { position: relative; padding: 96px 0; }
.co-section--cream { background: var(--co-cream); }
.co-section--blush { background: var(--co-blush); }
.co-section--lilac { background: var(--co-lilac); }
.co-section--wine {
    background: var(--co-rays), linear-gradient(160deg, var(--co-wine) 0%, var(--co-wine-dark) 100%);
    background-size: 1600px 1600px, auto;
    background-position: center, center;
    color: var(--co-white);
}
.co-section--wine h2, .co-section--wine h3 { color: var(--co-white) !important; }
.co-section--wine p { color: rgba(255, 255, 255, .82); }

.co-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--co-purple);
}
.co-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--co-gold-deep); }
.co-section--wine .co-eyebrow, .co-page-hero .co-eyebrow, .co-hero .co-eyebrow { color: var(--co-gold); }
.co-section--wine .co-eyebrow::before, .co-page-hero .co-eyebrow::before, .co-hero .co-eyebrow::before { background: var(--co-gold); }

.co-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.co-head .co-eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .5; }
.co-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin: 0 0 16px; }
.co-head p { font-size: 17px; margin: 0; }
.co-head--left { margin-left: 0; text-align: left; }
.co-head--left .co-eyebrow::after { display: none; }

.co-accent { color: var(--co-red); font-style: italic; }
.co-section--wine .co-accent, .co-page-hero .co-accent, .co-hero .co-accent, .co-cta .co-accent { color: var(--co-gold); }

/* ---------- Cards & grids ---------- */
.co-grid { display: grid; gap: 24px; }
.co-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.co-card {
    position: relative;
    padding: 32px;
    border-radius: var(--co-radius);
    background: var(--co-white);
    border: 1px solid var(--co-line);
    box-shadow: var(--co-shadow);
}
.co-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.co-card p:last-child { margin-bottom: 0; }

.co-icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--co-lilac);
    color: var(--co-purple);
    font-size: 22px;
}
.co-icon--red { background: var(--co-blush); color: var(--co-red); }
.co-icon--gold { background: var(--co-gold); color: var(--co-night); }

/* ---------- Header ---------- */
.co-topbar {
    background: var(--co-wine);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}
.co-topbar .co-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.co-topbar span, .co-topbar a { color: rgba(255, 255, 255, .88) !important; font-size: 13px; }
.co-topbar a:hover { color: var(--co-gold) !important; }
.co-topbar i { color: var(--co-gold); margin-right: 6px; }

.co-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--co-white);
    border-bottom: 1px solid var(--co-line);
    transition: box-shadow .25s ease;
}
.co-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(42, 11, 16, .35); }
.co-header .co-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.co-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.co-logo svg { width: 48px; height: 48px; flex-shrink: 0; }
.co-logo-text { display: flex; flex-direction: column; line-height: 1; }
.co-logo-text strong {
    font-family: var(--co-font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--co-ink);
    letter-spacing: -.01em;
}
.co-logo-text strong em { font-style: italic; color: var(--co-red); }
.co-logo-text small {
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--co-purple);
}
.co-logo--light .co-logo-text strong { color: var(--co-white); }
.co-logo--light .co-logo-text strong em { color: var(--co-gold); }
.co-logo--light .co-logo-text small { color: rgba(255, 255, 255, .7); }

.co-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.co-nav > li { position: relative; list-style: none; }
.co-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 30px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--co-ink) !important;
    background: none;
    border: 0;
    cursor: pointer;
}
.co-nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 22px;
    height: 2px;
    background: var(--co-red);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.co-nav-link:hover, .co-nav-link.active { color: var(--co-red) !important; }
.co-nav-link:hover::after, .co-nav-link.active::after { transform: scaleX(1); }
.co-nav-link i { font-size: 10px; transition: transform .25s ease; }
.co-has-sub:hover .co-nav-link i, .co-has-sub.is-open .co-nav-link i { transform: rotate(180deg); }

.co-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 300px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--co-white);
    border: 1px solid var(--co-line);
    border-top: 3px solid var(--co-red);
    border-radius: 0 0 var(--co-radius) var(--co-radius);
    box-shadow: var(--co-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.co-has-sub:hover .co-sub, .co-has-sub:focus-within .co-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.co-sub li { list-style: none; }
.co-sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--co-radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--co-ink) !important;
}
.co-sub a:hover, .co-sub a.active { background: var(--co-blush); color: var(--co-red) !important; }
.co-sub-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--co-lilac);
    color: var(--co-purple);
    font-size: 14px;
}
.co-sub a:hover .co-sub-icon, .co-sub a.active .co-sub-icon { background: var(--co-red); color: var(--co-white); }

.co-header-actions { display: flex; align-items: center; gap: 12px; }
.co-header-actions .co-btn { min-height: 44px; padding: 0 20px; font-size: 14px; }

.co-user { position: relative; }
.co-user-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--co-gold);
    background: var(--co-wine);
    color: var(--co-white);
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
}
.co-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--co-white);
    border: 1px solid var(--co-line);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow-lg);
    display: none;
    z-index: 1100;
}
.co-user.is-open .co-user-menu { display: block; }
.co-user-menu a { display: block; padding: 10px 12px; border-radius: var(--co-radius-sm); font-size: 14.5px; font-weight: 600; color: var(--co-ink) !important; }
.co-user-menu a:hover { background: var(--co-blush); color: var(--co-red) !important; }
.co-user-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--co-radius-sm); background: none; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--co-ink); cursor: pointer; }
.co-user-menu button:hover { background: var(--co-blush); color: var(--co-red); }

.co-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--co-line);
    border-radius: var(--co-radius-sm);
    background: var(--co-white);
    cursor: pointer;
}
.co-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--co-wine); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.co-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.co-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.co-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.co-menu { display: flex; align-items: center; gap: 20px; }

@media (max-width: 1199.98px) {
    .co-burger { display: inline-block; }
    .co-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: var(--co-white);
        border-bottom: 3px solid var(--co-red);
        box-shadow: var(--co-shadow-lg);
        max-height: calc(100vh - 124px);
        overflow-y: auto;
    }
    .co-menu.is-open { display: flex; }
    .co-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .co-nav > li { border-bottom: 1px solid var(--co-line); }
    .co-nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; }
    .co-nav-link::after { display: none; }
    .co-sub {
        position: static;
        width: 100%;
        padding: 0 0 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .co-has-sub:hover .co-sub, .co-has-sub:focus-within .co-sub { transform: none; }
    .co-has-sub.is-open .co-sub { display: block; }
    .co-has-sub:hover .co-nav-link i { transform: none; }
    .co-has-sub.is-open .co-nav-link i { transform: rotate(180deg); }
    .co-header-actions--menu { padding-top: 18px; }
    .co-header-actions--menu .co-btn { width: 100%; }
    .co-header-actions--menu .co-user { display: none; }
}
@media (max-width: 767.98px) {
    .co-topbar .co-topbar-left { display: none; }
    .co-topbar .co-container { justify-content: center; }
    .co-header .co-container { min-height: 70px; }
    .co-logo svg { width: 40px; height: 40px; }
    .co-logo-text strong { font-size: 20px; }
    .co-logo-text small { font-size: 9px; letter-spacing: .26em; }
    .co-header-actions--bar .co-btn { display: none; }
}

/* ---------- Home hero ---------- */
.co-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 110px;
    color: var(--co-white);
    background:
        radial-gradient(circle at 78% 50%, rgba(125, 65, 141, .55) 0%, transparent 46%),
        linear-gradient(135deg, var(--co-wine-dark) 0%, var(--co-wine) 55%, var(--co-red) 100%);
}
.co-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10%;
    width: 1500px;
    height: 1500px;
    transform: translateY(-50%);
    background: var(--co-rays);
    border-radius: 50%;
    pointer-events: none;
    animation: coSpin 240s linear infinite;
}
.co-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--co-gold), var(--co-purple), var(--co-gold));
}
.co-hero .co-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.co-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 5.6vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    color: var(--co-white) !important;
}
.co-hero-lead { max-width: 560px; margin: 0 0 34px; font-size: 18px; color: rgba(255, 255, 255, .85) !important; }
.co-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.co-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 560px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 215, 0, .35);
}
.co-hero-facts div { padding: 18px 12px 0 0; }
.co-hero-facts strong { display: block; font-family: var(--co-font-head); font-size: 28px; color: var(--co-gold); line-height: 1.1; }
.co-hero-facts span { font-size: 13px; color: rgba(255, 255, 255, .75); }

.co-oracle { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; }
.co-oracle-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.co-oracle-svg .co-oracle-swirl { transform-box: view-box; transform-origin: 300px 250px; animation: coSpin 40s linear infinite; }
.co-oracle-svg .co-twinkle { transform-box: fill-box; transform-origin: center; animation: coTwinkle 3.2s ease-in-out infinite; }
.co-oracle-svg .co-twinkle:nth-of-type(2n) { animation-delay: 1.1s; }
.co-oracle-svg .co-twinkle:nth-of-type(3n) { animation-delay: 2.2s; }
.co-oracle-svg .co-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: coFlicker 1.6s ease-in-out infinite; }
.co-oracle-svg .co-flame-glow { animation: coGlow 1.6s ease-in-out infinite; }
.co-oracle-svg .co-smoke { stroke-dasharray: 260; animation: coSmoke 6s ease-in-out infinite; }
.co-oracle-svg .co-smoke--b { animation-delay: 3s; }
.co-oracle .co-wheel-tag--1 { top: 4%; left: -2%; }
.co-oracle .co-wheel-tag--2 { top: 30%; right: -6%; }
.co-oracle .co-wheel-tag--3 { bottom: 6%; left: -4%; }
@media (max-width: 767.98px) {
    .co-oracle .co-wheel-tag--1 { left: 0; }
    .co-oracle .co-wheel-tag--2 { right: 0; }
    .co-oracle .co-wheel-tag--3 { left: 0; }
}
@keyframes coTwinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }
@keyframes coFlicker { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 30% { transform: scale(.92, 1.08) rotate(-3deg); } 60% { transform: scale(1.05, .95) rotate(2deg); } }
@keyframes coGlow { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes coSmoke { 0% { stroke-dashoffset: 260; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -260; opacity: 0; } }
.co-wheel-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: var(--co-white);
    color: var(--co-ink);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    animation: coBob 5s ease-in-out infinite;
}
.co-wheel-tag i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--co-gold);
    color: var(--co-night);
    font-style: normal;
    font-size: 15px;
}
.co-wheel-tag--1 { top: 8%; left: -4%; }
.co-wheel-tag--2 { top: 44%; right: -8%; animation-delay: 1.2s; }
.co-wheel-tag--3 { bottom: 6%; left: 6%; animation-delay: 2.4s; }
.co-wheel-tag--2 i { background: var(--co-purple); color: var(--co-white); }
.co-wheel-tag--3 i { background: var(--co-red); color: var(--co-white); }

/* ---------- Ticker ---------- */
.co-ticker { overflow: hidden; background: var(--co-gold); color: var(--co-night); border-bottom: 1px solid var(--co-gold-deep); }
.co-ticker-track { display: flex; width: max-content; animation: coTicker 40s linear infinite; }
.co-ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-family: var(--co-font-head); font-size: 18px; font-weight: 600; white-space: nowrap; color: var(--co-night); }
.co-ticker span::after { content: "✦"; font-style: normal; font-size: 14px; color: var(--co-red); }

/* ---------- Zodiac tiles ---------- */
.co-signs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.co-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 12px 20px;
    text-align: center;
    border-radius: var(--co-radius);
    background: var(--co-white);
    border: 1px solid var(--co-line);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.co-sign img { width: 64px; height: 64px; margin-bottom: 8px; transition: transform .35s ease; }
.co-sign strong { font-family: var(--co-font-head); font-size: 18px; color: var(--co-ink); }
.co-sign small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--co-purple); }
.co-sign:hover { transform: translateY(-6px); border-color: var(--co-red); box-shadow: var(--co-shadow); }
.co-sign:hover img { transform: rotate(-12deg) scale(1.06); }

/* ---------- Service list ---------- */
.co-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    border-radius: var(--co-radius);
    background: var(--co-white);
    border: 1px solid var(--co-line);
    color: var(--co-ink) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.co-service .co-icon { margin-bottom: 22px; }
.co-service h3 { font-size: 22px; margin: 0 0 10px; }
.co-service p { flex: 1; margin: 0 0 22px; }
.co-service-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--co-red); }
.co-service-more i { transition: transform .2s ease; }
.co-service:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--co-shadow-lg); }
.co-service:hover .co-service-more i { transform: translateX(4px); }
.co-service:hover .co-icon { background: var(--co-red); color: var(--co-white); }

.co-feature {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--co-radius);
    aspect-ratio: 4 / 5;
    background: var(--co-wine);
}
.co-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.co-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(31, 3, 6, .9) 100%); }
.co-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; }
.co-feature-body h3 { margin: 0 0 6px; font-size: 22px; color: var(--co-white) !important; }
.co-feature-body span { font-size: 13px; font-weight: 700; color: var(--co-gold); }
.co-feature:hover img { transform: scale(1.06); }

/* ---------- Split / why ---------- */
.co-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.co-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 28px 0 32px; padding: 0; list-style: none; }
.co-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--co-ink); }
.co-checks li::before { content: "✦"; color: var(--co-red); }
.co-section--wine .co-checks li { color: var(--co-white); }
.co-section--wine .co-checks li::before { color: var(--co-gold); }

.co-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-stat { padding: 28px; border-radius: var(--co-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 215, 0, .3); }
.co-stat strong { display: block; font-family: var(--co-font-head); font-size: 44px; line-height: 1; color: var(--co-gold); margin-bottom: 8px; }
.co-stat span { color: rgba(255, 255, 255, .82); font-size: 15px; }
.co-stat:nth-child(2), .co-stat:nth-child(3) { background: rgba(125, 65, 141, .35); }

/* ---------- Steps ---------- */
.co-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.co-steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--co-gold-deep) 0 8px, transparent 8px 16px); }
.co-step { position: relative; text-align: center; padding: 0 8px; }
.co-step-num {
    position: relative;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--co-white);
    border: 2px solid var(--co-red);
    color: var(--co-red);
    font-family: var(--co-font-head);
    font-size: 20px;
    font-weight: 700;
}
.co-step:nth-child(even) .co-step-num { border-color: var(--co-purple); color: var(--co-purple); }
.co-step h3 { font-size: 20px; margin: 0 0 8px; }
.co-step p { margin: 0; font-size: 15px; }

/* ---------- Testimonials ---------- */
.co-quote { display: flex; flex-direction: column; height: 100%; padding: 30px; border-radius: var(--co-radius); background: var(--co-white); border: 1px solid var(--co-line); }
.co-quote-stars { color: var(--co-gold-deep); letter-spacing: 3px; margin-bottom: 14px; }
.co-quote p { flex: 1; margin: 0 0 22px; font-family: var(--co-font-head); font-size: 17px; font-style: italic; line-height: 1.6; color: var(--co-ink) !important; }
.co-quote-user { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--co-line); }
.co-quote-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--co-purple); color: var(--co-white); font-weight: 700; }
.co-quote:nth-child(even) .co-quote-avatar { background: var(--co-red); }
.co-quote-user strong { display: block; font-size: 15px; color: var(--co-ink); }
.co-quote-user div span { font-size: 13px; color: var(--co-ink-soft); }

.co-rating-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; margin-top: 48px; padding: 28px; border-radius: var(--co-radius); background: var(--co-white); border: 1px dashed var(--co-gold-deep); }
.co-rating-bar div { display: flex; align-items: center; gap: 14px; }
.co-rating-bar b { font-family: var(--co-font-head); font-size: 40px; color: var(--co-red); line-height: 1; }
.co-rating-bar span { font-size: 14px; line-height: 1.35; color: var(--co-ink-soft); }

/* ---------- FAQ ---------- */
.co-faq { display: grid; gap: 12px; }
.co-faq-item { border-radius: var(--co-radius); background: var(--co-white); border: 1px solid var(--co-line); overflow: hidden; transition: border-color .2s ease; }
.co-faq-item.is-open { border-color: var(--co-red); }
.co-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border: 0;
    background: none;
    text-align: left;
    font-family: var(--co-font-head) !important;
    font-size: 18px;
    font-weight: 600;
    color: var(--co-ink);
    cursor: pointer;
}
.co-faq-q i { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--co-blush); color: var(--co-red); font-size: 12px; transition: transform .25s ease, background-color .2s ease; }
.co-faq-item.is-open .co-faq-q i { transform: rotate(45deg); background: var(--co-red); color: var(--co-white); }
.co-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.co-faq-a > div { overflow: hidden; }
.co-faq-a p { margin: 0; padding: 0 24px 22px; }
.co-faq-item.is-open .co-faq-a { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.co-contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.co-info { display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: var(--co-radius); background: var(--co-wine); color: var(--co-white); background-image: var(--co-rays); background-size: 900px 900px; background-position: 120% 120%; }
.co-info h3 { color: var(--co-white) !important; font-size: 26px; margin: 0; }
.co-info p { color: rgba(255, 255, 255, .8); margin: 0; }
.co-info-row { display: flex; gap: 14px; }
.co-info-row i { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: rgba(255, 215, 0, .15); color: var(--co-gold); }
.co-info-row strong { display: block; color: var(--co-gold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.co-info-row span, .co-info-row a { color: var(--co-white) !important; font-size: 15px; }
.co-info-row a:hover { color: var(--co-gold) !important; }

.co-alert { padding: 14px 18px; margin-bottom: 24px; border-radius: var(--co-radius-sm); font-weight: 600; }
.co-alert--success { background: #eef8ee; border: 1px solid #b6dcb6; color: #1e5c1e; }
.co-alert--error { background: var(--co-blush); border: 1px solid #f0b8b8; color: var(--co-red); }

/* ---------- Forms ---------- */
.co-form .row { --bs-gutter-y: 16px; }
.co-field { margin-bottom: 0; }
.co-field label, .co-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--co-ink); }
body.co-theme .co-form .form-control,
body.co-theme .co-form .form-select,
body.co-theme .co-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px !important;
    border-radius: var(--co-radius-sm) !important;
    border: 1px solid #e3d3d6 !important;
    background-color: var(--co-white) !important;
    color: var(--co-ink) !important;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.co-theme .co-form textarea.form-control, body.co-theme textarea.co-input { min-height: 140px; resize: vertical; }
body.co-theme .co-form .form-select, body.co-theme .co-form select.form-control, body.co-theme select.co-input {
    appearance: none;
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237d418d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px 10px !important;
}
body.co-theme .co-form .form-control::placeholder, body.co-theme .co-input::placeholder { color: #a08b90 !important; }
body.co-theme .co-form .form-control:focus,
body.co-theme .co-form .form-select:focus,
body.co-theme .co-input:focus {
    outline: none;
    border-color: var(--co-purple) !important;
    box-shadow: 0 0 0 4px rgba(125, 65, 141, .14) !important;
}
.co-form-submit { margin-top: 22px; }

/* ---------- CTA band ---------- */
.co-cta { position: relative; overflow: hidden; padding: 72px 56px; border-radius: 20px; text-align: center; color: var(--co-white); background: linear-gradient(120deg, var(--co-purple-dark) 0%, var(--co-purple) 40%, var(--co-wine) 100%); }
.co-cta::before { content: ""; position: absolute; inset: -50%; background: var(--co-rays); animation: coSpin 200s linear infinite; pointer-events: none; }
.co-cta > * { position: relative; }
.co-cta h2 { color: var(--co-white) !important; font-size: clamp(30px, 4vw, 48px); margin: 0 0 14px; }
.co-cta p { max-width: 640px; margin: 0 auto 30px; color: rgba(255, 255, 255, .85) !important; font-size: 17px; }
.co-cta .co-hero-actions { justify-content: center; }
.co-cta .co-eyebrow { color: var(--co-gold); }
.co-cta .co-eyebrow::before, .co-cta .co-head .co-eyebrow::after { background: var(--co-gold); }

/* ---------- Inner page hero ---------- */
.co-page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    color: var(--co-white);
    background:
        radial-gradient(circle at 85% 40%, rgba(125, 65, 141, .5) 0%, transparent 40%),
        linear-gradient(135deg, var(--co-wine-dark) 0%, var(--co-wine) 60%, var(--co-red) 100%);
}
.co-page-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -300px;
    width: 1100px;
    height: 1100px;
    transform: translateY(-50%);
    background: var(--co-rays);
    border-radius: 50%;
    pointer-events: none;
}
.co-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--co-gold), var(--co-purple), var(--co-gold)); }
.co-page-hero .co-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 48px; }
.co-page-hero--plain .co-container { grid-template-columns: 1fr; }
.co-page-hero h1 { margin: 0 0 16px; font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; color: var(--co-white) !important; }
.co-page-hero p { max-width: 680px; margin: 0; font-size: 17px; color: rgba(255, 255, 255, .85) !important; }
.co-page-hero .co-hero-actions { margin-top: 28px; }
.co-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.co-crumbs li { color: rgba(255, 255, 255, .7); }
.co-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--co-gold); }
.co-crumbs a { color: var(--co-gold) !important; }
.co-crumbs a:hover { color: var(--co-white) !important; }
.co-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.co-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 215, 0, .14); border: 1px solid rgba(255, 215, 0, .4); color: var(--co-gold) !important; font-size: 13px; font-weight: 700; }
.co-badge i { font-size: 12px; }
.co-page-hero-art { position: relative; width: 360px; max-width: 100%; aspect-ratio: 1; margin: -24px 0 -40px auto; }
.co-page-hero-art--sign { width: 300px; margin: 0 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--co-gold); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(255, 215, 0, .12); overflow: hidden; }
.co-page-hero-art--sign img { width: 62%; height: 62%; animation: none; }

/* ---------- Legal / prose ---------- */
.co-prose-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.co-toc { position: sticky; top: 110px; padding: 24px; border-radius: var(--co-radius); background: var(--co-cream); border: 1px solid var(--co-line); }
.co-toc h4 { font-size: 15px !important; font-family: var(--co-font-body) !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--co-purple) !important; margin: 0 0 12px; }
.co-toc ol { margin: 0; padding-left: 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.co-toc li { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.co-toc a { color: var(--co-ink) !important; }
.co-toc a:hover { color: var(--co-red) !important; }

.co-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 32px; padding: 20px 24px; border-left: 4px solid var(--co-red); border-radius: 0 var(--co-radius-sm) var(--co-radius-sm) 0; background: var(--co-blush); }
.co-meta div { font-size: 14px; color: var(--co-ink-soft); }
.co-meta b { color: var(--co-ink); }

.co-prose { color: var(--co-ink-soft); }
.co-prose > section, .co-prose .co-block { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--co-line); scroll-margin-top: 110px; }
.co-prose > section:last-child, .co-prose .co-block:last-child { border-bottom: 0; margin-bottom: 0; }
.co-prose h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 0 0 14px; color: var(--co-ink) !important; }
.co-prose h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; color: var(--co-purple) !important; }
.co-prose p, .co-prose li { font-size: 16px; line-height: 1.8; color: var(--co-ink-soft) !important; }
.co-prose ul, .co-prose ol { padding-left: 22px; margin: 10px 0 16px; }
.co-prose li { margin-bottom: 6px; }
.co-prose ul li::marker { color: var(--co-red); }
.co-prose b, .co-prose strong { color: var(--co-ink); font-weight: 700; }
.co-prose a { color: var(--co-red) !important; border-bottom: 1px solid rgba(171, 5, 5, .3); }
.co-prose a:hover { border-color: var(--co-red); }
.co-note { margin-top: 24px; padding: 22px 24px; border-radius: var(--co-radius); background: var(--co-lilac); border: 1px solid #e4d3ea; }
.co-note p:last-child { margin-bottom: 0; }

/* ---------- Service booking (form + invoice) ---------- */
.co-booking { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.co-booking-media { margin: -32px -32px 28px; border-radius: var(--co-radius) var(--co-radius) 0 0; overflow: hidden; background: var(--co-wine); border-bottom: 1px solid var(--co-line); }
.co-booking-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 38%; }
.co-booking-head { margin-bottom: 26px; }
.co-booking-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.co-booking-head h3 { font-size: 19px; margin: 18px 0 8px; color: var(--co-purple) !important; }
.co-price { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--co-radius-sm); background: var(--co-gold); color: var(--co-night) !important; font-weight: 700; font-size: 18px; }
.co-price i { font-size: 14px; }
.co-summary { position: sticky; top: 110px; padding: 32px; border-radius: var(--co-radius); background: var(--co-wine); color: var(--co-white); background-image: var(--co-rays); background-size: 900px 900px; background-position: 130% -20%; }
.co-summary h4 { margin: 0 0 12px; font-size: 28px; color: var(--co-white) !important; }
.co-summary p { color: rgba(255, 255, 255, .8) !important; margin: 0 0 24px; }
body.co-theme .co-summary a { color: var(--co-gold) !important; text-decoration: underline; }
body.co-theme .co-summary a:hover { color: var(--co-white) !important; }
.co-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--co-radius-sm); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 215, 0, .4); }
.co-total span:first-child { font-weight: 600; color: var(--co-white); }
.co-total span:last-child { font-family: var(--co-font-head); font-size: 30px; font-weight: 700; color: var(--co-gold); }
.co-ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.co-ticks li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .85) !important; font-size: 15px; }
.co-ticks i { margin-top: 4px; color: var(--co-gold); }
.co-card .co-ticks li { color: var(--co-ink-soft) !important; }
.co-card .co-ticks i { color: var(--co-red); }

/* label rendered under an input as a hint */
.co-form .co-hint, .co-form .form-group > label { display: block; margin: 6px 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--co-purple); }
.co-form .form-group { position: relative; margin-bottom: 18px; }

body.co-theme .suggestions-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; display: none; max-height: 260px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--co-white); border: 1px solid var(--co-line); border-radius: var(--co-radius-sm); box-shadow: var(--co-shadow-lg); }
body.co-theme .suggestions-list li { padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--co-ink); cursor: pointer; }
body.co-theme .suggestions-list li:hover, body.co-theme .suggestions-list li.active { background: var(--co-blush); color: var(--co-red); }
body.co-theme .text-danger { color: var(--co-red) !important; font-size: 13px; }
body.co-theme .form-control.is-invalid, body.co-theme .form-select.is-invalid { border-color: var(--co-red) !important; }
body.co-theme .alert-danger { background: var(--co-blush); border: 1px solid #f0b8b8; color: var(--co-red); border-radius: var(--co-radius-sm); }
body.co-theme .alert-success { background: #eef8ee; border: 1px solid #b6dcb6; color: #1e5c1e; border-radius: var(--co-radius-sm); }

.co-book-login p { margin: 12px 0 0; text-align: center; font-size: 14px; }
.co-book-login p a { font-weight: 700; }

/* ---------- Tabs & pills ---------- */
.co-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; border: 0; }
body.co-theme .co-tabs a, body.co-theme .co-tabs button { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--co-radius-sm); border: 1px solid var(--co-line); background: var(--co-white); color: var(--co-ink) !important; font-weight: 600; font-size: 14px; cursor: pointer; }
body.co-theme .co-tabs a.active, body.co-theme .co-tabs a:hover, body.co-theme .co-tabs button.active, body.co-theme .co-tabs button:hover { background: var(--co-red); border-color: var(--co-red); color: var(--co-white) !important; }

/* ---------- Tables (checkout, account) ---------- */
.co-table { width: 100%; border-collapse: collapse; }
.co-table th, .co-table td { padding: 14px 12px; border-bottom: 1px solid var(--co-line); text-align: left; font-size: 15px; }
.co-table th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--co-purple); }

/* ---------- Footer ---------- */
.co-footer { position: relative; overflow: hidden; color: rgba(255, 255, 255, .78); background: var(--co-night); }
.co-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--co-red), var(--co-gold), var(--co-purple)); }
.co-footer-main { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1fr; gap: 40px; padding: 72px 0 52px; }
.co-footer h5 { margin: 0 0 20px; font-family: var(--co-font-head) !important; font-size: 20px; color: var(--co-gold) !important; }
.co-footer p { color: rgba(255, 255, 255, .72) !important; font-size: 15px; }
.co-footer-about { max-width: 360px; margin: 20px 0 24px; }
.co-footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.co-footer-links a, .co-footer a { color: rgba(255, 255, 255, .78) !important; font-size: 15px; }
.co-footer-links a:hover, .co-footer a:hover { color: var(--co-gold) !important; }
.co-footer-contact { display: grid; gap: 12px; max-width: 340px; }
.co-footer-contact div, .co-footer-contact a { display: flex; gap: 12px; font-size: 14px; line-height: 1.6; }
.co-footer-contact i { margin-top: 4px; color: var(--co-gold); width: 16px; }
.co-footer-groups { display: grid; gap: 10px; }
.co-drop { border: 1px solid rgba(255, 215, 0, .2); border-radius: var(--co-radius-sm); }
.co-drop-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 0; background: none; color: var(--co-white); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.co-drop-toggle i { color: var(--co-gold); font-size: 12px; transition: transform .25s ease; }
.co-drop.open .co-drop-toggle i { transform: rotate(180deg); }
.co-drop-menu { display: none; margin: 0; padding: 0 16px 14px; list-style: none; max-height: 220px; overflow-y: auto; }
.co-drop.open .co-drop-menu { display: grid; gap: 8px; }
.co-drop-menu a { font-size: 14px !important; }
.co-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.co-footer-bottom span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.co-pay { display: flex; gap: 8px; }
.co-pay img { height: 30px; width: auto; border-radius: 4px; background: var(--co-white); }

/* ---------- Utilities: preloader, back to top, reveal ---------- */
body.co-theme #preloader { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: var(--co-wine) !important; }
.co-loader { width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(255, 215, 0, .25); border-top-color: var(--co-gold); animation: coSpin 1s linear infinite; }
body.co-theme .back-to-top {
    position: fixed;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 900;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: grid;
    place-items: center;
    border-radius: var(--co-radius-sm) !important;
    background: var(--co-red) !important;
    color: var(--co-white) !important;
    font-size: 28px !important;
    box-shadow: 0 12px 24px -10px rgba(171, 5, 5, .7) !important;
}
body.co-theme .back-to-top i { font-size: 28px !important; line-height: 1 !important; }
/* legacy app.css shrinks the button to scale(0.3) and never resets it */
body.co-theme .back-to-top { transform: translateY(12px) !important; pointer-events: none; }
body.co-theme .back-to-top.show { transform: none !important; pointer-events: auto; }
@media (max-width: 490px) {
    body.co-theme .back-to-top { right: 16px !important; bottom: 16px !important; width: 50px !important; height: 50px !important; }
    body.co-theme .back-to-top i { font-size: 24px !important; }
}
body.co-theme .back-to-top:hover { background: var(--co-wine) !important; }

.co-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.co-reveal.is-visible { opacity: 1; transform: none; }

@keyframes coSpin { to { transform: rotate(360deg); } }
@keyframes coBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes coTicker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .co-reveal { opacity: 1; transform: none; }
}

/* ---------- Legacy component overrides (forms/buttons still used by service & auth pages) ---------- */
body.co-theme .light-btn,
body.co-theme .loginbtn,
body.co-theme .checkout_billing .place_order button,
body.co-theme .customer_detail_container .save_btn {
    background: var(--co-red) !important;
    border: 0 !important;
    border-radius: var(--co-radius-sm) !important;
    color: var(--co-white) !important;
    box-shadow: none !important;
}
body.co-theme .light-btn:hover,
body.co-theme .loginbtn:hover { background: var(--co-red-hover) !important; color: var(--co-white) !important; }
body.co-theme .light-btn span { color: var(--co-white) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .co-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .co-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .co-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .co-footer-main > :first-child { grid-column: 1 / -1; }
    .co-footer-about, .co-footer-contact { max-width: 560px; }
}
@media (max-width: 991.98px) {
    .co-section { padding: 72px 0; }
    .co-hero { padding: 64px 0 90px; }
    .co-hero .co-container, .co-split, .co-contact { grid-template-columns: 1fr; }
    .co-hero .co-container { gap: 48px; }
    .co-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .co-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .co-steps::before { display: none; }
    .co-booking { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .co-page-hero .co-container { grid-template-columns: 1fr; }
    .co-page-hero-art { display: none; }
    .co-prose-wrap { grid-template-columns: 1fr; }
    .co-toc { position: static; }
    .co-toc ol { max-height: none; }
}
@media (max-width: 767.98px) {
    .co-container { padding: 0 16px; }
    .co-section { padding: 60px 0; }
    .co-head { margin-bottom: 40px; }
    .co-grid--2, .co-grid--3, .co-grid--4 { grid-template-columns: 1fr; }
    .co-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .co-sign { padding: 18px 6px 14px; }
    .co-sign img { width: 48px; height: 48px; }
    .co-sign strong { font-size: 15px; }
    .co-sign small { font-size: 10px; }
    .co-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .co-wheel-tag { font-size: 12px; padding: 7px 12px 7px 7px; }
    .co-wheel-tag i { width: 28px; height: 28px; font-size: 13px; }
    .co-checks { grid-template-columns: 1fr; }
    .co-steps { grid-template-columns: 1fr; }
    .co-card, .co-service, .co-info, .co-summary { padding: 24px; }
    .co-booking-media { margin: -24px -24px 24px; }
    .co-cta { padding: 48px 22px; border-radius: var(--co-radius); }
    .co-hero-actions .co-btn { flex: 1 1 100%; }
    .co-footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 56px 0 32px; }
    .co-footer-main > :last-child { grid-column: 1 / -1; }
    .co-footer-bottom { flex-direction: column; text-align: center; }
    .co-page-hero { padding: 52px 0 60px; }
}
@media (max-width: 420px) {
    .co-footer-links a { font-size: 14px !important; }
    .co-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* legacy custome/style.css inverts the time icon to white, which hides it on light inputs */
body.co-theme input[type="time"]::-webkit-calendar-picker-indicator { filter: none !important; opacity: .75; cursor: pointer; }
body.co-theme input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
