/*
Theme Name: Company Theme
Theme URI: https://example.com
Author: Your Company
Description: Custom one-page theme for the company website. Modern, animated, purple/white/black color scheme.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
    --color-purple: #7c3aed;
    --color-purple-dark: #5b21b6;
    --color-purple-light: #a78bfa;
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-gray: #6b7280;
    --transition-base: 0.3s ease;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--color-white);
    color: var(--color-black);
    overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.85rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.site-logo {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-purple-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(75vw, 280px);
        background: var(--color-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--color-black);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 700px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--color-purple-light), var(--color-white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: #d4d4d8;
    margin-bottom: 2rem;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: 1;
}

.hero-blob--1 {
    width: 420px;
    height: 420px;
    background: var(--color-purple);
    top: -100px;
    left: -100px;
    animation: float-blob 14s ease-in-out infinite;
}

.hero-blob--2 {
    width: 320px;
    height: 320px;
    background: var(--color-purple-light);
    bottom: -80px;
    right: -60px;
    animation: float-blob 18s ease-in-out infinite reverse;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.15); }
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
    background: var(--color-purple-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--color-purple);
    border-radius: 999px;
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-base), color var(--transition-base);
}

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

/* ---------- Generic sections ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.product-card__image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--color-purple-dark);
    margin-bottom: 0.5rem;
}

.product-card__excerpt {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-section {
    background: var(--color-black);
    color: var(--color-white);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form label {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-purple);
}

.contact-form button {
    margin-top: 1.5rem;
    align-self: flex-start;
    border: none;
}

/* Honeypot - visually hidden but present in DOM for bots to fill */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.contact-info a {
    color: var(--color-purple-light);
    text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.form-notice {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-notice--success { background: #14532d; color: #bbf7d0; }
.form-notice--error,
.form-notice--rate_limited { background: #7f1d1d; color: #fecaca; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-blob { animation: none; }
    .fade-in-section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
