/*
 Theme Name:   Artist Portfolio Child
 Theme URI:    https://developer.wordpress.org/themes/
 Description:  Artist portfolio child theme for Hello Elementor - elegant single-page layout with hero, gallery, shop, about, and CV sections.
 Author:       Dino Marino Design
 Author URI:   https://dinomarino.design/
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  artist-portfolio-child
*/

/* ============================================
   Google Fonts: Cormorant, Prata, Abril Fatface
   ============================================ */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-accent: #089FDA;
    --color-about-bg: #eed1bc;
    --color-section-border: #e0e0e0;
    --font-body: 'Cormorant', Georgia, 'Times New Roman', serif;
    --font-nav: 'Prata', Georgia, serif;
    --font-display: 'Abril Fatface', 'Georgia', serif;
    --max-width: 1200px;
    --spacing-section: 80px;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
}

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

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hero-section .site-title {
    font-family: var(--font-body);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    text-align: center;
}

/* ============================================
   Navigation
   ============================================ */
.site-navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
}

.site-navigation a {
    font-family: var(--font-nav);
    font-size: 16px;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.site-navigation a:hover {
    color: var(--color-accent);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ============================================
   Section Shared Styles
   ============================================ */
.content-section {
    padding: var(--spacing-section) 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.15em;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.8;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-section-border);
    margin: 0;
}

/* ============================================
   Works / Gallery Section
   ============================================ */
.gallery-grid {
    display: grid;
    gap: 20px;
}

/* Row pattern: 1 large + 2 small, then 4 equal, etc. */
.gallery-row-featured {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.gallery-row-quad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-row-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

.gallery-item:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
}

/* ============================================
   Shop Section
   ============================================ */
.shop-section {
    background: #000;
    padding: var(--spacing-section) 0;
}

.shop-section .section-title {
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.shop-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.shop-item:hover img {
    opacity: 0.8;
}

.shop-item-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 5px;
}

.shop-item-type {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 5px;
}

.shop-item-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #333;
}

/* WooCommerce overrides for shop styling */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

.woocommerce ul.products li.product {
    text-align: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-style: italic;
}

.woocommerce ul.products li.product .price {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: #333 !important;
}

.woocommerce ul.products li.product a img {
    margin-bottom: 15px !important;
}

/* Hide default add to cart on archive */
.woocommerce ul.products li.product .button {
    display: none;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--color-about-bg);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================
   Artist Statement / Start Section
   ============================================ */
.statement-section {
    padding: var(--spacing-section) 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.statement-section h2 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: #5a7ea6;
    margin-bottom: 30px;
}

.statement-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   CV Section (Julia Roland style)
   ============================================ */
.cv-section {
    padding: var(--spacing-section) 20px;
    max-width: 800px;
    margin: 0 auto;
}

.cv-section h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.cv-category {
    margin-bottom: 40px;
}

.cv-category-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.cv-entry {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 0;
}

.cv-entry .cv-year {
    font-weight: 700;
    margin-right: 8px;
}

.cv-entry .cv-venue {
    font-style: normal;
}

.cv-entry .cv-title-work {
    font-style: italic;
}

.cv-entry .cv-location {
    color: #555;
}

/* ============================================
   Newsletter / Subscribe Section
   ============================================ */
.newsletter-section {
    padding: var(--spacing-section) 20px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-section p {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
}

.newsletter-section a,
.newsletter-section .subscribe-link {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: underline;
    color: #000;
    transition: color 0.3s ease;
}

.newsletter-section a:hover,
.newsletter-section .subscribe-link:hover {
    color: var(--color-accent);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    border-top: 1px solid var(--color-section-border);
    padding: 40px 20px;
    text-align: right;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-footer .footer-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-footer .footer-location {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}

.site-footer .footer-social a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-left: 15px;
    color: #555;
}

.site-footer .footer-social a:hover {
    color: var(--color-accent);
}

/* ============================================
   Fade-in Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .gallery-row-featured {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-row-quad {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 50px;
    }

    .hero-section .site-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    /* Mobile navigation */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .site-navigation {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .site-navigation.open {
        display: flex;
    }

    .gallery-row-featured,
    .gallery-row-duo {
        grid-template-columns: 1fr;
    }

    .gallery-row-quad {
        grid-template-columns: 1fr 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 40px 20px;
    }

    .shop-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

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

@media (max-width: 480px) {
    .gallery-row-quad {
        grid-template-columns: 1fr;
    }

    .shop-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .newsletter-section p {
        font-size: 1.1rem;
    }
}
