/* =====================================================================
   CC27 chrome.css — 2027 header, mobile menu popup, Follow-us band, footer.
   Loads wherever a CC27 header/footer template is in use (any page), plus
   cc27_in_scope pages. Visual values live in the global classes; this file
   holds structure, hovers and plugin-widget styling. Append at the END.
   ===================================================================== */

/* ===== Header: sticky floating panel ===== */
.elementor-location-header:has(.cc27-hdr) { position: sticky; top: 0; z-index: 100; }
.admin-bar .elementor-location-header:has(.cc27-hdr) { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header:has(.cc27-hdr) { top: 46px; } }
.elementor .cc27-hdr__panel { margin-inline: auto; box-shadow: 30px 30px 90px -27px rgba(255,0,163,.18), 0 12px 30px rgba(6,1,14,.45); }

/* Logo + 2027 Edition splash (supplied artwork, no effects) */
.elementor .cc27-logo { align-self: flex-start; height: fit-content; flex-shrink: 0; }
.elementor .cc27-logo img { display: block; width: 100%; height: auto; }
.elementor .cc27-logo img.cc27-yr-splash { position: absolute; left: 36%; top: 68.5%; width: 62%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }

/* Desktop nav (Elementor Pro WordPress Menu widget, menu "CC27 Main") */
.elementor .cc27-nav { gap: 10px; }
.cc27-nav .elementor-nav-menu--main .elementor-item { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: Cairo, 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; color: #F9F6FF; white-space: nowrap; }
.cc27-nav .elementor-nav-menu--main .elementor-item:hover, .cc27-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { color: #FFFFFF; }
.cc27-nav .e--pointer-underline .elementor-item:after { height: 2px; bottom: 6px; left: 12px; right: 12px; width: auto; border-radius: 2px; background-color: #F9F6FF; }
@media (max-width: 1366px) { .cc27-nav .elementor-nav-menu--main .elementor-item { font-size: 14px; padding: 0 8px; } .cc27-nav .e--pointer-underline .elementor-item:after { left: 8px; right: 8px; } }

/* Header CTA */
.elementor .btn--header { transition: background-color .2s, color .2s; }
.elementor .btn--header:hover { background-color: #F9F6FF !important; color: #6A1B9A !important; }

/* Burger (opens popup "CC27 Mobile Menu") — below 1180px the inline nav hides */
.elementor .cc27-burger { display: none !important; }
.cc27-burger .elementor-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; }
.cc27-burger .elementor-icon:hover { background: rgba(255,255,255,.1); }
@media (max-width: 767px) { .cc27-burger .elementor-icon { width: 44px; height: 44px; border-radius: 12px; } }
@media (max-width: 1180px) { .elementor .cc27-nav { display: none !important; } .elementor .cc27-burger { display: block !important; } }

/* ===== Mobile menu popup: dark side panel with blue → magenta → violet edge ===== */
.cc27-mnav { border-left: 3px solid transparent; border-image: linear-gradient(180deg, #1FA0E0, #E615FF 45%, #7115FF) 1; }
.cc27-mnav .elementor-nav-menu--main .elementor-item { min-height: 46px; display: flex; align-items: center; }

/* ===== Follow-us band (gradient on the section itself; base colour is the class background) ===== */
.elementor .cc27-follow { background-image: linear-gradient(100deg, #0B0A1C 0%, #140F2A 60%, #1A1222 100%); border-top: 1px solid rgba(198,156,88,.35); }
.cc27-follow__btns [data-interaction-id$="-ig"] { background-image: linear-gradient(100deg, #E615FF 0%, #C4237E 100%); }

/* ===== Footer ===== */
.elementor .cc27-footer { border-top: 2px solid rgba(198,156,88,.45); }
.elementor .cc27-footer__bottom { border-top: 1px solid rgba(198,156,88,.22); }
.cc27-foot-col .elementor-icon-list-items { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cc27-foot-col .elementor-icon-list-item { padding: 0 !important; margin: 0 !important; }
.cc27-foot-col .elementor-icon-list-icon { display: none; }
.cc27-foot-col .elementor-icon-list-text { padding: 0 !important; font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #D9D7EA; transition: color .2s; }
.cc27-foot-col a:hover .elementor-icon-list-text { color: #FFFFFF; }
.elementor .cc27-footer__bottom img { width: auto; max-width: 100%; }
.elementor .cc27-footer .cc27-tagline { margin-block-end: 0; }
/* ===== Layout fixes: atomic containers default to width:100%, so row children must size to content ===== */
.elementor :is(.cc27-hdr__panel, .cc27-follow__inner, .cc27-footer__row, .cc27-footer__bottom, .cc27-lockup) > .e-con:not(.cc27-logo) { width: auto; }
.elementor .cc27-follow__inner > .e-con:first-child { padding: 0; }

/* ===== Chrome headings inherit the band colour on every page (the Kit sets h1–h6 to CI Black) ===== */
.elementor :is(.cc27-follow, .cc27-footer) :is(.h-section, .h-card) { color: inherit; }
.elementor .cc27-footer .h-section.cc27-tagline { color: var(--cc-magenta, #E615FF); }

/* ===== Complianz 'Manage consent' tab (fixed bottom-right, desktop only): keep the footer's last row clear of it ===== */
@media (min-width: 768px) { .elementor .cc27-footer { padding-block-end: 88px; } }

/* ===== Account menu [cc27_account] (logged-in only; renders nothing when logged out) ===== */
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode:empty), .elementor-widget-shortcode:has(> .elementor-shortcode:empty) { display: none; }
.cc27-acct { position: relative; }
.cc27-acct__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 46px; height: 46px; padding: 0; border: 2px solid #F9F6FF; border-radius: 50%; background: transparent; color: #FFFFFF; cursor: pointer; transition: background-color .2s, color .2s; }
.cc27-acct__btn:hover, .cc27-acct.is-open .cc27-acct__btn { background: #F9F6FF; color: #6A1B9A; }
.cc27-acct__btn:focus-visible { outline: 2px solid #1FA0E0; outline-offset: 2px; }
.cc27-acct__menu { position: absolute; right: 0; top: calc(100% + 14px); z-index: 1000; min-width: 230px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: #6A1B9A; box-shadow: 0 18px 40px rgba(6,1,14,.5), 30px 30px 90px -27px rgba(255,0,163,.18); }
.cc27-acct__menu[hidden] { display: none; }
.cc27-acct__hi { margin: 4px 12px 6px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; color: #E9D9F5; }
.cc27-acct__link { display: block; padding: 11px 12px; border-radius: 12px; font-family: Cairo, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; color: #FFFFFF !important; text-decoration: none; }
.cc27-acct__link:hover, .cc27-acct__link:focus-visible { background: #7115FF; outline: none; }
/* Mobile popup: labelled pill, opens inline (not floating) */
.cc27-acct--panel { margin-top: 10px; }
.cc27-acct--panel .cc27-acct__btn { width: auto; height: auto; min-height: 46px; padding: 0 22px 0 16px; border-radius: 99px; font-family: Cairo, sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.cc27-acct--panel .cc27-acct__menu { position: static; min-width: 0; margin-top: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
/* Account button hardening: theme/plugin button styles must not reshape it */
.cc27-acct .cc27-acct__btn { width: 46px !important; height: 46px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 2px solid #F9F6FF !important; border-radius: 50% !important; background: transparent !important; color: #FFFFFF !important; box-shadow: none !important; line-height: 1 !important; }
.cc27-acct .cc27-acct__btn:hover, .cc27-acct.is-open .cc27-acct__btn { background: #F9F6FF !important; color: #6A1B9A !important; }
.cc27-acct__icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; stroke: currentColor; }
.cc27-acct--panel .cc27-acct__btn { width: auto !important; height: auto !important; min-height: 46px !important; padding: 0 22px 0 16px !important; border-radius: 99px !important; }

/* ===== Footer event logos (Cycle + Padel 2027) under the main logo ===== */
.elementor .cc27-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0; flex-shrink: 0; }
.elementor .cc27-foot-events { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 0; }
.elementor .cc27-foot-events > * { width: auto; }
.elementor img.cc27-foot-event { display: block; width: 76px; height: auto; transition: transform .25s ease-out, filter .25s ease-out; }
.elementor .cc27-foot-events a:hover img.cc27-foot-event, .elementor .cc27-foot-events a:focus-visible img.cc27-foot-event { transform: translateY(-3px); filter: drop-shadow(0 6px 14px rgba(230,21,255,.35)); }
@media (max-width: 767px) { .elementor .cc27-foot-brand { align-items: center; width: 100% !important; } }
@media (prefers-reduced-motion: reduce) { .elementor .cc27-foot-events a:hover img.cc27-foot-event { transform: none; } }/* Footer event logos: fixes (atomic default display:block; header logo's mobile width; Padel artwork has a larger canvas) */
.elementor .cc27-foot-brand { display: flex !important; }
.elementor .cc27-foot-events { display: flex !important; }
.elementor .cc27-foot-brand > .cc27-logo { width: 150px !important; }
.elementor .cc27-foot-events > :nth-child(2) img.cc27-foot-event { width: 92px; margin-block: -8px; }
@media (max-width: 767px) { .elementor .cc27-foot-brand { align-items: center !important; } .elementor .cc27-foot-brand > .cc27-logo { width: 130px !important; } .elementor .cc27-footer__row > .cc27-foot-brand { width: 100% !important; } }
/* Footer event logos: mobile centring */
@media (max-width: 767px) { .elementor .cc27-foot-brand > .cc27-logo { align-self: center !important; } .elementor .cc27-foot-brand > .cc27-foot-events { justify-content: center; width: auto !important; } }

/* Header logo badge (Elementor class cc27-logo-badge on the header logo container): a dark disc with a violet ring and a soft shadow behind the CEO logo
   and its 2027 splash; logo 15% larger. Done with transform, so the bar keeps its height (bottom edge 118px desktop / 62px mobile) and every header
   offset stays the same; the disc overhangs the bar's bottom edge a little, like a badge. Remove the class in Elementor to switch it off. */
.elementor .cc27-logo.cc27-logo-badge { --cc-badge-drop: 6px; isolation: isolate; transform: translateY(var(--cc-badge-drop)) scale(1.15); transform-origin: 50% 50%; }
/* the disc is the container's ::before; Elementor uses ::before on containers for background overlays (100% size, opacity, blend), so size and look are set explicitly */
.elementor .cc27-logo.cc27-logo-badge { --cc-badge-pad: 12%; }
.elementor .cc27-logo.cc27-logo-badge::before { content: "" !important; display: block !important; position: absolute !important; top: calc(var(--cc-badge-pad) * -1) !important; left: calc(var(--cc-badge-pad) * -1) !important; width: calc(100% + 2 * var(--cc-badge-pad)) !important; height: calc(100% + 2 * var(--cc-badge-pad)) !important; z-index: -1 !important; opacity: 1 !important; mix-blend-mode: normal !important; border-radius: 50% !important; background: radial-gradient(circle at 50% 38%, #141A3D 0%, #06010E 72%) !important; box-shadow: 0 0 0 2px #7115FF, 0 10px 24px rgba(6, 1, 14, .6) !important; pointer-events: none; }
@media (max-width: 767px) { .elementor .cc27-logo.cc27-logo-badge { --cc-badge-drop: 3px; --cc-badge-pad: 6%; } }
