/* =========================================
   WP THEME COMPATIBILITY & CSS VARIABLES
   ========================================= */
:root {
    --bg-dark: #0a0a0b;
    --bg-panel: #141416;
    --bg-light: #f8f9fa;
    --text-primary: #111113;
    --text-secondary: #4b5563;
    --text-inverse: #ffffff;
    --border-light: #e5e7eb;
    --border-dark: #2c2c2e;
    --accent: #0052ff;
    --accent-hover: #003ecb;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
@media (hover: hover) {
    body { cursor: none; }
    .custom-cursor {
        position: fixed; top: 0; left: 0;
        width: 24px; height: 24px;
        border: 2px solid var(--accent);
        border-radius: 50%; pointer-events: none;
        z-index: 9999; transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
        mix-blend-mode: difference;
    }
    .custom-cursor.is-hover {
        width: 40px; height: 40px;
        background-color: var(--accent); border-color: transparent; opacity: 0.6;
    }
}
@media (hover: none) { .custom-cursor { display: none; } }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
section { padding: var(--section-pad) 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; color: var(--text-primary); }
h1 { font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { font-size: 1.125rem; color: var(--text-secondary); max-width: 65ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border: none; background: var(--accent); color: #fff; transition: background 0.3s, transform 0.2s; cursor: pointer; text-decoration: none; font-family: var(--font-sans); }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: #fff; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(248, 249, 250, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); transition: transform 0.3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; height: 80px; }
.site-logo { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; }
.site-logo span { color: var(--accent); }
.main-nav ul { display: flex; gap: 2rem; list-style: none; }
.main-nav a { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: color 0.2s; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; background: radial-gradient(1200px 800px at 70% 20%, #eef2ff 0%, var(--bg-light) 70%); position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero-subtitle { font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-bg-line { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); width: 45%; height: 70%; background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80'); background-size: cover; background-position: center; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); filter: grayscale(20%) contrast(1.1); opacity: 0.85; z-index: 1; }

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.stat-item h4 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--accent); }
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.about-visual img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

/* Products */
.products { background: var(--bg-panel); color: #fff; }
.products h2, .products p { color: #fff; }
.products p { color: #a1a1aa; }
.section-header { margin-bottom: 4rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-card { background: var(--bg-dark); border-radius: 12px; overflow: hidden; perspective: 1200px; transition: transform 0.1s ease; }
.product-card-inner { position: relative; transform-style: preserve-3d; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card:hover .product-card-inner { transform: rotateY(6deg) rotateX(4deg) scale(1.02); }
.product-card img { width: 100%; height: 320px; object-fit: cover; display: block; filter: grayscale(30%) contrast(1.05); transition: filter 0.4s; }
.product-card:hover img { filter: grayscale(0%) contrast(1.1); }
.product-info { padding: 2rem; }
.product-info h3 { color: #fff; margin-bottom: 0.75rem; }
.product-info p { font-size: 1rem; color: #a1a1aa; margin-bottom: 1.5rem; }
.tag { display: inline-block; padding: 0.4rem 0.8rem; background: rgba(0,82,255,0.15); color: var(--accent); font-size: 0.75rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Services */
.services { background: var(--bg-light); text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; text-align: left; }
.service-card { background: #fff; padding: 2.5rem; border-radius: 8px; border: 1px solid var(--border-light); transition: border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-icon { width: 48px; height: 48px; background: var(--accent); border-radius: 50%; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 700; }

/* Blog */
.blog { background: #fff; }
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.post-card { border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; transition: transform 0.3s; }
.post-card:hover { transform: translateY(-6px); }
.post-thumb { width: 100%; height: 220px; object-fit: cover; }
.post-content { padding: 2rem; }
.post-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; display: flex; gap: 1rem; }
.post-content h3 { font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.3; }
.read-more { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.read-more:hover { gap: 0.8rem; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #d1d5db; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand h3 { color: #fff; margin-bottom: 1rem; font-size: 2rem; }
.footer-brand h3 span { color: var(--accent); }
.footer-links h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2c2c2e; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }

/* Utilities */
.parallax-text { will-change: transform; transition: transform 0.05s linear; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-bg-line { opacity: 0.15; width: 80%; right: -10%; }
}
@media (max-width: 768px) {
    .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: #fff; padding: 2rem; border-bottom: 1px solid var(--border-light); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    .nav-toggle { display: block; }
    h1 { font-size: 3rem; }
    .hero-bg-line { display: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
