/* ==========================================
   D'Oliver Cleaning - Professional Website
   Author: UltraAgency
   ========================================== */

/* === CSS RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Purple Theme matching reference */
    --primary-purple: #7b2cbf;
    --primary-purple-dark: #5a189a;
    --primary-purple-light: #9d4edd;
    --accent-purple: #c77dff;
    --light-purple: #e0aaff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(123, 44, 191, 0.2);
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* === UTILITY CLASSES === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-call {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-call:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-sms {
    background: var(--primary-purple-light);
    color: var(--white);
}

.btn-sms:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
}

.btn-referral {
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-purple));
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px 40px;
}

.btn-referral:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.slide-up:nth-child(1) { animation-delay: 0.1s; }
.slide-up:nth-child(2) { animation-delay: 0.2s; }
.slide-up:nth-child(3) { animation-delay: 0.3s; }
.slide-up:nth-child(4) { animation-delay: 0.4s; }
.slide-up:nth-child(5) { animation-delay: 0.5s; }

/* === HEADER / NAVBAR === */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.social-icons a i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-icons a:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-3px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('/assets/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(123, 44, 191, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
}

/* Hero Form */
.hero-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.estimate-form h3 {
    color: var(--primary-purple-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-purple);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-submit:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

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

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


/* === ABOUT SECTION === */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 50px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-purple-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

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

/* === SERVICES SECTION === */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-gray);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-purple);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-purple-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* === RECURRING PLANS SECTION === */
.recurring-plans {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.plan-card.featured {
    border-color: var(--primary-purple);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--primary-purple-dark);
    margin-bottom: 10px;
}

.plan-discount {
    background: var(--accent-purple);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.plan-price {
    margin: 25px 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.1rem;
    margin-right: 10px;
}

.discounted-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple-dark);
}

.per-clean {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.plan-features li {
    padding: 8px 0;
    color: var(--dark-gray);
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

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

.plans-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* === FAQ SECTION === */
.faq {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-purple-dark);
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-purple);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question:hover i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    background: var(--light-gray);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-answer.active {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-purple-light) 0%, var(--accent-purple) 100%);
    border-radius: 20px;
    color: var(--white);
}

.faq-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* === STATS SECTION === */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-purple-dark), var(--primary-purple));
    color: var(--white);
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.stats-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* === GALLERY SECTION === */
.gallery {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16/10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-purple);
    width: 30px;
    border-radius: 6px;
}

/* === REVIEWS SECTION === */
.reviews {
    padding: var(--section-padding);
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.review-text {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--primary-purple);
}

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

/* === REFERRAL SECTION === */
.referral {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--accent-purple) 100%);
}

.referral-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.referral-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
}

.referral-title {
    font-size: 2.5rem;
    color: var(--primary-purple-dark);
    margin-bottom: 20px;
}

.referral-text {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 35px;
    line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h3 {
    color: var(--primary-purple-dark);
    margin-bottom: 5px;
}

.contact-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.contact-link:hover {
    color: var(--primary-purple-dark);
}

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

/* === FOOTER === */
.footer {
    background: var(--primary-purple-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent-purple);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.footer-social a i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.85;
    margin-bottom: 5px;
}

.footer-credit a {
    color: var(--accent-purple);
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-5px);
}

/* === RESPONSIVE DESIGN === */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navbar */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-icons {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* About */
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact */
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-form-wrapper {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px; /* Slightly more padding for better touch targets */
    }

    /* Specific fixes for iOS date input */
    .form-group input[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-height: 48px; /* Minimum touch target size */
        max-width: 100%;
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Improve touch targets on mobile */
    .btn {
        min-height: 48px;
        padding: 14px 20px;
    }

    /* Ensure form elements don't overflow on small screens */
    .hero-form-wrapper {
        overflow-x: hidden;
    }

    /* Fix for iOS Safari form input styling */
    input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
        border-radius: 4px;
        margin-right: 2px;
        opacity: 0.6;
        filter: invert(0.8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .referral-title {
        font-size: 1.8rem;
    }
    
    .referral-text {
        font-size: 1rem;
    }
    
    .contact-link {
        font-size: 1.4rem;
    }
}

/* Very Small Devices (320px) */
@media (max-width: 320px) {
    .logo img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Print Optimization */
@media print {
    .navbar,
    .hamburger,
    .scroll-top,
    .carousel-btn,
    .btn {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 50px 0;
    }
}

