/*
    MLM Custom Design System (Main)
    Clean, Premium, High-Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #178199;
    --primary-dark: #0d5c6d;
    --primary-light: #22a2bf;
    --accent: #c4fb6d;
    --accent-dark: #a8d95b;
    --text-main: #1a2a2e;
    --text-muted: #6b7a7d;
    --bg-light: #f8fbfc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1300px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

main,
section,
.container,
[class*="grid"],
[class*="card"] {
    min-width: 0;
}

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

ul {
    list-style: none;
}

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

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

section {
    padding: 50px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.title-xl { font-size: 3.5rem; }
.title-lg { font-size: 2.5rem; }
.title-md { font-size: 1.8rem; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(23, 129, 153, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 129, 153, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Nav Dropdown */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 10px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(23, 129, 153, 0.05);
    color: var(--primary);
    padding-left: 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .navbar .btn-primary {
        display: none;
    }
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background: var(--light);
}

/* Consultation Form */
.consultation {
    padding: 100px 0;
    background: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group.full {
    grid-column: span 2;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 136, 167, 0.1);
}

/* Accordion (FAQs) */
.faq {
    padding: 100px 0;
    background: var(--light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    font-family: 'Poppins';
    width: 100%;
    /* padding: 20px; */
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(8, 136, 167, 0.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Blog Grid */
.blog {
    padding: 100px 0;
}

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

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Compliance Icons */
.compliance {
    padding: 60px 0;
    background: #f8f9fa;
}

.compliance-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.compliance-grid img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(1);
    transition: var(--transition);
}

.compliance-grid img:hover {
    opacity: 1;
    filter: grayscale(0);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full {
        grid-column: span 1;
    }
}

.hero {
    /* padding-bottom: 100px; */
    background: radial-gradient(circle at top right, rgba(23, 129, 153, 0.05) 0%, transparent 50%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 0;
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    transform: scale(0.9);
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: scale(0.89);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.feature-icon,
.service-card .icon:has(img) {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(8, 136, 167, 0.1);
}

.feature-icon img,
.service-card .icon img {
    width: 38px;
    height: 38px;
    display: block;
}

/* Testimonials */
.testimonials {
    background: var(--primary);
    /* color: var(--white); */
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #0a1f24;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.7;
}

.footer-col ul li:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .title-xl { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service Page Hero */
.service-hero {
    position: relative;
    /* padding: clamp(90px, 10vw, 130px) 0; */
    /* padding: clamp(60px, 10vw, 70px) 0; */
    padding: clamp(60px, 10vw, 100px) 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.personal-injury .service-hero {
    padding: clamp(90px, 10vw, 130px) 0;
}
.service-hero-content {
    /* max-width: 800px; */
    max-width: 650px;
    opacity: 1 !important;
    transform: none !important;
}
.service-hero-content p {
    font-family: "Poppins", sans-serif;
}
.service-hero-content .btn-mbs {
    border-radius: 4px;
    font-size: 16px;
    padding: 15px 30px;
    padding: 7px 26px;
    background-color: #005355;
    font-weight: 500;
    text-transform: unset;
}

.service-hero-eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;

    font-family: "Poppins", Sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-transform: capitalize;
    color: #D46972;
}
.service-hero-title {
    font-size: clamp(2.35rem, 4.8vw, 3.5rem);
    font-size: clamp(2.35rem, 4.8vw, 44px);
    font-family: "Quarto Regular", Sans-serif;
    color: #0b5161;
    color: #263159; /*medical-billing-services page name*/
    color: #00585f;
    margin-bottom: 25px;
    line-height: 1.1;
}
@media (max-width: 768px) {
    .service-hero-title {
        font-size: 2.5rem;
    }
    .service-hero {
        padding: 70px 0;
    }
}





/* Horizontal Form */
.horizontal-form-section {
    background: #0b5161;
    padding: 30px 0;
    color: white;
}

.form-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-flex h3 {
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
}

.form-flex .form-control {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 15px;
    border-radius: 4px;
}

.form-flex .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-flex .btn-submit {
    background: white;
    color: #0b5161;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

p a {
  color: #c36;
}
p a:hover {
  color: #336;
}
.fs-16 {
    font-size: 16px;
}