/*
Theme Name: Graphene Heating Fabric
Theme URI: https://grapheneheatingfabric.com
Description: Custom WordPress theme for GrapheneHeatingFabric - OEM/ODM heated apparel manufacturer. Version 2.0 with Header Customizer, Banner Carousel, Product Display, and Custom Homepage Modules.
Version: 2.0.1
Author: GrapheneHeatingFabric
Author URI: https://grapheneheatingfabric.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: heated-apparel, graphene, oem, odm, manufacturing, b2b
Text Domain: graphene-theme
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    --gh-primary: #0A1628;
    --gh-primary-light: #1E3A5F;
    --gh-primary-dark: #050D17;
    --gh-accent: #FF6B35;
    --gh-accent-light: #FF8F66;
    --gh-accent-dark: #E55A28;
    --gh-white: #FFFFFF;
    --gh-gray-50: #F8F9FA;
    --gh-gray-100: #E9ECEF;
    --gh-gray-200: #DEE2E6;
    --gh-gray-300: #CED4DA;
    --gh-gray-400: #ADB5BD;
    --gh-gray-500: #6C757D;
    --gh-gray-600: #495057;
    --gh-gray-700: #343A40;
    --gh-gray-800: #212529;
    --gh-gray-900: #0D0D0D;
    --gh-success: #28A745;
    --gh-info: #17A2B8;
    --gh-warning: #FFC107;
    --gh-danger: #DC3545;
    --gh-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gh-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gh-spacing-xs: 0.5rem;
    --gh-spacing-sm: 1rem;
    --gh-spacing-md: 2rem;
    --gh-spacing-lg: 3rem;
    --gh-spacing-xl: 5rem;
    --gh-spacing-xxl: 7rem;
    --gh-container-max: 1200px;
    --gh-container-narrow: 800px;
    --gh-transition: 0.3s ease;
    --gh-shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --gh-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --gh-shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--gh-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gh-gray-700);
    background-color: var(--gh-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gh-primary);
    margin-top: 0;
    margin-bottom: var(--gh-spacing-sm);
}

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

p { margin-top: 0; margin-bottom: 1rem; }

a {
    color: var(--gh-accent);
    text-decoration: none;
    transition: var(--gh-transition);
}

a:hover { color: var(--gh-accent-dark); }

/* ============================================
   Layout Components
   ============================================ */
.gh-container {
    width: 100%;
    max-width: var(--gh-container-max);
    margin: 0 auto;
    padding: 0 var(--gh-spacing-md);
}

.gh-container-narrow { max-width: var(--gh-container-narrow); }

.gh-section { padding: var(--gh-spacing-xl) 0; }

.gh-section--light { background-color: var(--gh-gray-50); }

.gh-section--dark {
    background-color: var(--gh-primary);
    color: var(--gh-white);
}

.gh-section--dark h1,
.gh-section--dark h2,
.gh-section--dark h3 { color: var(--gh-white); }

/* Grid System */
.gh-grid { display: grid; gap: var(--gh-spacing-md); }
.gh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gh-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .gh-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .gh-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gh-grid--4,
    .gh-grid--3,
    .gh-grid--2 { grid-template-columns: 1fr; }
}

/* ============================================
   Header & Navigation
   ============================================ */
.gh-header {
    background-color: var(--gh-white);
    box-shadow: var(--gh-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gh-spacing-sm) var(--gh-spacing-md);
    max-width: var(--gh-container-max);
    margin: 0 auto;
}

.gh-logo { display: flex; align-items: center; gap: var(--gh-spacing-xs); }

.gh-logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gh-primary);
}

.gh-logo__tagline {
    font-size: 0.75rem;
    color: var(--gh-gray-500);
    display: none;
}

@media (min-width: 768px) { .gh-logo__tagline { display: block; } }

.gh-nav { display: flex; align-items: center; gap: var(--gh-spacing-md); }

.gh-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--gh-spacing-md);
}

.gh-nav__item a {
    color: var(--gh-gray-700);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.gh-nav__item a:hover,
.gh-nav__item.current-menu-item a { color: var(--gh-accent); }

.gh-nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gh-accent);
    transition: var(--gh-transition);
}

.gh-nav__item a:hover::after,
.gh-nav__item.current-menu-item a::after { width: 100%; }

/* Header CTA */
.gh-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: var(--gh-accent);
    color: var(--gh-white) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: var(--gh-transition);
    white-space: nowrap;
}

.gh-header__cta:hover {
    background-color: var(--gh-accent-dark);
    color: var(--gh-white);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.gh-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.gh-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gh-primary);
    margin: 5px 0;
    transition: var(--gh-transition);
}

@media (max-width: 768px) {
    .gh-menu-toggle { display: block; }

    .gh-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--gh-white);
        flex-direction: column;
        padding: var(--gh-spacing-md);
        box-shadow: var(--gh-shadow-md);
        display: none;
        z-index: 999;
    }

    .gh-nav__menu.active { display: flex; }
    .gh-nav__menu li { text-align: center; }

    .gh-header__cta { display: none; }
}

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

.gh-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="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 30px 30px;
}

.gh-hero__content { position: relative; z-index: 1; max-width: 800px; }

.gh-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gh-white);
    margin-bottom: var(--gh-spacing-md);
    line-height: 1.1;
}

@media (max-width: 768px) { .gh-hero__title { font-size: 2rem; } }

.gh-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--gh-spacing-lg);
}

.gh-hero__buttons { display: flex; gap: var(--gh-spacing-sm); flex-wrap: wrap; }

/* ============================================
   Buttons
   ============================================ */
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--gh-transition);
    text-decoration: none;
}

.gh-btn--primary {
    background-color: var(--gh-accent);
    color: var(--gh-white);
}

.gh-btn--primary:hover {
    background-color: var(--gh-accent-dark);
    color: var(--gh-white);
}

.gh-btn--secondary {
    background-color: var(--gh-white);
    color: var(--gh-primary);
}

.gh-btn--secondary:hover {
    background-color: var(--gh-gray-100);
    color: var(--gh-primary);
}

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

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

.gh-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ============================================
   Feature Cards
   ============================================ */
.gh-feature {
    background-color: var(--gh-white);
    border: 1px solid var(--gh-gray-200);
    border-radius: 8px;
    padding: var(--gh-spacing-md);
    transition: var(--gh-transition);
}

.gh-feature:hover {
    box-shadow: var(--gh-shadow-lg);
    transform: translateY(-4px);
}

.gh-feature__icon { font-size: 2.5rem; margin-bottom: var(--gh-spacing-sm); }
.gh-feature__title { font-size: 1.25rem; margin-bottom: var(--gh-spacing-xs); }
.gh-feature__text { color: var(--gh-gray-600); margin-bottom: 0; }

/* ============================================
   Product Cards
   ============================================ */
.gh-product-card {
    background-color: var(--gh-white);
    border: 1px solid var(--gh-gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--gh-transition);
}

.gh-product-card:hover {
    box-shadow: var(--gh-shadow-lg);
    transform: translateY(-4px);
}

.gh-product-card__image {
    position: relative;
    padding-top: 75%;
    background-color: var(--gh-gray-100);
    overflow: hidden;
}

.gh-product-card__image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.gh-product-card__content { padding: var(--gh-spacing-md); }

.gh-product-card__title { font-size: 1.125rem; margin-bottom: var(--gh-spacing-xs); }

.gh-product-card__text {
    color: var(--gh-gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--gh-spacing-sm);
}

.gh-product-card__link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-product-card__link::after {
    content: '→';
    transition: var(--gh-transition);
}

.gh-product-card:hover .gh-product-card__link::after { transform: translateX(4px); }

/* ============================================
   Stats Section
   ============================================ */
.gh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gh-spacing-md);
    text-align: center;
}

@media (max-width: 768px) { .gh-stats { grid-template-columns: repeat(2, 1fr); } }

.gh-stats__item { padding: var(--gh-spacing-md); }

.gh-stats__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gh-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) { .gh-stats__number { font-size: 2rem; } }

.gh-stats__label {
    color: var(--gh-gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-section--dark .gh-stats__label { color: var(--gh-gray-300); }

/* ============================================
   Process Section
   ============================================ */
.gh-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gh-spacing-md);
    counter-reset: process-counter;
}

@media (max-width: 992px) { .gh-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gh-process { grid-template-columns: 1fr; } }

.gh-process__step {
    position: relative;
    padding: var(--gh-spacing-md);
    background-color: var(--gh-white);
    border: 1px solid var(--gh-gray-200);
    border-radius: 8px;
}

.gh-process__step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gh-accent);
    color: var(--gh-white);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--gh-spacing-sm);
}

.gh-process__title { font-size: 1.125rem; margin-bottom: var(--gh-spacing-xs); }
.gh-process__text { color: var(--gh-gray-600); font-size: 0.875rem; margin-bottom: 0; }

/* ============================================
   CTA Section
   ============================================ */
.gh-cta {
    text-align: center;
    padding: var(--gh-spacing-xxl) 0;
    position: relative;
}

.gh-cta__title { font-size: 2rem; margin-bottom: var(--gh-spacing-sm); }

.gh-cta__text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--gh-spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.gh-footer {
    background-color: var(--gh-primary-dark);
    color: var(--gh-gray-300);
    padding: var(--gh-spacing-xl) 0 var(--gh-spacing-md);
}

.gh-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--gh-spacing-lg);
    margin-bottom: var(--gh-spacing-lg);
}

@media (max-width: 992px) { .gh-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gh-footer__grid { grid-template-columns: 1fr; } }

.gh-footer__title { color: var(--gh-white); font-size: 1.125rem; margin-bottom: var(--gh-spacing-sm); }
.gh-footer__text { color: var(--gh-gray-400); font-size: 0.875rem; line-height: 1.8; }

.gh-footer__links { list-style: none; padding: 0; margin: 0; }
.gh-footer__links li { margin-bottom: 0.5rem; }
.gh-footer__links a { color: var(--gh-gray-400); font-size: 0.875rem; }
.gh-footer__links a:hover { color: var(--gh-accent); }

.gh-footer__bottom {
    border-top: 1px solid var(--gh-gray-700);
    padding-top: var(--gh-spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gh-spacing-sm);
}

.gh-footer__copyright { font-size: 0.875rem; color: var(--gh-gray-500); }

.gh-footer__social { display: flex; gap: var(--gh-spacing-sm); }
.gh-footer__social a { color: var(--gh-gray-400); font-size: 1.25rem; }
.gh-footer__social a:hover { color: var(--gh-accent); }

/* ============================================
   Page Header
   ============================================ */
.gh-page-header {
    background: linear-gradient(135deg, var(--gh-primary) 0%, var(--gh-primary-light) 100%);
    color: var(--gh-white);
    padding: var(--gh-spacing-xxl) 0;
    text-align: center;
}

.gh-page-header__title { color: var(--gh-white); font-size: 2.5rem; margin-bottom: 0; }
@media (max-width: 768px) { .gh-page-header__title { font-size: 2rem; } }

/* ============================================
   Content Styles
   ============================================ */
.gh-content { padding: var(--gh-spacing-xl) 0; }
.gh-content h2 { margin-top: var(--gh-spacing-lg); }
.gh-content h3 { margin-top: var(--gh-spacing-md); }
.gh-content ul, .gh-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.gh-content li { margin-bottom: 0.5rem; }
.gh-content img { max-width: 100%; height: auto; border-radius: 8px; }
.gh-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.gh-content th, .gh-content td { border: 1px solid var(--gh-gray-200); padding: 0.75rem; text-align: left; }
.gh-content th { background-color: var(--gh-gray-50); font-weight: 600; }

/* ============================================
   Contact Form Styles
   ============================================ */
.gh-form { max-width: 600px; }

.gh-form-group { margin-bottom: var(--gh-spacing-sm); }

.gh-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--gh-gray-700);
}

.gh-form input,
.gh-form textarea,
.gh-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gh-gray-300);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--gh-transition);
}

.gh-form input:focus,
.gh-form textarea:focus,
.gh-form select:focus {
    outline: none;
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.gh-form textarea { min-height: 150px; resize: vertical; }

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--gh-spacing-sm); }
.mb-md { margin-bottom: var(--gh-spacing-md); }
.mb-lg { margin-bottom: var(--gh-spacing-lg); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 576px) {
    .gh-section { padding: var(--gh-spacing-lg) 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================
   Banner Carousel (Hero Slider)
   ============================================ */
.gh-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gh-banner-carousel__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gh-banner-carousel__slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.gh-banner-carousel__slide--active { opacity: 1; }

.gh-banner-carousel__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.6) 0%, rgba(30,58,95,0.4) 100%);
}

.gh-banner-carousel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--gh-white);
    padding: 2rem;
}

.gh-banner-carousel__dots {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.75rem;
    z-index: 10;
}

.gh-banner-carousel__dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gh-banner-carousel__dot--active,
.gh-banner-carousel__dot:hover { background: #fff; border-color: #fff; }

/* ============================================
   Fire Pulse Button Animation
   ============================================ */
.gh-btn--pulse-fire {
    position: relative;
    animation: gh-fire-pulse 1.8s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255,107,53,.8), 0 0 20px rgba(255,107,53,.6);
    background: linear-gradient(135deg,#FF6B35 0%,#E55A28 50%,#FF6B35 100%);
    background-size: 200% 100%;
}

@keyframes gh-fire-pulse {
    0%,100% {
        box-shadow: 0 0 5px #FF6B35, 0 0 10px rgba(255,107,53,.5), 0 0 15px rgba(255,107,53,.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px #FF6B35, 0 0 30px rgba(255,107,53,.7), 0 0 45px rgba(255,107,53,.4);
        transform: scale(1.03);
    }
}

.gh-btn--pulse-fire:hover {
    animation: none;
    box-shadow: 0 0 20px #FF6B35, 0 0 40px rgba(255,107,53,.8);
}

/* ============================================
   Floating YouTube Icon
   ============================================ */
.gh-youtube-float {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 56px; height: 56px;
    background: #FF0000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,0,0,.4);
    transition: transform .3s ease, box-shadow .3s ease;
    z-index: 10;
}

.gh-youtube-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,0,0,.6);
}

.gh-youtube-float svg { width: 28px; height: 28px; }

/* ============================================
   Custom Homepage Modules
   ============================================ */
.gh-custom-module {
    padding: var(--gh-spacing-xl) 0;
}

.gh-custom-module__content {
    max-width: 100%;
}

.gh-custom-module__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 576px) {
    .gh-banner-carousel { min-height: 400px; }
    .gh-youtube-float { width: 48px; height: 48px; top: 1rem; right: 1rem; }
    .gh-youtube-float svg { width: 22px; height: 22px; }
}

/* Hide logo tagline */
.gh-logo__tagline { display: none !important; }
