/* Spectacular Sleep-Themed Styles for INeedToSleep.net */
:root {
    --deep-navy: #0a0e27;
    --purple: #6b46c1;
    --lavender: #a78bfa;
    --soft-gold: #f6e05e;
    --text-light: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #8b5cf6;
}

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

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

.disclaimer-banner {
    background: #7c2d12;
    color: #fed7aa;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--soft-gold);
    text-decoration: none;
}

.logo span {
    color: var(--lavender);
    font-size: 1.2rem;
}

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

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--soft-gold);
}

.hero {
    height: 100vh;
    background: url('images/hero-night.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,14,39,0.4) 0%, rgba(10,14,39,0.85) 100%);
}

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    animation: fadeInUp 1.2s ease;
}

.hero-sub {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.4s ease;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--soft-gold);
    color: var(--soft-gold);
}

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

.section {
    padding: 5rem 0;
}

.intro, .tips-section, .natural-section, .meds-section, .contact-section {
    background: linear-gradient(180deg, var(--deep-navy) 0%, #1a1f4e 100%);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--soft-gold);
}

.section-lead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.feature-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 16px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cards-grid, .product-grid, .meds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card, .product-card, .med-card {
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover, .product-card:hover, .med-card:hover {
    transform: translateY(-8px);
    border-color: var(--lavender);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.warning-box {
    background: rgba(220, 38, 38, 0.15);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

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

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--soft-gold);
    box-shadow: 0 0 0 3px rgba(246, 224, 94, 0.2);
}

.hidden {
    display: none;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

footer {
    background: #050714;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero {
        height: 80vh;
    }
    h2 {
        font-size: 2.2rem;
    }
}

/* Subtle star particles effect via CSS */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, white, transparent),
                      radial-gradient(2px 2px at 40px 70px, white, transparent),
                      radial-gradient(1px 1px at 90px 40px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 4s infinite alternate;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
}