/*
Theme Name: CCTema
Theme URI: http://theme.local/
Author: CC Aventura
Description: A modern, clean, and family-oriented WordPress Full Site Editing theme for CC Aventura.
Version: 1.2.9
Tested up to: 6.4
Requires at least: 6.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cctema
*/

/* Custom global styles for CCTema */
:root {
    --cc-primary: #0A270E;
    --cc-secondary: #B2D430;
    --cc-off-white: #FAF9F6;
    --cc-soft-beige: #F5F5DC;
    --cc-text-dark: #333333;
    --cc-text-light: #FFFFFF;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix WordPress default block gap pushing the hero down */
:root :where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
}

/* Smooth transitions */
a, button, .wp-block-button__link {
    transition: all 0.3s ease-in-out;
}

/* Card hover effect */
.cc-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Site Header Styling */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 25px 50px !important;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    /* Center the inner max-width container */
    display: flex;
    justify-content: center;
}

/* Stops the logo and nav from flying to the edges on 2500px+ monitors */
.cc-header-inner {
    width: 100%;
    max-width: 1400px;
    align-items: center;
}

@media (max-width: 1400px) {
    #site-header {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    #site-header {
        padding: 20px 20px !important;
    }
}

/* On mobile, disable sideways reveals to prevent horizontal overflow/invisible content */
@media (max-width: 768px) {
    .cc-reveal-left,
    .cc-reveal-right {
        transform: translateY(40px) scale(0.98) !important;
    }

    /* Fix pill bar overlap on homepage section 2:
       The pills have inline style transform: translateX(15px) for staggered desktop look.
       Inline styles beat CSS class rules, so after .cc-animate fires the pill stays
       offset — causing the 2nd pill to visually overlap the 1st.
       !important here beats the inline style specificity. */
    .cc-r-pill.cc-reveal {
        transform: translateY(40px) scale(0.98) !important;
    }

    .cc-r-pill.cc-reveal.cc-animate {
        transform: translate(0, 0) scale(1) !important;
        width: 100% !important;
    }

    /* Allow pill content to wrap naturally on small screens */
    .cc-r-pill {
        height: auto !important;
        min-height: 70px;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        width: 100% !important;
    }
}

#site-header.is-scrolled {
    background-color: rgba(10, 39, 14, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Main content area spacing */
.site-main {
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--60);
}

@media (max-width: 768px) {
    .site-main {
        padding-top: var(--wp--preset--spacing--40);
        padding-bottom: var(--wp--preset--spacing--40);
    }
}

/* Premium Typography & Effects */
.cc-gradient-text {
    --cc-grad-end: var(--cc-primary, #0A270E);
    background: linear-gradient(135deg, var(--cc-secondary) 0%, var(--cc-grad-end) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Brighten gradient end color when on dark backgrounds */
.has-primary-background-color .cc-gradient-text,
.cc-hero-home .cc-gradient-text,
.cc-dark-bg .cc-gradient-text {
    --cc-grad-end: #ffffff;
}

/* Hero Home Background Styles - Cinematic Overlay & Ken Burns Animation */
.cc-hero-home {
    position: relative;
    overflow: hidden;
    background: #050c06 !important; /* Rich dark backup color */
    opacity: 0;
    animation: ccHeroFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 1;
}

/* Dark cinematic overlay & radial vignette */
.cc-hero-home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(10, 31, 14, 0.25) 0%, rgba(5, 12, 6, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* FSE-editable background image block */
.cc-hero-home .cc-hero-bg-img,
.cc-hero-home figure.cc-hero-bg-img {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 0;
    overflow: hidden;
}

.cc-hero-home .cc-hero-bg-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.03);
    animation: ccKenBurns 30s ease-in-out infinite alternate;
    will-change: transform;
}

.cc-parallax-layer {
    position: relative;
    z-index: 2;
}

.cc-hero-home h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: ccFadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    will-change: transform, opacity;
}

.cc-hero-home p {
    opacity: 0;
    transform: translateY(20px);
    animation: ccFadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    will-change: transform, opacity;
}

.cc-hero-home .wp-block-buttons {
    opacity: 0;
    transform: translateY(15px);
    animation: ccFadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    will-change: transform, opacity;
}

@keyframes ccHeroFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes ccKenBurns {
    0% {
        transform: scale(1.03) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(0.5%, -0.5%);
    }
}

@keyframes ccFadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle SVG Grain Overlay for Premium Feel - Disabled for cleaner solid colors 
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
*/

/* Premium Section Decorative Elements */
.cc-blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}


/* Premium Footer Styling */
.cc-premium-footer {
    background: 
        radial-gradient(circle at 80% 90%, rgba(178, 212, 48, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba%28255%2C255%2C255%2C0.03%29'/%3E%3C/svg%3E"),
        var(--cc-primary) !important;
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(178, 212, 48, 0.15);
}

.cc-premium-footer .wp-block-columns {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cc-footer-column-brand {
    max-width: 320px;
}

.cc-footer-logo {
    transition: transform 0.3s ease;
}

.cc-footer-logo:hover {
    transform: scale(1.02);
}

.cc-footer-description {
    font-size: 1.02rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.7 !important;
    margin-top: 25px !important;
}

.cc-footer-heading {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    position: relative;
}

.cc-footer-links-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.cc-footer-links-list p {
    margin: 0 !important;
    padding: 0 !important;
}

.cc-footer-links-list a {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 0 !important;
    transition: all 0.25s ease !important;
}

.cc-footer-links-list a:hover {
    color: var(--cc-secondary) !important;
    transform: translateX(4px);
}

/* Contact Column Styles (Updated to mirror reference image) */
.cc-footer-contact-list {
    margin-top: 20px !important;
}

.cc-footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.cc-footer-contact-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--cc-secondary) !important;
    flex-shrink: 0;
    transition: transform 0.25s ease !important;
}

.cc-footer-contact-item:hover .cc-footer-contact-icon {
    transform: scale(1.1);
}

.cc-footer-contact-value {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    transition: color 0.25s ease !important;
}

.cc-footer-contact-item:hover .cc-footer-contact-value {
    color: #ffffff !important;
}

/* Social Icons (Updated for standard wp-block-social-links) */
.cc-footer-social-links-block {
    justify-content: flex-start !important;
    padding: 0 !important;
    gap: 15px !important;
}

.cc-footer-social-links-block .wp-block-social-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease-out !important; /* Smooth exit */
}

.cc-footer-social-links-block .wp-block-social-link:hover {
    background: var(--cc-secondary) !important;
    border-color: var(--cc-secondary) !important;
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(178, 212, 48, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cc-footer-social-links-block .wp-block-social-link a {
    color: white !important;
    padding: 8px !important; /* Adjust icon padding */
}

.cc-footer-social-links-block .wp-block-social-link:hover a {
    color: var(--cc-primary) !important;
}

/* Generic Social Links (Premium Style) */
.cc-social-links {
    display: flex !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cc-social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(10, 39, 14, 0.05) !important;
    border: 1px solid rgba(10, 39, 14, 0.1) !important;
    border-radius: 50% !important;
    color: var(--cc-primary) !important;
    transition: all 0.3s ease-out !important;
    text-decoration: none !important;
}

.cc-social-link:hover {
    background: var(--cc-secondary) !important;
    border-color: var(--cc-secondary) !important;
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(178, 212, 48, 0.3);
    color: var(--cc-primary) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cc-social-link svg {
    width: 22px;
    height: 22px;
}

/* Bottom Bar */
.cc-footer-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin: 40px 0 30px 0 !important;
}

.cc-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.85rem;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto !important;
}

.cc-footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cc-footer-bottom a:hover {
    color: var(--cc-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 781px) {
    .cc-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cc-premium-footer .wp-block-columns {
        gap: 40px !important;
    }
}

/* Premium Theme Utility Classes */

/* Icon Boxes */
.cc-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-icon-box-sm { width: 50px; height: 50px; border-radius: 16px; }
.cc-icon-box-md { width: 60px; height: 60px; border-radius: 20px; }
.cc-icon-box-lg { width: 70px; height: 70px; border-radius: 24px; }

.cc-icon-box-primary {
    background: rgba(10, 39, 14, 0.1);
    color: var(--cc-primary);
}

.cc-icon-box-secondary {
    background: rgba(178, 212, 48, 0.2);
    color: var(--cc-primary);
}

/* Card & Container Spacing (Harmonized & Consolidated) */
.cc-p-sm { padding: var(--wp--preset--spacing--30) !important; }
.cc-p-md, .cc-p-card-aniv { padding: var(--wp--preset--spacing--40) !important; }
.cc-p-card-aniv .cc-icon-box { margin-bottom: 20px !important; }
.cc-p-card-aniv h4 { font-size: 1.3rem !important; margin-bottom: 10px !important; }
.cc-p-card-aniv p { font-size: 1.05rem !important; margin: 0 !important; }
.cc-p-lg, .cc-p-card-feature { padding: var(--wp--preset--spacing--50) !important; }
.cc-p-xl { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50) !important; }

.cc-r-sm { border-radius: 16px !important; }
.cc-r-md { border-radius: 24px !important; }
.cc-r-lg { border-radius: 32px !important; }
.cc-r-xl { border-radius: 48px !important; }
.cc-r-pill { border-radius: 100px !important; }

/* Typography Utils */
.cc-text-muted { color: #4A5568 !important; }
.cc-text-light-muted { color: #A0AEC0 !important; }

.cc-line-h-10 { line-height: 1.0 !important; }
.cc-line-h-11 { line-height: 1.1 !important; }
.cc-line-h-12 { line-height: 1.2 !important; }
.cc-line-h-15 { line-height: 1.5 !important; }
.cc-line-h-16 { line-height: 1.6 !important; }
.cc-line-h-17 { line-height: 1.7 !important; }

.cc-clamp-h1 { font-size: clamp(3.5rem, 8vw, 5rem) !important; font-weight: 700 !important; }
.cc-clamp-h2 { font-size: clamp(2.5rem, 6vw, 3.5rem) !important; font-weight: 700 !important; }
.cc-font-800 { font-weight: 700 !important; }
.cc-font-700 { font-weight: 700 !important; }
.cc-font-600 { font-weight: 600 !important; }

/* Checklist Refinement */
.cc-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cc-check-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.cc-check-list li::before {
    content: "✓";
    color: var(--cc-secondary);
    font-weight: 600 !important;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.cc-check-list li:has(.cc-check-icon)::before {
    content: none !important;
}

.cc-check-icon {
    color: var(--cc-secondary) !important;
    margin-right: 15px !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form Placeholders */
.cc-form-field {
    height: 55px;
    border-radius: 14px;
    border: 2px solid rgba(0,0,0,0.05);
    background: #F7FAFC;
    width: 100%;
}

.cc-form-textarea {
    height: 140px;
    border-radius: 14px;
    border: 2px solid rgba(0,0,0,0.05);
    background: #F7FAFC;
    width: 100%;
}

/* Image Effects */
.cc-img-zoom {
    overflow: hidden;
    border-radius: 24px;
}

.cc-img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-img-zoom:hover img {
    transform: scale(1.05);
}

/* Conditions Card Refinement */
.cc-conditions-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cc-condition-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-condition-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cc-condition-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--cc-secondary);
}

.cc-condition-text {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cc-condition-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Accessibility: Screen Reader Text & Skip Link */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--cc-secondary, #B2D430);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    clip: auto !important;
    clip-path: none;
    color: var(--cc-primary, #0A270E);
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    height: auto;
    left: 20px;
    line-height: normal;
    padding: 15px 30px;
    text-decoration: none;
    top: 20px;
    width: auto;
    z-index: 100000;
    transition: none; /* Instant appearance when focused */
}



/* --- Imported from theme-helpers.css --- */

/* 
CCTema Premium UI & Animation Helpers 
*/

:root {
    --cc-glass-bg: rgba(255, 255, 255, 0.7);
    --cc-glass-border: rgba(255, 255, 255, 0.3);
    --cc-shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --cc-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Premium Card Base */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
}

body {
    margin: 0;
    width: 100%;
}

.wp-site-blocks {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

.cc-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(10, 39, 14, 0.05);
    background: rgba(255, 255, 255, 0.6); /* Translucent but visible on light */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(10, 39, 14, 0.08); /* Darker border for light bg */
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    padding: 50px 40px;
    border-radius: 48px !important; /* Standardize to more rounded */
    display: flex;
    flex-direction: column;
    color: var(--wp--preset--color--primary);
}

/* Ensure headings and text are light by default in cards */
.cc-card h4, .cc-card h3, .cc-card p {
    transition: color 0.4s ease, opacity 0.4s ease;
}

.cc-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, transparent, var(--cc-secondary), transparent);
    opacity: 0.2; /* Subtle presence even without hover */
    transition: opacity 0.4s ease, height 0.4s ease;
}

.cc-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    color: var(--wp--preset--color--primary);
}

.cc-card:hover h4, .cc-card:hover p, .cc-card:hover .cc-text-muted {
    color: var(--wp--preset--color--primary) !important;
    opacity: 1;
}

.cc-card:hover::before {
    opacity: 1;
    height: 6px;
}

/* Glassmorphism Classes */
.cc-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-glass-dark, .cc-card-on-dark {
    background: rgba(10, 39, 14, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.cc-glass-dark:hover, .cc-card-on-dark:hover {
    background: rgba(10, 39, 14, 0.98) !important;
    border-color: rgba(178, 212, 48, 0.3) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45) !important;
}

.cc-glass-dark h4, .cc-glass-dark h3, .cc-glass-dark p, .cc-glass-dark .cc-text-muted,
.cc-card-on-dark h4, .cc-card-on-dark h3, .cc-card-on-dark p, .cc-card-on-dark .cc-text-muted {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Spotlight Glow Overlay for Dark Cards */
.cc-card-on-dark::after, .cc-glass-dark::after {
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(178, 212, 48, 0.08),
        transparent 40%
    ) !important;
}

/* Spotlight Glow Overlay inside Card */
.cc-card::after {
    content: "";
    position: absolute;
    top: 0px; left: 0px; right: 0px; bottom: 0px;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(178, 212, 48, 0.1),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.cc-card:hover::after {
    opacity: 1;
}

/* Removed simple cc-card-hover as we will use advanced JS interaction */


/* Advanced Scroll Reveal Animations with Scale */
.cc-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.cc-reveal-up { transform: translateY(60px) scale(0.98); }
.cc-reveal-left { transform: translateX(-60px) scale(0.98); }
.cc-reveal-right { transform: translateX(60px) scale(0.98); }

.cc-reveal.cc-animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered Children Reveal */
.cc-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-stagger.cc-animate > * {
    opacity: 1;
    transform: translateY(0);
}

.cc-stagger.cc-animate > *:nth-child(1) { transition-delay: 0.1s; }
.cc-stagger.cc-animate > *:nth-child(2) { transition-delay: 0.2s; }
.cc-stagger.cc-animate > *:nth-child(3) { transition-delay: 0.3s; }
.cc-stagger.cc-animate > *:nth-child(4) { transition-delay: 0.4s; }

/* Premium Image Reveal */
.cc-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    width: 60px; /* Default size */
    height: 60px;
    border-radius: 20px;
}

.cc-icon-box-sm { width: 48px; height: 48px; border-radius: 16px; }
.cc-icon-box-md { width: 64px; height: 64px; border-radius: 22px; }
.cc-icon-box-lg { width: 80px; height: 80px; border-radius: 28px; }

.cc-card:hover .cc-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.cc-icon-box-primary {
    background: rgba(10, 39, 14, 0.05);
    color: var(--wp--preset--color--primary);
    border-radius: 24px;
}

.cc-icon-box-secondary {
    background: rgba(178, 212, 48, 0.15);
    color: var(--wp--preset--color--primary);
    border-radius: 20px;
}

/* Premium Image Reveal */
.cc-img-reveal {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.cc-img-reveal::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--wp--preset--color--primary);
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.cc-img-reveal.cc-animate::after {
    transform: translateX(101%);
}

/* Button Micro-interactions */
.wp-block-button__link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wp-block-button__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.wp-block-button__link:hover::before {
    width: 300px;
    height: 300px;
}

/* Specific Glow for Dark Card Buttons */
.cc-card-on-dark .wp-block-button__link:hover,
.cc-glass-dark .wp-block-button__link:hover {
    box-shadow: 0 15px 40px rgba(178, 212, 48, 0.6) !important;
}

/* Hero Parallax Support */
.cc-page-hero {
    overflow: hidden !important;
}

.cc-parallax-layer {
    will-change: transform, opacity;
}

/* Floating Animation */
@keyframes ccFloating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cc-floating {
    animation: ccFloating 4s ease-in-out infinite;
}

/* Premium Check Lists - Consolidated with core styles */

/* Premium FAQ Accordion */
.cc-faq-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--cc-shadow-premium);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}
.cc-faq-item:hover {
    box-shadow: var(--cc-shadow-hover);
}
.cc-faq-item summary {
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--wp--preset--color--primary);
}
.cc-faq-item summary::-webkit-details-marker {
    display: none;
}
.cc-faq-item summary::after {
    content: "+";
    color: var(--wp--preset--color--secondary);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.cc-faq-item[open] summary::after {
    transform: rotate(45deg); /* Turns + into a cross */
}
.cc-faq-item .cc-faq-content {
    padding: 0 30px 30px 30px;
    color: #4A5568;
    line-height: 1.6;
    animation: ccFaqFade 0.4s ease-out forwards;
}

@keyframes ccFaqFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auto Grid Utility for Features & Steps */
/* Premium CTA Button */
.cc-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary);
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: 0 10px 25px rgba(178,212,48,0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.cc-btn-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(178,212,48,0.5);
    background: #c3ec29;
}
.cc-btn-premium svg {
    margin-right: 12px;
    transition: transform 0.3s ease;
}
.cc-btn-premium:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

/* Horizontal Carousel */
.cc-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    padding-top: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 1024px) {
    .cc-carousel {
        margin: 0 calc(-50vw + 50%);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
    }
}
.cc-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.cc-carousel-item {
    flex: 0 0 85%;
    max-width: 600px;
    scroll-snap-align: center;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--cc-shadow-premium);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
    .cc-carousel-item {
        flex: 0 0 55%;
    }
}
@media (min-width: 1024px) {
    .cc-carousel-item {
        flex: 0 0 40%;
    }
}
.cc-carousel-item:hover {
    transform: scale(1.02);
}
.cc-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.8s ease;
}
.cc-carousel-item:hover img {
    transform: scale(1.05);
}
.cc-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,39,14,0.5) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cc-carousel-item:hover::after {
    opacity: 1;
}

/* Image blocks with hover zoom */
.cc-img-zoom {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--cc-shadow-premium);
    position: relative;
    aspect-ratio: 4/5;
    background: var(--wp--preset--color--soft-beige);
}
.cc-img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-img-zoom:hover img {
    transform: scale(1.05);
}
.cc-img-zoom::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10,39,14,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cc-img-zoom:hover::after {
    opacity: 1;
}

/* Auto Grid Utility for Features & Steps */
.cc-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.wp-block-group.cc-grid-auto > *,
.wp-block-group.cc-grid-auto > * + *,
.cc-grid-auto > *,
.cc-grid-auto > * + *,
.cc-grid-auto.cc-stagger > *,
.cc-grid-auto.cc-stagger > * + * {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Premium Site Header & Navigation */

@media (max-width: 768px) {
    /* Force massive inline FSE paddings to scale down cleanly on mobile */
    [style*="padding-left: 80px"], [style*="padding-left:80px"],
    [style*="padding-left: 60px"], [style*="padding-left:60px"],
    [style*="padding-left: 50px"], [style*="padding-left:50px"],
    [style*="padding-left: 40px"], [style*="padding-left:40px"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Dynamically compress groups hardcoded with gigantic vertical paddings */
    [style*="padding-top: 220px"], [style*="padding-top:220px"],
    [style*="padding-top: 140px"], [style*="padding-top:140px"],
    [style*="padding-top: 120px"], [style*="padding-top:120px"],
    [style*="padding-top: 100px"], [style*="padding-top:100px"] {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

.cc-main-nav ul {
    display: flex !important;
    gap: 35px !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Force Native Hamburger at 1024px & Premium Drawer UI */
@media (max-width: 1024px) {
    /* Hide desktop flex menu when modal is NOT open */
    .cc-main-nav .wp-block-navigation__responsive-container:not(.has-modal-open):not(.is-menu-open) {
        display: none !important;
    }
    
    /* Unhide the open button for all mobile screens */
    .cc-main-nav .wp-block-navigation__responsive-container-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        background: transparent !important;
        border: none !important;
        padding: 5px;
        z-index: 10001; /* Guarantee it stands out */
    }
    .cc-main-nav .wp-block-navigation__responsive-container-open svg {
        width: 35px !important;
        height: 35px !important;
        fill: currentColor !important;
    }
    
    /* Premium Backdrop styling */
    .cc-main-nav .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(10, 39, 14, 0.4) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* The Drawer itself - explicitly 100vh to break out of sticky header bounds */
    .cc-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
    .cc-main-nav .wp-block-navigation__responsive-dialog {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 420px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #0A270E !important; /* Deep Green Dark Drawer */
        padding: 40px 50px 30px 50px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.4);
        animation: ccMenuFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }

    @media (max-width: 420px) {
        .cc-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
        .cc-main-nav .wp-block-navigation__responsive-dialog {
            padding: 60px 30px !important;
        }
    }

    @keyframes ccMenuFadeIn {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Close Button Styling */
    .cc-main-nav .wp-block-navigation__responsive-container-close {
        color: var(--wp--preset--color--secondary, #B2D430) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 30px;
        right: 30px;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .cc-main-nav .wp-block-navigation__responsive-container-close:hover {
        transform: rotate(90deg) scale(1.1);
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* Fix FSE Native Drawer Centering */
    .cc-main-nav .wp-block-navigation__responsive-container-content {
        justify-content: flex-start !important;
        align-items: flex-end !important;
        height: 100% !important;
        flex-grow: 1;
        margin-top: 0 !important;
        padding-top: 60px !important; /* Only applied once, instead of recursively */
    }

    /* Ul Layout inside the Drawer */
    .cc-main-nav .wp-block-navigation__responsive-dialog ul,
    .cc-main-nav.has-modal-open ul {
        flex-direction: column !important;
        align-items: flex-end !important; /* Premium touch: right align text on a right-side drawer */
        padding: 0 !important;
        gap: 30px !important;
        margin-top: 0 !important; /* Zeroed to prevent FSE nested UL margin duplication */
        margin-bottom: 20px !important;
        width: 100%;
    }

    /* Link Styling in the Drawer */
    .cc-main-nav .wp-block-navigation__responsive-dialog a,
    .cc-main-nav .wp-block-navigation__responsive-dialog .wp-block-navigation-item__label,
    .cc-main-nav.has-modal-open a {
        font-size: 1.7rem !important;
        font-weight: 600 !important;
        color: #ffffff !important; /* Force white text over FSE defaults */
        text-transform: capitalize;
        text-decoration: none !important; /* Kill the double underline from FSE */
        opacity: 0.85;
        display: inline-block;
        width: fit-content !important; /* Fix: Don't stretch long items to 100% */
        text-align: right !important;
        padding: 5px 20px 5px 0; /* Extra right padding so it isn't completely glued to the screen edge */
        transition: all 0.3s ease;
    }

    @media (max-width: 420px) {
        .cc-main-nav .wp-block-navigation__responsive-dialog a,
        .cc-main-nav.has-modal-open a {
            font-size: 1.4rem !important;
        }
        
        .cc-main-nav .wp-block-navigation__responsive-dialog ul,
        .cc-main-nav.has-modal-open ul {
            gap: 20px !important;
        }
    }

    .cc-main-nav .wp-block-navigation__responsive-dialog a:hover,
    .cc-main-nav .wp-block-navigation__responsive-dialog a:focus-visible,
    .cc-main-nav.has-modal-open a:hover,
    .cc-main-nav.has-modal-open a:focus-visible {
        opacity: 1;
        color: var(--wp--preset--color--secondary, #B2D430) !important;
        text-decoration: none !important;
    }
    
    .cc-main-nav .wp-block-navigation__responsive-dialog a:hover,
    .cc-main-nav.has-modal-open a:hover {
        transform: translateX(-15px); /* Slide leftwards only on deliberate hover */
    }

    /* Specific fix for underline hover originating from the right */
    .cc-main-nav .wp-block-navigation__responsive-dialog a::after,
    .cc-main-nav.has-modal-open a::after {
        left: auto !important;
        right: 0 !important;
    }
}

@media (min-width: 1025px) {
    .cc-main-nav .wp-block-navigation__responsive-container {
        display: block !important;
    }
    .cc-main-nav .wp-block-navigation__responsive-container-open {
        display: none !important;
    }
}

.cc-main-nav a {
    text-decoration: none !important;
    position: relative;
    padding: 5px 0;
    color: var(--wp--preset--color--white, #fff);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.cc-main-nav a:hover, .cc-main-nav a:focus-visible {
    color: var(--wp--preset--color--secondary, #B2D430);
    outline: none;
    text-decoration: none !important;
}

.cc-main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 0; height: 2.5px;
    background: var(--wp--preset--color--secondary, #B2D430);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.cc-main-nav a:hover::after, .cc-main-nav .current-menu-item > a::after {
    width: 100%;
}

.cc-main-nav .current-menu-item > a {
    color: var(--wp--preset--color--secondary, #B2D430) !important;
    opacity: 1 !important;
}

/* Premium Buttons Global Spacing */
.wp-block-buttons {
    gap: 25px !important;
}

@media (max-width: 480px) {
    .wp-block-buttons {
        gap: 15px !important;
        flex-direction: column !important;
        width: 100%;
    }
    .wp-block-buttons .wp-block-button,
    .wp-block-buttons .wp-element-button {
        width: 100% !important;
        text-align: center;
    }
}

/* Mobile Drawer Footer */
@media (min-width: 1025px) {
    .cc-drawer-footer {
        display: none !important;
    }
}

.cc-drawer-footer {
    margin-top: auto;
    width: 100%;
    padding-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: ccSlideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes ccSlideInUp {
    to { opacity: 1; transform: translateY(0); }
}

.cc-drawer-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
    width: 100%;
}

.cc-drawer-footer-title {
    color: var(--wp--preset--color--secondary, #B2D430);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: right;
}

.cc-drawer-footer-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.cc-drawer-footer-contact span {
    color: rgba(255, 255, 255, 0.6); /* Subtle, slightly dimmed text */
    font-size: 1rem !important; /* Smaller size to not distract from menu */
    font-weight: 400 !important; /* Normal weight, overrule the heavy menu 800 weight */
    line-height: 1;
    letter-spacing: 0.5px;
}

.cc-drawer-footer-contact svg {
    width: 16px; /* Slightly smaller to match discrete text */
    height: 16px;
    color: var(--wp--preset--color--secondary, #B2D430);
    opacity: 0.8;
}

.cc-drawer-footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
}

/* Drawer specific overrides for the global .cc-social-link to ensure contrast against dark green background */
.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important; /* Force FSE to stop aggressively left/right padding the circles */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #ffffff !important; /* Pure white SVG fill against dark background */
    text-decoration: none !important; /* Remove underline */
    outline: none !important; /* Remove browser focus rings */
}

.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: currentColor !important;
}

/* Kill the generic menu item hover line animation for the social circles */
.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link::after,
.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link::before {
    display: none !important;
    content: none !important;
}

@media (hover: hover) {
    .cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link:hover {
        background: var(--cc-secondary) !important;
        border-color: var(--cc-secondary) !important;
        color: var(--cc-primary) !important;
        box-shadow: 0 5px 15px rgba(178, 212, 48, 0.3) !important;
        text-decoration: none !important;
    }
}

.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link:active,
.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link:focus,
.cc-main-nav .wp-block-navigation__responsive-dialog a.cc-social-link:focus-visible {
    background: var(--cc-secondary) !important;
    border-color: var(--cc-secondary) !important;
    color: var(--cc-primary) !important;
    text-decoration: none !important;
    outline: none !important;
}

/* --- Premium Services Grid Component --- */
.cc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
}

.cc-service-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cc-service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(178, 212, 48, 0.15); /* Soft ambient brand glow */
    border-color: rgba(178, 212, 48, 0.3);
}

.cc-service-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    background: #f0f0f0; /* skeleton state */
}

.cc-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cc-service-card:hover .cc-service-card-image img {
    transform: scale(1.08); /* Cinematic zoom deep inside the card */
}

/* Dynamic Heading Underline */
.cc-animated-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

.cc-animated-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--cc-secondary); /* Bright green */
    border-radius: 2px;
    transition: width 0.4s ease;
}

.cc-service-card:hover .cc-animated-heading::after {
    width: 100%;
}

.cc-service-card .wp-block-button {
    margin-top: auto; /* Push buttons to the very bottom if content heights differ */
    padding-top: 30px;
}

/* --- Seamless Bleed Subpage Hero --- */
.cc-subpage-hero {
    position: relative;
    width: 100%;
    min-height: 45vh; /* Massive immersive height */
    padding-top: calc(140px + 6vh) !important; /* Forces content to cleanly clear floating transparent header */
    padding-bottom: 80px !important;
    background: radial-gradient(circle at 50% 10%, rgba(178, 212, 48, 0.08) 0%, transparent 60%), var(--cc-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.cc-subpage-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Ultra-subtle texture to break the flat green */
    background: url('data:image/svg+xml,%3Csvg viewBox=\'0 0 200 200\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cfilter id=\'noiseFilter\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.85\' numOctaves=\'3\' stitchTiles=\'stitch\'/%3E%3C/filter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23noiseFilter)\'/%3E%3C/svg%3E');
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
}

.cc-subpage-hero > * {
    position: relative;
    z-index: 1; /* Keep content above noise overlay */
}

/* Entrance Animation for Hero text */
.cc-hero-title {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes heroSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness Overrides --- */
@media (max-width: 768px) {
    /* Standardize hero text for smaller screens */
    .cc-clamp-h1 { 
        font-size: clamp(2.5rem, 10vw, 4rem) !important; 
    }
    
    /* Sync card padding with theme-helpers logic */
    .cc-card {
        padding: 40px 25px !important;
        border-radius: 32px !important;
    }

    /* Fix Search Bar Stacking & Overflow */
    .wp-block-search__inside-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    .wp-block-search__input {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        background: #f8f9fa !important;
    }

    .wp-block-search__button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        padding: 15px !important;
        border-radius: 12px !important;
        margin-left: 0 !important;
    }
    
    .cc-p-xl, .cc-p-lg {
        padding: 40px 20px !important;
    }
}

/* --- Clean Layout: Smart Margin Resets --- */
/* Automatically removes top margins from the first element inside reveal groups or columns 
   to ensure hero sections and cards align perfectly without inline style hacks. */
.cc-reveal > *:first-child,
.cc-stagger > *:first-child,
.wp-block-column > *:first-child,
.cc-card > *:first-child {
    margin-top: 0 !important;
}

/* --- Custom Helper Utilities for Gutenberg Block Validation & Patterns --- */
.cc-text-primary {
    color: var(--cc-primary) !important;
}

.cc-uppercase {
    text-transform: uppercase !important;
}

.cc-letter-spacing-1 {
    letter-spacing: 1px !important;
}

.cc-fs-120 {
    font-size: 1.2rem !important;
}

.cc-mb-15 {
    margin-bottom: 15px !important;
}

.cc-mb-40 {
    margin-bottom: 40px !important;
}

.cc-col-pr-20 {
    padding-right: 20px !important;
}

.cc-col-pl-20 {
    padding-left: 20px !important;
}

.cc-gallery-img {
    border-radius: 32px !important;
    aspect-ratio: 4/5 !important;
}

.cc-gallery-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.cc-header-desc {
    font-size: 1.35rem !important;
    margin-top: 30px !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Campo de Férias Banner Container */
.cc-camp-banner-container {
    position: relative !important;
}

.cc-camp-banner a {
    cursor: zoom-in !important;
    display: block !important;
    border-radius: 32px !important;
    overflow: hidden !important;
    box-shadow: var(--cc-shadow-premium) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
}

.cc-camp-banner a:hover {
    transform: scale(1.01) translateY(-2px) !important;
    box-shadow: var(--cc-shadow-hover) !important;
}

.cc-camp-banner img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cc-camp-banner a:hover img {
    transform: scale(1.02) !important;
}

.cc-camp-badge {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    background: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--primary) !important;
    padding: 10px 25px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 8px 20px rgba(178,212,48,0.4) !important;
    z-index: 2 !important;
    margin: 0 !important;
}

/* --- Campo de Férias Redesign Styles --- */

/* Hero Badges */
.cc-camp-hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.cc-camp-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 15px 30px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-camp-hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.cc-camp-hero-badge .cc-badge-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cc-primary);
    line-height: 1.1;
}

.cc-camp-hero-badge .cc-badge-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cc-secondary);
    font-weight: 700;
    margin-top: 5px;
}

/* Core Activities (4 Columns) */
.cc-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 50px 0;
}

.cc-activity-card {
    border-radius: 24px;
    overflow: hidden;
    padding: 35px 25px;
    text-align: center;
    color: white !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--cc-shadow-premium);
}

.cc-activity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.cc-activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cc-shadow-hover);
}

.cc-activity-card.cc-act-moto { background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%); }
.cc-activity-card.cc-act-jetski { background: linear-gradient(135deg, #0288D1 0%, #01579B 100%); }
.cc-activity-card.cc-act-escalada { background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%); }
.cc-activity-card.cc-act-kartodromo { background: linear-gradient(135deg, #E64A19 0%, #BF360C 100%); }

.cc-activity-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.cc-activity-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cc-activity-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.9) !important;
}

/* O Nosso Ritmo Semanal */
.cc-ritmo-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 900px;
}

.cc-ritmo-card {
    flex: 1;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.3s ease;
}

.cc-ritmo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(178,212,48,0.3);
}

.cc-ritmo-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.cc-ritmo-card.cc-terca .cc-ritmo-badge {
    background: #E8F5E9;
    color: #2E7D32;
}

.cc-ritmo-card.cc-quinta .cc-ritmo-badge {
    background: #FFF3E0;
    color: #E65100;
}

.cc-ritmo-card h3 {
    font-size: 1.45rem;
    color: var(--cc-primary);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.cc-ritmo-card p {
    font-size: 1.05rem;
    color: var(--cc-text-muted);
    margin: 0;
}

.cc-ritmo-arrow {
    font-size: 2.5rem;
    color: var(--cc-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* Semanas Temáticas (12 semanas) */
.cc-weeks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.cc-week-card {
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    border-width: 1px;
    border-style: solid;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.cc-week-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.cc-week-num {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.cc-week-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-week-dates {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
}

/* Beautiful color themes for the 12 weeks */
.cc-wk-1 { background: #FFF3E0; border-color: #FFB74D; color: #E65100; }
.cc-wk-2 { background: #E1F5FE; border-color: #4FC3F7; color: #01579B; }
.cc-wk-3 { background: #E8F5E9; border-color: #81C784; color: #1B5E20; }
.cc-wk-4 { background: #E8EAF6; border-color: #7986CB; color: #1A237E; }
.cc-wk-5 { background: #E0F2F1; border-color: #4DB6AC; color: #004D40; }
.cc-wk-6 { background: #FCE4EC; border-color: #F06292; color: #880E4F; }
.cc-wk-7 { background: #FFEBEE; border-color: #E57373; color: #B71C1C; }
.cc-wk-8 { background: #F1F8E9; border-color: #AED581; color: #33691E; }
.cc-wk-9 { background: #E3F2FD; border-color: #64B5F6; color: #0D47A1; }
.cc-wk-10 { background: #FDF2E9; border-color: #EDBB99; color: #A04000; }
.cc-wk-11 { background: #F3E5F5; border-color: #BA68C8; color: #4A148C; }
.cc-wk-12 { background: #FFFDE7; border-color: #FFF176; color: #F57F17; }

/* Backpack Recomended Items */
.cc-backpack-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 1000px;
}

.cc-backpack-item {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cc-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.cc-backpack-item:hover {
    transform: translateY(-2px);
    background: white;
    border-color: var(--cc-secondary);
    box-shadow: 0 8px 20px rgba(178,212,48,0.15);
}

.cc-backpack-item span {
    font-size: 1.25rem;
}

/* Vagas Limitadas Pink Badge */
.cc-vagas-badge {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    border-radius: 24px;
    padding: 45px 35px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(233,30,99,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

.cc-vagas-badge::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

.cc-vagas-badge h3 {
    color: white !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cc-vagas-badge p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cc-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cc-weeks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cc-ritmo-flow {
        flex-direction: column;
        gap: 15px;
    }
    .cc-ritmo-arrow {
        transform: rotate(90deg);
        animation: pulseArrowVertical 2s infinite ease-in-out;
        margin: 5px 0;
    }
    .cc-weeks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cc-weeks-grid {
        grid-template-columns: 1fr;
    }
    .cc-activity-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes pulseArrowVertical {
    0%, 100% { transform: rotate(90deg) translateY(0); }
    50% { transform: rotate(90deg) translateY(8px); }
}

/* --- Campo de Férias Navigation Highlight & Badge --- */

/* Semi-transparent capsule for header navigation */
.cc-nav-highlight-item {
    position: relative;
    background: rgba(178, 212, 48, 0.12) !important;
    border: 1px solid rgba(178, 212, 48, 0.35) !important;
    border-radius: 12px;
    padding: 8px 16px !important;
    margin: -4px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cc-nav-highlight-item:hover {
    background: rgba(178, 212, 48, 0.22) !important;
    border-color: rgba(178, 212, 48, 0.7) !important;
    box-shadow: 0 4px 15px rgba(178, 212, 48, 0.15);
}

/* Make sure mobile drawer renders correctly without margins */
.wp-block-navigation__responsive-container-content .cc-nav-highlight-item {
    margin: 5px 0 !important;
    display: inline-block !important;
    width: fit-content;
}

/* Floating Pulsing Glowing Badge */
.cc-nav-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
    animation: ccPulseBadge 2s infinite ease-in-out;
    white-space: nowrap;
    line-height: 1.2;
    pointer-events: none;
    z-index: 10;
}

/* Mobile responsive position for the badge inside responsive/drawer menu */
.wp-block-navigation__responsive-container-content .cc-nav-badge {
    top: -10px;
    right: -25px;
}

@keyframes ccPulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(233, 30, 99, 0.5);
    }
}



