/*
Theme Name: NDN Collective Shop
Description: A modern, WooCommerce and Elementor-friendly WordPress theme designed for Indigenous businesses and organizations. Features customizable branding, responsive design, and full e-commerce support. Header and footer built with Elementor.
Version: 1.0.0
Author: NDN Collective
Text Domain: ndn-collective-shop
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, two-columns, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, block-styles, wide-blocks

This theme supports WooCommerce and is fully compatible with Elementor page builder.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #c53030;
    color: #fff;
}

body {
    font-family: 'eskorte-latin', Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography with Typekit Fonts */
h1, h2 {
    font-family: 'alternate-gothic-no-1-d', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3, h4, h5, h6 {
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-family: 'eskorte-latin', Georgia, serif;
}

a {
    color: #c53030;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9b2c2c;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #c53030;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'azo-sans-web', Arial, sans-serif;
}

.btn:hover {
    background: #9b2c2c;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #c53030;
    color: #c53030;
}

.btn-outline:hover {
    background: #c53030;
    color: white;
}

/* WooCommerce styles moved to assets/css/woocommerce.css */

/* Post Grid Layouts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-card .entry-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-card .entry-title a {
    color: #333;
    text-decoration: none;
}

.post-card .entry-title a:hover {
    color: var(--primary-color);
}

.post-card .entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-card .entry-meta span {
    margin-right: 1rem;
}

.post-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Single Post Styles */
.single-post .post-hero {
    margin-bottom: 2rem;
}

.single-post .hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    font-size: 1rem;
    color: #666;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 3rem 0;
}

.author-bio .author-avatar img {
    border-radius: 50%;
}

.author-bio .author-name {
    margin-bottom: 0.5rem;
}

.author-bio .author-name a {
    color: #333;
    text-decoration: none;
}

/* Search Form Styles */
.search-form {
    position: relative;
    display: flex;
    max-width: 400px;
    margin: 1rem 0;
}

.search-form label {
    position: absolute;
    left: -9999px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form .search-field:focus {
    border-color: var(--primary-color);
}

.search-form .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* Search Results */
.search-results .search-result {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.search-results .search-thumbnail {
    flex-shrink: 0;
}

.search-results .search-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.search-results .search-content {
    flex: 1;
}

.search-results .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.search-results .entry-meta .post-type {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

/* 404 Error Page */
.error-404 .error-content {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 .error-message {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.error-404 .suggestion-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.error-404 .suggestion-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 .helpful-links {
    list-style: none;
    padding: 0;
}

.error-404 .helpful-links li {
    margin-bottom: 0.5rem;
}

.error-404 .helpful-links a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.error-404 .helpful-links a:hover {
    color: var(--primary-color);
}

.error-404 .back-home {
    margin-top: 3rem;
}

/* All WooCommerce styles moved to assets/css/woocommerce.css */

/* Page Templates */
.full-width-page .entry-content {
    padding: 0;
}

.landing-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.landing-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero .hero-content {
    text-align: center;
    color: white;
    z-index: 3;
}

.landing-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.landing-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.post-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post .entry-title {
        font-size: 2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .search-results .search-result {
        flex-direction: column;
    }
    
    .error-404 .error-number {
        font-size: 6rem;
    }
    
    .error-404 .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-hero .hero-title {
        font-size: 2rem;
    }
    
    .landing-hero .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .search-form {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* NDN Header Components - Mobile Menu Styles */
.ndn-header-components {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ndn-header-components.horizontal {
    flex-direction: row;
}

.ndn-header-components.vertical {
    flex-direction: column;
}

/* Mobile Menu Toggle */
.ndn-mobile-menu-toggle {
    display: none;
}

.ndn-mobile-menu-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndn-hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
}

.ndn-hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.ndn-hamburger-icon span:last-child {
    margin-bottom: 0;
}

/* Desktop Menu */
.ndn-desktop-menu {
    display: block;
}

.ndn-desktop-menu .ndn-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.ndn-desktop-menu .ndn-menu li {
    position: relative;
}

.ndn-desktop-menu .ndn-menu a {
    text-decoration: none;
    color: inherit;
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.ndn-desktop-menu .ndn-menu a:hover {
    color: var(--primary-color, #007cba);
}

/* Hide cart/wishlist on mobile */
@media (max-width: 768px) {
    .ndn-mobile-menu-toggle {
        display: block;
        order: 999;
        margin-left: auto;
    }
    
    .ndn-desktop-menu {
        display: none;
    }
    
    .ndn-header-components.horizontal .ndn-cart-component,
    .ndn-header-components.horizontal .ndn-wishlist-component {
        display: none;
    }
}

/* Mobile Menu Overlay */
.ndn-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ndn-mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

/* Mobile Menu Modal */
.ndn-mobile-menu-modal {
    background-color: #2c2c2c;
    color: white;
    width: 85%;
    max-width: 400px;
    height: 100%;
    margin-left: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.ndn-mobile-menu-overlay.active .ndn-mobile-menu-modal {
    transform: translateX(0);
}

/* Mobile Menu Header */
.ndn-mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #444;
}

.ndn-mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndn-mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Content */
.ndn-mobile-menu-content {
    padding: 1rem;
    flex: 1;
}

.ndn-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ndn-mobile-menu-list li {
    border-bottom: 1px solid #444;
}

.ndn-mobile-menu-list li:last-child {
    border-bottom: none;
}

.ndn-mobile-menu-list a {
    display: block;
    padding: 1rem 0;
    color: white;
    text-decoration: none;
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.ndn-mobile-menu-list a:hover {
    color: #ccc;
}

/* Mobile Menu Components */
.ndn-mobile-menu-components {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.ndn-mobile-menu-component {
    margin-bottom: 2rem;
}

.ndn-mobile-menu-component h4 {
    color: white;
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ndn-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ndn-mobile-menu-link:hover {
    color: #ccc;
}

.ndn-mobile-menu-icon svg {
    width: 20px;
    height: 20px;
}

.ndn-mobile-menu-badge {
    background-color: var(--primary-color, #007cba);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

.ndn-mobile-cart-total {
    margin-top: 0.5rem;
    padding-left: 3rem;
    color: #ccc;
    font-size: 0.9rem;
}

/* Mobile Currency Options */
.ndn-mobile-currency-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ndn-mobile-currency-options .ndn-currency-option {
    padding: 0.75rem;
    background-color: #444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ndn-mobile-currency-options .ndn-currency-option:hover,
.ndn-mobile-currency-options .ndn-currency-option.active {
    background-color: var(--primary-color, #007cba);
}

.ndn-mobile-currency-options .currency-symbol {
    font-weight: bold;
}

.ndn-mobile-currency-options .currency-name {
    color: #ccc;
    font-size: 0.9rem;
}

.ndn-mobile-currency-options .ndn-currency-option.active .currency-name {
    color: white;
}

/* Hamburger Animation */
.ndn-mobile-menu-overlay.active ~ .ndn-header-components .ndn-hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.ndn-mobile-menu-overlay.active ~ .ndn-header-components .ndn-hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.ndn-mobile-menu-overlay.active ~ .ndn-header-components .ndn-hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Search Form in Mobile Menu */
.ndn-mobile-menu-component .searchform {
    margin-top: 0.5rem;
}

.ndn-mobile-menu-component .searchform input[type="search"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #444;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
}

.ndn-mobile-menu-component .searchform input[type="search"]::placeholder {
    color: #ccc;
}

.ndn-mobile-menu-component .searchform input[type="submit"] {
    background-color: var(--primary-color, #007cba);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ndn-mobile-menu-component .searchform input[type="submit"]:hover {
    background-color: #005a8c;
}

/* Prevent body scroll when mobile menu is open */
body.ndn-mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Accessibility improvements */
.ndn-mobile-menu-button:focus,
.ndn-mobile-menu-close:focus {
    outline: 2px solid var(--primary-color, #007cba);
    outline-offset: 2px;
}

/* Constant Contact Form Styles */
.ctct-form-wrapper {
    padding: 0;
}

/* Hide the edit form button */
.ctct-form-wrapper .ctct-button {
    display: none;
}

/* Form styling */
.ctct-form {
    padding: 0;
}

/* Form fields */
.ctct-form-field {
    margin-bottom: 1.5rem;
}

/* Labels */
.ctct-form label {
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required asterisk */
.ctct-form abbr[title="required"] {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Email input field */
.ctct-form input[type="email"],
.ctct-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'eskorte-latin', Georgia, serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.ctct-form input[type="email"]:focus,
.ctct-form input[type="text"]:focus {
    outline: none;
    border-color: #c53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

/* Submit button */
.ctct-form input[type="submit"] {
    background: #fff;
    color: #c53030;
    padding: 1rem 3rem;
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.ctct-form input[type="submit"]:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.ctct-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Disclosure text - Hidden so it can be placed outside the form */
.ctct-disclosure {
    display: none;
}

/* Success message styling */
.ctct-form-wrapper .ctct-message.success {
    background: rgba(255, 255, 255, 0.95);
    color: #c53030;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    font-family: 'azo-sans-web', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ctct-form input[type="submit"] {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Fix for inline Elementor form wrapper */
.elementor-widget-container .ctct-form-wrapper {
    display: block;
    width: 100%;
}

/* Animation improvements */
@media (prefers-reduced-motion: reduce) {
    .ndn-mobile-menu-overlay,
    .ndn-mobile-menu-modal,
    .ndn-hamburger-icon span {
        transition: none;
    }
}
