/*
Theme Name: Crossing Over with Dez
Description: A compassionate online sanctuary for spiritual mediumship, grief guidance, and personal spiritual development. Features purple branding, modern design, and grief companion AI functionality.
Version: 1.0.0
Author: Crossing Over with Dez
Tags: spiritual, mediumship, grief, healing, purple, modern
Text Domain: crossing-over-with-dez
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Brand Colors */
:root {
    --brand-50: #f5f3ff;
    --brand-100: #ede9fe;
    --brand-200: #ddd6fe;
    --brand-300: #c4b5fd;
    --brand-400: #a78bfa;
    --brand-500: #8b5cf6;
    --brand-600: #7c3aed;
    --brand-700: #6d28d9;
    --brand-800: #5b21b6;
    --brand-900: #4c1d95;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* Typography */
.font-serif {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

.font-sans {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

/* Ethereal Gradient Background */
.ethereal-gradient {
    background: linear-gradient(135deg, #f5f3ff 0%, #e0f2fe 50%, #fdf4ff 100%);
}

/* Navigation Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    letter-spacing: 0.05em;
}

.logo-tagline {
    color: var(--brand-600);
    font-weight: 400;
    font-size: 1rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link.active {
    color: var(--brand-700);
    background-color: var(--brand-50);
}

.nav-link:not(.active) {
    color: var(--slate-600);
}

.nav-link:not(.active):hover {
    color: var(--brand-600);
    background-color: var(--slate-50);
}

.book-now-btn {
    background-color: var(--brand-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-now-btn:hover {
    background-color: var(--brand-700);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: white;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 0 4rem;
    background-color: white;
    max-width: 50%;
    width: 100%;
}

.hero-svg {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 12rem;
    color: white;
    transform: translateX(50%);
}

.hero-main {
    margin-top: 2.5rem;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--brand-50);
    color: var(--brand-600);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--slate-900);
    font-family: Georgia, serif;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title-accent {
    color: var(--brand-600);
}

.hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    color: var(--slate-500);
    font-weight: 300;
    max-width: 36rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: white;
    background-color: var(--brand-600);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background-color: var(--brand-700);
}

.hero-btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: var(--brand-700);
    background-color: var(--brand-100);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background-color: var(--brand-200);
}

.hero-image-container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, white, transparent, transparent);
}

/* Service Cards */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-header {
    display: flex;
    align-items: center;
}

.service-icon {
    flex-shrink: 0;
}

.service-icon-wrapper {
    padding: 0.75rem;
    background-color: var(--brand-100);
    border-radius: 50%;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand-600);
}

.service-title {
    margin-left: 1rem;
}

.service-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-900);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-600);
}

.service-description {
    margin-top: 1rem;
    color: var(--slate-600);
}

.service-features {
    margin-top: 1rem;
    list-style: none;
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.service-feature svg {
    width: 1rem;
    height: 1rem;
    color: var(--brand-500);
    margin-right: 0.5rem;
}

.service-cta {
    margin-top: 1.5rem;
}

.service-btn {
    width: 100%;
    background-color: var(--brand-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: var(--brand-700);
}

/* Chat Interface */
.chat-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--slate-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-width: 64rem;
    margin: 2rem auto;
}

.chat-header {
    background: linear-gradient(to right, var(--brand-500), #60a5fa);
    padding: 1rem;
    color: white;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-icon {
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.chat-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-subtitle {
    font-size: 0.75rem;
    color: var(--brand-100);
    opacity: 0.9;
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--slate-50);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    width: 100%;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-bubble.user {
    background-color: var(--brand-600);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble.ai {
    background-color: white;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-bottom-left-radius: 0.25rem;
}

.chat-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.chat-time {
    font-size: 0.625rem;
    display: block;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.chat-time.user {
    color: var(--brand-100);
    text-align: right;
}

.chat-time.ai {
    color: var(--slate-400);
}

.chat-input-area {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--slate-100);
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.chat-input {
    width: 100%;
    resize: none;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-300);
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    color: var(--slate-700);
    background-color: var(--slate-50);
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--brand-500);
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 1px var(--brand-500);
}

.chat-send-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0.5rem;
    background-color: var(--brand-600);
    color: white;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background-color: var(--brand-700);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-disclaimer {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.5rem;
    text-align: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 12rem;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-600);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0.5rem 0;
}

.blog-excerpt {
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    color: var(--slate-600);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    margin-left: 0.75rem;
}

.testimonial-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-900);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.25rem;
}

.form-input {
    padding: 0.75rem 1rem;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-300);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--brand-500);
    outline: none;
    box-shadow: 0 0 0 1px var(--brand-500);
}

.form-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: var(--brand-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: var(--brand-700);
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--slate-200);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 1rem;
    overflow: hidden;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.footer-link {
    font-size: 1rem;
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--slate-900);
}

.footer-copyright {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.copyright-text {
    color: var(--slate-400);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

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

    .form-group.full-width {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero-main {
        margin-top: 4rem;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

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

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

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

@media (min-width: 1024px) {
    .hero-svg {
        display: block;
    }

    .hero-main {
        margin-top: 5rem;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

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

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

@media (min-width: 1280px) {
    .hero-main {
        margin-top: 7rem;
    }
}

/* Utility Classes */
.section {
    padding: 4rem 1rem;
}

.section-white {
    background-color: white;
}

.section-brand {
    background-color: var(--brand-50);
}

.section-cta {
    background-color: var(--brand-700);
    color: white;
}

.max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.max-w-2xl {
    max-width: 42rem;
    margin: 0 auto;
}

.hidden {
    display: none;
}

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

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes typing {
    0%, 60% { opacity: 0; }
    30% { opacity: 1; }
}

.typing-dots {
    animation: typing 1.4s infinite;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection */
::selection {
    background-color: var(--brand-200);
    color: var(--brand-900);
}