/*
Theme Name: Volan
Theme URI: https://volan.ai
Author: Volan Technology
Description: Custom dark corporate theme for Volan.ai — AI-powered operational intelligence platform.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volan
*/

/* === Variables === */
:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-accent: #e9ad4e;
    --color-accent-hover: #d49a3e;
    --color-text: #ffffff;
    --color-text-muted: #999999;
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --color-card-border: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #0a0a0a;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #0a0a0a;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #0a0a0a;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.site-logo svg {
    height: 36px;
    width: auto;
}

/* === Navigation === */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #ffffff;
}

.primary-nav .menu-item-has-children {
    position: relative;
}

.primary-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children.open > .sub-menu {
    display: flex;
}

.primary-nav .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
}

.primary-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 13px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(233, 173, 78, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(233, 173, 78, 0.1);
    border: 1px solid rgba(233, 173, 78, 0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-heading {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-heading .rotating-word {
    display: inline-block;
    color: var(--color-accent);
    position: relative;
    min-width: 200px;
}

.rotating-word .word {
    display: inline-block;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.rotating-word .word.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* === Client Logos Section === */
.clients-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 48px;
}

.clients-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.client-logo {
    opacity: 0.5;
    transition: opacity var(--transition);
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.client-logo:hover {
    opacity: 0.9;
}

/* === Solutions Section === */
.solutions-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.section-heading {
    font-size: 44px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subheading {
    font-size: 18px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

.solution-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(233, 173, 78, 0.9);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.solution-card-body {
    padding: 32px;
}

.solution-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.solution-card-tagline {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.solution-card-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.solution-card .btn {
    padding: 10px 24px;
    font-size: 12px;
}

/* === Features Section === */
.features-section {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

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

.feature-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.4;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === Final CTA Section === */
.cta-section {
    padding: 120px 0;
    background: var(--color-bg);
    text-align: center;
}

.cta-heading {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.cta-heading span {
    color: var(--color-accent);
}

.cta-section .btn {
    padding: 18px 48px;
    font-size: 15px;
}

/* === Footer === */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand-tagline {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #ffffff;
}

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

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-muted);
}

.legal-nav ul {
    display: flex;
    gap: 24px;
}

.legal-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
}

.legal-nav a:hover {
    color: #ffffff;
}

/* === Responsive: Tablet (1024px) === */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 48px;
    }

    .section-heading,
    .cta-heading {
        font-size: 36px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .clients-grid {
        gap: 40px;
    }
}

/* === Responsive: Mobile (768px) === */
@media (max-width: 768px) {
    .site-header .header-inner {
        height: 64px;
    }

    .site-logo img,
    .site-logo svg {
        height: 28px;
    }

    .primary-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        padding: 24px;
        overflow-y: auto;
    }

    .primary-nav.open {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav a {
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .primary-nav .sub-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        display: none;
    }

    .primary-nav .menu-item-has-children.open > .sub-menu {
        display: block;
    }

    .primary-nav .sub-menu a {
        padding: 12px 0;
        font-size: 16px;
    }

    .nav-cta {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-cta .btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-section {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero-heading {
        font-size: 36px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .clients-section {
        padding: 60px 0;
    }

    .clients-grid {
        gap: 32px;
    }

    .client-logo {
        max-height: 28px;
    }

    .solutions-section,
    .features-section,
    .cta-section {
        padding: 80px 0;
    }

    .section-heading,
    .cta-heading {
        font-size: 30px;
    }

    .section-subheading {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .solutions-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .legal-nav ul {
        justify-content: center;
    }
}

/* === Utility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
