/* Custom CSS for Janet Reddy Creative */

/* 1. Global Resets & Box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Root Variables (Color Palette & Fonts) */
:root {
    --color-primary-bg: #F0F4F8;       /* Soft, modern light blue-grey */
    --color-secondary-bg: #E2E8F0;     /* Slightly darker blue-grey for elements */
    --color-accent-teal: #008080;      /* Rich, earthy teal */
    --color-accent-gold: #FFB74D;      /* Friendly, inviting warmth */
    --color-text-dark: #334155;        /* Soft but legible dark text */
    --color-text-light: #64748B;       /* Lighter text for descriptions */
    --color-white: #FFFFFF;
    --color-border-light: #CBD5E1;     /* Light border color */
    --color-green-tag: #28a745;        /* For "Beginner" tag */
    --color-orange-tag: #fd7e14;       /* For "Intermediate" tag */
    --color-purple-tag: #6f42c1;       /* For "Advanced" tag */

    /* Updated to Poppins */
    --font-poppins: 'Poppins', sans-serif;
}

/* 3. Base Body & Typography */
body {
    font-family: var(--font-poppins); /* Changed to Poppins */
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins); /* Changed to Poppins */
    color: var(--color-text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
}

/* 4. Utility Classes (Commonly reused styles) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Consistent padding on sides */
}

.text-center {
    text-align: center;
}

.section-description {
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-light);
    margin: 0 auto 3rem; /* 48px margin-bottom */
    max-width: 48rem; /* 768px */
}

/* Adjusted heading size for a neater look */
.heading-primary {
    font-size: 2.75rem; /* Slightly smaller than 3rem */
    font-weight: 700;
    margin-bottom: 1.5rem; /* 24px */
}

.heading-secondary {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    margin-bottom: 1rem; /* 16px */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem; /* Slightly reduced padding */
    border-radius: 0.375rem; /* 6px */
    font-weight: 600;
    font-size: 1.125rem; /* 18px */
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-accent-teal);
    color: var(--color-white);
    border: 2px solid var(--color-accent-teal);
}

.btn-primary:hover {
    background-color: #006666; /* Slightly darker teal */
    border-color: #006666;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-teal);
    border: 2px solid var(--color-accent-teal);
}

.btn-secondary:hover {
    background-color: var(--color-accent-teal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.25rem; /* 9.6px 20px */
    font-size: 0.875rem; /* 14px */
}

/* Section Padding */
section {
    padding: 4rem 0; /* 64px top/bottom */
}

/* 5. Navbar */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--color-accent-teal);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* 24px */
}

.nav-link {
    color: var(--color-text-dark);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent-teal);
}

/* Hide desktop nav links on small screens */
.nav-links {
    display: none;
}
.mobile-menu-toggle {
    display: block; /* Show button on small screens */
    background: none;
    border: none;
    font-size: 2rem; /* 32px */
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem; /* 6px */
    transition: background-color 0.2s ease;
}
.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.3); /* Accent teal focus ring */
}
.mobile-menu-toggle:hover {
    background-color: var(--color-primary-bg);
}

/* 6. Mobile Menu Overlay (controlled by JS) */
.mobile-menu-overlay {
    position: fixed;
    inset: 0 0 0 auto; /* top:0, right:0, bottom:0, left:auto */
    width: 16rem; /* 256px */
    background-color: var(--color-white);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem; /* 16px */
}

.mobile-nav-link {
    display: block;
    font-size: 1.25rem; /* 20px */
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 0.375rem; /* 6px */
}

.mobile-nav-link:hover {
    color: var(--color-accent-teal);
    background-color: var(--color-primary-bg);
}

/* Add this to your home.css to handle the mobile menu state */
body.mobile-menu-active {
    overflow: hidden;
}

/* 7. Hero Section */
.section-hero {
    background-color: var(--color-primary-bg);
    padding-bottom: 4rem; /* Adjusted for stats section */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* 40px */
}

.hero-text {
    text-align: center;
}

/* Adjusted hero description for neater look */
.hero-description {
    font-size: 1rem; /* Slightly smaller than 1.125rem */
    color: var(--color-text-light); /* Kept lighter color */
    margin-bottom: 2rem; /* 32px */
}

/* Adjusted button gap for neater look */
.hero-buttons {
    display: flex;
    flex-direction: column; /* Stack on small screens */
    justify-content: center;
    gap: 0.8rem; /* Slightly reduced gap */
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limit image size on larger screens */
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 16 / 9; /* Maintain a common aspect ratio (e.g., 16:9) */
    object-fit: cover; /* This will ensure it fills the space while maintaining aspect ratio */
    border-radius: 0.5rem; /* 8px */
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(255, 183, 77, 0.1));
    border-radius: 0.5rem; /* 8px */
}

/* 8. Stats Section (within Hero) */
.stats-section {
    margin-top: 4rem; /* 64px */
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem; /* 32px */
}

.stat-item {
    background-color: var(--color-white);
    padding: 2rem; /* 32px */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.2s ease;
    border-bottom: 4px solid var(--color-accent-teal); /* Modern accent */
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: var(--color-accent-teal);
    margin-bottom: 0.5rem; /* 8px */
}

.stat-label {
    font-size: 1.25rem; /* 20px */
    color: var(--color-text-dark);
}

/* 9. Creative Services Section */
.section-services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem; /* 32px */
}

.service-card {
    background-color: var(--color-white);
    padding: 2rem; /* 32px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-accent-teal);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    color: var(--color-accent-teal);
    font-size: 3rem; /* 48px */
    margin-bottom: 1rem; /* 16px */
}

.service-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem; /* 8px */
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 1rem; /* 16px */
    min-height: 2.5rem; /* Ensure consistent height for descriptions */
}

.service-link {
    color: var(--color-accent-teal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px */
    transition: text-decoration 0.2s ease;
}

.service-link:hover {
    text-decoration: underline;
}

.service-link-icon {
    font-size: 0.875rem; /* 14px */
}

/* 10. Workshops Section */
.section-workshops {
    background-color: var(--color-primary-bg);
}

.workshop-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem; /* 32px */
}

.workshop-card {
    background-color: var(--color-white);
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

.workshop-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.workshop-image-wrapper {
    position: relative;
    /* Remove fixed height */
    aspect-ratio: 4 / 3; /* Common aspect ratio for workshop images */
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.workshop-image {
    width: 100%;
    height: 100%; /* Fill the wrapper's calculated height */
    object-fit: cover;
}

.workshop-tag {
    position: absolute;
    top: 1rem; /* 16px */
    padding: 0.25rem 0.75rem; /* 4px 12px */
    border-radius: 9999px; /* Full pill shape */
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: var(--color-white);
}

.tag-beginner {
    left: 1rem; /* 16px */
    background-color: var(--color-green-tag);
}

.tag-featured {
    right: 1rem; /* 16px */
    background-color: var(--color-accent-gold);
}

.tag-intermediate {
    left: 1rem; /* 16px */
    background-color: var(--color-orange-tag);
}

.tag-advanced {
    left: 1rem; /* 16px */
    background-color: var(--color-purple-tag);
}

.workshop-content {
    padding: 1.5rem; /* 24px */
    text-align: left;
}

.workshop-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem; /* 8px */
}

.workshop-description {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-light);
    margin-bottom: 1rem; /* 16px */
    min-height: 2.5rem; /* Ensure consistent height for descriptions */
}

.workshop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem; /* 16px */
}

.workshop-price {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: var(--color-accent-teal);
}

.section-action-btn {
    margin-top: 3rem; /* 48px */
}

/* 11. Gallery Section */
.section-gallery {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* 24px */
}

.gallery-card {
    background-color: var(--color-white);
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 1 / 1; /* Keep gallery images square or adjust as needed */
    object-fit: cover;
}

.gallery-content {
    padding: 1rem; /* 16px */
    text-align: left;
}

.gallery-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem; /* 4px */
}

.gallery-category {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-light);
}


/* 12. Our Story Section */
.section-story {
    background-color: var(--color-primary-bg);
}

.story-content {
    display: flex;
    flex-direction: column-reverse; /* Image above text on small screens */
    align-items: center;
    gap: 2rem; /* Adjusted gap to be consistent with the new image's spacing */
}

.story-text {
    text-align: center;
    max-width: 50rem; /* Increased max-width to allow text to spread out more */
}

.story-paragraph {
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-light);
    margin-bottom: 1rem; /* Ensure consistent spacing between paragraphs */
}

.story-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* Adjusted max-width to make the image appear larger on small screens */
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.story-image {
    width: 100%;
    /* Remove fixed height */
    aspect-ratio: 4 / 3; /* Maintain a common aspect ratio for story image */
    object-fit: cover;
    border-radius: 0.5rem; /* 8px */
}

/* 13. Footer */
.footer {
    background-color: var(--color-white); /* Changed to white background */
    color: var(--color-text-dark); /* Changed text color for readability on white */
    padding: 3rem 0; /* 48px */
       border-top: 3px solid #008080; /* Added subtle top border */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on small screens */
    gap: 2rem; /* 32px */
    text-align: center;
}

.footer-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--color-accent-teal); /* Kept green for title */
    margin-bottom: 1rem; /* 16px */
}

.footer-copyright {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-light); /* Lighter text for copyright */
}

.footer-heading {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    margin-bottom: 1rem; /* 16px */
    color: var(--color-text-dark); /* Ensure heading is dark on white */
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem; /* 8px */
}

.footer-link {
    color: var(--color-text-dark); /* Changed link color for visibility */
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-accent-teal); /* Green on hover */
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--color-text-dark); /* Changed contact text color */
}

.contact-address {
    margin-bottom: 1.5rem; /* 24px */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem; /* 16px */
}

.social-link {
    font-size: 1.5rem; /* 24px */
    color: var(--color-text-dark); /* Changed social icon color for visibility */
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--color-accent-teal); /* Green on hover */
}


/* 14. Media Queries for Responsiveness */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    section {
        padding: 6rem 0; /* 96px top/bottom */
    }

    .navbar-content {
        justify-content: space-between;
    }

    .nav-links {
        display: flex; /* Show desktop nav links */
    }
    .mobile-menu-toggle {
        display: none; /* Hide toggle button */
    }

    .hero-content {
        flex-direction: row; /* Side-by-side layout */
        text-align: left;
        gap: 4rem; /* 64px */
    }

    .hero-text {
        text-align: left;
        flex: 1; /* Take available space */
    }

    .hero-image-wrapper {
        flex: 1; /* Take available space */
    }

    .hero-buttons {
        flex-direction: row; /* Keep buttons in a row */
        justify-content: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
    }

    .workshop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }

    .section-description {
        margin-bottom: 4rem; /* 64px */
    }

    .story-content {
        flex-direction: row; /* Image right, text left */
        gap: 3rem; /* Slightly reduced gap from 4rem to 3rem to match density of new image */
    }

    .story-text {
        text-align: left;
        flex: 1; /* Allow text to take available space */
    }

    .story-image-wrapper {
        flex-shrink: 0; /* Prevent image from shrinking too much */
        max-width: 45%; /* Allow image to take up more horizontal space on tablets */
    }

    /* Remove fixed height for story-image on tablets */
    /* story-image aspect ratio handled by default */

    .footer-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .heading-primary {
        font-size: 3.5rem; /* Adjusted for larger screens as well, from 4rem */
    }

    .heading-secondary {
        font-size: 2.5rem;
    }

    .workshop-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
    }

    .story-image-wrapper {
        max-width: 40%; /* Adjusted for larger desktops for balanced look */
    }

    /* Remove fixed height for story-image on large desktops */
    /* story-image aspect ratio handled by default */
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding: 0; /* Remove side padding on very large screens for max-width container */
    }
}



