:root {
    --primary-color: #f37121;   /* brand orange (visible accents, nav, etc.) */
    --secondary-color: #4f8991;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Stronger brand shades for AA with white text where needed */
    --primary-strong: #8a3a07;        /* deeper brand orange */
    --primary-strong-hover: #742f06;  /* hover/focus state */
    --secondary-strong: #22545b;      /* deeper teal */
    --secondary-strong-hover: #18464d;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: #d85a0a; }

.btn {
    border-radius: 5px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Primary buttons = AA with white text */
.btn-primary {
    background-color: var(--primary-strong);
    border-color: var(--primary-strong);
    color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-strong-hover);
    border-color: var(--primary-strong-hover);
    color: #ffffff;
}

/* Secondary buttons (teal) = AA with white text */
.btn-secondary {
    background-color: var(--secondary-strong);
    border-color: var(--secondary-strong);
    color: #ffffff;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-strong-hover);
    border-color: var(--secondary-strong-hover);
    color: #ffffff;
}

/* Outline primary = readable on white in default state */
.btn-outline-primary {
    color: var(--primary-strong);
    border-color: var(--primary-strong);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-strong);
    border-color: var(--primary-strong);
    color: #ffffff;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* Keep brand for backgrounds; ensure text you place over it is readable */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.section-padding { padding: 80px 0; }

.section-title { margin-bottom: 50px; text-align: center; }

.section-title h2 {
    font-weight: 700;
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
    text-transform: capitalize;
}
.section-title h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px; height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 25px);
}

/* Improve contrast of section subtitles (Lighthouse) */
.section-title p {
    font-size: 18px;
    color: #495057; /* darker than #6c757d for ≥4.5:1 on white */
}

/* Header Styles */
.top-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    font-size: 14px;
}

.social-links .social-link {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 14px;
}
.social-links .social-link:hover { color: var(--primary-color); }

.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand, .logo-text {
    font-weight: 700;
    font-size: 24px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 10px 15px !important;
}
.nav-link:hover,
.nav-link.active { color: var(--primary-color); }

.header-buttons .btn { padding: 8px 20px; }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.hero-title { font-size: 48px; font-weight: 700; margin-bottom: 20px; }

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    max-width: 700px;
    margin: 0 auto 30px;
    background: var(--white-color);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.search-input {
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    width: 100%;
}
.search-input:focus { outline: none; box-shadow: none; }

.search-btn { padding: 15px 30px; border-radius: 50px; }

/* Hero Category Buttons */
.hero-categories { margin-top: 30px; }

.hero-category-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}
.hero-category-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Category Section */
.category-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
.category-card:before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.category-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.category-card:hover:before { transform: scaleX(1); }

.category-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
    background-color: rgba(243, 113, 33, 0.1);
    width: 80px; height: 80px; line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: rotateY(360deg);
}

.category-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }

.category-count {
    color: var(--gray-color);
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.05);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
}

/* Service Cards */
.service-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }

.service-img { height: 200px; overflow: hidden; }
.service-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.1); }

.service-body { padding: 20px; }

/* Default badge uses brand background; text color can be set inline via PHP helper */
.service-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--primary-color);
    margin-bottom: 10px;
}

.service-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-title a { color: var(--dark-color); }
.service-title a:hover { color: var(--primary-color); }

.service-location { color: var(--gray-color); font-size: 14px; margin-bottom: 15px; }

.service-price { font-size: 20px; font-weight: 700; color: var(--primary-color); }
.service-vendor { font-size: 14px; color: var(--gray-color); }

.service-rating { color: var(--warning-color); margin-right: 5px; }

/* How It Works Section */
.how-it-works { background-color: var(--light-color); }

.step-box {
    text-align: center;
    padding: 30px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
.step-box:before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}
.step-box:hover:before { transform: scaleY(1); }

.step-number {
    width: 60px; height: 60px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
    margin: 0 auto 20px;
}

.step-title { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.step-description { color: var(--gray-color); }

/* Testimonials Section */
.testimonial-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}
.testimonial-text { font-style: italic; margin-bottom: 20px; position: relative; }
.testimonial-text:before {
    content: '\201C';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute; top: -20px; left: -10px;
}
.testimonial-author { display: flex; align-items: center; }
.testimonial-author img {
    width: 50px; height: 50px; border-radius: 50%;
    margin-right: 15px; object-fit: cover;
}
.testimonial-name { font-weight: 600; margin-bottom: 0; }
.testimonial-role { color: var(--gray-color); font-size: 14px; }

/* Footer Styles */
.footer {
    background-color: #222;
    color: #adb5bd;
    padding: 70px 0 20px;
}
.footer-brand { margin-bottom: 30px; }
.social-links { margin-bottom: 30px; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-link:hover { background-color: var(--primary-color); color: var(--white-color); }

.footer-heading {
    color: var(--white-color);
    font-size: 18px; font-weight: 600;
    margin-bottom: 25px; position: relative; padding-bottom: 10px;
}
.footer-heading:after {
    content: '';
    position: absolute; display: block;
    width: 30px; height: 2px;
    background: var(--primary-color);
    bottom: 0; left: 0;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #adb5bd; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.footer-contact li i { color: var(--primary-color); margin-right: 10px; margin-top: 5px; }
.footer-contact li a { color: #adb5bd; }
.footer-contact li a:hover { color: var(--primary-color); }

.footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 30px 0; }
.footer-bottom { padding-top: 20px; }

.footer-bottom-links { list-style: none; padding: 0; margin: 0; }
.footer-bottom-links li { display: inline-block; margin-left: 20px; }
.footer-bottom-links a { color: #adb5bd; font-size: 14px; }
.footer-bottom-links a:hover { color: var(--primary-color); }

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .header-buttons { margin-top: 15px; }
}
@media (max-width: 767px) {
    .hero-section { padding: 100px 0 70px; }
    .hero-title { font-size: 30px; }
    .search-form { border-radius: 10px; }
    .search-input { border-radius: 10px; margin-bottom: 10px; }
    .search-btn { width: 100%; border-radius: 10px; }
    .footer-bottom { text-align: center; }
    .footer-bottom-links { margin-top: 15px; }
    .footer-bottom-links li { margin: 0 10px; }
}

/* Authentication Pages */
.auth-section {
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
    display: flex; align-items: center;
}
.auth-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.auth-header { margin-bottom: 30px; }
.auth-header h2 { font-weight: 700; margin-bottom: 10px; color: var(--dark-color); }
.auth-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, 0.1); }

.user-type-toggle { width: 100%; margin-bottom: 20px; }
.user-type-toggle .btn { width: 50%; padding: 12px; font-size: 16px; }

.password-toggle { z-index: 10; }

.form-label { font-weight: 500; margin-bottom: 8px; }
.input-group-text { background-color: #f8f9fa; border-right: none; }
.input-group .form-control { border-left: none; }
.input-group .form-control:focus { box-shadow: none; border-color: #ced4da; }
.input-group .form-control:focus + .input-group-text { border-color: #ced4da; }

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-to-top {
    position: fixed; bottom: 25px; right: 25px;
    width: 40px; height: 40px;
    background: var(--primary-strong);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top:hover { background: var(--primary-strong-hover); }
.back-to-top.active { opacity: 1; visibility: visible; }

/* Page Header (brand gradient). If white text sits on it, keep your overlay in HTML/CSS as done on hero */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d85a0a 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}
.page-title { font-size: 42px; font-weight: 700; margin-bottom: 15px; }
.page-subtitle { font-size: 18px; opacity: 0.9; }

/* About Page Styles */
.about-image { position: relative; padding-right: 30px; padding-bottom: 30px; }
.about-image img { border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

.experience-badge {
    position: absolute; bottom: 0; right: 0;
    width: 150px; height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.experience-badge .years { font-size: 48px; font-weight: 700; line-height: 1; }
.experience-badge .text { font-size: 16px; text-align: center; margin-top: 5px; }

.about-content .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.about-content .title { font-size: 36px; font-weight: 700; margin-bottom: 20px; color: var(--dark-color); }
.about-content .description { font-size: 18px; margin-bottom: 20px; color: var(--gray-color); }

.about-stats { margin-top: 40px; }
.stat-item { text-align: center; margin-bottom: 20px; }
.stat-number { font-size: 36px; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.stat-text { font-size: 16px; color: var(--gray-color); margin-bottom: 0; }

.mission-card, .vision-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}
.mission-card:hover, .vision-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }

.card-icon {
    width: 80px; height: 80px;
    background: rgba(243, 113, 33, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--primary-color);
    margin-bottom: 25px;
}
.mission-card h3, .vision-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--dark-color); }
.mission-card p, .vision-card p { font-size: 16px; color: var(--gray-color); margin-bottom: 0; }

.values-section .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
}
.values-section .title {
    font-size: 36px; font-weight: 700; margin-bottom: 20px; color: var(--dark-color);
    text-align: center;
}
.values-section .description { font-size: 18px; color: var(--gray-color); text-align: center; }

.value-card {
    background: white; border-radius: 15px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}
.value-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }

.value-icon {
    width: 70px; height: 70px;
    background: rgba(243, 113, 33, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--primary-color);
    margin: 0 auto 20px;
}
.value-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: var(--dark-color); }
.value-card p { font-size: 16px; color: var(--gray-color); margin-bottom: 0; }

.rounded-4 { border-radius: 15px; }

/* Contact Page Styles */
.contact-section { position: relative; }

.contact-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3e6b72 100%);
    padding: 40px; border-radius: 15px; color: white; height: 100%;
}
.contact-info h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; margin-bottom: 25px; }
.contact-icon {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-right: 15px;
}
.contact-text h5 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.contact-text p { margin-bottom: 0; opacity: 0.9; }
.contact-text a { color: white; text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }

.contact-social h5 { font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.contact-social .social-links { display: flex; }
.contact-social .social-link {
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; margin-right: 10px; transition: all 0.3s ease;
}
.contact-social .social-link:hover { background: var(--primary-color); transform: translateY(-3px); }

.contact-form-card {
    background: white; border-radius: 15px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.contact-form-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; color: var(--dark-color); }

.form-label { font-weight: 500; color: var(--dark-color); }
.form-control { padding: 12px 15px; border-radius: 8px; border: 1px solid #e0e0e0; }
.form-control:focus { box-shadow: none; border-color: var(--primary-color); }

.map-container { height: 450px; width: 100%; }
.map-container iframe { width: 100%; height: 100%; }

/* Pricing Page Styles */
.pricing-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease; height: 100%; position: relative;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }
.pricing-popular { border: 2px solid var(--primary-color); transform: scale(1.05); }
.pricing-popular:hover { transform: translateY(-10px) scale(1.05); }

.popular-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--primary-color); color: white;
    padding: 5px 15px; border-radius: 30px; font-size: 14px; font-weight: 500;
}

.pricing-header {
    background: #f8f9fa; padding: 30px; text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.pricing-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: var(--dark-color); }
.pricing-price { margin-bottom: 15px; }
.currency { font-size: 24px; font-weight: 500; vertical-align: top; position: relative; top: 10px; }
.amount { font-size: 60px; font-weight: 700; color: var(--primary-color); line-height: 1; }
.period { font-size: 16px; color: var(--gray-color); }
.pricing-subtitle { font-size: 16px; color: var(--gray-color); }
.pricing-body { padding: 30px; }

.pricing-features { list-style: none; padding: 0; margin: 0 0 30px; }
.pricing-features li { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i { margin-right: 10px; width: 20px; text-align: center; }
.pricing-features .fa-check { color: #28a745; }
.pricing-features .fa-times { color: #dc3545; }

.pricing-footer { text-align: center; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3e6b72 100%);
    color: white;
}
.cta-title { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.cta-text { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* Accordion Styles */
.accordion-item {
    margin-bottom: 15px; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.accordion-button { font-weight: 600; padding: 20px; }
.accordion-button:not(.collapsed) {
    background-color: rgba(243, 113, 33, 0.1);
    color: var(--primary-color);
}
.accordion-button:focus { box-shadow: none; border-color: rgba(0, 0, 0, 0.1); }
.accordion-body { padding: 20px; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .page-title { font-size: 36px; }
    .about-content .title { font-size: 30px; }
    .experience-badge { width: 120px; height: 120px; }
    .experience-badge .years { font-size: 36px; }
    .experience-badge .text { font-size: 14px; }
}
@media (max-width: 767px) {
    .page-header { padding: 60px 0; }
    .page-title { font-size: 30px; }
    .about-image { padding-right: 20px; padding-bottom: 20px; }
    .experience-badge { width: 100px; height: 100px; }
    .experience-badge .years { font-size: 30px; }
    .experience-badge .text { font-size: 12px; }
    .contact-form-card, .mission-card, .vision-card { padding: 25px; }
}

/* Utilities: visually-hidden and focus-visible */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* Prefer focus-visible to avoid outlines on mouse click */
:focus-visible {
    outline: 3px solid var(--primary-strong);
    outline-offset: 2px;
}

/* Skip link base */
.skip-to-content {
    position: absolute;
    left: 0; top: -40px;
    padding: 8px 12px;
    background: var(--primary-strong);
    color: #fff;
    z-index: 10000;
    transition: top .2s ease;
}
.skip-to-content:focus { top: 0; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================
   Final contrast patch (AA)
   ============================ */

/* Stronger brand shades used ONLY where needed */
:root {
  --primary-strong: #8a3a07;        /* deeper orange, AA with white */
  --primary-strong-hover: #742f06;  /* hover/focus */
}

/* Primary buttons: white text on solid fill (Book Now, Sign Up as Vendor, Accept All) */
.btn-primary,
a.btn.btn-primary,
.btn.btn-primary.btn-lg,
.cookie-consent-banner .btn-primary {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
.btn.btn-primary.btn-lg:hover,
.btn.btn-primary.btn-lg:focus,
.cookie-consent-banner .btn-primary:hover,
.cookie-consent-banner .btn-primary:focus {
  background-color: var(--primary-strong-hover) !important;
  border-color: var(--primary-strong-hover) !important;
  color: #ffffff !important;
}

/* Outline primary on white (View All Services) */
.btn-outline-primary,
a.btn.btn-outline-primary {
  color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
a.btn.btn-outline-primary:hover,
a.btn.btn-outline-primary:focus {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}

/* ============================
   Final targeted contrast fixes
   ============================ */

/* Cookie banner buttons on dark background */
.cookie-consent-banner .btn-outline-primary,
#cookieConsentBanner .btn-outline-primary {
  color: #ffffff !important;         /* readable on dark banner */
  border-color: #ffffff !important;
  background-color: transparent !important;
}
.cookie-consent-banner .btn-outline-primary:hover,
.cookie-consent-banner .btn-outline-primary:focus,
#cookieConsentBanner .btn-outline-primary:hover,
#cookieConsentBanner .btn-outline-primary:focus {
  background-color: #ffffff !important;
  color: #2c3e50 !important;         /* banner bg color */
  border-color: #ffffff !important;
}

/* Ensure cookie primary button (Accept All) stays AA */
.cookie-consent-banner .btn-primary,
#cookieConsentBanner .btn-primary {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}
.cookie-consent-banner a,
#cookieConsentBanner a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* No-results alert: keep strong contrast for text and button */
.no-results h2 { color: #212529 !important; }      /* dark heading on white */
.no-results p  { color: #495057 !important; }      /* readable body text */
.no-results .btn-primary {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}
/* ============================
   AA Contrast Patch – About Page
   Place at very end of style.css
   ============================ */

/* 1) Experience badge: ensure white text meets AA by using strong brand background */
.about-story .experience-badge,
.experience-badge {
  background-color: var(--primary-strong) !important; /* #8a3a07 */
  color: #ffffff !important;
}

/* Ensure the inner text stays white and readable */
.about-story .experience-badge .years,
.about-story .experience-badge .text,
.experience-badge .years,
.experience-badge .text {
  color: #ffffff !important;
}

/* 2) Section subtitles: use stronger brand shade on white backgrounds */
.about-content .subtitle,
.values-section .subtitle {
  color: var(--primary-strong) !important; /* #8a3a07 */
  letter-spacing: 2px; /* keep visual affordance */
}

/* 3) Body/descriptive copy: ensure strong readable text */
.about-content .description,
.values-section .description,
.about-story .description {
  color: #333333 !important; /* ≥ 12:1 on white */
}

/* 4) Stats highlight color: use strong brand shade for AA over white */
.about-stats .stat-number {
  color: var(--primary-strong) !important;
}

/* 5) Links inside content: underline + strong color for non-color affordance and AA */
.about-content a,
.values-section a {
  color: var(--primary-strong) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* 6) Optional: About header gradient – deepen to guarantee AA with white headings
   Uncomment if Lighthouse flags the header again. This targets the About header only by label id. */
/*
section.page-header[aria-labelledby="page-title"] {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary-strong-hover) 100%) !important;
}
*/


/* ============================
   AA Contrast Patch – About Page
   ============================ */

/* 1) Experience badge: ensure white text sits on an AA-compliant brand shade */
.about-story .experience-badge,
.experience-badge {
  background-color: var(--primary-strong) !important; /* #8a3a07 */
  color: #ffffff !important;
}
.about-story .experience-badge .years,
.about-story .experience-badge .text,
.experience-badge .years,
.experience-badge .text {
  color: #ffffff !important;
}

/* 2) Subtitles (e.g., FOR CUSTOMERS, WHAT WE STAND FOR): darker brand color for AA on white */
.about-content .subtitle,
.values-section .subtitle {
  color: var(--primary-strong) !important; /* #8a3a07 */
}

/* 3) Descriptive body copy: use strong text color for AA (vs #6c757d on #f9f9f9) */
.about-content .description,
.values-section .description,
.about-story .description {
  color: #333333 !important;
}

/* 4) Stats highlight: use stronger brand shade for AA on white */
.about-stats .stat-number {
  color: var(--primary-strong) !important;
}

/* 5) Links in content: underline + strong color for non-color affordance and AA */
.about-content a,
.values-section a {
  color: var(--primary-strong) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* 6) Optional: deepen About header gradient if Lighthouse flags header contrast */
section.page-header[aria-labelledby="page-title"] .page-title,
section.page-header[aria-labelledby="page-title"] .page-subtitle {
  color: #ffffff !important;
}
/* ============================
   AA Contrast Patch – Pricing + FAQ
   Place at the end of style.css
   ============================ */

/* ---- Pricing page ---- */

/* Ensure all key headings/descriptions use strong readable text on white */
.pricing-section .section-title,
.pricing-section .section-description,
.pricing-faq .section-title,
.pricing-faq .section-description {
  color: #333333 !important;
}

/* Badges: keep white text on AA-compliant brand background */
.pricing-badge,
.popular-badge {
  background-color: var(--primary-strong) !important;  /* #8a3a07 */
  color: #ffffff !important;
  border-color: var(--primary-strong) !important;
}

/* Pricing features list text (avoid too-light grays) */
.pricing-features li {
  color: #333333 !important;
}

/* Free price (dark green) is already high contrast on white.
   If you ever need to enforce: uncomment next line. */
/* .free-price { color: #1e7e34 !important; } */

/* ---- FAQ page ---- */

/* Tabs: use strong brand shade for active/hover and readable default */
.faq-tabs .nav-link {
  color: #333333 !important; /* default tab color on white */
}
.faq-tabs .nav-link:hover,
.faq-tabs .nav-link.active {
  color: var(--primary-strong) !important;              /* #8a3a07 */
  border-bottom-color: var(--primary-strong) !important;
}

/* Accordion headers: strong readable text; open state uses strong brand */
.faq-accordion .accordion-button {
  color: #333333 !important;
  background-color: #ffffff !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-strong) !important;              /* #8a3a07 */
  background-color: #ffffff !important;
}

/* Links inside FAQ are underlined and AA */
.faq-accordion a {
  color: var(--primary-strong) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Optional (keeps FAQ header always AA with white text)
   Enable if Lighthouse flags header again */
/*
section.page-header[aria-labelledby="faq-page-title"] {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary-strong-hover) 100%) !important;
}
section.page-header[aria-labelledby="faq-page-title"] .page-title,
section.page-header[aria-labelledby="faq-page-title"] .page-subtitle {
  color: #ffffff !important;
}
*/

/* ============================
   AA Contrast Patch – Pricing FAQ only
   ============================ */

/* Closed and open states both keep readable text; open uses strong brand text on white bg */
.pricing-faq .accordion-button {
  color: #333333 !important;
  background-color: #ffffff !important;
}

.pricing-faq .accordion-button:not(.collapsed) {
  color: var(--primary-strong) !important;         /* #8a3a07 */
  background-color: #ffffff !important;            /* keep white to guarantee contrast */
  border-bottom: 1px solid #e9ecef;                /* subtle separation */
}

/* Optional: add a left accent when open instead of tinting background */
.pricing-faq .accordion-item {
  overflow: hidden;
}
.pricing-faq .accordion-button:not(.collapsed) {
  box-shadow: inset 4px 0 0 0 var(--primary-strong); /* visual affordance without hurting contrast */
}

/* Caret color matches strong brand for open state */
.pricing-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238a3a07'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
/* ============================
   AA Contrast Patch – Copyright Policy
   ============================ */

/* 1) Page header: deepen background so white text passes AA */
section.page-header {
  background: linear-gradient(135deg, var(--primary-strong, #8a3a07) 0%, var(--primary-strong-hover, #742f06) 100%) !important;
}
section.page-header .page-title,
section.page-header .page-subtitle {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* 2) Links must be AA and have non-color affordance (underline) */
.policy-content a,
.policy-note a {
  color: var(--primary-strong, #8a3a07) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 600;
}
.policy-content a:focus-visible,
.policy-note a:focus-visible {
  outline: 3px solid var(--primary-strong, #8a3a07) !important;
  outline-offset: 2px;
}

/* 3) Ensure body text is sufficiently dark on light backgrounds */
.policy-content,
.policy-note {
  color: #333333 !important;
}

/* 4) Circular policy icon: use deeper brand so white icon text is AA */
.policy-icon {
  background-color: var(--primary-strong, #8a3a07) !important;
  color: #ffffff !important;
}

/* 5) Optional: strengthen the left accent in note without harming contrast */
.policy-note {
  border-left-color: var(--secondary-strong, #22545b) !important;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .policy-icon,
  .policy-card,
  .policy-note {
    border: 1px solid CanvasText;
  }
}
/* ============================
   Final AA patch for policy-note link
   ============================ */

/* Ensure strong brand shade for links in the note box (and underline for non-color affordance) */
.policy-section .policy-note a,
.policy-section .policy-note a:link,
.policy-section .policy-note a:visited {
  color: var(--primary-strong, #8a3a07) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Hover/focus use the strong hover tone */
.policy-section .policy-note a:hover,
.policy-section .policy-note a:focus,
.policy-section .policy-note a:active {
  color: var(--primary-strong-hover, #742f06) !important;
}

/* Make sure note text itself is sufficiently dark */
.policy-section .policy-note {
  color: #333333 !important;
}

/* If your page header still uses light orange anywhere, keep it AA with deep gradient */
section.page-header {
  background: linear-gradient(135deg, var(--primary-strong, #8a3a07) 0%, var(--primary-strong-hover, #742f06) 100%) !important;
}
section.page-header .page-title,
section.page-header .page-subtitle {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Safety: Icons use deep brand so white glyphs are AA */
.policy-icon {
  background-color: var(--primary-strong, #8a3a07) !important;
  color: #ffffff !important;
}
/* ============================
   AA Contrast Patch – Register CTAs
   ============================ */

/* Customer CTA: deep teal + white text */
.join-btn-customer {
  background-color: var(--secondary-strong) !important;   /* #22545b */
  border-color: var(--secondary-strong) !important;
  color: #ffffff !important;
}
.join-btn-customer:hover,
.join-btn-customer:focus {
  background-color: var(--secondary-strong-hover) !important;  /* #18464d */
  border-color: var(--secondary-strong-hover) !important;
  color: #ffffff !important;
}

/* Vendor CTA: deep orange + white text */
.join-btn-vendor {
  background-color: var(--primary-strong) !important;     /* #8a3a07 */
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}
.join-btn-vendor:hover,
.join-btn-vendor:focus {
  background-color: var(--primary-strong-hover) !important;     /* #742f06 */
  border-color: var(--primary-strong-hover) !important;
  color: #ffffff !important;
}

/* Optional: ensure the headers that use gradients remain AA with white text */
.join-option-customer .join-option-header {
  background: linear-gradient(135deg, var(--secondary-strong) 0%, var(--secondary-strong-hover) 100%) !important;
  color: #ffffff !important;
}
.join-option-vendor .join-option-header {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary-strong-hover) 100%) !important;
  color: #ffffff !important;
}
.join-option-header .join-title,
.join-option-header .join-subtitle { color: #ffffff !important; }
/* ============================
   FINAL AA CONTRAST OVERRIDE – REGISTER CTAs
   These selectors use high specificity + !important to beat earlier rules
   ============================ */

/* Customer CTA: deep teal + white */
section.join-section .btn.join-btn-customer,
section.join-section button.btn.join-btn-customer,
section.join-section .join-option .join-option-body .d-grid .btn.join-btn-customer {
  background-color: #22545b !important; /* AA on white with white text */
  border-color: #22545b !important;
  color: #ffffff !important;
}
section.join-section .btn.join-btn-customer:hover,
section.join-section .btn.join-btn-customer:focus,
section.join-section .btn.join-btn-customer:active {
  background-color: #18464d !important;
  border-color: #18464d !important;
  color: #ffffff !important;
}

/* Vendor CTA: deep orange + white */
section.join-section .btn.join-btn-vendor,
section.join-section button.btn.join-btn-vendor,
section.join-section .join-option .join-option-body .d-grid .btn.join-btn-vendor {
  background-color: #8a3a07 !important; /* AA on white with white text */
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
section.join-section .btn.join-btn-vendor:hover,
section.join-section .btn.join-btn-vendor:focus,
section.join-section .btn.join-btn-vendor:active {
  background-color: #742f06 !important;
  border-color: #742f06 !important;
  color: #ffffff !important;
}

/* Make sure focus outline is clearly visible */
section.join-section .btn.join-btn-customer:focus-visible,
section.join-section .btn.join-btn-vendor:focus-visible {
  outline: 3px solid #742f06 !important;
  outline-offset: 2px !important;
}
/* ============================
   AA Contrast + Link Affordance Patch – Login
   ============================ */

/* 1) Buttons: use deep, AA-compliant brand shades */
.login-options-section .btn-primary {
  background-color: #8a3a07 !important;   /* strong orange */
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
.login-options-section .btn-primary:hover,
.login-options-section .btn-primary:focus {
  background-color: #742f06 !important;   /* hover/focus */
  border-color: #742f06 !important;
  color: #ffffff !important;
}

.login-options-section .btn-secondary {
  background-color: #22545b !important;   /* strong teal */
  border-color: #22545b !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary:hover,
.login-options-section .btn-secondary:focus {
  background-color: #18464d !important;   /* hover/focus */
  border-color: #18464d !important;
  color: #ffffff !important;
}

/* 2) Links: do not rely on color alone. Underline non-button links */
.login-option-card a:not(.btn) {
  color: #8a3a07 !important;              /* strong brand shade for AA */
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 600;
}
.login-option-card a:not(.btn):hover,
.login-option-card a:not(.btn):focus {
  color: #742f06 !important;
}

/* 3) Clear, visible focus outline */
.login-options-section a:focus-visible,
.login-options-section button:focus-visible {
  outline: 3px solid #8a3a07 !important;
  outline-offset: 2px !important;
}
/* ============================
   Final AA + Non-color Affordance for Sign Up links
   ============================ */

/* Underline and darken non-button links inside the cards */
section.login-options-section .login-option-card p a:not(.btn),
section.login-options-section .login-option-card .mb-0 a:not(.btn),
section.login-options-section .login-option-card a.link-underline {
  color: #8a3a07 !important;                 /* AA-strong brand color */
  text-decoration: underline !important;     /* non-color cue */
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
}
section.login-options-section .login-option-card p a:not(.btn):hover,
section.login-options-section .login-option-card .mb-0 a:not(.btn):hover,
section.login-options-section .login-option-card a.link-underline:hover {
  color: #742f06 !important;
}

/* Keep button-style anchors as buttons (already AA with strong colors) */
section.login-options-section .login-option-card a.btn {
  text-decoration: none !important;
}

/* Ensure button contrast is AA */
.login-options-section .btn-primary {
  background-color: #8a3a07 !important;
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
.login-options-section .btn-primary:hover,
.login-options-section .btn-primary:focus {
  background-color: #742f06 !important;
  border-color: #742f06 !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary {
  background-color: #22545b !important;
  border-color: #22545b !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary:hover,
.login-options-section .btn-secondary:focus {
  background-color: #18464d !important;
  border-color: #18464d !important;
  color: #ffffff !important;
}
/* ============================
   FINAL OVERRIDES – AA contrast + non-color affordance
   Place at the very END of the page's
   ============================ */

/* Buttons: AA-safe deep brand shades + !important to beat earlier/global rules */
.login-options-section .btn-primary {
  background-color: #8a3a07 !important;  /* strong orange */
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
.login-options-section .btn-primary:hover,
.login-options-section .btn-primary:focus {
  background-color: #742f06 !important;
  border-color: #742f06 !important;
  color: #ffffff !important;
}

.login-options-section .btn-secondary {
  background-color: #22545b !important;  /* strong teal */
  border-color: #22545b !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary:hover,
.login-options-section .btn-secondary:focus {
  background-color: #18464d !important;
  border-color: #18464d !important;
  color: #ffffff !important;
}

/* Links (non-button) must be underlined and AA-colored (beats global a{text-decoration:none}) */
section.login-options-section .login-option-card a:not(.btn),
section.login-options-section .login-option-card .link-underline {
  color: #8a3a07 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
}
section.login-options-section .login-option-card a:not(.btn):hover,
section.login-options-section .login-option-card .link-underline:hover {
  color: #742f06 !important;
}
/* ============================
   FINAL OVERRIDES – AA contrast + non-color affordance
   Keep this as the LAST block in style.css
   ============================ */

/* Register page CTAs */
section.join-section .btn.join-btn-customer,
section.join-section button.btn.join-btn-customer,
section.join-section .join-option .join-option-body .d-grid .btn.join-btn-customer {
  background-color: #22545b !important; /* deep teal */
  border-color: #22545b !important;
  color: #ffffff !important;
}
section.join-section .btn.join-btn-customer:hover,
section.join-section .btn.join-btn-customer:focus,
section.join-section .btn.join-btn-customer:active {
  background-color: #18464d !important;
  border-color: #18464d !important;
  color: #ffffff !important;
}

section.join-section .btn.join-btn-vendor,
section.join-section button.btn.join-btn-vendor,
section.join-section .join-option .join-option-body .d-grid .btn.join-btn-vendor {
  background-color: #8a3a07 !important; /* deep orange */
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
section.join-section .btn.join-btn-vendor:hover,
section.join-section .btn.join-btn-vendor:focus,
section.join-section .btn.join-btn-vendor:active {
  background-color: #742f06 !important;
  border-color: #742f06 !important;
  color: #ffffff !important;
}

/* Login page buttons: enforce AA-safe deep brand shades */
.login-options-section .btn-primary {
  background-color: #8a3a07 !important;
  border-color: #8a3a07 !important;
  color: #ffffff !important;
}
.login-options-section .btn-primary:hover,
.login-options-section .btn-primary:focus {
  background-color: #742f06 !important;
  border-color: #742f06 !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary {
  background-color: #22545b !important;
  border-color: #22545b !important;
  color: #ffffff !important;
}
.login-options-section .btn-secondary:hover,
.login-options-section .btn-secondary:focus {
  background-color: #18464d !important;
  border-color: #18464d !important;
  color: #ffffff !important;
}

/* Login page: links must be underlined (don’t rely on color) */
section.login-options-section .login-option-card a:not(.btn),
section.login-options-section .login-option-card .link-underline {
  color: #8a3a07 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
}
section.login-options-section .login-option-card a:not(.btn):hover,
section.login-options-section .login-option-card .link-underline:hover {
  color: #742f06 !important;
}

/* Only button-style anchors keep no underline */
section.login-options-section .login-option-card a.btn {
  text-decoration: none !important;
}

/* Ensure >= 4.5:1 */
.service-category,
.badge-tag {
  background-color: #d45500; /* darker orange */
  color: #ffffff;
}
.badge-tag.outline { border-color: #7a2d00; color: #7a2d00; } /* outline variant */
/* AA contrast fix: navbar active/hover states */
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--primary-strong) !important;       /* #8a3a07 */
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* AA contrast fix: category count pill */
.category-card .category-count {
  color: #333333 !important;                     /* Dark text for ≥4.5:1 */
  background-color: #e9ecef !important;          /* Subtle pill that preserves contrast */
}

/* --- Accessibility: Homepage Category Cards (AA contrast) --- */

/* Make category titles AA-compliant on white */
.category-card .category-title {
  /* Use your deep brand shade that passes AA vs white */
  color: var(--primary-strong) !important; /* #8a3a07 */
}

/* Improve contrast of the “X Services Available” pill */
.category-card .category-count {
  color: #333333 !important;        /* Dark text for ≥4.5:1 on light bg */
  background-color: #e9ecef !important; /* Subtle, higher-contrast pill */
}

/* Optional: If the icon’s orange is too faint on certain backgrounds,
   use a slightly deeper orange for the glyph. The circle bg is decorative. */
.category-card .category-icon {
  color: #d45500 !important; /* darker orange for stronger visibility */
}

/* --- Accessibility: "How it works" AA contrast fixes --- */
.how-it-works .step-title {
  color: #333333 !important;        /* Strong readable heading on white */
}

.how-it-works .step-description {
  color: #495057 !important;        /* Darker body copy for ≥4.5:1 */
}

/* Ensure the number circle (white text) sits on an AA-safe deep brand shade */
.how-it-works .step-number {
  background-color: var(--primary-strong) !important;   /* #8a3a07 */
  color: #ffffff !important;
}

/* === Accessibility: Skip link — hidden by default, high-contrast on focus === */
.skip-to-content {
  position: absolute !important;
  left: 0 !important;
  top: -1000px !important;              /* keep off-screen until focused */
  background: var(--primary-strong) !important;  /* deep brand shade (#8a3a07) */
  color: #ffffff !important;            /* white text for strong contrast */
  padding: 8px 12px !important;
  z-index: 10000 !important;
  text-decoration: none !important;
  border-radius: 4px;
  transition: top .2s ease;
}

.skip-to-content:focus,
.skip-to-content:active,
.skip-to-content:focus-visible {
  top: 0 !important;                    /* reveal only on focus */
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}

.skip-to-content:hover {
  text-decoration: underline !important;
}

/* High-contrast (Windows) support */
@media (forced-colors: active) {
  .skip-to-content {
    background: ButtonFace !important;
    color: ButtonText !important;
    border: 1px solid ButtonText !important;
  }
}

/* === AA contrast: Breadcrumbs (global) === */
.breadcrumb .breadcrumb-item a {
  color: var(--primary-strong) !important;  /* #8a3a07 (AA on white/light) */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
  color: #742f06 !important;                /* deeper hover/focus */
  text-decoration: underline;
}

/* Active crumb (current page) and separators */
.breadcrumb .breadcrumb-item.active {
  color: #333333 !important;                /* dark neutral on light bg */
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d !important;                /* readable separator */
}

/* High-contrast mode support */
@media (forced-colors: active) {
  .breadcrumb .breadcrumb-item a {
    border: 1px solid CanvasText; /* visible outline for HC users */
  }
}

/* If a breadcrumb appears inside a dark page header/hero, flip to white */
.page-header .breadcrumb .breadcrumb-item a,
.page-header .breadcrumb .breadcrumb-item.active,
.page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff !important;
}
.page-header .breadcrumb .breadcrumb-item a:hover,
.page-header .breadcrumb .breadcrumb-item a:focus {
  color: #ffffff !important;
  text-decoration: underline;
}

/* === AA Contrast: Services and listings — global fixes === */

/* 1) Breadcrumbs: links must use deeper brand shade on light backgrounds */
.breadcrumb .breadcrumb-item a {
  color: var(--primary-strong) !important;  /* #8a3a07 */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
  color: #742f06 !important;
}
.breadcrumb .breadcrumb-item.active {
  color: #333333 !important;                /* current page */
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d !important;                /* readable separator */
}

/* If breadcrumbs live inside a dark page header, flip to white for AA */
.page-header .breadcrumb .breadcrumb-item a,
.page-header .breadcrumb .breadcrumb-item.active,
.page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff !important;
}

/* 2) Pagination: ensure links and active page pass AA */
.pagination .page-link,
.page-link {
  color: var(--primary-strong) !important;   /* deeper, AA-safe */
}
.pagination .page-link:hover,
.pagination .page-link:focus {
  color: #742f06 !important;
}
.page-item.active .page-link {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}

/* 3) Light badges/chips: improve foreground on subtle backgrounds */
.badge.bg-light,
.badge.text-bg-light {
  background-color: #e9ecef !important;
  color: #333333 !important;
}

/* 4) Listing metadata (e.g., location, vendor): use darker neutral */
.service-location,
.service-vendor,
.result-count,
.filters-bar .help-text {
  color: #495057 !important;
}

/* 5) Filter/search placeholders: avoid too-pale gray */
.form-control::placeholder,
.form-select::placeholder {
  color: #495057 !important;
  opacity: 1 !important;
}

/* 6) Button/link-like controls that appear as text links (filters/sorts) */
.filters-bar .btn-link,
.sort-bar .btn-link {
  color: var(--primary-strong) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.filters-bar .btn-link:hover,
.sort-bar .btn-link:hover,
.filters-bar .btn-link:focus,
.sort-bar .btn-link:focus {
  color: #742f06 !important;
}

/* 7) Already present but keep for consistency: badges using brand */
.service-category,
.badge-tag {
  background-color: #d45500 !important;  /* darker orange for AA */
  color: #ffffff !important;
}
.badge-tag.outline {
  border-color: #7a2d00 !important;
  color: #7a2d00 !important;
}
/* AA contrast: outline secondary (Reset All Filters, etc.) */
.btn-outline-secondary,
a.btn.btn-outline-secondary {
  color: var(--secondary-strong) !important;        /* #22545b (AA) */
  border-color: var(--secondary-strong) !important;
  background-color: #ffffff !important;             /* keep outline look on light bg */
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
a.btn.btn-outline-secondary:hover,
a.btn.btn-outline-secondary:focus {
  background-color: var(--secondary-strong) !important;
  border-color: var(--secondary-strong) !important;
  color: #ffffff !important;
}

/* Optional: if you want a primary-styled outline button everywhere */
.btn-outline-primary,
a.btn.btn-outline-primary {
  color: var(--primary-strong) !important;          /* #8a3a07 (AA) */
  border-color: var(--primary-strong) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
a.btn.btn-outline-primary:hover,
a.btn.btn-outline-primary:focus {
  background-color: var(--primary-strong) !important;
  border-color: var(--primary-strong) !important;
  color: #ffffff !important;
}
