/*
Theme Name: Lab Equipment Pro
Theme URI: https://example.com/lab-equipment-pro
Author: Developer
Author URI: https://example.com
Description: A modern, high-end corporate WordPress theme for educational and professional laboratory equipment suppliers.
Version: 1.0.0
Text Domain: lab-equipment-pro
*/

:root {
    /* Color Palette (Bright & Gold) */
    --color-primary: #1A202C;
    /* Dark text/headings */
    --color-secondary: #D4AF37;
    /* Elegant Gold */
    --color-accent: #FDF5E6;
    /* Light cream/gold tint for backgrounds */
    --color-text-main: #2D3748;
    --color-text-muted: #718096;
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F7FAFC;
    --border-main: 1px solid #E2E8F0;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Shadows & Effects (Soft Gold/Elegant) */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 30px rgba(212, 175, 55, 0.2);
    /* Gold tinted hover shadow */

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.25s ease-out;
    --transition-bounce: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
}

/* Base Safari/Reset */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 120px 0;
    }
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-primary {
    background-color: var(--color-primary);
    color: white;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-bounce);
    cursor: pointer;
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background: var(--color-secondary);
    /* Gold */
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: #e5bd3d;
    /* Lighter Gold */
}

.btn-secondary {
    background: var(--color-primary);
    /* Dark Navy/Black */
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #2a3441;
    /* Slightly lighter dark */
}

.btn-outline {
    background: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding .site-title a {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.site-header.scrolled .site-branding .site-title a {
    color: var(--color-primary);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    color: white;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.site-header.scrolled .main-navigation ul li a {
    color: var(--color-primary);
}

.main-navigation ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-normal);
}

.main-navigation ul li a:hover:after {
    width: 100%;
}

/* Mega Menu Basic Reset - Can be enhanced */
.main-navigation ul li.menu-item-has-children {
    position: relative;
}

.main-navigation ul li.menu-item-has-children>a:after {
    content: ' ▼';
    font-size: 10px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.main-navigation ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.main-navigation ul li:hover ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li ul.sub-menu li a {
    color: var(--color-text-main);
    padding: 10px 20px;
    display: block;
    text-transform: none;
}

.main-navigation ul li ul.sub-menu li a:after {
    display: none;
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Footer structure */
.site-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-bounce);
}

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.05);
    color: white;
    box-shadow: var(--shadow-hover);
}

/* Base Card Style */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: var(--border-main);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3441 100%);
    border-bottom: 2px solid var(--color-secondary);
    padding: 150px 0 80px;
    text-align: center;
    color: white;
}

.page-title {
    color: white;
    font-size: 48px;
    margin-bottom: 0;
}