/*
Theme Name: LavHari - Jyotish Pandit
Theme URI: https://adhikarivivek.com.np
Author: Vivek Adhikari
Author URI: https://adhikarivivek.com.np
Description: A premium WordPress theme for Astrologers (Jyotish) and Vedic scholars. Designed by Vivek Adhikari.
Version: 1.2.0
Text Domain: lavhari
*/

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

:root {
    --primary-saffron: #D2691E;
    --secondary-maroon: #4a1414;
    /* Deep, authoritative maroon */
    --accent-gold: #C5A021;
    /* Rich antique bronze-gold */
    --bg-light: #FFFBF7;
    /* Soft, warm parchment background */
    --card-bg: #FFFFFF;
    /* High-contrast white for clean hierarchy */
    --card-border: rgba(74, 20, 20, 0.08);
    /* More subtle, respectful border */
    --text-dark: #2d241f;
    --text-muted: #6b5d52;
    --btn-text: #4a1414;
    /* Maroon text for gold buttons for premium contrast */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(210, 105, 30, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(210, 105, 30, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid var(--primary-saffron);
    /* Thicker saffron border for definition */
    margin-bottom: 20px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-maroon);
    /* Logo looks more professional in deep maroon */
    letter-spacing: -0.5px;
    text-decoration: none;
    font-style: normal;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    text-transform: capitalize;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-saffron);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--primary-saffron);
}

.nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, var(--accent-gold));
    /* Vibrant yet sophisticated saffron-gold */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--secondary-maroon) !important;
    /* Critical fix: Maroon text for readability */
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1 !important;
    padding: 0 !important;
    box-shadow: 0 4px 15px rgba(197, 160, 33, 0.2);
}

.nav-cta:hover {
    transform: scale(1.1);
}

.nav-cta::after {
    display: none !important;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    min-height: 600px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 64px;
    /* Scaled up for power */
    font-weight: normal;
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--secondary-maroon);
    /* Strong maroon titles for authority */
    text-shadow: none;
}

.hero-content h1 strong {
    display: block;
    font-weight: bold;
    color: var(--primary-saffron);
    /* Saffron highlights the key keyword */
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    /* More generous premium sizing */
    background: linear-gradient(135deg, #f59e0b, var(--accent-gold));
    color: var(--secondary-maroon);
    /* Critical fix: Maroon text for maximum readability */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    /* Bolder weight for luxury look */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(197, 160, 33, 0.25);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.8s ease-out 0.2s backwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-placeholder,
.hero-image-container {
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 115, 85, 0.2));
    border: 2px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-saffron);
    border-radius: 50%;
    opacity: 0.3;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Services Grid */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(212, 175, 55, 0.05) 100%);
    margin-bottom: 40px;
}

.services-title {
    text-align: center;
    margin-bottom: 60px;
}

.services-title h2 {
    font-size: 48px;
    color: var(--secondary-maroon);
    font-weight: normal;
    margin-bottom: 20px;
}

.services-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 5px solid var(--primary-saffron);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.35s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: rgba(139, 115, 85, 0.5);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-saffron), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.service-card h3 {
    font-size: 24px;
    color: var(--accent-warm);
    margin-bottom: 15px;
    font-weight: normal;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: #fff;
    border: 8px solid #fff;
    /* White inner frame */
    outline: 2px solid var(--primary-saffron);
    /* Saffron outer frame */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 48px;
    color: var(--secondary-maroon);
    margin-bottom: 25px;
    font-weight: normal;
}

.about-content p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-list {
    list-style: none;
    margin: 30px 0;
}

.about-list li {
    color: var(--text-muted);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
}

.about-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-saffron);
    font-size: 18px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    margin-top: 60px;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-title h2 {
    font-size: 48px;
    color: var(--secondary-maroon);
    margin-bottom: 20px;
    font-weight: normal;
}

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

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(139, 115, 85, 0.5);
    transform: translateY(-8px);
}

.stars {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--secondary-maroon);
    font-weight: bold;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 115, 85, 0.1));
    border-radius: 20px;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 48px;
    color: var(--secondary-maroon);
    margin-bottom: 25px;
    font-weight: normal;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    font-size: 13px;
    /* Slightly smaller for premium look */
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, var(--accent-gold));
    color: var(--secondary-maroon);
    border: none;
    box-shadow: 0 8px 25px rgba(197, 160, 33, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(197, 160, 33, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-maroon);
    border: 2px solid var(--secondary-maroon);
}

.btn-secondary:hover {
    background: var(--secondary-maroon);
    color: #fff;
    box-shadow: 0 10px 25px rgba(74, 20, 20, 0.15);
}

/* Footer Styling */
footer.site-footer {
    background: #FFF8F3;
    /* Match warm theme instead of dark */
    border-top: 2px solid var(--primary-saffron);
    padding: 80px 0 40px;
    margin-top: 80px;
    color: var(--text-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--secondary-maroon);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-saffron);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-saffron), var(--accent-gold));
    color: #fff;
    border-color: var(--primary-saffron);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Simple class-based Fade In */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Blog Posts styling override */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-left: 5px solid var(--primary-saffron);
    /* Match service card */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 20, 20, 0.08);
}

.post-content {
    padding: 2rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--secondary-maroon);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-navigation ul {
        gap: 20px;
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-image-placeholder,
    .hero-image-container {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-title h2,
    .about-content h2,
    .testimonials-title h2 {
        font-size: 32px;
    }
}