/*
Theme Name: Musicalo Child
Theme URI: https://musicalo.se
Description: Custom theme for Musicalo based on OnePress with brand guidelines
Author: Musicalo
Template: onepress
Version: 1.0.0
*/

/* ====================
   IMPORT GOOGLE FONTS
   ==================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Baloo+2:wght@400;700&family=Mulish:wght@300;400;600;700&display=swap');

/* ====================
   CSS VARIABLES - BRAND COLORS
   ==================== */
:root {
    /* Primary warm scale - gradient from logo */
    --color-solsken: #F6A609;
    --color-honung: #F0900C;
    --color-klang: #EA6A17;
    --color-glod: #DD4E0C;
    --color-terrakotta: #B83D10;

    /* Support & neutrals */
    --color-plommon: #6E3A66;
    --color-ljus-plommon: #8A5283;
    --color-plommondis: #F2E7F1;
    --color-varmt-black: #2A1B12;
    --color-gradde: #FFF8EF;
    --color-djup-gradde: #FBEEDD;

    /* Theme colors */
    --color-utagerande: #E62D38;
    --color-aktivitet: #0096C9;
    --color-kanslor: #F1880C;
    --color-sociala: #7CB432;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-accent: 'Baloo 2', cursive;
    --font-body: 'Mulish', sans-serif;
}

/* ====================
   TYPOGRAPHY
   ==================== */
body {
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-varmt-black);
    background-color: var(--color-gradde);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    font-weight: 600;
    color: var(--color-glod);
    line-height: 1.2;
}

/* Type scale from brand guide */
h1, .hero-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
}

h2, .section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
}

h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
}

.ingress, .lead {
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 400;
    line-height: 1.5;
}

/* Accent typography - playful elements */
.song-title,
.accent-text,
.btn-primary {
    font-family: var(--font-accent) !important;
    font-weight: 700;
}

.label, .tag {
    font-family: var(--font-accent) !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================
   HEADER & LOGO (Mobile First)
   ==================== */
.site-header {
    background: white;
    position: relative;
    z-index: 50;
    padding: 10px 15px;
}

.site-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    min-height: 100px;
}

/* Klav Logo - vänster sida, sträcker ned över hero */
.logo-klav {
    width: auto;
    max-width: 100px;
    height: auto;
    flex-shrink: 0;
    position: relative;
    margin-left: 15px;
    margin-top: 15px;
    margin-bottom: -65%;
    z-index: 10;
    filter: none;
}

/* Header Content - text logo och menu */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex-grow: 1;
    gap: 20px;
}

/* Text Logo */
.logo-text-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-text-link:hover {
    opacity: 0.8;
}

.logo-text {
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Navigation */
.main-navigation {
    width: 100%;
    text-align: right;
}

/* Hamburger Menu Icon */
.menu-toggle {
    background: none !important;
    border: none !important;
    padding: 10px !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 0;
    top: 10px;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger-icon span {
    width: 28px;
    height: 3px;
    background: var(--color-glod);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:focus {
    outline: none !important;
}

/* Slide-in menu */
#primary-menu {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 80%;
    max-width: 400px;
    background: white;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    padding: 70px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease !important;
    z-index: 9999 !important;
    overflow-y: auto;
    margin: 0 !important;
}

#primary-menu.active {
    transform: translateX(0) !important;
}

/* Close button */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--color-glod);
    border-radius: 2px;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-close:hover::before,
.menu-close:hover::after {
    background: var(--color-terrakotta);
}

#primary-menu li {
    display: block;
    margin-bottom: 15px;
}

#primary-menu a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-varmt-black);
    border-bottom: 1px solid var(--color-djup-gradde);
    transition: color 0.3s ease;
}

#primary-menu a:hover {
    color: var(--color-glod);
}

/* Kompensera för WordPress admin-bar */
.admin-bar #primary-menu {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #primary-menu {
        top: 46px !important;
    }
}

/* Menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

/* ====================
   NAVIGATION
   ==================== */
/* Dölj one-page navigation under hero */
.one-page-nav {
    display: none;
}

.main-navigation a {
    font-family: var(--font-body) !important;
    font-weight: 600;
    color: var(--color-varmt-black);
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-glod);
}

.main-navigation .current-menu-item a {
    color: var(--color-klang);
}

/* ====================
   BUTTONS & LINKS
   ==================== */
a {
    color: var(--color-plommon);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-ljus-plommon);
}

.btn,
.button,
input[type="submit"],
button {
    font-family: var(--font-accent) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: linear-gradient(135deg, var(--color-solsken) 0%, var(--color-glod) 100%) !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(221, 78, 12, 0.3) !important;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 78, 12, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--color-plommon);
}

.btn-secondary:hover {
    background: var(--color-ljus-plommon);
}

/* ====================
   HERO SECTION
   ==================== */
.hero-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%), #6c757d;
    background-attachment: fixed;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: -30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: center;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-display) !important;
    font-size: clamp(16px, 5vw, 28px);
    font-weight: 400;
    margin: 0 0 30px 0;
    opacity: 1;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 15px 40px !important;
    font-size: 16px !important;
}

/* ====================
   SECTIONS
   ==================== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: var(--color-djup-gradde);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-content .btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

.audience-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.audience-buttons .btn {
    display: inline-block;
    width: auto;
    flex: 1 1 200px;
    max-width: 300px;
    text-align: center;
    margin: 0;
    padding: 22px 30px !important;
    font-size: 17px !important;
    border-radius: 20px !important;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .audience-buttons .btn {
        padding: 40px 30px !important;
    }
}

.btn-color-solsken {
    background: linear-gradient(135deg, var(--color-solsken), var(--color-glod)) !important;
    box-shadow: 0 4px 15px rgba(246, 166, 9, 0.35) !important;
}

.btn-color-honung {
    background: linear-gradient(135deg, var(--color-honung), var(--color-klang)) !important;
    box-shadow: 0 4px 15px rgba(240, 144, 12, 0.35) !important;
}

.btn-color-klang {
    background: linear-gradient(135deg, var(--color-klang), var(--color-terrakotta)) !important;
    box-shadow: 0 4px 15px rgba(234, 106, 23, 0.35) !important;
}

.btn-color-glod {
    background: linear-gradient(135deg, var(--color-glod), var(--color-terrakotta)) !important;
    box-shadow: 0 4px 15px rgba(221, 78, 12, 0.35) !important;
}

.btn-color-terrakotta {
    background: linear-gradient(135deg, var(--color-terrakotta), var(--color-glod)) !important;
    box-shadow: 0 4px 15px rgba(184, 61, 16, 0.35) !important;
}

.btn-color-plommon {
    background: linear-gradient(135deg, var(--color-plommon), var(--color-ljus-plommon)) !important;
    box-shadow: 0 4px 15px rgba(110, 58, 102, 0.35) !important;
}

.btn-color-utagerande {
    background: linear-gradient(135deg, var(--color-utagerande), var(--color-glod)) !important;
    box-shadow: 0 4px 15px rgba(230, 45, 56, 0.35) !important;
}

.btn-color-aktivitet {
    background: linear-gradient(135deg, var(--color-aktivitet), var(--color-plommon)) !important;
    box-shadow: 0 4px 15px rgba(0, 150, 201, 0.35) !important;
}

.btn-color-kanslor {
    background: linear-gradient(135deg, var(--color-kanslor), var(--color-klang)) !important;
    box-shadow: 0 4px 15px rgba(241, 136, 12, 0.35) !important;
}

.btn-color-sociala {
    background: linear-gradient(135deg, var(--color-sociala), var(--color-aktivitet)) !important;
    box-shadow: 0 4px 15px rgba(124, 180, 50, 0.35) !important;
}

.btn-audience-pedagoger {
    background: linear-gradient(135deg, var(--color-plommon), var(--color-ljus-plommon)) !important;
    box-shadow: 0 4px 15px rgba(110, 58, 102, 0.35) !important;
}

.btn-audience-beslutsfattare {
    background: linear-gradient(135deg, #0096C9, var(--color-plommon)) !important;
    box-shadow: 0 4px 15px rgba(0, 150, 201, 0.35) !important;
}

.btn-audience-foraldrar {
    background: linear-gradient(135deg, var(--color-sociala), #0096C9) !important;
    box-shadow: 0 4px 15px rgba(124, 180, 50, 0.35) !important;
}

.section-icon {
    width: auto;
    height: 60px;
    margin: 0 auto 30px;
    background: url('images/sound-wave.png') center/contain no-repeat;
    border-radius: 0;
    display: block;
    font-size: 0;
    overflow: hidden;
    text-indent: -9999px;
}

.section-icon--wave {
    background: url('images/sound-wave.png') center/contain no-repeat;
}

.section-icon--arch {
    background: url('images/arch.png') center/contain no-repeat;
    height: 42px;
}

.section-icon--bubbles {
    background: url('images/bubbles.png') center/contain no-repeat;
}



/* ====================
   INSTAGRAM FEED
   ==================== */
.instagram-section {
    background: var(--color-plommondis);
    padding: 80px 0;
    text-align: center;
}

.instagram-section h2 {
    color: var(--color-plommon);
    margin-bottom: 40px;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-post {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-dummy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 20px;
}

.instagram-dummy-post {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.instagram-dummy-icon {
    font-size: 28px;
    color: rgba(255,255,255,0.6);
}

.instagram-dummy-notice {
    font-size: 13px;
    color: var(--color-plommon);
    opacity: 0.7;
    margin-top: 15px;
}

/* ====================
   MEMBER AREA
   ==================== */
.member-login {
    background: var(--color-plommon);
    color: white;
    padding: 60px 0;
}

.member-login h2 {
    color: white;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--color-djup-gradde);
    border-radius: 8px;
    font-family: var(--font-body);
}

/* ====================
   SINGLE PAGE LAYOUT
   ==================== */
.page-hero {
    background: linear-gradient(135deg, var(--color-solsken) 0%, var(--color-glod) 60%, var(--color-terrakotta) 100%);
    padding: 30px 0 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    color: white;
    font-size: clamp(28px, 4vw, 52px);
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-hero-wave {
    height: 50px;
    background: url('images/sound-wave.png') center/contain no-repeat;
    opacity: 0.3;
    margin-top: 20px;
}

.page-container {
    max-width: 800px;
    padding: 60px 20px;
}

.page-article {
    background: white;
    padding: 50px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--color-varmt-black);
}

.page-content p:first-child {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-glod);
}

.page-content h2,
.page-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-divider-graphic {
    text-align: center;
    margin: 30px 0;
}

.page-divider-graphic img {
    width: 100px;
    height: auto;
    opacity: 0.7;
    border-radius: 0;
}

.page-back {
    margin-top: 30px;
    text-align: center;
}

.page-back-link {
    font-family: var(--font-accent);
    font-weight: 700;
    color: var(--color-plommon);
    font-size: 16px;
}

.page-back-link:hover {
    color: var(--color-glod);
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 0 30px;
    }

    .page-article {
        padding: 30px 20px;
    }

    .page-content p:first-child {
        padding-left: 90px;
    }

    .page-hero-title {
        padding-left: 100px;
        text-align: center;
        margin-top: -5px;
    }

    .menu-toggle {
        top: 15px;
    }

    .page-content p {
        font-size: 16px;
    }
}

/* ====================
   TABLES
   ==================== */
.page-content td,
.page-content th {
    vertical-align: top;
}

/* ====================
   FOOTER
   ==================== */
.site-footer {
    background: #2A1B12;
    color: var(--color-gradde);
    padding: 40px 0 20px;
}

.site-footer a {
    color: var(--color-honung);
}

.site-footer a:hover {
    color: var(--color-solsken);
}

/* ====================
   UTILITY CLASSES
   ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-solsken), var(--color-glod));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rounded corners everywhere - soft and warm */
img,
.card,
.section,
input,
textarea,
select {
    border-radius: 15px;
}

/* ====================
   RESPONSIVE
   ==================== */

@media (min-width: 481px) {
    .site-header-inner {
        min-height: 120px;
    }

    .header-content {
        gap: 0;
    }

    .logo-klav {
        max-width: 120px;
        margin-left: 20px;
        margin-top: 15px;
        margin-bottom: -70%;
    }

    .logo-text {
        max-width: 250px;
        margin-top: 70px;
        margin-bottom: 0;
    }

    .hero-section {
        padding: 100px 20px 80px 150px;
        min-height: 400px;
        margin-top: -30px;
    }

    .hero-tagline {
        font-size: clamp(20px, 4vw, 32px);
    }

    #primary-menu li {
        display: block;
        margin-bottom: 10px;
    }

    #primary-menu a {
        padding: 10px 15px;
        font-size: 16px;
        display: block;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .site-header {
        padding: 20px 40px;
    }

    .logo-klav {
        max-width: 140px;
        margin-left: 25px;
        margin-top: 15px;
        margin-bottom: -75%;
    }

    .header-content {
        gap: 0;
    }

    .logo-text {
        max-width: 300px;
        margin-top: 80px;
        margin-bottom: 0;
    }

    .hero-section {
        padding: 120px 0 120px 180px;
        min-height: 500px;
        margin-top: -30px;
    }

    .hero-tagline {
        font-size: clamp(28px, 4vw, 42px);
        margin-bottom: 40px !important;
    }

    .page-content p:first-child {
        padding-left: 120px;
    }
}

/* Mobil */
@media (max-width: 480px) {
    .site-header {
        padding: 8px 12px;
    }

    .site-header-inner {
        min-height: 50px;
    }

    .logo-klav {
        max-width: 100px;
        margin-top: 5px;
        margin-left: 5px;
        margin-bottom: -80%;
    }

    .logo-text {
        max-width: 160px;
        margin-top: 20px;
        position: absolute;
        left: calc(50% + 10px);
        transform: translateX(-50%);
    }

    .hero-section {
        padding: 80px 15px 25px 120px;
        min-height: 250px;
        margin-top: -85px;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-tagline {
        font-size: clamp(16px, 5vw, 24px);
        margin-top: 35px;
        margin-bottom: 25px !important;
    }

    .content-section {
        padding: 40px 0;
    }

    .instagram-feed {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
}

/* Extra smal mobil - måste ligga efter max-width: 480px för att inte skrivas över */
@media (max-width: 399px) {
    .logo-klav {
        max-width: 75px;
        margin-left: 3px;
        margin-top: 3px;
    }
}
