/**
 * ProArtist Africa - Main Stylesheet
 * 
 * @package ProArtist
 */

:root {
    --color-primary: #ffdb00;
    --color-black: #000000;
    --color-text: #000000;
    --color-text-muted: #333333;
    --color-white: #ffffff;
    --font-primary: "Montserrat", system-ui, -apple-system, sans-serif;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    border: none;
    display: block;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-primary);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--color-primary);
    padding: 20px 0;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}


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

.logo-link {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
    transition: transform var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link strong {
    font-weight: 700;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.primary-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.primary-menu a:hover {
    color: var(--color-text-muted);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Main Content */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

/* Jobs page: remove top gap so no white line below header */
.site-main:has(.jobs-professional-artists) {
    padding-top: 0;
}

/* Brands page: remove bottom gap so no white line above footer */
.site-main:has(.brands-barberstop-carousel) {
    padding-bottom: 0;
}

/* Home page - horizontal carousel with 3D + fade (Shopify-style) */
.home-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    perspective: 1200px;
}

.home-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.6s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.home-carousel .home-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    transform: scale(0.96);
    opacity: 0.78;
    filter: blur(2px);
    backface-visibility: hidden;
    transition: transform 1.4s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 1.3s cubic-bezier(0.33, 1, 0.68, 1),
                filter 1.1s ease;
}

.home-carousel .home-slide.active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}

/* Staggered block fade: headline → paragraph → buttons */
.home-carousel .home-slide .container > div:first-child > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
                transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}
.home-carousel .home-slide.active .container > div:first-child > :nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}
.home-carousel .home-slide.active .container > div:first-child > :nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.home-carousel .home-slide.active .container > div:first-child > :nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Ken Burns: image zooms while slide is active */
.home-carousel .home-slide .container > div:last-child {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    aspect-ratio: 4/3;
}
.home-carousel .home-slide .container > div:last-child img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    object-position: right center;
}
.home-carousel .home-slide.active .container img {
    animation: homeSlideKenBurns 9s ease-out forwards;
}

@keyframes homeSlideKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

/* Site-wide: staggered content reveal for hero-sections (consistent with home) */
.hero-section:not(.home-slide) .container > div:first-child > *,
.hero-section:not(.home-slide) .container > div:last-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
                transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(1),
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(2),
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(3),
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(4),
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(5),
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(6) {
    opacity: 1;
    transform: translateY(0);
}
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(1) { transition-delay: 0s; }
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(2) { transition-delay: 0.2s; }
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(3) { transition-delay: 0.4s; }
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(4) { transition-delay: 0.55s; }
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(5) { transition-delay: 0.7s; }
.hero-section:not(.home-slide).content-revealed .container > div:first-child > :nth-child(6) { transition-delay: 0.85s; }
.hero-section:not(.home-slide).content-revealed .container > div:last-child {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.site-main.home-slides {
    min-height: auto;
    padding: 0;
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel-track {
        transition-duration: 0.2s;
    }
    .home-carousel .home-slide {
        transition-duration: 0.15s;
        transform: none;
        filter: none;
    }
    .home-carousel .home-slide.active {
        transform: none;
        filter: none;
    }
    .home-carousel .home-slide .container > div:first-child > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home-carousel .home-slide.active .container img {
        animation: none;
    }
    .hero-section:not(.home-slide) .container > div:first-child > *,
    .hero-section:not(.home-slide) .container > div:last-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    min-height: 44px;
    min-width: 44px;
    background: var(--color-black);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-medium);
    background: #1a1a1a;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
}

.hero-section .container[style*="grid"] {
    text-align: left;
}

.hero-title {
    font-size: clamp(36px, 6vw, 56px) !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 17px !important;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Stats text size - match site body text */
.stats-grid h3 {
    font-size: 18px !important;
}
.stats-grid p {
    font-size: 17px !important;
    line-height: 1.7;
}

.hero-section img {
    transition: transform var(--transition);
}

.hero-section img:hover {
    transform: scale(1.03);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.brand-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.brand-stat-value {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.brand-stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

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

/* Footer */
.site-footer {
    scroll-snap-align: start;
    background: var(--color-black);
    color: var(--color-white);
    padding: 140px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: var(--color-primary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    padding: 10px 20px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section .container[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    .hero-section .container[style*="grid"] > div:first-child {
        order: 1;
    }
    
    .hero-section .container[style*="grid"] > div:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 6px 0;
        padding-top: calc(6px + env(safe-area-inset-top, 0px));
    }

    .site-header .container {
        align-items: center;
        min-height: 0;
    }

    .site-header .logo-link {
        font-size: 18px;
        line-height: 1.15;
    }

    .home-carousel {
        z-index: 50;
    }

    .menu-toggle {
        display: flex;
        padding: 6px;
    }
    
    .primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 0 20px;
        box-shadow: var(--shadow-medium);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
    }
    
    .primary-menu.active {
        max-height: 70vh;
        overflow-y: auto;
        opacity: 1;
        padding: 20px;
        pointer-events: auto;
    }
    
    .hero-section {
        padding: 56px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .stats-grid,
    .brands-grid,
    .blog-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-top: 60px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        position: relative;
        z-index: 100;
    }

    .primary-menu a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .home-carousel .home-slide .container > div:last-child {
        justify-content: center;
    }

    .home-carousel .home-slide .container > div:last-child img {
        object-position: center center;
    }

    .home-carousel-track {
        touch-action: pan-y;
    }

    .home-carousel .home-slide {
        align-items: flex-start;
    }

    .home-carousel .home-slide .container {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .home-carousel {
        height: auto;
        min-height: auto;
        overflow: hidden;
    }

    .home-carousel .home-slide {
        min-height: auto;
    }

    .hero-title span {
        white-space: normal !important;
    }
}

@media (max-width: 600px) {
    .hero-section .container[style*="grid"] {
        gap: 32px !important;
    }

    .hero-section .hero-section-image-wrap,
    .jobs-image-carousel {
        min-height: 280px;
    }

    .hero-section {
        padding: 64px 0;
    }

    .section {
        padding: 32px 0;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Hero sections (About, Investors): match Jobs text and image sizing */
.hero-section .hero-section-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-section .hero-section-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Jobs page: Professional Artists image carousel - horizontal slide */
.jobs-image-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 420px;
}
.jobs-image-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.1s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}
.jobs-image-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.jobs-image-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* BARBERSTOP carousel: zoom to hide white line + 3D effects to match other carousels */
.brands-barberstop-carousel {
    perspective: 1200px;
}
.brands-barberstop-carousel .jobs-image-carousel-track {
    transform-style: preserve-3d;
}
.brands-barberstop-carousel .jobs-image-carousel-slide {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.brands-barberstop-carousel .jobs-image-carousel-slide img {
    transform: scale(1.08) translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.brands-barberstop-carousel .jobs-image-carousel-slide img:hover {
    transform: scale(1.12) translateZ(30px);
}

/* Professional Artists carousel: zoom only professional-artists-image.jpg to hide white line */
.jobs-image-carousel-slide.jobs-image-zoom img {
    transform: scale(1.08);
}

/* Current page indicator in nav: highlight Investors, Brands, About, Jobs, Blog */
.primary-menu .current-menu-item a {
    font-weight: 700;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 2px;
}

