/* Loop Art Studio - Mobile-First Design */

/* Typography - Clean & Modern */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

:root {
    /* Original palette */
    --purple: #5B4B8A;
    --purple-dark: #4A3D72;
    --purple-light: #7B6BAA;
    --lime: #C4E538;
    --lime-dark: #A8C52E;
    --lime-light: #D4ED6B;
    --coral: #E8747C;
    --coral-dark: #D65F68;
    --coral-light: #F0A0A6;
    --off-white: #FAFAFA;
    --white: #FFFFFF;

    /* Functional colors */
    --text-dark: #4A4A6A;
    --text-light: #6B6B8A;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Touch-friendly minimums */
    --touch-target: 48px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* ===== BASE STYLES (Mobile First) ===== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--purple);
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
}

.lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--coral-dark);
}

/* ===== NAVIGATION ===== */

.navbar {
    background-color: var(--white) !important;
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: none;
    box-shadow: none;
}

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

.navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
}

.navbar-brand span {
    color: var(--lime);
}

/* Mobile hamburger button - large touch target */
.navbar-toggler {
    width: var(--touch-target);
    height: var(--touch-target);
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background-color: var(--purple);
    background-image: none !important;
    position: relative;
    transition: background-color 0.2s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--purple);
    left: 0;
    transition: transform 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

/* Mobile nav - Full screen overlay */
.navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

.navbar-collapse.show {
    opacity: 1;
    visibility: visible;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--purple) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    display: inline-block;
    min-height: var(--touch-target);
    line-height: var(--touch-target);
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background-color: var(--purple);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== BUTTONS ===== */

.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 25px;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--coral-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--coral);
    border: 2px solid var(--coral);
    padding: 12px 30px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--coral);
    color: white;
    border-color: var(--coral);
}

.btn-lg {
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-xl);
}

/* ===== HERO SECTION ===== */

.hero-section {
    padding: var(--space-xl) 0;
    background-color: var(--white);
    text-align: center;
}

.hero-section h1 {
    color: var(--purple);
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
}

.hero-section .lead {
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.hero-buttons .btn {
    width: 100%;
    max-width: 280px;
}

.hero-image {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(91, 75, 138, 0.2);
    max-width: 100%;
    height: auto;
}

/* ===== CARDS ===== */

.card {
    background-color: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(91, 75, 138, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(91, 75, 138, 0.15);
    transform: translateY(-5px);
}

.card-body {
    padding: var(--space-md);
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    color: var(--purple);
}

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

/* Class/Workshop cards */
.class-card {
    border-radius: 20px;
}

.class-card img {
    height: 220px;
    object-fit: cover;
}

.class-card .badge {
    background-color: var(--lime) !important;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 20px;
}

.class-card .card-title {
    font-size: 1.4rem;
}

.class-card ul {
    padding-left: var(--space-md);
    margin: var(--space-sm) 0;
}

.class-card ul li {
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(91, 75, 138, 0.15) !important;
}

/* ===== TESTIMONIALS ===== */

.testimonials-section {
    padding: var(--space-xl) 0;
    background-color: var(--off-white);
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.testimonial-card {
    border-radius: 20px;
    background-color: var(--white);
}

.testimonial-card .card-body {
    padding: var(--space-lg);
    text-align: center;
}

.testimonial-card .card-text {
    font-size: 1.1rem;
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.testimonial-card:hover {
    transform: none;
}

/* Carousel controls - Mobile friendly */
.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
    position: static;
    width: var(--touch-target);
    height: var(--touch-target);
    background-color: var(--purple);
    border-radius: 50%;
    opacity: 1;
    margin: var(--space-sm) var(--space-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.testimonials-section .carousel-control-prev:hover,
.testimonials-section .carousel-control-next:hover {
    background-color: var(--coral);
}

.carousel-controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-md);
    gap: var(--space-xs);
}

.testimonials-section .carousel-indicators {
    position: static;
    margin: 0;
    display: flex;
    gap: var(--space-xs);
}

.testimonials-section .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--purple-light);
    border: none;
    opacity: 1;
}

.testimonials-section .carousel-indicators button.active {
    background-color: var(--purple);
}

/* ===== CTA SECTION ===== */

.cta-section {
    padding: var(--space-xl) 0;
    background-color: var(--off-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--purple);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

/* ===== PAGE HEADERS ===== */

.page-header {
    padding: var(--space-lg) 0;
    background-color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--purple);
    margin-bottom: var(--space-xs);
}

.page-header .lead {
    color: var(--text-light);
    margin: 0;
}

/* ===== ABOUT PAGE ===== */

.about-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, #E8E4F0 0%, #F5F3F8 50%, #FDF5F6 100%);
    min-height: auto;
}

.about-hero h1 {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: var(--space-md);
}

.about-hero p {
    color: var(--purple-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-photo-frame {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.about-photo-frame:hover {
    transform: rotate(0deg);
}

.about-photo-frame img {
    width: 280px;
    height: 320px;
    object-fit: cover;
    border: 8px solid white;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.instagram-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--purple);
    border-bottom: 2px solid var(--lime);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

/* What to Expect */
.about-hero + section {
    padding: var(--space-xl) 0;
}

.about-hero + section h4 {
    font-family: 'Quicksand', sans-serif;
    color: var(--purple);
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.about-hero + section p {
    color: var(--text-light);
}

/* ===== CONTACT SECTION ===== */

.contact-section {
    background-color: var(--purple);
    padding: var(--space-xl) 0;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section p,
.contact-section .lead {
    color: rgba(255,255,255,0.9);
}

.contact-info {
    padding: var(--space-md) 0;
    border-top: 2px solid rgba(255,255,255,0.2);
    margin-top: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-xs);
}

.contact-section a {
    color: var(--lime);
    text-decoration: none;
}

.contact-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Contact Form */
.contact-form .form-label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.contact-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-height: var(--touch-target);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--lime);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(196, 229, 56, 0.25);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: var(--coral);
    color: white;
    width: 100%;
    margin-top: var(--space-sm);
}

.contact-form .btn-primary:hover {
    background-color: var(--coral-dark);
}

/* ===== GALLERY ===== */

.gallery-fullscreen-section {
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.gallery-fullscreen-section .carousel,
.gallery-fullscreen-section .carousel-inner,
.gallery-fullscreen-section .carousel-item {
    height: 100%;
}

.gallery-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(91, 75, 138, 0.95) 0%, rgba(91, 75, 138, 0.7) 50%, transparent 100%);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.gallery-overlay h2 {
    font-family: 'Quicksand', sans-serif;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

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

/* Gallery carousel controls - Touch friendly */
.gallery-fullscreen-section .carousel-control-prev,
.gallery-fullscreen-section .carousel-control-next {
    width: var(--touch-target);
    height: var(--touch-target);
    background-color: var(--purple);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    z-index: 20;
    transition: all 0.3s ease;
}

.gallery-fullscreen-section .carousel-control-prev {
    left: var(--space-sm);
}

.gallery-fullscreen-section .carousel-control-next {
    right: var(--space-sm);
}

.gallery-fullscreen-section .carousel-control-prev:hover,
.gallery-fullscreen-section .carousel-control-next:hover {
    background-color: var(--coral);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ===== FAQ / ACCORDION ===== */

.accordion-item {
    border: none;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    padding: var(--space-md);
    min-height: var(--touch-target);
}

.accordion-button:not(.collapsed) {
    background-color: var(--off-white);
    color: var(--purple);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 16px;
}

.accordion-body {
    padding: var(--space-md);
    color: var(--text-dark);
    background-color: var(--white);
}

/* ===== BADGES ===== */

.badge {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 20px;
}

.badge.bg-primary {
    background-color: var(--lime) !important;
    color: var(--purple);
}

/* ===== ALERTS ===== */

.alert {
    border-radius: 10px;
    padding: var(--space-md);
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: var(--coral-light);
    color: var(--coral-dark);
}

.alert-info {
    background-color: #F0F0FF;
    border: 1px solid var(--purple);
    color: var(--purple);
}

/* ===== FOOTER ===== */

footer {
    background-color: var(--purple-dark);
    padding: var(--space-lg) 0;
    text-align: center;
}

footer p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== UTILITY CLASSES ===== */

.section-title {
    font-family: 'Quicksand', sans-serif;
    color: var(--purple);
    margin-bottom: var(--space-md);
}

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

.bg-light {
    background-color: var(--off-white) !important;
}

/* ===== TABLET STYLES (min-width: 768px) ===== */

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: var(--space-2xl) 0;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .class-card img {
        height: 280px;
    }

    .about-photo-frame img {
        width: 320px;
        height: 380px;
    }

    .gallery-fullscreen-section {
        height: 75vh;
        max-height: 700px;
    }

    .gallery-overlay h2 {
        font-size: 2.2rem;
    }

    .gallery-overlay {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* ===== DESKTOP STYLES (min-width: 992px) ===== */

@media (min-width: 992px) {
    /* Desktop navigation - horizontal */
    .navbar {
        padding: var(--space-md) 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: center;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        position: static;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-grow: 0;
    }

    .navbar-nav {
        flex-direction: row;
        gap: 0;
        margin-top: var(--space-sm);
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1.5rem !important;
    }

    .nav-link::after {
        bottom: 0;
        left: 1.5rem;
        right: 1.5rem;
        width: auto;
        transform: scaleX(0);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }

    /* Hero */
    .hero-section h1 {
        font-size: 3rem;
    }

    /* About */
    .about-hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }

    .about-hero h1 {
        font-size: 2.8rem;
    }

    .about-photo-frame img {
        width: 350px;
        height: 400px;
    }

    /* Gallery */
    .gallery-fullscreen-section {
        height: 80vh;
        max-height: 800px;
    }

    .gallery-fullscreen-section .carousel-control-prev {
        left: 30px;
    }

    .gallery-fullscreen-section .carousel-control-next {
        right: 30px;
    }

    .gallery-fullscreen-section .carousel-control-prev,
    .gallery-fullscreen-section .carousel-control-next {
        width: 60px;
        height: 60px;
    }

    .gallery-overlay h2 {
        font-size: 2.5rem;
    }

    .gallery-overlay p {
        font-size: 1.2rem;
    }

    /* Class cards */
    .class-card img {
        height: 350px;
    }
}

/* ===== LARGE DESKTOP (min-width: 1200px) ===== */

@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .container {
        max-width: 1140px;
    }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
