@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;600;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
    --ej3-primary: #15803d;
    --ej3-secondary: #166534;
    --ej3-accent: #e11d48;
    --ej3-background: #f0fdf4;
    --ej3-text-color: #14532d;
    --ej3-muted-text: #86efac;
    --ej3-white: #ffffff;
    --ej3-black: #000000;
    --ej3-border-radius: 8px;
    --ej3-shadow-light: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    --ej3-shadow-medium: rgba(0, 0, 0, 0.15) 0px 8px 24px;
    --ej3-transition-speed: 0.3s;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: var(--ej3-text-color);
    background-color: var(--ej3-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--ej3-accent);
    color: var(--ej3-white);
}

a {
    color: var(--ej3-primary);
    text-decoration: none;
    transition: color var(--ej3-transition-speed) ease;
}

a:hover {
    color: var(--ej3-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', sans-serif;
    color: var(--ej3-secondary);
    line-height: 1.2;
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    letter-spacing: -0.03em;
    color: var(--ej3-primary);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h4 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ej3-muted-text);
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
}

strong {
    font-weight: 700;
}

/* Utility Classes */
.rx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rx-grid {
    display: grid;
    gap: 1.5rem;
}

.rx-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.rx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--ej3-border-radius);
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all var(--ej3-transition-speed) ease;
    text-decoration: none;
    text-align: center;
}

.rx-button-primary {
    background-color: var(--ej3-primary);
    color: var(--ej3-white);
    box-shadow: var(--ej3-shadow-light);
}

.rx-button-primary:hover {
    background-color: var(--ej3-secondary);
    box-shadow: var(--ej3-shadow-medium);
    transform: translateY(-2px);
}

.rx-button-secondary {
    background-color: var(--ej3-accent);
    color: var(--ej3-white);
    box-shadow: var(--ej3-shadow-light);
}

.rx-button-secondary:hover {
    background-color: #c01a3a;
    box-shadow: var(--ej3-shadow-medium);
    transform: translateY(-2px);
}

.rx-button-outline {
    background-color: transparent;
    color: var(--ej3-primary);
    border: 2px solid var(--ej3-primary);
}

.rx-button-outline:hover {
    background-color: var(--ej3-primary);
    color: var(--ej3-white);
}

/* Section Spacing & Backgrounds */
.rx-section {
    padding: 5rem 0;
    position: relative;
}

.rx-section:nth-of-type(even) {
    background-color: rgba(var(--ej3-primary), 0.03);
}

.rx-section-heading {
    margin-bottom: 3rem;
    text-align: center;
}

.rx-section-heading h2 {
    margin-bottom: 0.5rem;
}

/* Header & Navigation */
.rx-header {
    background-color: var(--ej3-white);
    padding: 1rem 0;
    box-shadow: var(--ej3-shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rx-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rx-logo {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ej3-primary);
}

.rx-logo span {
    color: var(--ej3-secondary);
}

.rx-nav-menu {
    display: flex;
    gap: 2rem;
}

.rx-nav-menu a {
    color: var(--ej3-text-color);
    font-weight: 600;
    transition: color var(--ej3-transition-speed) ease;
    padding: 0.5rem 0;
    position: relative;
}

.rx-nav-menu a:hover {
    color: var(--ej3-primary);
}

.rx-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--ej3-primary);
    transition: width var(--ej3-transition-speed) ease;
}

.rx-nav-menu a:hover::after {
    width: 100%;
}

.rx-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.rx-hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--ej3-primary);
    border-radius: 2px;
    transition: all var(--ej3-transition-speed) ease;
}

.rx-nav-mobile {
    display: none;
}

/* Hero Section */
.rx-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(21, 128, 61, 0.8), rgba(22, 101, 52, 0.8)), url('https://loremflickr.com/1400/800/diy%2Ccraft/all?lock=2040783094') no-repeat center center/cover;
    color: var(--ej3-white);
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.rx-hero-content {
    max-width: 800px;
}

.rx-hero-content h1 {
    color: var(--ej3-white);
    margin-bottom: 1rem;
}

.rx-hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.rx-hero-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-medium);
    text-align: left;
    margin-top: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rx-hero-form-wrapper h3 {
    color: var(--ej3-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form Styling */
.rx-form-group {
    margin-bottom: 1.5rem;
}

.rx-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ej3-secondary);
}

.rx-form-group input[type="text"], 
.rx-form-group input[type="email"], 
.rx-form-group input[type="tel"], 
.rx-form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--ej3-muted-text);
    border-radius: var(--ej3-border-radius);
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: var(--ej3-text-color);
    background-color: var(--ej3-white);
    transition: border-color var(--ej3-transition-speed) ease, box-shadow var(--ej3-transition-speed) ease;
}

.rx-form-group input:focus, .rx-form-group textarea:focus {
    border-color: var(--ej3-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ej3-primary), 0.2);
}

.rx-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.rx-form-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

.rx-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--ej3-border-radius);
    text-align: center;
    font-weight: 600;
}

.rx-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rx-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Why Choose Us / Features */
.rx-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rx-feature-card {
    background-color: var(--ej3-white);
    padding: 2rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-light);
    text-align: center;
    transition: transform var(--ej3-transition-speed) ease, box-shadow var(--ej3-transition-speed) ease;
}

.rx-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ej3-shadow-medium);
}

.rx-feature-card i {
    font-size: 3rem;
    color: var(--ej3-primary);
    margin-bottom: 1rem;
}

.rx-feature-card h3 {
    color: var(--ej3-secondary);
    margin-bottom: 0.8rem;
}

/* FAQ Section */
.rx-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.rx-faq-item {
    background-color: var(--ej3-white);
    margin-bottom: 1rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-light);
    overflow: hidden;
    transition: all var(--ej3-transition-speed) ease;
}

.rx-faq-q {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ej3-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fcf9;
    border-bottom: 1px solid var(--ej3-background);
}

.rx-faq-q:hover {
    background-color: #e6f7e8;
}

.rx-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--ej3-primary);
    transition: transform var(--ej3-transition-speed) ease;
}

.rx-faq-item.active .rx-faq-q::after {
    content: '-';
    transform: rotate(180deg);
}

.rx-faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ej3-transition-speed) ease;
    color: var(--ej3-text-color);
}

.rx-faq-item.active .rx-faq-a {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

/* Benefits Checkmarks */
.rx-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rx-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--ej3-white);
    padding: 1.5rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-light);
}

.rx-benefit-item i {
    font-size: 1.8rem;
    color: var(--ej3-primary);
    flex-shrink: 0;
}

.rx-benefit-item h4 {
    margin-bottom: 0.5rem;
    color: var(--ej3-secondary);
}

/* Objection Handling / How It Works */
.rx-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.rx-step-card {
    background-color: var(--ej3-white);
    padding: 2rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-light);
    position: relative;
    text-align: center;
    transition: transform var(--ej3-transition-speed) ease, box-shadow var(--ej3-transition-speed) ease;
}

.rx-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ej3-shadow-medium);
}

.rx-step-card::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ej3-accent);
    color: var(--ej3-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--ej3-shadow-light);
    border: 3px solid var(--ej3-background);
}

.rx-step-card h3 {
    margin-top: 1.5rem; /* Space for the counter */
    margin-bottom: 0.8rem;
    color: var(--ej3-secondary);
}

/* Call to Action */
.rx-cta-section {
    background: linear-gradient(90deg, var(--ej3-primary) 0%, var(--ej3-secondary) 100%);
    color: var(--ej3-white);
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--ej3-border-radius);
    margin: 3rem auto;
    max-width: 1000px;
}

.rx-cta-section h2 {
    color: var(--ej3-white);
    margin-bottom: 1.5rem;
}

.rx-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rx-cta-section .rx-button {
    background-color: var(--ej3-accent);
    color: var(--ej3-white);
}

.rx-cta-section .rx-button:hover {
    background-color: #c01a3a;
}

/* Testimonials */
.rx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rx-testimonial-card {
    background-color: var(--ej3-white);
    padding: 2rem;
    border-radius: var(--ej3-border-radius);
    box-shadow: var(--ej3-shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--ej3-transition-speed) ease, box-shadow var(--ej3-transition-speed) ease;
}

.rx-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ej3-shadow-medium);
}

.rx-testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--ej3-text-color);
    position: relative;
    padding-left: 1.5rem;
}

.rx-testimonial-card blockquote::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    left: 0;
    top: -10px;
    color: var(--ej3-muted-text);
    line-height: 1;
}

.rx-testimonial-author {
    font-weight: 700;
    color: var(--ej3-secondary);
    margin-top: auto;
}

.rx-testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--ej3-muted-text);
}

/* Trust Badges / Guarantees */
.rx-trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.rx-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(var(--ej3-primary), 0.1);
    border-radius: 50px;
    font-weight: 600;
    color: var(--ej3-secondary);
    font-family: 'Work Sans', sans-serif;
}

.rx-trust-badge i {
    font-size: 1.5rem;
    color: var(--ej3-primary);
}

/* Footer */
.rx-footer {
    background-color: var(--ej3-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0;
    font-size: 0.95rem;
}

.rx-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.rx-footer-col h4 {
    color: var(--ej3-white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.rx-footer-col ul {
    padding: 0;
    list-style: none;
}

.rx-footer-col ul li {
    margin-bottom: 0.8rem;
}

.rx-footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--ej3-transition-speed) ease;
}

.rx-footer-col ul li a:hover {
    color: var(--ej3-white);
    text-decoration: underline;
}

.rx-footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.rx-footer-social-links a {
    color: var(--ej3-white);
    font-size: 1.5rem;
}

.rx-footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.rx-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.rx-animate.rx-animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rxFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rx-container {
        padding: 0 1rem;
    }

    .rx-nav-menu {
        gap: 1.5rem;
    }

    .rx-hero {
        min-height: 70vh;
    }

    .rx-hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .rx-hero-content p {
        font-size: 1.1rem;
    }

    .rx-section {
        padding: 4rem 0;
    }

    .rx-trust-badges {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .rx-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--ej3-white);
        box-shadow: var(--ej3-shadow-medium);
        padding: 1rem 0;
        border-bottom-left-radius: var(--ej3-border-radius);
        border-bottom-right-radius: var(--ej3-border-radius);
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        z-index: 999;
    }

    .rx-nav-menu.rx-active {
        display: flex;
        max-height: 300px; /* Max height for dropdown */
        opacity: 1;
    }

    .rx-nav-menu a {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid var(--ej3-background);
    }

    .rx-nav-menu a:last-child {
        border-bottom: none;
    }

    .rx-hamburger {
        display: flex;
    }

    .rx-section {
        padding: 3rem 0;
    }

    .rx-hero {
        min-height: 60vh;
    }

    .rx-hero-form-wrapper {
        padding: 2rem;
    }

    .rx-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rx-trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .rx-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .rx-hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .rx-hero-content p {
        font-size: 1rem;
    }

    .rx-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .rx-section {
        padding: 2.5rem 0;
    }

    .rx-feature-card, .rx-benefit-item, .rx-step-card, .rx-testimonial-card {
        padding: 1.5rem;
    }

    .rx-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rx-footer-social-links {
        justify-content: center;
    }

    .rx-trust-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}


/* === Quality polish === */
@keyframes rxFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rx-animate { opacity: 0; }
.rx-animate.rx-visible { animation: rxFadeInUp 0.6s ease forwards; }