/* Front Page Redesign (Tailwind Adaptation) */

/* Wrapper & Reset */
.me-fp-wrapper {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1c120d;
    background-color: #f8f6f6;
    line-height: 1.5;
}

.me-fp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.me-fp-container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.me-fp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    /* Initially transparent */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Scrolled State (added via JS) */
.me-fp-header.scrolled,
.me-fp-header.sticky {
    /* Keep sticky as a fallback or forced state */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.me-fp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.me-fp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.me-fp-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.me-fp-nav {
    display: flex;
    gap: 32px;
}

.me-fp-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.me-fp-nav a:hover {
    color: var(--me-primary);
}

.me-fp-actions {
    display: flex;
    gap: 12px;
}

.me-fp-btn-primary {
    background: var(--me-primary);
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.me-fp-btn-primary:hover {
    background: var(--me-primary-dark);
}

.me-fp-btn-outline {
    background: white;
    color: var(--me-primary);
    border: 1px solid var(--me-primary);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.me-fp-btn-outline:hover {
    background: #fff7ed;
}

/* Hero */
.me-fp-hero {
    position: relative;
    /* Use min-height to allow expansion, and auto height to fit content */
    min-height: 600px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Add padding top to account for the fixed header overlay */
    padding-top: 80px;
    padding-bottom: 40px;
    /* Ensure buttons don't hit edge */
}

.me-fp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.me-fp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.6) 50%, rgba(17, 24, 39, 0.8) 100%);
    z-index: 10;
}

.me-fp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.me-fp-hero-content {
    position: relative;
    z-index: 20;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.me-fp-hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.me-fp-hero-subtitle {
    font-size: 1.2rem;
    color: #e5e7eb;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Hero Search Widget Adaptation */
.me-fp-hero-search {
    max-width: 800px;
    margin: 0 auto 32px auto;
}

.me-fp-hero-search .me-search-widget-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
}

.me-fp-hero-search .me-search-widget-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.me-fp-hero-search .me-search-group {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: none;
    height: auto;
    padding: 4px 22px;
    flex-grow: 1;
}

.me-fp-hero-search .me-search-group:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--me-primary);
}

.me-fp-hero-search .me-search-icon {
    color: #6b7280;
}

.me-fp-hero-search input {
    background: transparent;
    border: none;
    font-size: 1rem;
    padding: 10px;
    color: #1f2937;
}

.me-fp-hero-search .me-search-divider {
    display: none;
    /* Hide divider if using flex gap or distinct inputs */
}

/* Adjust button */
.me-fp-hero-search .me-search-btn {
    background: var(--me-primary);
    color: white;
    height: 48px;
    width: 48px;
    /* Or wider if text needed */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.me-fp-hero-search .me-search-btn:hover {
    background: var(--me-primary-dark);
}

/* Responsive fix for widget in hero */
@media (max-width: 768px) {
    .me-fp-hero-search .me-search-widget-form {
        flex-direction: column;
    }

    .me-fp-hero-search .me-search-group {
        width: 100%;
    }

    .me-fp-hero-search .me-search-btn {
        width: 100%;
    }
}

.me-fp-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .me-fp-hero-buttons {
        flex-direction: column;
    }

    .me-fp-grid-6 {
        gap: 4px !important;

    }

    .me-fp-grid-6-small {
        gap: 6px !important;
    }
}

.me-fp-btn-white-outline {
    color: white;
    border: 2px solid white;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
}

.me-fp-btn-white-outline:hover {
    background: white;
    color: var(--me-primary);
}

/* Sections */
.me-fp-section {
    padding: 64px 0;
}

.me-fp-section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1c120d;
    margin-bottom: 16px;
    margin-bottom: 50px;
}

.me-fp-cta-section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff);
    margin-bottom: 16px;
    margin-bottom: 50px;
}

.me-fp-section-subtitle {
    color: #4b5563;
    font-size: 1.1rem;
}

.me-fp-prose p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Background Utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: #f9fafb;
    /* Lighter grey for contrast against white */
}

.bg-dark-alt {
    background-color: #f3f4f6;
    /* Slightly darker grey for differentiation */
}

/* Categories Grid */
.me-fp-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.me-fp-cat-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.me-fp-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.me-fp-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Category Icons - More Vibrant Soft Colors */
.bg-orange-soft {
    background: #FFEADD;
    color: #d46b08;
}

.bg-blue-soft {
    background: #e6f7ff;
    color: #096dd9;
}

.bg-yellow-soft {
    background: #feffe6;
    color: #d4b106;
}

.bg-red-soft {
    background: #fff1f0;
    color: #cf1322;
}

.bg-purple-soft {
    background: #f9f0ff;
    color: #722ed1;
}

.bg-green-soft {
    background: #f6ffed;
    color: #389e0d;
}

.me-fp-cat-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    font-size: 1rem;
}

.me-fp-cat-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.me-fp-link-arrow {
    color: var(--me-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Bairros */
/* Bairros - adjusted grid */
.me-fp-grid-6-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.me-fp-bairro-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.me-fp-bairro-card:hover {
    border-color: var(--me-primary);
    transform: translateY(-2px);
}

.me-fp-bairro-card .bairro-name {
    display: block;
    font-weight: 700;
    color: #1f2937;
}

.me-fp-bairro-card .city-name {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Stats */
.me-fp-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.me-fp-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item .icon-box {
    padding: 12px;
    border-radius: 8px;
    color: var(--me-primary);
}

.feature-item h3 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #6b7280;
}

.me-fp-stats-visual .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 32px;
    background: #f3f4f6;
    border-radius: 24px;
}

.stats-grid .stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* CTA Strip */
.me-fp-cta-strip {
    background: var(--me-primary);
    padding: 80px 0;
    position: relative;
    color: white;
    overflow: hidden;
}

.me-fp-cta-bg-pattern {
    position: absolute;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
}

.me-fp-btn-white-xl {
    background: white;
    color: var(--me-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Recent Cards (Carousel) */
/* Grid is removed, using carousel now */
.me-carousel-container {
    padding: 0 4px;
    /* Ensure buttons don't clip */
    position: relative;
    /* margin-bottom to clear footer overlap if needed */
    margin-bottom: 24px;
}

/* TRACK MUST BE FLEX TO SHOW IN ROW */
.me-carousel-track {
    display: flex !important;
    /* Force flex in case of conflicts */
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.me-carousel-track::-webkit-scrollbar {
    display: none;
}

.me-carousel-wrapper {
    overflow: hidden;
    margin: 0 -16px;
    padding: 0 16px 32px;
    /* Pad bottom for shadows */
}

.me-carousel-btn.prev {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.2s ease;
}

.me-carousel-btn.next {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.2s ease;
}

.me-carousel-container:hover .me-carousel-btn {
    opacity: 1;
}

.me-carousel-btn:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--me-primary);
    transform: translateY(-50%) scale(1.1);
    /* Keep vertical centering */
}

.me-recent-card-new {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For link overlay */

    /* Carousel Item Props */
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 280px;
}

.me-recent-card-new:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.me-card-img-area {
    height: 200px;
    background: #e5e7eb;
    position: relative;
}

.me-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.me-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
}

/* Status Badge */
.me-card-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-open {
    background: #22c55e;
    color: white;
}

.status-closed {
    background: #ef4444;
    color: white;
}

/* Logo Overlay */
.me-card-logo-overlay {
    position: absolute;
    bottom: -16px;
    left: 20px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: white;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.me-card-logo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Logos should fit */
}

.me-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--me-primary);
    color: white;
}

.me-card-content {
    padding: 20px 15px 0px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    /* Space for logo overlap */
}

/* Adjust padding top if needed due to overlapping logo */
.me-card-content {
    padding-top: 32px;
}

.me-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.3;
}

.verified-icon {
    font-size: 18px;
    position: relative;
    top: 1px;
}

.me-card-cat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.me-card-excerpt {
    font-size: 0.7rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.me-card-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: auto;
}

.me-card-loc span.material-symbols-rounded {
    font-size: 18px;
    color: #9ca3af;
}

.me-card-rating span.material-symbols-rounded {
    font-size: 16px;
    color: #f59e0b;
}

@media (max-width: 768px) {
    .me-fp-recent-grid {
        grid-template-columns: 1fr;
    }
}

.me-card-loc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.me-card-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #374151;
}

.me-card-btn:hover {
    border-color: var(--me-primary);
    color: var(--me-primary);
}

/* FAQ */
.me-fp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.me-faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.me-faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.q-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.a-text {
    padding: 0 24px 24px 60px;
    color: #4b5563;
}

/* Footer */
.me-fp-footer {
    background: #2d2019;
    color: white;
    padding: 64px 0 32px;
}

.me-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.me-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.me-footer-grid h4 {
    font-weight: 700;
    margin-bottom: 16px;
}

.me-footer-grid ul {
    list-style: none;
    padding: 0;
}

.me-footer-grid li {
    margin-bottom: 8px;
}

.me-footer-grid a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.me-footer-grid a:hover {
    color: var(--me-primary);
}

.me-footer-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hidden-mobile {
        display: none;
    }

    .me-fp-split-layout {
        grid-template-columns: 1fr;
    }

    .me-fp-recent-grid {
        grid-template-columns: 1fr;
    }

    .me-footer-grid {
        grid-template-columns: 1fr;
    }

    .me-fp-hero-title {
        font-size: 2.5rem;
    }
}