/*
 * ZenChise Website Stylesheet
 * Dark theme with vibrant accents and responsive cards
 */

/* Colour palette */
:root {
    --bg-color: #0a0e23;      /* Deep navy background */
    --card-bg: #11163a;       /* Slightly lighter card background */
    --accent: #7f5af0;        /* Primary accent (purple) */
    --accent-alt: #2cb67d;    /* Secondary accent (green) */
    --text-color: #eef2f9;    /* Light text colour */
    --muted-text: #b1b5d3;    /* Subtle secondary text */
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-alt);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 14, 35, 0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.logo {
    height: 42px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 0.75rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

/* CTA button in header */
.cta-button button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button button:hover {
    background: var(--accent-alt);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 22px;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu open state */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero section */
.hero {
    padding: 10rem 2rem 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top right, #5b5eda 0%, #302e58 100%);
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--muted-text);
}

.hero .cta {
    background: #fff;
    color: var(--accent);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero .cta:hover {
    background: var(--accent-alt);
    color: #fff;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.section p {
    margin-bottom: 1.5rem;
    color: var(--muted-text);
    text-align: center;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--accent);
    text-align: center;
}

.card p,
.card li {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.5;
}

/* Lists inside cards */
ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-text);
}

.footer a {
    color: var(--accent);
    margin: 0 0.5rem;
}

.footer a:hover {
    color: var(--accent-alt);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text-color);
}

form input,
form textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: #11163a;           /* dark input background */
    color: #fff !important;        /* force white text in inputs */
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Placeholder styling */
form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

form button {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: var(--accent-alt);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(17, 22, 58, 0.98);
        display: none;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.75rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .hero {
        padding-top: 8rem;
    }
}
