/*
Theme Name: SPL-Company Modern
Description: A modern, premium distribution theme for SPL.
Version: 2.0
Author: Antigravity
*/

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --success: #10b981;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: 5rem; line-height: 1.1; font-weight: 900; }
h2 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; font-weight: 800; }
h3 { font-size: 2rem; margin-bottom: 1rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
/* Header State: Transparent Overlay */
header {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header.scrolled {
    position: fixed !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 0;
}

header:not(.scrolled) nav ul li a,
header:not(.scrolled) .nav-cta,
header:not(.scrolled) .logo-container h1 {
    color: #ffffff !important;
}

header:not(.scrolled) .logo-container img {
    filter: brightness(0) invert(1) !important;
}

/* 404 page uses a light top background, so force dark header text before scroll */
body.error404 header:not(.scrolled) nav ul li a,
body.error404 header:not(.scrolled) .nav-cta,
body.error404 header:not(.scrolled) .logo-container h1 {
    color: var(--primary) !important;
}

body.error404 header:not(.scrolled) .nav-cta {
    border-color: rgba(15, 23, 42, 0.75) !important;
}

body.error404 header:not(.scrolled) .logo-container img {
    filter: none !important;
}

body.error404 header:not(.scrolled) .mobile-toggle {
    color: var(--primary) !important;
    background: transparent;
    border-color: rgba(15, 23, 42, 0.4);
}

header.scrolled nav ul li a {
    color: var(--primary) !important;
}

header.scrolled .logo-container img {
    filter: none !important;
}

header.scrolled .logo-container h1 {
    color: var(--primary) !important;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
}

header.scrolled nav ul li a {
    color: var(--primary);
}

nav ul li a:hover,
nav ul li.current-menu-item a,
nav ul li.current_page_item a,
nav ul li.current-post-ancestor a,
nav ul li.current-menu-ancestor a {
    color: var(--accent) !important;
}

nav ul li.current-menu-item a::after,
nav ul li.current_page_item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

#main-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

#main-header .logo-container,
#main-header .desktop-nav {
    min-width: 0;
}

#main-header .desktop-nav ul {
    align-items: center;
    flex-wrap: wrap;
}

#main-header .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-cta {
    background: transparent;
    color: var(--white) !important;
    padding: 0.4rem 0.95rem !important;
    border-radius: 0 !important;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.nav-cta i {
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: transparent;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: translateY(-1px);
}

header.scrolled .nav-cta {
    color: var(--primary) !important;
    border-color: rgba(15, 23, 42, 0.75) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

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

.hero-copy-block {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.hero-company-name {
    white-space: normal;
}

.hero-copy-block .hero-subtitle {
    width: 100%;
    max-width: 50vw;
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 1200px;
    }

    .hero-company-name {
        white-space: nowrap;
        letter-spacing: 1.2px;
    }
}

@media (max-width: 1023px) {
    .hero-copy-block .hero-subtitle {
        max-width: 100%;
    }
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 4.5rem; /* Explicit size */
    font-weight: 800;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.2s ease-out;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

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

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

/* Features */
.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    gap: 40px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08); /* More visible border */
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 24px;
    color: var(--accent);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* Products */
.products-section {
    background: var(--primary);
    color: var(--white);
}

.products-section h2 { color: var(--white); }

.product-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.product-overlay h3 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 2.25rem; /* Larger font size */
    font-weight: 800;
}

.product-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 90%;
}

/* Stats */
.stats-section {
    background: var(--accent);
    color: var(--white);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact */
.contact-grid {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
}

.contact-info h3 { color: var(--white); margin-bottom: 2rem; }

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.2rem; /* Minor adjustment for centering with first line */
    width: 24px;
    text-align: center;
}

.info-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.custom-logo-link:hover {
    transform: scale(1.05);
}

.custom-logo {
    height: 40px !important;
    width: auto !important;
    display: block;
}

.logo-container img,
.logo-link img {
    height: 40px !important;
    width: auto !important;
}

/* Mobile Header Logo Adjustment */
@media (max-width: 992px) {
    .custom-logo,
    .logo-container img,
    .logo-link img {
        height: 32px !important;
    }
}

.mobile-menu-header .logo .custom-logo {
    height: 40px !important;
}

.mobile-menu-header .logo h1 {
    margin: 0;
}

.mobile-menu-header .logo a {
    text-decoration: none;
}

.close-mobile-menu span {
    font-size: 2.5rem !important;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

/* Footer */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 80px 0 40px;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--white); }

.copy-text {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive & Mobile Menu */
.mobile-toggle {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .header-content {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        align-items: center;
        gap: 1rem;
    }

    .header-right {
        display: contents;
    }

    .nav-cta {
        grid-column: 2;
        justify-self: center;
        margin: 0 !important;
        font-size: 0.75rem;
        padding: 0.32rem 0.82rem !important;
        white-space: nowrap;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .mobile-toggle {
        grid-column: 3;
        display: flex !important;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 0;
        color: var(--white);
        cursor: pointer;
        justify-self: end;
        z-index: 2;
    }
    
    header.scrolled .mobile-toggle {
        color: var(--primary);
        background: transparent;
        border-color: rgba(15, 23, 42, 0.4);
    }
    
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #ffffff !important;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    visibility: hidden;
    pointer-events: none;
    opacity: 1 !important;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 0;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav ul li a {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000 !important;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
}

.mobile-nav ul li.current-menu-item a {
    color: var(--accent) !important;
}

.mobile-menu-content .nav-cta {
    width: 100%;
    justify-content: center;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.45) !important;
    text-align: center;
}

/* Keep mobile overlay menu text readable even when header is in transparent state */
header:not(.scrolled) .mobile-menu-overlay .mobile-nav ul li a,
header.scrolled .mobile-menu-overlay .mobile-nav ul li a {
    color: #000000 !important;
}

header:not(.scrolled) .mobile-menu-overlay .mobile-menu-content .nav-cta,
header.scrolled .mobile-menu-overlay .mobile-menu-content .nav-cta {
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.45) !important;
}

header:not(.scrolled) .mobile-menu-overlay .mobile-nav ul li.current-menu-item a,
header.scrolled .mobile-menu-overlay .mobile-nav ul li.current-menu-item a {
    color: var(--accent) !important;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
}