/* ===================================================================
   Bubble theme - Playful floating bubbles
   Version: 1.0.1
   Author: Reveloni
   For: CMS 6.0.0+
   
   Characteristics: dark cosmic background (always), circular page cards
   that float and pulse with neon glows, animated rotating gradient
   borders (conic), Quicksand + Nunito playful typography. Light mode
   supported with same neon aesthetic on bright background.
   Perfect for kids brands, creative studios, playful portfolios.
   
   Changelog:
     1.0.1 - Footer changed from flex justify-between to grid auto-fit:
             contact column now stays on the left regardless of how
             many footer sections are populated. .animate-on-scroll now
             reads var(--animation-offset, 20px) so admin slider works.
     1.0.0 - Initial release.
   =================================================================== */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #f0f0f5;
    --text-light: #a0a0b8;
    --bg: #0a0a1a;
    --bg-light: #14142a;
    --bg-card: #1a1a30;
    --border: rgba(255, 255, 255, 0.08);
    
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    --transition: 0.4s cubic-bezier(0.4, 0, 0.15, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.15, 1);
    
    --font-display: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light mode override - keeps neon aesthetic on bright background */
[data-theme="dark"] {
    /* Bubble is dark by default in :root, dark mode just confirms */
    --text: #f0f0f5;
    --text-light: #a0a0b8;
    --bg: #0a0a1a;
    --bg-light: #14142a;
    --bg-card: #1a1a30;
    --border: rgba(255, 255, 255, 0.08);
}

/* When user toggles to light - rare for Bubble but supported */
[data-theme="light"] {
    --text: #1a1a30;
    --text-light: #5a5a78;
    --bg: #f8f9ff;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.2),
                    0 0 60px rgba(124, 58, 237, 0.1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(124, 58, 237, 0.35),
                    0 0 100px rgba(124, 58, 237, 0.15);
    }
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bubble-pop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(20px, -30px); }
    66% { transform: translate(-15px, 25px); }
    100% { transform: translate(0, 0); }
}

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.06), transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.04), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.03), transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations (CMS framework) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(var(--animation-offset, 20px));
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-ready[data-animations-enabled="true"] .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

body:not([data-animations-enabled="true"]) .animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1.25rem; margin-top: 2.5rem; color: var(--primary); }
h3 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

strong {
    font-weight: 700;
    color: var(--text);
}

/* === DARK MODE TOGGLE === */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--text);
    z-index: 50;
    transition: all var(--transition);
}

.dark-mode-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(124, 58, 237, 0.3);
}

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.7);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

/* Backdrop blur lives on a pseudo-element, NOT on <header> itself (1.0.4).
   A backdrop-filter on the header creates a containing block for any
   descendant position:fixed - which made the mobile dropdown anchor to
   the header (a thin strip) instead of the viewport, collapsing it and
   pushing it past the right edge. On the pseudo-element the frosted look
   is identical, but the header no longer traps fixed positioning. */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="light"] header {
    background: rgba(248, 249, 255, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.logo-container a {
    color: inherit;
    text-decoration: none;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1.5rem 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* === NAVIGATION (Hamburger) === */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
}

[data-theme="light"] .hamburger-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.hamburger-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 0;
    list-style: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.1);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

[data-theme="light"] .dropdown-menu a:hover,
[data-theme="light"] .dropdown-menu a.active {
    background: rgba(0, 0, 0, 0.03);
}

.dropdown-submenu {
    padding-left: 1rem;
    font-size: 0.9rem;
    list-style: none;
    margin: 0;
}

.dropdown-submenu a {
    padding: 0.55rem 1.5rem;
}

.dropdown-subsubmenu {
    padding-left: 2rem;
    font-size: 0.85rem;
    list-style: none;
    margin: 0;
}

.dropdown-subsubmenu a {
    padding: 0.5rem 1.5rem;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 0;
}

/* Floating decoration bubbles in hero */
.hero::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    animation: drift 12s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent 70%);
    animation: drift 14s ease-in-out infinite 3s;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

/* === CONTENT SECTIONS === */
.content-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.content-section h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.content-section ul,
.content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section a:not(.cta-button):not(.price-tag):not(.btn) {
    color: var(--primary);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.content-section a:not(.cta-button):not(.price-tag):not(.btn):hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* === PAGE CARDS - BUBBLES! === */
.page-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem 2.5rem;
    padding: 4rem 0;
}

.page-card {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 280px;
    text-align: center;
    overflow: visible;
    transition: transform var(--transition);
}

.page-card:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.page-card:nth-child(even) {
    animation: float 7s ease-in-out infinite 1s;
}

.page-card:nth-child(3n) {
    animation: float 8s ease-in-out infinite 0.5s;
}

.page-card:hover {
    transform: translateY(-12px) scale(1.04);
}

.page-card:active {
    animation: bubble-pop 0.4s ease;
}

/* Bubble image with rotating gradient border */
.page-card-image,
.page-card-placeholder {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    background: var(--bg-card);
    transition: all var(--transition);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Animated rotating gradient border using ::before */
.page-card-image::before,
.page-card-placeholder::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary),
        var(--accent),
        var(--secondary),
        var(--primary)
    );
    z-index: -1;
    animation: rotate-border 8s linear infinite;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.page-card:hover .page-card-image::before,
.page-card:hover .page-card-placeholder::before {
    opacity: 1;
    inset: -5px;
}

/* Subtle inner reflection (highlight like real soap bubble) */
.page-card-image::after,
.page-card-placeholder::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 30%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .page-card-image::after,
[data-theme="light"] .page-card-placeholder::after {
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.6), transparent 70%);
}

/* Placeholder when no image - bubble with bubble emoji */
.page-card-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-card-placeholder span {
    display: none;
}

.page-card-placeholder .bubble-icon {
    position: relative;
    z-index: 3;
    font-size: 4rem;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition);
}

/* Inject icon via ::before isn't possible (already used). Use a different approach: */
.page-card-placeholder::after {
    /* Override: keep highlight but also add icon center */
    content: '🫧';
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    background: none;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition);
}

.page-card:hover .page-card-placeholder::after {
    transform: translate(-50%, -50%) scale(1.15) rotate(10deg);
}

.page-card-content {
    padding: 1.5rem 0.5rem 0;
}

.page-card h3,
.page-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.page-card-excerpt {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.55;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 0.5rem;
}

.page-card-link {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.page-card-link::after {
    content: ' ○';
    transition: transform var(--transition);
    display: inline-block;
}

.page-card-link:hover {
    color: var(--accent);
}

.page-card:hover .page-card-link::after {
    transform: translateX(4px);
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 58, 237, 0.3);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    font-style: italic;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

.testimonial-author {
    font-style: normal;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.testimonial-author::before {
    content: '— ';
    color: var(--primary);
}

/* === CONTACT FORM === */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 3rem auto;
}

.contact-form h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15),
                0 0 30px rgba(124, 58, 237, 0.2);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(124, 58, 237, 0.25);
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25),
                0 0 50px rgba(124, 58, 237, 0.4);
    color: #fff;
}

.btn:active {
    transform: translateY(0);
    animation: bubble-pop 0.4s ease;
}

/* === CTA BUTTON & PRICE TAG === */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-display);
    line-height: 1.4;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(124, 58, 237, 0.3);
    transition: all var(--transition);
    margin-top: 1rem;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25),
                0 0 60px rgba(124, 58, 237, 0.45);
    color: #fff;
}

.cta-button:active {
    animation: bubble-pop 0.4s ease;
}

.price-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-display);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 0 24px rgba(236, 72, 153, 0.25);
    transition: all var(--transition);
    margin-top: 0.5rem;
}

a.price-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
                0 0 36px rgba(236, 72, 153, 0.4);
    color: #fff;
}

/* === MESSAGES === */
.error, .success {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid;
}

.error {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.3);
}

.success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

[data-theme="light"] .success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* === FOOTER === */
footer {
    background: var(--footer-bg, var(--bg-card));
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem 3rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-section {
    min-width: 0;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-section p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-section ul,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li,
.footer-menu li {
    margin: 0.5rem 0;
}

.footer-section a,
.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.footer-section a:hover,
.footer-menu a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all var(--transition);
    font-size: 1rem;
    color: #fff;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

/* Copyright section */
.copyright {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright p {
    margin: 0.25rem 0;
    color: inherit;
}

.copyright a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.copyright a:hover {
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero { min-height: 50vh; }
    .content-section { padding: 2.5rem; }
    
    .page-card { width: 240px; }
    .page-card-image,
    .page-card-placeholder { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
    /* Mobile menu fix (6.2.5): pin the dropdown to the screen and bind
       top AND bottom so its scroll area equals the visible viewport -
       reaches the last item in landscape. Paired with the body-scroll
       lock in script.js (prevents the page underneath from scrolling). */
    .dropdown-menu {
        position: fixed;
        top: 74px;
        bottom: 12px;
        left: auto;
        right: 8px;
        max-height: none;
        margin-top: 0;
        padding-bottom: 0.4rem;
        min-width: 220px;
    }

    .container { padding: 0 1.25rem; }
    .header-content { padding: 15px 0; }
    .logo-container img { height: 56px; }
    
    .hero { 
        min-height: 45vh;
        padding: 3rem 0;
    }
    .hero::before { width: 200px; height: 200px; }
    .hero::after { width: 140px; height: 140px; }
    
    .content-section {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
    }
    
    .content-section h1 { font-size: 1.85rem; }
    
    .page-cards-grid {
        gap: 2.5rem 1.5rem;
        padding: 2.5rem 0;
    }
    
    .page-card { width: 220px; }
    .page-card-image,
    .page-card-placeholder { width: 200px; height: 200px; }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .dark-mode-toggle {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-container img { height: 48px; }
    .header-content { padding: 12px 0; }
    
    .hero::before, .hero::after { display: none; }
    
    .content-section { padding: 1.5rem 1.25rem; }
    
    .page-card { width: 200px; }
    .page-card-image,
    .page-card-placeholder { width: 180px; height: 180px; }
    
    .testimonial-card::before { font-size: 3.5rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .page-card,
    .page-card:nth-child(odd),
    .page-card:nth-child(even),
    .page-card:nth-child(3n) {
        animation: none !important;
    }
    
    .page-card-image::before,
    .page-card-placeholder::before {
        animation: none !important;
    }
    
    .hero::before, .hero::after {
        animation: none !important;
    }
}

/* === PRINT === */
@media print {
    body { background: #fff; color: #000; }
    header, footer, .dark-mode-toggle, .hamburger-btn, .hamburger-menu { display: none !important; }
    .hero {
        padding: 1.5rem 0;
        background: none;
        color: #000;
        min-height: auto;
    }
    .hero::before, .hero::after { display: none; }
    .hero h1 { color: #000; }
    .content-section,
    .page-card,
    .testimonial-card,
    .contact-form {
        background: #fff;
        box-shadow: none;
        border: 1px solid #ccc;
        animation: none !important;
    }
    .page-card-image::before,
    .page-card-placeholder::before {
        animation: none;
        display: none;
    }
}

/* === KEYBOARD FOCUS (6.2.4 accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* === HERO BACKGROUND IMAGE (6.3.0) ===
   Bubble stays playful: the photo sits under a colorful scheme-tinted
   glow rather than a flat dark veil, with a soft vignette and a springy
   feel. Four overlay levels. Falls back to the original hero with no
   image set. */
.hero--has-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 64vh;
    background: var(--primary);
}

.hero--has-bg .hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}

.hero--has-bg .hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Colorful glow overlay - radial scheme tint + vignette, not a flat veil */
.hero--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 50% 18%,
            color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 55%),
        radial-gradient(120% 100% at 50% 100%,
            color-mix(in srgb, var(--primary) 55%, transparent) 0%, transparent 60%),
        rgba(0, 0, 0, 0.42);
}

.hero--has-bg h1 {
    color: #fff;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.4);
}

/* Four overlay strengths - Bubble keeps the colorful glow at every level */
.hero--overlay-none::after {
    background:
        radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 60%),
        rgba(0, 0, 0, 0.12);
}
.hero--overlay-light::after {
    background:
        radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--accent) 32%, transparent) 0%, transparent 58%),
        radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--primary) 42%, transparent) 0%, transparent 62%),
        rgba(0, 0, 0, 0.26);
}
.hero--overlay-medium::after {
    background:
        radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 55%),
        radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--primary) 55%, transparent) 0%, transparent 60%),
        rgba(0, 0, 0, 0.42);
}
.hero--overlay-strong::after {
    background:
        radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--accent) 44%, transparent) 0%, transparent 52%),
        radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--primary) 64%, transparent) 0%, transparent 58%),
        rgba(0, 0, 0, 0.6);
}
