/*
Theme Name: Lost Coast Cookies
Theme URI: https://lostcoastcookies.com
Description: A custom child theme for Lost Coast Cookies - artisan cookies rooted in the Redwoods, baked by the Sea. Built on Astra for optimal WooCommerce integration.
Author: Lost Coast Cookies Team
Author URI: https://lostcoastcookies.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lost-coast-cookies
Tags: e-commerce, food-and-drink, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ===================================
   LOST COAST COOKIES CUSTOM STYLES
   =================================== */

/* CSS VARIABLES - Lost Coast Color Palette */
:root {
    --lcc-forest-green: #448955;
    --lcc-ocean-blue: #397799;
    --lcc-wildwood-brown: #775940;
    --lcc-fog-grey: #f5ece6;
    --lcc-sand-tan: #fdfaf6;
    --lcc-accent-gold: #c99123;
    --lcc-white: #ffffff;
    --lcc-text-dark: #333333;
    --lcc-text-light: #666666;
}

/* TYPOGRAPHY */
body {
    font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lcc-text-dark);
    background-color: var(--lcc-sand-tan);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lcc-wildwood-brown);
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

/* HEADER & NAVIGATION */
.site-header {
    background-color: var(--lcc-white);
    border-bottom: 3px solid var(--lcc-forest-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-navigation a {
    color: var(--lcc-wildwood-brown);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--lcc-forest-green);
    text-decoration: none;
}

.site-branding {
    padding: 1rem 0;
}

.custom-logo-link img {
    max-height: 80px;
    width: auto;
}

/* HERO SECTION - Homepage */
.lcc-hero {
    background: linear-gradient(135deg, var(--lcc-ocean-blue) 0%, var(--lcc-forest-green) 100%);
    color: var(--lcc-white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lcc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.lcc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.lcc-hero h1 {
    color: var(--lcc-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lcc-hero .tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    font-family: 'Merriweather', Georgia, serif;
    color: var(--lcc-fog-grey);
}

.lcc-hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* BUTTONS */
.lcc-btn,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--lcc-accent-gold);
    color: var(--lcc-white);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.lcc-btn:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--lcc-wildwood-brown);
    color: var(--lcc-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lcc-btn-secondary {
    background-color: var(--lcc-forest-green);
}

.lcc-btn-secondary:hover {
    background-color: var(--lcc-ocean-blue);
}

/* PRODUCT GRID */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.woocommerce ul.products li.product {
    background: var(--lcc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--lcc-wildwood-brown);
    font-size: 1.25rem;
    margin: 1rem;
}

.woocommerce ul.products li.product .price {
    color: var(--lcc-forest-green);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 1rem 1rem;
}

/* PRODUCT SINGLE PAGE */
.single-product .product {
    background: var(--lcc-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.single-product .product .images {
    margin-bottom: 2rem;
}

.single-product .product .images img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-product .product .summary {
    padding: 1rem;
}

.single-product .product .product_title {
    color: var(--lcc-wildwood-brown);
    margin-bottom: 1rem;
}

.single-product .product .price {
    color: var(--lcc-forest-green);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.single-product .product .woocommerce-product-details__short-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--lcc-text-light);
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--lcc-fog-grey);
    border-left: 4px solid var(--lcc-forest-green);
    border-radius: 4px;
}

/* CART & CHECKOUT */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout {
    background: var(--lcc-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce table.shop_table {
    border: 1px solid var(--lcc-fog-grey);
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background-color: var(--lcc-forest-green);
    color: var(--lcc-white);
    font-weight: 600;
    padding: 1rem;
}

.woocommerce table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--lcc-fog-grey);
}

/* FEATURES SECTION */
.lcc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.lcc-feature {
    text-align: center;
    padding: 2rem;
    background: var(--lcc-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.lcc-feature:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.lcc-feature-icon {
    font-size: 3rem;
    color: var(--lcc-forest-green);
    margin-bottom: 1rem;
}

.lcc-feature h3 {
    color: var(--lcc-wildwood-brown);
    margin-bottom: 1rem;
}

.lcc-feature p {
    color: var(--lcc-text-light);
    line-height: 1.6;
}

/* STORY SECTION */
.lcc-story {
    background-color: var(--lcc-fog-grey);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 12px;
}

.lcc-story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lcc-story h2 {
    color: var(--lcc-wildwood-brown);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.lcc-story p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--lcc-text-dark);
    margin-bottom: 1rem;
}

.lcc-story em {
    color: var(--lcc-forest-green);
    font-style: italic;
    font-weight: 600;
}

/* BLOG & POSTS */
.blog .entry-header,
.single-post .entry-header {
    margin-bottom: 2rem;
}

.blog .entry-title,
.single-post .entry-title {
    color: var(--lcc-wildwood-brown);
}

.blog .entry-meta,
.single-post .entry-meta {
    color: var(--lcc-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog article,
.single-post article {
    background: var(--lcc-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* CONTACT FORM */
.lcc-contact-form {
    background: var(--lcc-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 2rem auto;
}

.lcc-contact-form input[type="text"],
.lcc-contact-form input[type="email"],
.lcc-contact-form input[type="tel"],
.lcc-contact-form select,
.lcc-contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 2px solid var(--lcc-fog-grey);
    border-radius: 4px;
    font-family: 'Lato', 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.lcc-contact-form input:focus,
.lcc-contact-form select:focus,
.lcc-contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--lcc-forest-green);
    box-shadow: 0 0 0 3px rgba(68, 137, 85, 0.1);
}

.lcc-contact-form label,
.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--lcc-wildwood-brown);
}

/* FOOTER */
.site-footer {
    background-color: var(--lcc-wildwood-brown);
    color: var(--lcc-fog-grey);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.site-footer h3 {
    color: var(--lcc-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--lcc-fog-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ACCESSIBILITY */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--lcc-forest-green);
    color: var(--lcc-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--lcc-ocean-blue);
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--lcc-fog-grey);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--lcc-forest-green);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .lcc-hero h1 {
        font-size: 2rem;
    }
    
    .lcc-hero .tagline {
        font-size: 1.25rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .lcc-hero {
        padding: 3rem 1rem;
    }
    
    .lcc-hero h1 {
        font-size: 1.75rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    :root {
        --lcc-text-dark: #000000;
        --lcc-text-light: #333333;
    }
    
    .lcc-btn,
    .button,
    .woocommerce a.button {
        border: 2px solid currentColor;
    }
}

/* PRINT STYLES */
@media print {
    .site-header,
    .site-footer,
    .lcc-hero,
    .woocommerce-cart .actions,
    .woocommerce a.button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

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

.lcc-animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* COOKIE GALLERY */
.lcc-gallery-item {
    cursor: pointer;
}

.lcc-gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    transform: translateY(-4px);
}

.lcc-gallery-item:hover img {
    transform: scale(1.1);
}

.lcc-gallery-overlay {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.lcc-gallery-item:hover .lcc-gallery-overlay {
    opacity: 1;
}

/* LANDSCAPE BANNER */
.lcc-landscape-banner {
    position: relative;
}

.lcc-landscape-banner img {
    transition: transform 0.3s ease;
}

.lcc-landscape-banner:hover img {
    transform: scale(1.02);
}

/* UTILITY CLASSES */
.lcc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lcc-text-center {
    text-align: center;
}

.lcc-mt-1 { margin-top: 1rem; }
.lcc-mt-2 { margin-top: 2rem; }
.lcc-mt-3 { margin-top: 3rem; }
.lcc-mb-1 { margin-bottom: 1rem; }
.lcc-mb-2 { margin-bottom: 2rem; }
.lcc-mb-3 { margin-bottom: 3rem; }
.lcc-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.lcc-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.lcc-py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.lcc-bg-white { background-color: var(--lcc-white); }
.lcc-bg-fog { background-color: var(--lcc-fog-grey); }
.lcc-bg-sand { background-color: var(--lcc-sand-tan); }

.lcc-color-forest { color: var(--lcc-forest-green); }
.lcc-color-ocean { color: var(--lcc-ocean-blue); }
.lcc-color-brown { color: var(--lcc-wildwood-brown); }
.lcc-color-gold { color: var(--lcc-accent-gold); }
