/*
* FILE: style.css
* PURPOSE: Main stylesheet for pixiecreations.co.za - Funky & Creative Theme (FINAL RESPONSIVE VERSION with HOME IMAGES)
*/

/* --- 1. GENERAL STYLES & TYPOGRAPHY --- */
:root {
    --color-primary-dark: #262626;      
    --color-secondary-light: #ffffff;   
    --color-accent-teal: #00A896;       
    --color-accent-gold: #FFC300;       
    --color-border-grey: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    line-height: 1.6;
    color: var(--color-primary-dark);
    background-color: var(--color-secondary-light);
}

h1, h2, h3 {
    font-family: 'Arial Black', sans-serif; 
    color: var(--color-accent-teal); 
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

a {
    color: var(--color-accent-teal);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* --- 2. HEADER & NAVIGATION --- */
.header {
    background-color: var(--color-primary-dark);
    color: var(--color-secondary-light);
    padding: 2.1rem 0; 
    border-bottom: 5px solid var(--color-accent-gold); 
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    width: 120px; 
    display: flex; 
    align-items: center; 
}

.logo-container img {
    width: 100%;
    height: auto;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    color: var(--color-secondary-light);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav ul li a:hover {
    color: var(--color-accent-gold); 
    text-decoration: none;
}

/* --- 3. MAIN CONTENT LAYOUT --- */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* --- 4. HOME PAGE STYLES (FUNKY BULLET POINTS & IMAGE BAR) --- */
.home-intro {
    padding: 30px;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

/* Style for the three-image visual bar */
.home-image-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.home-image-bar .image-item {
    flex: 1;
    min-width: 0;
}

.home-image-bar img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 5px solid var(--color-accent-gold); /* Funky Gold Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* New style for the main introduction text list */
.funky-list {
    list-style: none; 
    padding: 0;
}

.funky-list li {
    padding: 15px 0 15px 40px; 
    margin-bottom: 15px;
    position: relative;
    border-bottom: 1px dashed var(--color-border-grey); 
}

.funky-list li::before {
    content: "★"; 
    color: var(--color-accent-gold); 
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.funky-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* --- 5. GALLERY STYLES (Masonry-like Grid) --- */
.gallery-grid {
    column-count: 3; 
    column-gap: 20px;
}

.gallery-item {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 20px;
    border: 3px solid var(--color-border-grey); 
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--color-accent-teal);
    text-align: center;
}

/* --- 6. TESTIMONIALS STYLES --- */
.testimonial {
    border-left: 8px solid var(--color-accent-gold); 
    padding: 20px 30px;
    margin-bottom: 35px;
    background-color: #fffaf2; 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--color-accent-teal);
}

/* --- 7. FORM & CONTACT STYLES --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    border-right: 2px solid var(--color-border-grey);
    padding-right: 30px;
}

.contact-form label {
    display: block; 
    margin-top: 1.2rem; 
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-primary-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0.5rem; 
    border: 2px solid var(--color-border-grey);
    font-family: inherit;
    font-size: 1em;
    background-color: #f9f9f9; 
}

.contact-form label:first-of-type {
    margin-top: 0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background-color: var(--color-accent-teal);
    color: var(--color-secondary-light);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 20px; 
}

.contact-form button:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
}

/* --- 8. FOOTER --- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-secondary-light);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 50px;
    border-top: 5px solid var(--color-accent-gold);
}


/* ================================================= */
/* MOBILE RESPONSIVENESS FIXES                       */
/* ================================================= */

@media (max-width: 768px) {
    
    /* Global Adjustments */
    .main-content {
        padding: 10px;
        margin-top: 20px;
    }
    
    /* NEW: Home Image Bar Stacks on Mobile */
    .home-image-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    /* 1. Header and Navigation (Stacks vertically) */
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        margin-bottom: 15px; 
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
    }

    .nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .nav ul li a {
        display: block; 
        padding: 5px 0;
    }
    
    /* 2. Gallery Adjustments (Switches from 3 to 2 columns for tablets/landscape phones) */
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    /* 3. Contact Page Adjustments (Switches from 2 columns to 1 column) */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        border-right: none; 
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--color-border-grey); 
    }
}

@media (max-width: 480px) {
    /* Adjustments for smaller phones */
    
    /* Gallery switches to a single column for very small screens */
    .gallery-grid {
        column-count: 1;
    }

    /* Reduce list item padding for the home intro */
    .funky-list li {
        padding: 10px 0 10px 30px; 
    }
    
    /* Smaller button text on home page CTA */
    .main-content p a {
        font-size: 1em !important;
    }
}