/*
Theme Name: Grand Textiles Centre
Theme URI: https://grandtextilescentre.com/
Author: Antigravity AI
Author URI: https://grandtextilescentre.com/
Description: Faithful, production-ready, fully editable WordPress theme for Grand Textiles Centre - wholesale dealer of textiles and apparel in Kannur, Kerala.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grand-textiles-centre
Tags: custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* ==========================================================================
   CSS CUSTOM VARIABLES / DESIGN SYSTEM
   ========================================================================== */
:root {
    --gtc-primary-red: #D32F2F;
    --gtc-primary-red-hover: #B71C1C;
    --gtc-accent-dark: #1C1C1C;
    --gtc-text-body: #333333;
    --gtc-text-muted: #666666;
    --gtc-bg-light: #F9F9FB;
    --gtc-bg-white: #FFFFFF;
    --gtc-border-color: #E5E7EB;
    
    --gtc-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --gtc-font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    --gtc-container-max: 1200px;
    --gtc-header-height: 80px;
    --gtc-border-radius: 8px;
    --gtc-box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --gtc-transition: all 0.3s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--gtc-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gtc-text-body);
    background-color: var(--gtc-bg-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gtc-primary-red);
    text-decoration: none;
    transition: var(--gtc-transition);
}

a:hover, a:focus {
    color: var(--gtc-primary-red-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gtc-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gtc-accent-dark);
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1.25rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--gtc-primary-red);
    color: var(--gtc-bg-white);
    padding: 10px 15px;
    z-index: 10000;
    border-radius: 4px;
    font-weight: bold;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 10px;
}

/* Container */
.gtc-container {
    width: 100%;
    max-width: var(--gtc-container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--gtc-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--gtc-header-height);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.site-title-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gtc-primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--gtc-accent-dark);
    letter-spacing: 2px;
}

/* Navigation Menu */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-family: var(--gtc-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gtc-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gtc-primary-red);
    transition: var(--gtc-transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 100%;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--gtc-primary-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--gtc-accent-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--gtc-transition);
}

/* ==========================================================================
   BUTTONS & UI COMPONENTS
   ========================================================================== */
.gtc-btn {
    display: inline-block;
    font-family: var(--gtc-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--gtc-transition);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.gtc-btn-primary {
    background-color: var(--gtc-primary-red);
    color: var(--gtc-bg-white);

}

.gtc-btn-primary:hover, .gtc-btn-primary:focus {
    background-color: var(--gtc-primary-red-hover);
    color: var(--gtc-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

.gtc-btn-secondary {
    background-color: var(--gtc-accent-dark);
    color: var(--gtc-bg-white);
}

.gtc-btn-secondary:hover {
    background-color: #333333;
    color: var(--gtc-bg-white);
    transform: translateY(-2px);
}

.gtc-btn-outline {
    background-color: transparent;
    border-color: var(--gtc-primary-red);
    color: var(--gtc-primary-red);
}

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

/* Section Title Styling */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gtc-primary-red);
    border-radius: 2px;
}

/* ==========================================================================
   PAGE BANNERS (INTERIOR PAGES)
   ========================================================================== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0;
    text-align: center;
    color: var(--gtc-bg-white);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner-title {
    color: var(--gtc-bg-white);
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   HOME PAGE SECTIONS
   ========================================================================== */
/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center 25%;
    padding: 160px 0 140px;
    text-align: center;
    color: var(--gtc-bg-white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

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

.hero-subtag {
    font-family: var(--gtc-font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.hero-title-1 {
    font-size: 3rem;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 5px;
}

.hero-title-2 {
    font-size: 3rem;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

/* Home About Section */
.home-about-section {
    padding: 90px 0;
    background-color: var(--gtc-bg-white);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-about-image img {
    border-radius: var(--gtc-border-radius);
    box-shadow: var(--gtc-box-shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.home-about-content h2 {
    color: var(--gtc-accent-dark);
    margin-bottom: 20px;
}

.home-about-content p {
    color: var(--gtc-text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Products Section & Catalogue Grid */
.products-section {
    padding: 90px 0;
    background-color: var(--gtc-bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.product-card {
    background: var(--gtc-bg-white);
    border-radius: var(--gtc-border-radius);
    overflow: hidden;
    box-shadow: var(--gtc-box-shadow);
    transition: var(--gtc-transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.product-card-image-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: var(--gtc-transition);
}

.product-card:hover .product-card-image-wrap img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-title {
    font-size: 1.15rem;
    color: var(--gtc-accent-dark);
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 0.9rem;
    color: var(--gtc-text-muted);
    margin-bottom: 15px;
}

.section-footer-action {
    text-align: center;
    margin-top: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 90px 0;
    background-color: var(--gtc-bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    border-radius: var(--gtc-border-radius);
    overflow: hidden;
    box-shadow: var(--gtc-box-shadow);
    height: 280px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gtc-transition);
}

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

/* Contact Overview Section */
.home-contact-section {
    padding: 90px 0;
    background-color: var(--gtc-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--gtc-primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gtc-accent-dark);
}

.contact-info-details p, .contact-info-details a {
    color: var(--gtc-text-muted);
    font-size: 1rem;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: var(--gtc-border-radius);
    overflow: hidden;
    box-shadow: var(--gtc-box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */
.about-page-content {
    padding: 90px 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 12fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-story-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.about-story-image img {
    border-radius: var(--gtc-border-radius);
    box-shadow: var(--gtc-box-shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-story-text h2 {
    font-size: 2.25rem;
    color: var(--gtc-accent-dark);
    margin-bottom: 20px;
}

.about-story-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
}

/* ==========================================================================
   CONTACT PAGE STYLES & FORM
   ========================================================================== */
.contact-page-content {
    padding: 90px 0;
}

.contact-form-wrap {
    background: var(--gtc-bg-white);
    padding: 40px;
    border-radius: var(--gtc-border-radius);
    box-shadow: var(--gtc-box-shadow);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--gtc-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gtc-accent-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gtc-border-color);
    border-radius: 6px;
    font-family: var(--gtc-font-body);
    font-size: 1rem;
    color: var(--gtc-text-body);
    transition: var(--gtc-transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gtc-primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-status-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.form-status-success {
    background-color: #D1E7DD;
    color: #0F5132;
    border: 1px solid #BADBCC;
    display: block;
}

.form-status-error {
    background-color: #F8D7DA;
    color: #842029;
    border: 1px solid #F5C2C7;
    display: block;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
    background-color: #111111;
    color: #A0A0A0;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.footer-navigation a {
    color: #CCCCCC;
    font-family: var(--gtc-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-navigation a:hover {
    color: var(--gtc-primary-red);
}

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

.social-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gtc-bg-white);
    font-weight: 600;
}

.social-link-item:hover {
    color: var(--gtc-primary-red);
}

.copyright-text {
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE BEHAVIOR
   ========================================================================== */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title-1, .hero-title-2 {
        font-size: 2.25rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: var(--gtc-header-height);
        left: 0;
        width: 100%;
        background-color: var(--gtc-bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
        padding: 20px;
    }
    
    .main-navigation.is-active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .product-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-title-1, .hero-title-2 {
        font-size: 1.75rem;
    }
    
    .page-banner-title {
        font-size: 2rem;
    }
}
