/* 
 * The Craft Shed Ballito - Main Stylesheet
 * Colorful, child-friendly design for arts & crafts shop
 */

/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Color Palette */
    --primary-red: #E74C3C;
    --primary-yellow: #F1C40F;
    --primary-blue: #3498DB;
    --primary-green: #2ECC71;
    --primary-purple: #9B59B6;
    
    /* Neutral Colors */
    --light-cream: #FEF9F0;
    --warm-beige: #F5E6D3;
    --medium-brown: #A67C52;
    --dark-brown: #5D4037;
    --off-white: #FFFDF9;
    --light-gray: #F5F5F5;
    
    /* Typography */
    --heading-font: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    --body-font: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --section-padding: 3rem 1.5rem;
    --container-width: 1200px;
    --border-radius: 12px;
    
    /* Shadows */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark-brown);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-brown);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    color: var(--primary-red);
    text-shadow: 2px 2px 0 var(--primary-yellow);
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
}

h4 {
    font-size: 1.4rem;
    color: var(--primary-purple);
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

.highlight {
    background-color: var(--primary-yellow);
    padding: 0 5px;
    border-radius: 3px;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-colored {
    background-color: var(--light-cream);
    border-top: 3px dashed var(--primary-yellow);
    border-bottom: 3px dashed var(--primary-yellow);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.logo-text h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--medium-brown);
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--dark-brown);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-brown);
    transform: translateY(-2px);
}

.main-nav a.active {
    background-color: var(--primary-red);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-red);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%), url('images/hero-bg.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M20,20 Q40,5 60,20 T100,20" stroke="%23F1C40F" stroke-width="2" fill="none"/><path d="M0,50 Q20,35 40,50 T80,50" stroke="%23E74C3C" stroke-width="2" fill="none"/><path d="M30,80 Q50,65 70,80 T100,80" stroke="%233498DB" stroke-width="2" fill="none"/></svg>');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 253, 249, 0.9);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 5px solid var(--primary-yellow);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--body-font);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 0 #C0392B;
}

.btn-primary:hover {
    background-color: #C0392B;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #A93226;
    color: white;
}

.btn-secondary {
    background-color: var(--primary-yellow);
    color: var(--dark-brown);
    box-shadow: 0 4px 0 #D4AC0D;
}

.btn-secondary:hover {
    background-color: #D4AC0D;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #B7950B;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1.3rem;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 6px solid var(--primary-green);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--warm-beige);
}

.card-body {
    padding: 1.5rem;
}

.card-activity {
    border-top-color: var(--primary-purple);
}

.card-art-supply {
    border-top-color: var(--primary-blue);
}

.card-contact {
    border-top-color: var(--primary-red);
}

/* ===== FEATURED SECTIONS ===== */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-title {
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), var(--primary-yellow), var(--primary-green), var(--primary-blue));
    bottom: -10px;
    left: 10%;
    border-radius: 5px;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== ACTIVITY & PRODUCT STYLES ===== */
.activity-icon, .product-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.activity-icon {
    background-color: var(--primary-purple);
}

.product-icon {
    background-color: var(--primary-blue);
}

.activity-item, .product-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary-yellow);
}

.activity-info, .product-info {
    flex: 1;
}

.activity-info h4, .product-info h4 {
    margin-bottom: 0.3rem;
}

/* ===== CONTACT & LOCATION STYLES ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info, .location-info, .business-hours {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.hours-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.hours-table td {
    padding: 0.8rem 0;
}

.hours-table td:last-child {
    font-weight: bold;
    color: var(--primary-blue);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-brown);
    font-weight: bold;
    border: 2px dashed var(--primary-green);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--dark-brown);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo-text h1 {
    color: white;
    text-shadow: 2px 2px 0 var(--primary-red);
}

.footer-links h3, .footer-contact h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

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

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

.footer-links a {
    color: var(--warm-beige);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--primary-yellow);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--warm-beige);
    font-size: 0.9rem;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero { min-height: 450px; }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        width: 100%;
        order: 3;
        margin-top: 1rem;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .hero-content { padding: 1.5rem; }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 2rem 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero h1 { font-size: 2rem; }
    .hero { min-height: 400px; }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.bounce {
    animation: bounce 2s infinite;
}

/* ===== CRAFT THEMED DECORATIONS ===== */
.craft-doodle {
    position: absolute;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.paint-splatter {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, var(--primary-red) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, var(--primary-blue) 0%, transparent 50%),
                radial-gradient(circle at 50% 20%, var(--primary-yellow) 0%, transparent 50%);
    border-radius: 50%;
}

/* ===== NO ONLINE STORE NOTICE ===== */
.no-online-notice {
    background-color: var(--primary-yellow);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
    border: 3px dashed var(--primary-red);
}

.no-online-notice h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}