/* Shared styles for all pages - Modern Mobile-First Design */

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

:root {
    --light-green: #82DD79;
    --emerald: #77CF8F;
    --mint-leaf: #6BC2A6;
    --tropical-teal: #60B4BC;
    --fresh-sky: #54A6D2;
    --cloudy-sky: #4999E9;
    --blue-energy: #3D8BFF;
    
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Modern Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--fresh-sky) 0%, var(--blue-energy) 100%);
    box-shadow: 0 2px 20px rgba(61, 139, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    display: none;
}

/* Hamburger Menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 2rem;
    height: 0.2rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    transform: translateY(-0.6rem);
}

.hamburger::after {
    transform: translateY(0.6rem);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Mobile Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 5rem 0 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-menu a:hover {
    background: linear-gradient(90deg, rgba(84, 166, 210, 0.1) 0%, transparent 100%);
    border-left-color: var(--fresh-sky);
}

.nav-menu a.active {
    background: linear-gradient(90deg, rgba(61, 139, 255, 0.15) 0%, transparent 100%);
    border-left-color: var(--blue-energy);
    color: var(--blue-energy);
}

.nav-icon {
    font-size: 1.5rem;
}

/* Hero Section - Only for main pages, not barnehage detail pages */
body:not(.barnehage-page) .hero {
    background: linear-gradient(135deg, var(--fresh-sky) 0%, var(--blue-energy) 100%);
    color: white;
    padding: 3rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body:not(.barnehage-page) .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

body:not(.barnehage-page) .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

body:not(.barnehage-page) .hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h2 {
    color: var(--fresh-sky);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h3 {
    color: var(--cloudy-sky);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.card ul, .card ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-medium);
}

.card li {
    margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--fresh-sky) 0%, var(--tropical-teal) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--fresh-sky) 0%, var(--blue-energy) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61, 139, 255, 0.3);
    margin: 1rem auto;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(61, 139, 255, 0.4);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 1.25rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Tablet */
@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 5rem 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .content {
        padding: 3rem 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
