/* ===================================
   RISE TOGETHER - STYLESHEET
   Perfekt responsiv och levande design
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #27ae60;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 5vw, 20px);
}

/* Typography med fluid scaling */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.large-text {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
}

/* Buttons - Touch-optimerade */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: clamp(12px, 2vw, 14px) clamp(24px, 4vw, 32px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}

.btn-primary-small {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-large {
    padding: clamp(14px, 2.5vw, 16px) clamp(36px, 6vw, 48px);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 0;
}

.nav-brand .tagline {
    color: var(--text-light);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section - Responsiv breathing effekt */
.hero {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.85) 0%, rgba(211, 84, 0, 0.85) 100%), 
                url('images/people.jpg') center/cover no-repeat;
    color: white;
    padding: clamp(80px, 15vw, 120px) clamp(15px, 3vw, 20px) clamp(60px, 12vw, 100px);
    position: relative;
    overflow: hidden;
    animation: subtleBreath 8s ease-in-out infinite;
}

@keyframes subtleBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Organiska blobs - Responsiva storlekar */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: morphBlob 20s ease-in-out infinite;
}

.hero::before {
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    top: min(-250px, -35vw);
    right: min(-200px, -30vw);
    animation-delay: 0s;
}

.hero::after {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    bottom: min(-150px, -25vw);
    left: min(-100px, -20vw);
    animation-delay: 5s;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 40% 50%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 60% 40% 50% 60% / 40% 70% 30% 60%;
        transform: rotate(270deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Photo Gallery - Bildgalleri */
.photo-gallery {
    padding: clamp(40px, 8vw, 60px) clamp(15px, 3vw, 20px);
    background: var(--bg-light);
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding-top: clamp(70px, 12vw, 100px);
    padding-bottom: clamp(70px, 12vw, 100px);
}

.photo-gallery .section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.photo-gallery .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(230, 126, 34, 0.95) 0%, rgba(230, 126, 34, 0.7) 60%, transparent 100%);
    padding: clamp(1.5rem, 3vw, 2rem);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(230, 126, 34, 0.3);
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Fallback om bilder inte laddas */
.gallery-item img[src*="bild1"],
.gallery-item img[src*="bild2"],
.gallery-item img[src*="bild3"],
.gallery-item img[src*="bild4"] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Activities Section */
.activities {
    padding: clamp(60px, 10vw, 80px) clamp(15px, 3vw, 20px);
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.activity-category {
    background: white;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.activity-category::after {
    content: '✨';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: clamp(60px, 12vw, 100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.activity-category:hover::after {
    top: -20px;
    right: -20px;
    opacity: 0.1;
}

.activity-category:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.category-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    transition: transform 0.3s ease;
}

.activity-category:hover .category-icon {
    transform: rotate(360deg) scale(1.1);
}

.category-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    padding-left: clamp(1.25rem, 2vw, 1.5rem);
    position: relative;
    color: var(--text-dark);
    transition: transform 0.2s ease;
}

.activity-list li:hover {
    transform: translateX(5px);
}

.activity-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* About Section - Sned sektion */
.about {
    padding: clamp(60px, 10vw, 80px) clamp(15px, 3vw, 20px);
    background: var(--bg-light);
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    padding-top: clamp(90px, 15vw, 120px);
    padding-bottom: clamp(90px, 15vw, 120px);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-highlight {
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-highlight::before {
    content: '💫';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: clamp(30px, 6vw, 40px);
    opacity: 0.1;
}

.about-highlight:hover {
    transform: scale(1.05);
}

.highlight-text {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* Membership Section */
.membership {
    padding: clamp(60px, 10vw, 80px) clamp(15px, 3vw, 20px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Lägg till bubblor i membership - Responsiva */
.membership::before,
.membership::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: floatBubble 15s ease-in-out infinite;
}

.membership::before {
    width: min(300px, 50vw);
    height: min(300px, 50vw);
    top: min(-100px, -15vw);
    left: min(-100px, -15vw);
}

.membership::after {
    width: min(200px, 35vw);
    height: min(200px, 35vw);
    bottom: min(-50px, -10vw);
    right: min(-50px, -10vw);
    animation-delay: 3s;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.membership-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.membership-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.membership-content > p {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.membership-form {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.form-group {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 12px);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all 0.3s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.membership-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: clamp(2rem, 4vw, 3rem) clamp(15px, 3vw, 20px) clamp(1rem, 2vw, 1.5rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Extra Small Mobile (<480px) */
@media (max-width: 479px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .info-grid,
    .activities-grid {
        gap: 1rem;
    }
    
    .hero::before,
    .hero::after {
        opacity: 0.5;
    }
}

/* Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile & Small Tablet (< 768px) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-menu a {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .quick-info,
    .about {
        clip-path: none;
        padding-top: clamp(40px, 8vw, 60px);
        padding-bottom: clamp(40px, 8vw, 60px);
    }
    
    .hero {
        animation: none;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablet / Small Desktop (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

/* Desktop (> 1024px) */
@media (min-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large Desktop (> 1400px) */
@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Touch devices - Större knappar och bättre spacing */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-primary-small {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-menu a {
        padding: 12px 0;
        min-height: 48px;
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px;
    }
    
    .activity-category:hover,
    .info-card:hover {
        transform: none;
    }
    
    .activity-category:active {
        transform: scale(0.98);
    }
}

/* Reduce motion för användare som föredrar det */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        animation: none;
    }
}