/* ========================================================================== */
/* Tender Wisdom 2025 - Cosmic Night Sky Theme */
/* ========================================================================== */

/* Color Variables */
:root {
    --primary-dark: #0f0820;     /* Deep cosmic purple */
    --primary-medium: #2d1b69;   /* Royal purple */
    --primary-light: #4a31a3;    /* Mystical purple */
    --accent-gold: #ffd700;      /* Celestial gold */
    --accent-silver: #c0c0c0;    /* Moonlight silver */
    --text-light: #e6e6fa;       /* Lavender mist */
    --background: #f8f6ff;       /* Ethereal white */
    --card-bg: #ffffff;          /* Pure white for cards */
    --border-mystical: #d4c5ff;  /* Soft lavender border */
}

/* Base */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--primary-dark);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-silver);
    text-shadow: 0 0 8px var(--accent-gold);
}

/* Header */
header {
    background-color: rgba(248, 246, 255, 0.95);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(15, 8, 32, 0.1);
    backdrop-filter: blur(10px);
}

.logo a {
    color: var(--primary-medium);
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
    text-align: center;
    padding: 120px 20px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(192, 192, 192, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

button.cta {
    background: linear-gradient(45deg, var(--accent-gold), #ffed4a);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    color: var(--primary-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
button.cta:hover {
    background: linear-gradient(45deg, #ffed4a, var(--accent-gold));
    box-shadow: 0 0 20px var(--accent-gold), 0 8px 25px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 20px;
    background-color: var(--background);
    color: var(--primary-dark);
}

/* Cards */
.services-grid .service-card,
.posts-container .post-card,
.testimonial-grid .testimonial-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-mystical);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(15, 8, 32, 0.05);
}

.services-grid .service-card:hover,
.posts-container .post-card:hover,
.testimonial-grid .testimonial-card:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 0 50px rgba(45, 27, 105, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

/* Grids */
.services-grid,
.posts-container,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Subheadings */
h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-medium);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

/* Newsletter */
.newsletter {
    text-align: center;
}

.newsletter input[type="email"] {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-mystical);
    width: 250px;
    background-color: var(--card-bg);
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.newsletter button.cta {
    margin-left: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 70% 70%, rgba(192, 192, 192, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

footer p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

footer .social-icons {
    position: relative;
    z-index: 1;
}

footer .social-icons a {
    color: var(--accent-gold);
    margin: 0 10px;
    font-size: 1.6rem;
    transition: all 0.3s ease-in-out;
}

footer .social-icons a:hover {
    color: var(--accent-silver);
    text-shadow: 0 0 15px var(--accent-gold), 0 0 30px var(--accent-gold);
    transform: scale(1.2);
}

/* Mega Menu */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav li {
    position: relative;
}
nav li a {
    display: block;
    padding: 10px 15px;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}
nav li:hover > a {
    color: var(--primary-medium);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    min-width: 250px;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(15, 8, 32, 0.3);
}

.sub-menu a {
    color: var(--text-light) !important;
}

.sub-menu a:hover {
    color: var(--accent-gold) !important;
}

li:hover > .sub-menu {
    display: block;
}

.mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary-dark);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 991px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(248, 246, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        border-radius: 0 0 10px 10px;
        backdrop-filter: blur(10px);
    }
    nav li {
        width: 100%;
    }
    nav li a {
        padding: 10px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    nav ul.active {
        display: flex;
    }
    .sub-menu {
        position: relative;
        padding-left: 20px;
        background: var(--primary-medium);
    }
    .sub-menu li a {
        padding: 8px 20px;
        color: var(--text-light);
    }
    .sub-menu.active {
        display: flex !important;
        flex-direction: column;
    }
    li.has-submenu > a::after {
        content: " ?";
        float: right;
        color: var(--accent-gold);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .newsletter input[type="email"] {
        width: 200px;
        margin-bottom: 10px;
    }
    
    .newsletter button.cta {
        margin-left: 0;
    }
}

/* Sticky footer support */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
body > footer {
    margin-top: auto;
}