/*
Theme Name: CountryCorn Australia Theme
Theme URI: https://countrycorn.com.au/
Author: Country Corn Australia
Author URI: https://countrycorn.com.au/
Description: A professional WordPress theme for Country Corn Australia - Australia's favourite frozen corn brand and parent company of Frozberries, Harvestime, and City Wholefood Distributors. Features modern design with full WooCommerce support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: food, e-commerce, custom-logo, custom-colors, featured-images, theme-options, corn
Text Domain: countrycorn
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Primary Colors - Golden Corn Yellow */
    --cc-primary: #F5A623;
    --cc-primary-dark: #E09000;
    --cc-primary-light: #FFB84D;
    --cc-primary-rgb: 245, 166, 35;

    /* Secondary Colors - Fresh Green */
    --cc-secondary: #4CAF50;
    --cc-secondary-dark: #388E3C;
    --cc-secondary-light: #81C784;

    /* Accent Colors */
    --cc-accent-brown: #8B5A2B;
    --cc-accent-cream: #FFF8DC;

    /* Text Colors */
    --cc-text-dark: #1A1A1A;
    --cc-text-medium: #555555;
    --cc-text-light: #777777;
    --cc-text-white: #FFFFFF;

    /* Background Colors */
    --cc-bg-white: #FFFFFF;
    --cc-bg-light: #FFFAF0;
    --cc-bg-cream: #FFF8DC;
    --cc-bg-gray: #F5F5F5;
    --cc-bg-dark: #1A1A1A;

    /* Typography */
    --cc-font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cc-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cc-font-logo: 'Pacifico', cursive;

    /* Font Sizes */
    --cc-fs-xs: 0.75rem;
    --cc-fs-sm: 0.875rem;
    --cc-fs-base: 1rem;
    --cc-fs-md: 1.125rem;
    --cc-fs-lg: 1.25rem;
    --cc-fs-xl: 1.5rem;
    --cc-fs-2xl: 2rem;
    --cc-fs-3xl: 2.5rem;
    --cc-fs-4xl: 3rem;

    /* Font Weights */
    --cc-fw-light: 300;
    --cc-fw-normal: 400;
    --cc-fw-medium: 500;
    --cc-fw-semibold: 600;
    --cc-fw-bold: 700;

    /* Spacing */
    --cc-space-xs: 0.25rem;
    --cc-space-sm: 0.5rem;
    --cc-space-md: 1rem;
    --cc-space-lg: 1.5rem;
    --cc-space-xl: 2rem;
    --cc-space-2xl: 3rem;
    --cc-space-3xl: 4rem;
    --cc-space-4xl: 6rem;

    /* Border Radius */
    --cc-radius-sm: 4px;
    --cc-radius-md: 8px;
    --cc-radius-lg: 12px;
    --cc-radius-xl: 20px;
    --cc-radius-full: 9999px;

    /* Shadows */
    --cc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --cc-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --cc-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --cc-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --cc-transition-fast: 0.15s ease;
    --cc-transition-base: 0.3s ease;
    --cc-transition-slow: 0.5s ease;

    /* Container */
    --cc-container-max: 1320px;
    --cc-container-padding: 1.5rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--cc-font-primary);
    font-size: var(--cc-fs-base);
    font-weight: var(--cc-fw-normal);
    line-height: 1.6;
    color: var(--cc-text-dark);
    background-color: var(--cc-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--cc-font-heading);
    font-weight: var(--cc-fw-bold);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--cc-text-dark);
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--cc-primary);
    text-decoration: none;
    transition: color var(--cc-transition-fast);
}

a:hover {
    color: var(--cc-primary-dark);
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.cc-container {
    width: 100%;
    max-width: var(--cc-container-max);
    margin: 0 auto;
    padding: 0 var(--cc-container-padding);
}

.cc-section {
    padding: var(--cc-space-4xl) 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--cc-font-primary);
    font-size: var(--cc-fs-base);
    font-weight: var(--cc-fw-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--cc-radius-full);
    cursor: pointer;
    transition: all var(--cc-transition-base);
}

.cc-btn-primary {
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
    color: var(--cc-text-white);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.cc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
    color: var(--cc-text-white);
}

.cc-btn-secondary {
    background: linear-gradient(135deg, var(--cc-secondary) 0%, var(--cc-secondary-dark) 100%);
    color: var(--cc-text-white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.cc-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    color: var(--cc-text-white);
}

.cc-btn-outline {
    background: transparent;
    border: 2px solid var(--cc-primary);
    color: var(--cc-primary);
}

.cc-btn-outline:hover {
    background: var(--cc-primary);
    color: var(--cc-text-white);
}

.cc-btn-white {
    background: white;
    color: var(--cc-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cc-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Header
   ========================================================================== */
.cc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--cc-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.cc-header-top {
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
    padding: 10px 0;
    color: white;
}

.cc-header-top .cc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-header-contact {
    display: flex;
    gap: var(--cc-space-xl);
}

.cc-header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--cc-fs-sm);
    color: white;
}

.cc-header-contact-item a {
    color: white;
}

.cc-header-contact-item svg {
    width: 16px;
    height: 16px;
}

.cc-header-social {
    display: flex;
    gap: var(--cc-space-sm);
}

.cc-header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--cc-radius-full);
    color: white;
    transition: all var(--cc-transition-fast);
}

.cc-header-social a:hover {
    background: white;
    color: var(--cc-primary);
}

/* Main Navigation */
.cc-header-nav {
    padding: 15px 0;
}

.cc-header-nav .cc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-logo {
    display: flex;
    align-items: center;
}

.cc-logo img,
.cc-logo .custom-logo {
    max-height: 65px;
    width: auto;
}

.cc-logo-text {
    font-family: var(--cc-font-logo);
    font-size: var(--cc-fs-2xl);
    color: var(--cc-primary);
    text-decoration: none;
}

/* Navigation Menu */
.cc-nav-menu {
    display: flex;
    gap: var(--cc-space-lg);
    align-items: center;
}

.cc-nav-menu a {
    font-size: var(--cc-fs-base);
    font-weight: var(--cc-fw-medium);
    color: var(--cc-text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--cc-radius-md);
    transition: all var(--cc-transition-fast);
}

.cc-nav-menu a:hover,
.cc-nav-menu a.current {
    color: var(--cc-primary);
    background: var(--cc-bg-cream);
}

.cc-nav-menu .cc-btn {
    margin-left: var(--cc-space-md);
}

/* Mobile Toggle */
.cc-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: var(--cc-primary);
    border-radius: var(--cc-radius-md);
}

.cc-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--cc-transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.cc-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
    overflow: hidden;
}

.cc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
}

.cc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
}

.cc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cc-radius-full);
    font-size: var(--cc-fs-sm);
    font-weight: var(--cc-fw-semibold);
    margin-bottom: var(--cc-space-lg);
    backdrop-filter: blur(10px);
}

.cc-hero-title {
    font-size: var(--cc-fs-4xl);
    font-weight: var(--cc-fw-bold);
    color: white;
    margin-bottom: var(--cc-space-lg);
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-hero-subtitle {
    font-size: var(--cc-fs-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--cc-space-xl);
    line-height: 1.7;
}

.cc-hero-buttons {
    display: flex;
    gap: var(--cc-space-md);
    flex-wrap: wrap;
}

.cc-hero-image {
    position: absolute;
    right: -5%;
    bottom: 0;
    width: 50%;
    max-width: 600px;
    z-index: 1;
}

.cc-hero-image img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.cc-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--cc-space-3xl);
}

.cc-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-light) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cc-radius-full);
    font-size: var(--cc-fs-sm);
    font-weight: var(--cc-fw-semibold);
    margin-bottom: var(--cc-space-md);
}

.cc-section-title {
    font-size: var(--cc-fs-3xl);
    font-weight: var(--cc-fw-bold);
    color: var(--cc-text-dark);
    margin-bottom: var(--cc-space-md);
}

.cc-section-subtitle {
    font-size: var(--cc-fs-md);
    color: var(--cc-text-medium);
    line-height: 1.7;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.cc-products {
    background: var(--cc-bg-light);
}

.cc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cc-space-xl);
}

.cc-product-card {
    background: white;
    border-radius: var(--cc-radius-xl);
    overflow: hidden;
    box-shadow: var(--cc-shadow-md);
    transition: all var(--cc-transition-base);
    text-decoration: none;
}

.cc-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cc-shadow-xl);
}

.cc-product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--cc-transition-slow);
}

.cc-product-card:hover .cc-product-image img {
    transform: scale(1.1);
}

.cc-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--cc-secondary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--cc-radius-full);
    font-size: var(--cc-fs-xs);
    font-weight: var(--cc-fw-semibold);
}

.cc-product-content {
    padding: var(--cc-space-lg);
}

.cc-product-title {
    font-size: var(--cc-fs-lg);
    font-weight: var(--cc-fw-bold);
    color: var(--cc-text-dark);
    margin-bottom: var(--cc-space-sm);
}

.cc-product-desc {
    font-size: var(--cc-fs-sm);
    color: var(--cc-text-medium);
    margin-bottom: var(--cc-space-md);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.cc-why-us {
    background: linear-gradient(135deg, var(--cc-bg-cream) 0%, var(--cc-bg-light) 100%);
}

.cc-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cc-space-xl);
}

.cc-feature-card {
    background: white;
    padding: var(--cc-space-xl);
    border-radius: var(--cc-radius-xl);
    text-align: center;
    box-shadow: var(--cc-shadow-md);
    transition: all var(--cc-transition-base);
}

.cc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cc-shadow-lg);
}

.cc-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--cc-space-lg);
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-light) 100%);
    border-radius: var(--cc-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.cc-feature-title {
    font-size: var(--cc-fs-lg);
    font-weight: var(--cc-fw-bold);
    color: var(--cc-text-dark);
    margin-bottom: var(--cc-space-sm);
}

.cc-feature-desc {
    font-size: var(--cc-fs-sm);
    color: var(--cc-text-medium);
    line-height: 1.6;
}

/* ==========================================================================
   Our Brands Section
   ========================================================================== */
.cc-brands {
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
    padding: var(--cc-space-4xl) 0;
}

.cc-brands .cc-section-title,
.cc-brands .cc-section-subtitle {
    color: white;
}

.cc-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cc-space-xl);
}

.cc-brand-card {
    background: white;
    border-radius: var(--cc-radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--cc-transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cc-brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cc-brand-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.cc-brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--cc-transition-slow);
}

.cc-brand-card:hover .cc-brand-image img {
    transform: scale(1.1);
}

.cc-brand-content {
    padding: var(--cc-space-lg);
    text-align: center;
}

.cc-brand-name {
    font-size: var(--cc-fs-lg);
    font-weight: var(--cc-fw-bold);
    margin-bottom: var(--cc-space-xs);
}

.cc-brand-tagline {
    font-size: var(--cc-fs-sm);
    color: var(--cc-text-medium);
    margin-bottom: var(--cc-space-md);
}

.cc-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--cc-fs-sm);
    font-weight: var(--cc-fw-semibold);
    transition: gap var(--cc-transition-fast);
}

.cc-brand-card:hover .cc-brand-link {
    gap: 0.75rem;
}

/* Brand Colors */
.cc-brand-frozberries .cc-brand-name {
    color: #2196F3;
}

.cc-brand-frozberries .cc-brand-link {
    color: #2196F3;
}

.cc-brand-harvestime .cc-brand-name {
    color: #4CAF50;
}

.cc-brand-harvestime .cc-brand-link {
    color: #4CAF50;
}

.cc-brand-citywholefood .cc-brand-name {
    color: #9C27B0;
}

.cc-brand-citywholefood .cc-brand-link {
    color: #9C27B0;
}

.cc-brand-countrycorn .cc-brand-name {
    color: var(--cc-primary);
}

.cc-brand-countrycorn .cc-brand-link {
    color: var(--cc-primary);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.cc-stats {
    background: var(--cc-bg-dark);
    padding: var(--cc-space-3xl) 0;
}

.cc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cc-space-xl);
    text-align: center;
}

.cc-stat-item {
    color: white;
}

.cc-stat-number {
    font-size: var(--cc-fs-4xl);
    font-weight: var(--cc-fw-bold);
    color: var(--cc-primary);
    margin-bottom: var(--cc-space-sm);
}

.cc-stat-label {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */
.cc-cta {
    background: linear-gradient(135deg, var(--cc-secondary) 0%, var(--cc-secondary-dark) 100%);
    padding: var(--cc-space-4xl) 0;
    text-align: center;
}

.cc-cta-content {
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.cc-cta-title {
    font-size: var(--cc-fs-3xl);
    color: white;
    margin-bottom: var(--cc-space-md);
}

.cc-cta-subtitle {
    font-size: var(--cc-fs-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--cc-space-xl);
}

.cc-cta-buttons {
    display: flex;
    gap: var(--cc-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buy Options */
.cc-buy-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cc-space-xl);
    max-width: 900px;
    margin: var(--cc-space-2xl) auto 0;
}

.cc-buy-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--cc-radius-xl);
    padding: var(--cc-space-xl);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--cc-transition-base);
}

.cc-buy-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
}

.cc-buy-option-icon {
    font-size: 3rem;
    margin-bottom: var(--cc-space-md);
}

.cc-buy-option-title {
    font-size: var(--cc-fs-xl);
    font-weight: var(--cc-fw-bold);
    color: white;
    margin-bottom: var(--cc-space-sm);
}

.cc-buy-option-desc {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--cc-space-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cc-footer {
    background: var(--cc-bg-dark);
    color: white;
}

.cc-footer-main {
    padding: var(--cc-space-4xl) 0 var(--cc-space-2xl);
}

.cc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--cc-space-3xl);
}

.cc-footer-brand {
    max-width: 300px;
}

.cc-footer-logo {
    margin-bottom: var(--cc-space-lg);
}

.cc-footer-logo img {
    max-height: 70px;
    width: auto;
}

.cc-footer-desc {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--cc-space-lg);
}

.cc-footer-social {
    display: flex;
    gap: var(--cc-space-sm);
}

.cc-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--cc-radius-full);
    color: white;
    transition: all var(--cc-transition-fast);
}

.cc-footer-social a:hover {
    background: var(--cc-primary);
}

.cc-footer-title {
    font-size: var(--cc-fs-lg);
    font-weight: var(--cc-fw-bold);
    color: white;
    margin-bottom: var(--cc-space-lg);
    position: relative;
    padding-bottom: var(--cc-space-sm);
}

.cc-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--cc-primary);
    border-radius: 2px;
}

.cc-footer-links li {
    margin-bottom: var(--cc-space-sm);
}

.cc-footer-links a {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--cc-transition-fast);
}

.cc-footer-links a:hover {
    color: var(--cc-primary);
    padding-left: 5px;
}

.cc-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--cc-space-md);
    margin-bottom: var(--cc-space-md);
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.7);
}

.cc-footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--cc-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Footer Bottom */
.cc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--cc-space-lg) 0;
}

.cc-footer-bottom .cc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-footer-copyright {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

.cc-footer-legal {
    display: flex;
    gap: var(--cc-space-lg);
}

.cc-footer-legal a {
    font-size: var(--cc-fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

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

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {

    .cc-features-grid,
    .cc-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .cc-header-contact {
        display: none;
    }

    .cc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cc-hero-image {
        display: none;
    }

    .cc-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .cc-hero-buttons {
        justify-content: center;
    }

    .cc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--cc-space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --cc-fs-4xl: 2.25rem;
        --cc-fs-3xl: 1.875rem;
        --cc-fs-2xl: 1.5rem;
    }

    .cc-mobile-toggle {
        display: flex;
    }

    .cc-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--cc-space-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-top: 3px solid var(--cc-primary);
    }

    .cc-nav-menu.active {
        display: flex;
    }

    .cc-nav-menu a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .cc-features-grid,
    .cc-brands-grid {
        grid-template-columns: 1fr;
    }

    .cc-products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cc-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cc-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cc-buy-options {
        grid-template-columns: 1fr;
    }

    .cc-footer-bottom .cc-container {
        flex-direction: column;
        gap: var(--cc-space-md);
    }
}

@media (max-width: 576px) {
    .cc-section {
        padding: var(--cc-space-2xl) 0;
    }

    .cc-hero {
        min-height: 450px;
    }

    .cc-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cc-hero-buttons .cc-btn {
        width: 100%;
        max-width: 280px;
    }

    .cc-header-top {
        display: none;
    }

    .cc-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE FIXES - ALL DEVICES
   ========================================================================== */

/* ---- Extra Small Devices (400px and below) ---- */
@media (max-width: 400px) {
    :root {
        --cc-fs-4xl: 1.75rem;
        --cc-fs-3xl: 1.5rem;
        --cc-fs-2xl: 1.25rem;
        --cc-fs-xl: 1.125rem;
        --cc-container-padding: 1rem;
    }

    .cc-hero {
        min-height: 380px;
        padding: var(--cc-space-xl) 0;
    }

    .cc-hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .cc-hero-title {
        font-size: 1.5rem;
    }

    .cc-hero-subtitle {
        font-size: 0.9rem;
    }

    .cc-section-title {
        font-size: 1.4rem;
    }

    .cc-section-subtitle {
        font-size: 0.9rem;
    }

    .cc-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .cc-product-image {
        height: 180px;
    }

    .cc-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .cc-stat-number {
        font-size: 2rem;
    }

    .cc-stat-label {
        font-size: 0.7rem;
    }
}

/* ---- Medium Mobile (480px) ---- */
@media (max-width: 480px) {

    .cc-logo img,
    .cc-logo .custom-logo {
        max-height: 50px !important;
    }

    .cc-logo-text {
        font-size: 1.5rem;
    }

    .cc-header-nav {
        padding: 10px 0;
    }

    .cc-nav-menu a {
        font-size: 0.95rem;
        padding: 12px;
    }

    .cc-nav-menu .cc-btn {
        margin: 10px 0 0;
        width: 100%;
    }

    .cc-product-content {
        padding: var(--cc-space-md);
    }

    .cc-product-title {
        font-size: 1rem;
    }

    .cc-product-desc {
        font-size: 0.85rem;
    }

    .cc-brand-content {
        padding: var(--cc-space-md);
    }

    .cc-brand-name {
        font-size: 1rem;
    }

    .cc-brand-tagline {
        font-size: 0.8rem;
    }

    .cc-footer-desc {
        font-size: 0.85rem;
    }
}

/* ---- Tablet Portrait (768px - 1024px) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
    .cc-header-contact {
        gap: var(--cc-space-md);
    }

    .cc-header-contact-item span {
        font-size: 0.8rem;
    }

    .cc-nav-menu {
        gap: var(--cc-space-sm);
    }

    .cc-nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .cc-hero-title {
        font-size: 2.25rem;
    }

    .cc-products-grid {
        gap: var(--cc-space-lg);
    }

    .cc-features-grid {
        gap: var(--cc-space-lg);
    }
}

/* ---- Large Desktop (1400px+) ---- */
@media (min-width: 1400px) {
    .cc-container {
        max-width: 1400px;
    }

    .cc-hero-title {
        font-size: 3.5rem;
    }
}

/* ---- Touch Device Optimizations ---- */
@media (hover: none) and (pointer: coarse) {
    .cc-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .cc-nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cc-product-card:hover,
    .cc-feature-card:hover,
    .cc-brand-card:hover {
        transform: none;
    }

    .cc-mobile-toggle {
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        align-items: center;
    }
}

/* ---- Landscape Mode Fixes ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .cc-hero {
        min-height: auto;
        padding: var(--cc-space-xl) 0;
    }

    .cc-hero-title {
        font-size: 1.75rem;
    }

    .cc-nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }

    .cc-section {
        padding: var(--cc-space-xl) 0;
    }
}

/* ---- Safe Area for Notched Phones ---- */
@supports (padding: max(0px)) {
    .cc-header {
        padding-top: env(safe-area-inset-top, 0);
    }

    .cc-header-top {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .cc-footer-bottom {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .cc-container {
        padding-left: max(var(--cc-container-padding), env(safe-area-inset-left));
        padding-right: max(var(--cc-container-padding), env(safe-area-inset-right));
    }
}

/* ---- Fix for iOS input zoom ---- */
@media screen and (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ---- High DPI / Retina Displays ---- */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ---- Reduced Motion for Accessibility ---- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---- Print Styles ---- */
@media print {

    .cc-header,
    .cc-footer,
    .cc-mobile-toggle,
    .cc-btn {
        display: none !important;
    }

    .cc-hero {
        min-height: auto;
        background: #F5A623;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}

/* ---- WordPress Admin Bar Fix ---- */
@media screen and (max-width: 782px) {
    .admin-bar .cc-header {
        top: 46px;
    }
}

@media screen and (min-width: 783px) {
    .admin-bar .cc-header {
        top: 32px;
    }
}

/* ---- Mobile Menu Animation ---- */
.cc-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.cc-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- WordPress Navigation Menu Classes ---- */
.cc-nav-menu li {
    position: relative;
}

.cc-nav-menu li a {
    display: block;
}

.cc-nav-menu .menu-item-has-children>a::after {
    content: '▼';
    font-size: 0.6em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ---- Sub-menus ---- */
.cc-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--cc-radius-md);
    padding: 0.5rem 0;
    z-index: 1000;
}

.cc-nav-menu li:hover>.sub-menu {
    display: block;
}

.cc-nav-menu .sub-menu a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: none;
    text-align: left;
}

.cc-nav-menu .sub-menu a:hover {
    background: var(--cc-bg-cream);
}

/* Mobile sub-menus */
@media (max-width: 768px) {
    .cc-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-left: 2px solid var(--cc-primary);
        margin: 0.5rem 0;
    }

    .cc-nav-menu li:hover>.sub-menu {
        display: block;
    }

    .cc-nav-menu .sub-menu a {
        text-align: center;
    }
}