/*
Theme Name:   Astra Child - SheepTowels
Theme URI:    https://sheeptowels.com
Description:  Custom child theme for SheepTowels.com based on Astra
Author:       SheepTowels Team
Author URI:   https://sheeptowels.com
Template:     astra
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ========================================
   MODERN UI/UX DESIGN - SHEEP TOWELS
======================================== */

/* CSS Custom Properties for Brand Colors */
:root {
    --brand-primary: #8B6F47;
    --brand-secondary: #2C3E50;
    --brand-accent: #D4AF37;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #ADB5BD;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* Goldman Font Import */
@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   GLOBAL STYLES & TYPOGRAPHY
======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Goldman', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ========================================
   MODERN HEADER DESIGN
======================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E9ECEF;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
}

/* Modern Header Branding */
.modern-header-branding {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.custom-logo-link {
    flex-shrink: 0;
    transition: var(--transition-smooth);
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-white);
}

.custom-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-smooth);
    display: block;
}

.site-header.scrolled .custom-logo-link {
    width: 40px;
    height: 40px;
}

/* Brand Name - Goldman Font */
.brand-identity {
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: 'Goldman', serif !important;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-name a {
    color: var(--brand-primary) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-name a:hover {
    color: var(--brand-accent) !important;
}

.site-header.scrolled .brand-name {
    font-size: 24px;
}

/* Navigation Enhancement */
.main-header-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-header-menu .menu-item a {
    font-weight: 500;
    color: var(--text-primary) !important;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.main-header-menu .menu-item a:hover {
    color: var(--brand-primary) !important;
}

.main-header-menu .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-accent);
    transition: width 0.3s ease;
}

.main-header-menu .menu-item a:hover::after {
    width: 100%;
}

/* ========================================
   HERO BANNER - IMPACTFUL DESIGN
======================================== */

.hero-banner {
    min-height: 80vh;
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        rgba(139, 111, 71, 0.05) 50%, 
        var(--bg-white) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide old UAGB content while hero loads */
.wp-block-uagb-container.uagb-block-2384b697 {
    display: none !important;
}

.hero-banner.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        rgba(139, 111, 71, 0.08) 0%, 
        transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-family: 'Goldman', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-accent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

/* Call-to-Action Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.cta-button.primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.cta-button.secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-animation {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    /* Place product image inside the hero circle with a soft gradient underlay */
    background: url('/wp_images/site_pic_v2.png') center/contain no-repeat,
        linear-gradient(45deg,
        rgba(139, 111, 71, 0.1) 0%,
        rgba(212, 175, 55, 0.1) 100%);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(139, 111, 71, 0.05);
    animation: pulse 4s ease-in-out infinite;
}

/* ========================================
   ANIMATIONS & EFFECTS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Scroll Animations */
.site-content {
    margin-top: 80px !important;
    position: relative;
}

/* Ensure entry content flows properly */
.entry-content {
    position: relative;
}

/* Hide any other oil painting related content */
.uagb-ifb-title:has-text('Oil Painting'),
.entry-content h1:has-text('Oil Painting') {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-animation {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .modern-header-branding {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .custom-logo-link {
        width: 45px;
        height: 45px;
    }
    
    .hero-container {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    .main-header-menu {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 70vh;
        margin-top: 70px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .custom-logo-link {
        width: 35px;
        height: 35px;
    }
    
    .hero-animation {
        width: 280px;
        height: 280px;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.main-header-menu .menu-item a:focus,
.brand-name a:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --brand-primary: #5A4A3A;
        --brand-secondary: #1A252F;
        --text-primary: #000000;
    }
}

/* Footer adjustments */
.site-footer {
    margin-top: 4rem;
}

.site-footer .widget-title {
    color: var(--brand-secondary);
    font-weight: 600;
}