/*
 Theme Name: Mystical Music Machine
 Theme URI: https://mysticalmusicmachine.example.com
 Description: Groovy, Mystery-Machine-inspired child theme for Astra. Built for the Mystical Music Machine brand.
 Author: Gabriel & Sasha
 Author URI: https://dstaftn.org
 Template: astra
 Version: 1.0.0
 Text Domain: mystical-music-machine
*/

/* Import parent styles (Astra) */
@import url("../astra/style.css");

/* === Core Palette === */
:root {
    --mmm-teal: #1ca4c9;
    --mmm-teal-dark: #007697;
    --mmm-lime: #7fdc3a;
    --mmm-orange: #ff861a;
    --mmm-cream: #fff7d6;
    --mmm-deep-blue: #122338;
    --mmm-off-white: #fcfbf6;

    --mmm-radius-pill: 999px;
    --mmm-radius-card: 18px;
}

/* Basic body styling */
body {
    background: radial-gradient(circle at top left, #23b7dd 0%, #0a3e56 60%, #051921 100%);
    color: var(--mmm-off-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Make main content pop on lighter cards */
.site-content, 
.ast-container {
    background: transparent;
}

.ast-page-builder-template .site-content > .ast-container,
.site-main > article,
.ast-plain-container .site-content > .ast-container {
    background: transparent;
}

/* Card look for main sections */
.mmm-card,
.ast-separate-container .site-main > article,
.ast-plain-container .site-main > article {
    background: var(--mmm-cream);
    color: var(--mmm-deep-blue);
    border-radius: var(--mmm-radius-card);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

/* === Header / Branding === */
.site-header {
    background: linear-gradient(135deg, var(--mmm-teal-dark), var(--mmm-teal));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    border-bottom: 4px solid var(--mmm-lime);
    position: relative;
    overflow: hidden;
}

/* Subtle psychedelic circles in header */
.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 134, 26, 0.8), transparent 70%);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.site-header::before {
    top: -80px;
    left: -40px;
}

.site-header::after {
    bottom: -120px;
    right: -40px;
}

.site-branding,
.site-branding a {
    color: #ffe9b5;
    text-decoration: none;
}

/* Site title in big groovy font (we’ll load Bungee via functions.php) */
.site-title,
.site-title a {
    font-family: "Bungee", system-ui, sans-serif;
    font-size: 2.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mmm-orange);
    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.75),
        -1px -1px 0 rgba(0, 0, 0, 0.3);
}

/* Tagline */
.site-description {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffe9b5;
    opacity: 0.9;
}

/* === Navigation === */
.main-header-bar-navigation,
.main-header-menu,
.main-header-menu a {
    font-family: "Bungee", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-header-menu > .menu-item > a {
    color: #ffe9b5;
    padding: 0.7rem 1.1rem;
    border-radius: var(--mmm-radius-pill);
    position: relative;
}

.main-header-menu > .menu-item > a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
    color: var(--mmm-deep-blue);
    background: var(--mmm-lime);
}

.main-header-menu > .menu-item > a:hover::before,
.main-header-menu > .menu-item.current-menu-item > a::before {
    border-color: var(--mmm-orange);
    transform: translateY(-1px);
}

/* === Hero Section (front-page) === */
.mmm-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 3rem;
    margin: 2.5rem 0;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--mmm-teal), var(--mmm-lime));
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.6),
        0 0 0 5px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.mmm-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        repeating-radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.14), transparent 80px),
        repeating-radial-gradient(circle at 80% 0%, rgba(255, 134, 26, 0.25), transparent 80px);
    opacity: 0.55;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.mmm-hero-left,
.mmm-hero-right {
    position: relative;
    z-index: 2;
}

.mmm-hero-title {
    font-family: "Bungee", system-ui, sans-serif;
    font-size: clamp(2.6rem, 3vw + 1.4rem, 3.4rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mmm-deep-blue);
    text-shadow:
        3px 3px 0 rgba(255, 134, 26, 0.7),
        -2px -2px 0 rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
}

.mmm-hero-subtitle {
    font-size: 1.05rem;
    max-width: 35rem;
    color: #082029;
    margin-bottom: 1.8rem;
}

.mmm-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mmm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--mmm-radius-pill);
    background: rgba(18, 35, 56, 0.15);
    border: 1px solid rgba(18, 35, 56, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mmm-deep-blue);
}

/* CTA buttons */
.mmm-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mmm-btn-primary,
.mmm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: var(--mmm-radius-pill);
    font-family: "Bungee", system-ui, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.mmm-btn-primary {
    background: var(--mmm-orange);
    color: var(--mmm-deep-blue);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.mmm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 0 rgba(0, 0, 0, 0.35);
    background: #ff9a36;
}

.mmm-btn-ghost {
    background: rgba(18, 35, 56, 0.12);
    border-color: rgba(18, 35, 56, 0.4);
    color: var(--mmm-deep-blue);
}

.mmm-btn-ghost:hover {
    background: rgba(18, 35, 56, 0.24);
}

/* Hero “van card” on the right */
.mmm-hero-van-card {
    position: relative;
    border-radius: 32px;
    background: linear-gradient(145deg, #0b2b3b, #020b12);
    padding: 1.8rem 1.6rem 1.9rem;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 0 3px rgba(0, 0, 0, 0.55);
    color: #f9f9f9;
}

.mmm-hero-van {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Van body as a rounded rectangle */
.mmm-van-body {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 5 / 3;
    margin-inline: auto;
    border-radius: 28px;
    background:
        linear-gradient(180deg, #1fb5db 0%, #0094bf 45%, #0094bf 55%, #79df37 55%, #6bc42f 100%);
    border: 4px solid #003346;
    box-shadow:
        0 18px 0 rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Van windows */
.mmm-van-window {
    position: absolute;
    top: 16%;
    left: 6%;
    width: 62%;
    height: 36%;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3feff, #79d5ff);
    box-shadow: inset 0 0 0 3px rgba(0, 51, 70, 0.9);
}

/* Windshield */
.mmm-van-windshield {
    position: absolute;
    top: 16%;
    right: 6%;
    width: 20%;
    height: 36%;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3feff, #79d5ff);
    box-shadow: inset 0 0 0 3px rgba(0, 51, 70, 0.9);
}

/* Van logo text area */
.mmm-van-logo {
    position: absolute;
    bottom: 18%;
    left: 12%;
    right: 12%;
    height: 32%;
    border-radius: 22px;
    background: rgba(255, 247, 214, 0.92);
    box-shadow: 0 0 0 3px rgba(0, 51, 70, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmm-van-logo-text {
    font-family: "Bungee", system-ui, sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-align: center;
    color: var(--mmm-orange);
    text-shadow:
        2px 2px 0 rgba(127, 220, 58, 0.9),
        -1px -1px 0 rgba(0, 51, 70, 0.85);
}

/* Van wheels */
.mmm-van-wheel {
    position: absolute;
    bottom: -10%;
    width: 22%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #05080c;
    box-shadow: 0 0 0 4px #000, 0 10px 0 rgba(0, 0, 0, 0.7);
}

.mmm-van-wheel::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    background: #222a38;
}

.mmm-van-wheel::after {
    content: "";
    position: absolute;
    inset: 36%;
    border-radius: inherit;
    background: #f7f7f7;
}

.mmm-van-wheel-left {
    left: 15%;
}

.mmm-van-wheel-right {
    right: 15%;
}

/* Decorative flower on the van */
.mmm-van-flower {
    position: absolute;
    bottom: 26%;
    left: 7%;
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--mmm-lime);
    box-shadow: 0 0 0 3px rgba(0, 51, 70, 0.85);
}

.mmm-van-flower::before,
.mmm-van-flower::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: var(--mmm-orange);
    mix-blend-mode: multiply;
}

/* Hero right bottom text */
.mmm-hero-van-copy {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* === Feature grid under hero === */
.mmm-section-title {
    font-family: "Bungee", system-ui, sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mmm-cream);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.mmm-section-subtitle {
    color: #e8faff;
    max-width: 40rem;
    margin-bottom: 2rem;
}

.mmm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.mmm-feature-card {
    background: rgba(3, 10, 16, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    border: 2px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
    color: #f3f6ff;
}

.mmm-feature-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mmm-lime);
    margin-bottom: 0.4rem;
}

.mmm-feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.mmm-feature-text {
    font-size: 0.92rem;
    opacity: 0.9;
}

/* === Footer === */
.site-footer {
    background: #02070c;
    color: #a3b5cf;
    border-top: 3px solid var(--mmm-teal);
}

/* === Responsive tweaks === */
@media (max-width: 960px) {
    .mmm-hero {
        grid-template-columns: 1fr;
        padding: 2.4rem 1.8rem;
    }

    .mmm-hero-right {
        order: -1;
    }

    .mmm-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mmm-hero {
        padding: 2rem 1.4rem;
    }

    .mmm-feature-grid {
        grid-template-columns: 1fr;
    }

    .mmm-card {
        padding: 1.6rem;
    }

    .site-title {
        font-size: 1.7rem;
    }
}
