/* Custom theme styling for The Healthy Ayurveda
   -------------------------------------------------- */

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

/* Scroll Animations CSS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Sticky Header Customization */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(254, 250, 224, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.1);
    padding: 0.2rem 0;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .header-right {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
}

/* Custom Navigation Styling */
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Custom Premium Buttons */
.btn-ayurveda {
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.15);
}

.btn-ayurveda:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.2);
}

.btn-ayurveda-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2);
}

.btn-ayurveda-accent:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.25);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right, rgba(254, 250, 224, 0.4) 0%, rgba(254, 250, 224, 0.95) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(26, 77, 46, 0.2);
    border: 5px solid rgba(212, 163, 115, 0.3);
    animation: morph 8s ease-in-out infinite alternate;
}

.hero-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; }
}

/* About / Intro Section */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.about-img-wrapper {
    position: relative;
    padding-right: 20px;
}

.about-img-wrapper img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 70%;
    height: 70%;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

/* Benefits Section (Cards Grid) */
.benefits-section {
    padding: 100px 0;
    background-color: var(--bg-sand);
    position: relative;
}

.benefit-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 163, 115, 0.15);
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 77, 46, 0.08);
    border-color: var(--accent-color);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.benefit-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(212, 163, 115, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon-box {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Why Choose Us Section */
.why-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.why-card {
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-left-color: var(--primary-color);
    padding-left: 2rem;
}

.why-badge {
    background-color: rgba(26, 77, 46, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* Testimonial Section */
.testimonial-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(26, 77, 46, 0.04);
    border: 1px solid rgba(212, 163, 115, 0.1);
    position: relative;
}

.testimonial-card::after {
    content: '“';
    position: absolute;
    top: 10px;
    right: 25px;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(212, 163, 115, 0.15);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

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

.testimonial-info h5 {
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Block / WPForms Override */
.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #11331e 100%);
    border-radius: 24px;
    padding: 4rem;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(26, 77, 46, 0.25);
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.contact-card h2, .contact-card h3 {
    color: #ffffff;
}

/* WPForms Form Elements Stylings Override */
div.wpforms-container {
    margin: 0 !important;
}

div.wpforms-container .wpforms-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

div.wpforms-container .wpforms-field-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

div.wpforms-container .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    clear: none !important;
}

div.wpforms-container label.wpforms-field-label {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.5rem !important;
}

div.wpforms-container input[type=text],
div.wpforms-container input[type=email],
div.wpforms-container input[type=tel],
div.wpforms-container textarea,
div.wpforms-container select {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 0.85rem 1.2rem !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    transition: var(--transition-smooth) !important;
}

div.wpforms-container input:focus,
div.wpforms-container textarea:focus,
div.wpforms-container select:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-color) !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.25) !important;
}

div.wpforms-container textarea {
    height: 120px !important;
    resize: none !important;
}

/* Placeholder Colors */
div.wpforms-container input::placeholder,
div.wpforms-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* WPForms Submit Button Styling */
div.wpforms-container .wpforms-submit-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 0 !important;
    text-align: left !important;
}

div.wpforms-container button.wpforms-submit {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--accent-color) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    padding: 0.85rem 2.5rem !important;
    border-radius: 50px !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2) !important;
}

div.wpforms-container button.wpforms-submit:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15) !important;
}

/* WPForms Confirmation Messages and Validation Alert Overrides */
div.wpforms-container .wpforms-confirmation-container-outer {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(212, 163, 115, 0.3) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    color: #ffffff !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    margin-top: 1.5rem !important;
}

label.wpforms-error {
    color: #ff8585 !important;
    font-size: 0.85rem !important;
    margin-top: 0.35rem !important;
    display: block !important;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-image-wrapper img {
        height: 380px;
    }
    .contact-card {
        padding: 2.5rem;
    }
    .about-img-wrapper {
        margin-bottom: 2.5rem;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* Premium Human-Crafted Animations & Inner Page Styling */
.btn-ayurveda {
    animation: pulse-gold 3s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 163, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0);
    }
}

/* Card Transitions Override */
.benefit-card, .why-card, .testimonial-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.12) !important;
}

.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.08) !important;
    border-color: rgba(212, 163, 115, 0.3) !important;
}

/* Inner Page Banner & Navigation Styles */
.page-banner {
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(212, 163, 115, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
    content: "•" !important;
}

/* Soft corner floating herb leaf animation in background of sections */
.benefits-section::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="rgba(212, 163, 115, 0.15)" stroke-width="1"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v-1.07zM17.9 10.09C17.47 7.02 14.82 4.67 11.6 4.1L9 7.6C9.57 8.35 10 9.27 10 10.27c0 .73-.3 1.38-.79 1.87l3.79 3.79c1.92-1.28 3.51-3.21 4.9-5.84z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: leaf-float 6s ease-in-out infinite alternate;
}

@keyframes leaf-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) rotate(8deg);
    }
}
