/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #2a7d6b;       /* Warm teal – trust & calm */
    --primary-light: #e8f5f2;
    --primary-dark: #1e5a4d;
    --secondary: #f8b84a;     /* Warm gold – friendly & approachable */
    --accent: #d4573b;        /* Warm terracotta – calls to action */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== GLOBAL RESET & BASE ===== */
body {
    font-family: var(--font-body);
    color: #2d3748;
    background-color: #f9fbf9;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, .heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.navbar-brand i {
    color: var(--secondary);
}
.nav-link {
    font-weight: 500;
    color: #2d3748 !important;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
}
.nav-link.active {
    background-color: var(--primary);
    color: white !important;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 125, 107, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}
.btn-accent:hover {
    background-color: #b8432f;
    border-color: #b8432f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 87, 59, 0.35);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 0 4rem;
    border-bottom: 6px solid var(--secondary);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}
.hero .btn-light {
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.hero .btn-light:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* ===== SERVICES CARDS ===== */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(42, 125, 107, 0.12);
    border-color: var(--primary-light);
}
.service-card i {
    font-size: 2.8rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}
.service-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    height: 100%;
}
.testimonial-card .stars {
    color: var(--secondary);
    letter-spacing: 2px;
    font-size: 1.1rem;
}
.testimonial-card .client-name {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== SECTION HEADERS ===== */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-subtitle {
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 125, 107, 0.15);
}
.contact-form .form-label {
    font-weight: 500;
    color: #2d3748;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a2a2a !important;
}
.footer a:hover {
    color: var(--secondary) !important;
    text-decoration: underline !important;
}
.footer .social-icons a {
    display: inline-block;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}
.footer .social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
    .section-title::after {
        left: 0;
        transform: none;
    }
    .service-card {
        padding: 1.5rem;
    }
}

/* ===== UTILITY HELPERS ===== */
.text-primary {
    color: var(--primary) !important;
}
.bg-primary-light {
    background-color: var(--primary-light);
}
.text-secondary {
    color: var(--secondary) !important;
}
.border-secondary {
    border-color: var(--secondary) !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(42, 125, 107, 0.15);
    border-color: var(--primary);
}

/* Service Image Wrapper */
.service-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--primary-light);
    position: relative;
    flex-shrink: 0;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Icon Placeholder (when no image) */
.service-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}

.service-icon-placeholder i {
    opacity: 0.8;
}

/* Service Content */
.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.service-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.service-content .btn-outline-primary {
    align-self: flex-start;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
}

.service-content .btn-link {
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-bottom: 4px solid var(--secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--primary-light);
    border-top: 1px solid #dee2e6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-image-wrapper {
        height: 180px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .service-image-wrapper {
        height: 200px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
}

/* ===== HOW IT WORKS / GET STARTED ===== */
.how-it-works {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    position: relative;
    overflow: hidden;
}

/* Optional: Add subtle background decoration */
.how-it-works::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 125, 107, 0.05), transparent);
    border-radius: 50%;
    z-index: 0;
}

/* Step Card */
.step-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem;
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(42, 125, 107, 0.12);
    border-color: var(--primary);
}

/* Connector line between steps (desktop only) */
.step-card::after {
    content: '';
    position: absolute;
    top: 30%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    display: none;
}

@media (min-width: 992px) {
    .step-card:not(:last-child)::after {
        display: block;
    }
}

/* Step Number Circle */
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(42, 125, 107, 0.35);
    border: 3px solid white;
}

/* Step Icon */
.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: var(--primary);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: white;
}

/* Step Text */
.step-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.step-description a {
    text-decoration: none;
}

.step-card .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .step-card {
        padding: 2rem 1.25rem;
    }
    
    .step-card::after {
        display: none !important;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        top: -18px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    background: #f8f9fa;
}

/* Contact Form */
.contact-form-wrapper {
    border: 1px solid #e9ecef;
}

.contact-form-wrapper .section-title {
    font-size: 1.75rem;
}

/* Contact Info Items */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(42, 125, 107, 0.12) !important;
}

/* Business Hours Table */
.contact-hours {
    border: 1px solid #e9ecef;
}

.contact-hours table td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* Map */
.map-container {
    border: 1px solid #e9ecef;
}

.map-container iframe {
    display: block;
}

/* Social Icons in Contact */
.contact-social .btn-outline-primary {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.contact-social .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(42, 125, 107, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .map-container {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-item {
        padding: 1rem !important;
    }
    
    .contact-hours table td {
        font-size: 0.85rem;
    }
}


/* ===== SERVICE DETAIL PAGE ===== */

/* Service Header */
.service-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-bottom: 4px solid var(--secondary);
}

.service-header .breadcrumb {
    font-size: 0.9rem;
}

.service-header .breadcrumb-item a:hover {
    text-decoration: underline !important;
}

/* Service Featured Image */
.service-featured-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Benefit Items */
.benefit-item {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(42, 125, 107, 0.08);
}

/* What to Expect */
.what-to-expect-content {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
}

/* FAQ Accordion */
.accordion-item .accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none !important;
}

.accordion-item .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
}

.accordion-item .accordion-button:focus {
    box-shadow: none;
}

.accordion-item .accordion-body {
    padding: 1.25rem;
    color: #4a5568;
    background: white;
}

/* Sidebar Cards */
.sidebar-card {
    border: 1px solid #e9ecef;
}

.sidebar-card .hover-bg-light:hover {
    background: var(--primary-light);
}

.sidebar-card .hover-bg-light {
    transition: background 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .service-header {
        text-align: center;
    }
    
    .service-header .breadcrumb {
        justify-content: center;
    }
    
    .service-featured-image img {
        max-height: 250px;
    }
    
    .benefit-item {
        padding: 1rem !important;
    }
}

/* ===== LOGIN PAGE ===== */
.login-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-wrapper {
    border: 1px solid #e9ecef;
}

.login-wrapper .input-group-text {
    border-right: none;
}

.login-wrapper .form-control {
    border-left: none;
}

/* ===== ADMIN SIDEBAR ===== */
.sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 2px 8px;
}

.sidebar .nav-link:hover {
    background: rgba(42, 125, 107, 0.08);
    color: var(--primary);
}

.sidebar .nav-link.active {
    background: var(--primary);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* ===== STATS ICONS ===== */
.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ADMIN TABLES ===== */
.table td {
    vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
    }
}

/* Dashboard Stats */
.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-opacity-10 {
    opacity: 0.1;
}

/* Quick Actions */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Add to static/css/style.css */
.legal-content {
    background: #f8f9fa;
}

.legal-content .card {
    border-radius: 12px;
}

.legal-content h2 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
}

.legal-content h5 {
    color: var(--primary);
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content hr {
    opacity: 0.3;
    margin: 2rem 0;
}