/* ============================================
   Homepage Styles - Mudanças24
   ============================================ */

/* --- Hero --- */
.m24-hero {
    background: linear-gradient(135deg, #1B365D 0%, #2a4f82 60%, #1B365D 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.m24-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,107,53,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.m24-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.m24-hero-content h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.m24-hero-sub {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 520px;
}
.m24-hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.m24-btn-lg { padding: 0.9rem 1.85rem; font-size: 1.15rem; }
.m24-hero-trust {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    opacity: 0.85;
}
.m24-hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Routes Card --- */
.m24-routes-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
}
.m24-routes-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.m24-route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}
.m24-route-item:last-of-type { border-bottom: none; }
.m24-route-name { font-weight: 600; color: #fff; }
.m24-route-info { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.m24-route-price { color: #FF6B35; font-weight: 700; }

/* --- Services Grid --- */
.m24-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.m24-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.m24-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.m24-service-highlight {
    border: 2px solid #FF6B35;
}
.m24-service-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #FF6B35;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.m24-service-icon {
    margin-bottom: 1rem;
}
.m24-service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.m24-service-card p {
    color: #666;
    font-size: 1.02rem;
    margin-bottom: 1rem;
}
.m24-service-features {
    margin-bottom: 1.25rem;
}
.m24-service-features li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}
.m24-service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: 700;
}

/* --- Why Grid --- */
.m24-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.m24-why-item {
    text-align: center;
}
.m24-why-icon {
    width: 64px;
    height: 64px;
    background: #FFF3EC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.m24-why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.m24-why-item p {
    color: #666;
    font-size: 0.98rem;
}

/* --- Page Hero (for inner pages) --- */
.m24-page-hero {
    background: linear-gradient(135deg, #1B365D 0%, #2a4f82 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.m24-page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.m24-page-hero-sub { opacity: 0.85; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 968px) {
    .m24-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .m24-hero-sub { margin: 0 auto 1.5rem; }
    .m24-hero-buttons { justify-content: center; }
    .m24-hero-trust { justify-content: center; }
    .m24-services-grid { grid-template-columns: 1fr; }
    .m24-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .m24-hero { padding: 2.5rem 0 2rem; }
    .m24-hero-buttons { flex-direction: column; }
    .m24-hero-buttons .m24-btn { width: 100%; justify-content: center; }
    .m24-why-grid { grid-template-columns: 1fr; }
}

/* --- Hero Badge --- */
.m24-hero-badge {
    display: inline-block;
    background: rgba(37,211,102,0.2);
    border: 1px solid rgba(37,211,102,0.5);
    color: #fff;
    padding: 0.45rem 1.15rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}
.m24-hero-badge-inline {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

/* --- Routes Card improvements --- */
.m24-routes-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    margin: -0.5rem 0 0.75rem;
}
a.m24-route-item {
    text-decoration: none;
    transition: background .15s;
    border-radius: 6px;
    padding: 0.6rem 0.5rem;
    margin: 0 -0.5rem;
}
a.m24-route-item:hover {
    background: rgba(255,255,255,0.08);
}

/* --- Trust Bar --- */
.m24-trust-bar {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 1rem 0;
}
.m24-trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.m24-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.m24-trust-item strong {
    color: #1B365D;
    font-size: 1.25rem;
    font-weight: 800;
}
.m24-trust-item span {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Service Card Price --- */
.m24-service-price {
    color: #FF6B35;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}

/* --- Why Grid: 6 items = 3 cols --- */
.m24-why-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Differentiator Section --- */
.m24-diff-section {
    background: #1B365D;
    color: #fff;
    padding: 4rem 0;
}
.m24-diff-content h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    margin-bottom: 1rem;
}
.m24-diff-content > p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.m24-diff-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.m24-diff-bad, .m24-diff-good {
    padding: 1.5rem;
    border-radius: 12px;
}
.m24-diff-bad {
    background: rgba(255,60,60,0.15);
    border: 1px solid rgba(255,100,100,0.35);
}
.m24-diff-good {
    background: rgba(37,211,102,0.12);
    border: 1px solid rgba(37,211,102,0.35);
}
.m24-diff-bad h4 { color: #ff6b6b; margin-bottom: 0.75rem; font-size: 1.15rem; }
.m24-diff-good h4 { color: #25D366; margin-bottom: 0.75rem; font-size: 1.15rem; }
.m24-diff-bad li, .m24-diff-good li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.98rem;
    color: #fff;
}
.m24-diff-bad li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: 700;
}
.m24-diff-good li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: 700;
}

/* --- Calculator Note --- */
.m24-calc-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FFF3EC;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.55;
}
.m24-calc-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Result IVA note --- */
.m24-result-iva {
    display: block;
    font-size: 0.85rem;
    color: #556070;
    margin-top: 0.35rem;
}
.m24-result-disclaimer {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    margin-top: 0.75rem;
    width: 100%;
}

/* --- Responsive additions --- */
@media (max-width: 968px) {
    .m24-why-grid { grid-template-columns: repeat(2, 1fr); }
    .m24-diff-comparison { grid-template-columns: 1fr; }
    .m24-trust-items { gap: 0.5rem; }
    .m24-trust-item strong { font-size: 1.1rem; }
    .m24-trust-item span { font-size: 0.78rem; }
}
@media (max-width: 600px) {
    .m24-why-grid { grid-template-columns: 1fr; }
    .m24-trust-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .m24-trust-items .m24-trust-item:nth-child(4),
    .m24-trust-items .m24-trust-item:nth-child(5) {
        grid-column: span 1;
    }
}


/* ===== VIDEO HERO ===== */
.m24-hero-visual { position: relative; overflow: hidden; }
.m24-hero-video-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.m24-hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.m24-hero-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(27,54,93,0.82) 100%);
}
.m24-hero-visual .m24-container { position: relative; z-index: 1; }

/* ===== SERVICE CARDS WITH IMAGES ===== */
.m24-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}
.m24-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.m24-service-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.m24-service-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.m24-service-card:hover .m24-service-img img {
    transform: scale(1.05);
}
.m24-service-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.m24-service-body h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}
.m24-service-body p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.m24-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.m24-service-features li {
    font-size: 0.92rem;
    color: #444;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.m24-service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF6B35;
    font-weight: 700;
}
.m24-service-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1B365D;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}
.m24-service-highlight {
    border: 2px solid #FF6B35;
    position: relative;
}
.m24-service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6B35;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}
.m24-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== DIFFERENTIATOR IMAGE LAYOUT ===== */
.m24-diff-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: stretch;
}
.m24-diff-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    align-self: stretch;
}
.m24-diff-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE — Image sections ===== */
@media (max-width: 968px) {
    .m24-services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .m24-service-img { height: 200px; }
    .m24-diff-grid { grid-template-columns: 1fr; }
    .m24-diff-image { max-height: 300px; }
    .m24-diff-image img { height: 300px; }
}
@media (max-width: 600px) {
    .m24-service-img { height: 180px; }
    .m24-service-body { padding: 1rem; }
    .m24-diff-comparison { grid-template-columns: 1fr; }
}