/**
 * GT Solutions Catalog - Premium Design System
 * 
 * Colors inspired by presentation.html prototype:
 * - Brand Green: #004d40 (Integrity)
 * - Brand Gold: #b38e44 (Wealth)
 * 
 * @package     GTSolutions/Catalog
 * @version     1.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES (Design Tokens)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors (Cebu Sunrise Theme) */
    --gold: #C6930A;
    --gold-dark: #A37508;
    --gold-light: #F5E6B8;
    --gold-bg: rgba(198,147,10,0.08);
    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #8B6914 100%);
    --grad-hero: linear-gradient(160deg, #FDFCFA 0%, #F5F0E6 50%, #FFF8EB 100%);

    /* Backgrounds */
    --bg: #FDFCFA;
    --surface: #FFFFFF;
    --surface2: #F5F3EF;
    --surface3: #EDE9E1;
    --bg-dark: #0f1115;
    --bg-card: #FFFFFF;

    /* Text */
    --text: #1B1B1B;
    --text-secondary: #555555;
    --muted: #8A8A8A;
    --text-light: #ffffff;

    /* Status Colors */
    --color-success: #27ae60;
    --color-info: #1570EF;
    --color-warning: #E8720C;
    --color-danger: #D92D20;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-gold: 0 8px 24px rgba(198,147,10,0.2);

    /* Borders */
    --border: rgba(0,0,0,0.08);
    --border-gold: 2px solid var(--gold);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius: 12px;
    --radius-xl: 24px;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --nav-height: 70px;
    --container-max: 1200px;
    --container-padding: 20px;
    
    /* Variables for backward compat */
    --brand-green: var(--gold);
    --brand-green-dark: var(--gold-dark);
    --brand-gold: var(--gold);
    --bg-primary: var(--bg);
    --bg-surface: var(--surface);
    --text-primary: var(--text);
    --border-light: var(--border);
    --text-muted: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.catalog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(253,252,250,0.92);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
}

.logo-gt {
    font-size: 28px;
    color: var(--brand-green);
    letter-spacing: 2px;
}

.logo-solutions {
    font-size: 20px;
    color: var(--brand-gold);
    letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: rgba(0, 77, 64, 0.05);
    color: var(--brand-green);
}

.nav-link.active {
    background: var(--brand-green);
    color: var(--text-light);
}

.nav-link i {
    font-size: 14px;
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--brand-green);
}

.toggle-btn.active {
    background: var(--brand-green);
    color: var(--text-light);
}

.lang-toggle {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--brand-green);
}

.lang-btn.active {
    background: var(--brand-gold);
    color: var(--text-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--brand-green);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 16px;
}

.mobile-menu.open {
    display: block;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-link.active {
    background: var(--brand-green);
    color: var(--text-light);
}

.mobile-divider {
    height: 1px;
    background: var(--bg-primary);
    margin: 12px 0;
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.mobile-controls a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.mobile-controls a.active {
    background: var(--brand-green);
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.catalog-main {
    flex: 1;
    margin-top: var(--nav-height);
    padding-bottom: 80px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-green);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(160deg, #FDFCFA 0%, #F5F0E6 50%, #FFF8EB 100%);
    color: var(--text);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-logo .logo-gt {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-logo .logo-solutions {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    color: var(--brand-gold);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 28px;
    color: var(--brand-gold);
    background: var(--gold-bg);
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    background: var(--bg-surface);
    border-bottom: var(--border-light);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-pill:hover {
    background: var(--gold-bg);
    color: var(--gold);
    border-color: var(--gold);
}

.category-pill.active {
    background: var(--brand-green);
    color: var(--text-light);
    border-color: var(--brand-green);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: var(--border-light);
    position: relative;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.product-card.featured {
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.product-card.featured:hover {
    transform: translateY(-8px) scale(1.01);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-gold);
    color: var(--text-light);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--text-light);
    font-size: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 8px;
}

.card-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-pricing {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--bg-primary);
    border-bottom: 1px solid var(--bg-primary);
}

.price-setup {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-setup strong {
    color: var(--text-primary);
}

.price-monthly {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-monthly span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-dark);
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: var(--grad-gold);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(198,147,10,0.15);
}

.btn-primary:hover {
    background: var(--grad-gold);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(198,147,10,0.25);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--gold-dark);
    border: 2px solid var(--gold);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--brand-gold);
    color: var(--text-light);
}

.btn-gold:hover {
    background: var(--brand-gold-dark);
    color: var(--text-light);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   VALUE PROPOSITION (3 columns)
   ═══════════════════════════════════════════════════════════════ */

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.value-item {
    background: var(--bg-surface);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 5px solid var(--brand-green);
    transition: transform var(--transition-fast);
}

.value-item:hover {
    transform: translateY(-6px);
}

.value-icon {
    font-size: 36px;
    color: var(--brand-gold);
    margin-bottom: 16px;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-green);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.value-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   AI WIDGET BUTTON
   ═══════════════════════════════════════════════════════════════ */

.ai-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.ai-widget-btn:hover {
    transform: scale(1.1);
    color: var(--text-light);
    box-shadow: var(--shadow-gold);
}

.widget-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.catalog-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo .logo-gt {
    font-size: 24px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.footer-logo .logo-solutions {
    font-size: 18px;
    color: var(--brand-gold);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.7;
}

.footer-contact h4,
.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold);
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-contact i {
    width: 20px;
    color: var(--brand-gold);
    margin-right: 8px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 8px;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--brand-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-logo .logo-gt {
        font-size: 42px;
    }

    .hero-logo .logo-solutions {
        font-size: 30px;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-value {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --nav-height: 60px;
        --container-padding: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-logo {
        flex-direction: column;
        gap: 4px;
    }

    .hero-logo .logo-gt {
        font-size: 36px;
    }

    .hero-logo .logo-solutions {
        font-size: 22px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        width: calc(50% - 10px);
    }

    .section-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-nav {
        padding: 16px;
        gap: 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .category-pill {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }

    .card-actions {
        flex-direction: column;
    }

    .nav-controls {
        display: none;
    }

    .ai-widget-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
}

/* PC View Override (forced desktop) */
body.pc-view {
    min-width: 1200px;
}

body.pc-view .mobile-menu-btn {
    display: none;
}

body.pc-view .nav-links {
    display: flex;
}

body.pc-view .nav-controls {
    display: flex;
}

body.pc-view .products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {

    .catalog-nav,
    .ai-widget-btn,
    .nav-controls,
    .mobile-menu-btn,
    .card-actions {
        display: none !important;
    }

    .catalog-main {
        margin-top: 0;
    }

    .hero {
        background: var(--brand-green) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .catalog-footer {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}