/* =========================================================
   Wound Care Medical Billing - Main Stylesheet
   1. Variables
   2. Base / Reset
   3. Typography (common sizes, colors, families)
   4. Utilities (backgrounds)
   5. Buttons (common, reusable)
   6. Shared components
   7. Sections (each scoped under its own parent class)
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
    /* Brand */
    --primary: #FA950E;
    --primary-rgb: 250, 149, 14;
    --primary-light: #FFAD21;
    --primary-dark: #DD8B08;
    --primary-gradient: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --secondary: #000000;

    /* Design colors */
    --dark: #161C2D;
    --heading: #011935;
    --text: #2D2D2D;
    --body-text: #3B3B3B;
    --muted: #373636;
    --dark-brown: #221C06;
    --light-bg: #F3F3F3;
    --gray-bg: #F7F7F7;
    --border: #C9C9C9;
    --white: #FFFFFF;
    --white-70: rgba(255, 255, 255, 0.7);

    /* Fonts */
    --font-primary: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-secondary: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Common font sizes */
    --fs-xxl: 55px;
    --fs-xl: 45px;
    --fs-lg: 27px;
    --fs-md: 20px;
    --fs-base: 18px;
    --fs-sm: 16px;
    --fs-xs: 14px;

    /* Shadows / transitions */
    --shadow-card: 0 0 10px 1px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;

    /* Bootstrap overrides (so .text-primary, .bg-primary etc. use brand) */
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-secondary: var(--secondary);
    --bs-secondary-rgb: 0, 0, 0;
    --bs-body-font-family: var(--font-primary);
    --bs-body-color: var(--text);
    --bs-body-line-height: 1.65;
    --bs-link-color: var(--primary);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-link-hover-color: var(--primary-dark);
}

/* ---------- 2. Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

/* Common heading line-height (no per-heading classes) */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.22;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        -webkit-animation: none !important;
        animation: none !important;
        -webkit-transition: none !important;
        transition: none !important;
    }
}

/* ---------- 3. Typography ---------- */
/* Common font sizes - reuse everywhere */
.fs-xxl  { font-size: var(--fs-xxl); }
.fs-xl   { font-size: var(--fs-xl); }
.fs-lg   { font-size: var(--fs-lg); }
.fs-md   { font-size: var(--fs-md); }
.fs-base { font-size: var(--fs-base); }
.fs-sm   { font-size: var(--fs-sm); }
.fs-xs   { font-size: var(--fs-xs); }

/* Font families */
.font-outfit { font-family: var(--font-secondary); }

/* Common text colors */
.text-heading     { color: var(--heading); }
.text-dark-theme  { color: var(--dark); }
.text-body-theme  { color: var(--body-text); }
.text-muted-theme { color: var(--muted); }
.text-dark-brown  { color: var(--dark-brown); }

/* Gradient text (primary) */
.text-gradient {
    color: var(--primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 4. Background utilities ---------- */
.bg-dark-theme       { background-color: var(--dark); }
.bg-light-theme      { background-color: var(--light-bg); }
.bg-gray-theme       { background-color: var(--gray-bg); }
.bg-primary-gradient { background: var(--primary); background: var(--primary-gradient); }

/* ---------- 5. Buttons (common - add new styles below) ---------- */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

/* 5.1 Primary gradient pill (Get Started / Read More / Subscribe) */
.btn-theme {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-padding-y: 0.9rem;
    --bs-btn-font-size: var(--fs-base);
    --bs-btn-color: var(--dark);
    --bs-btn-hover-color: var(--dark);
    --bs-btn-active-color: var(--dark);
    --bs-btn-border-width: 0;
    --bs-btn-border-radius: 74px;
    line-height: 1;
    background: var(--primary);
    background: var(--primary-gradient);
}
.btn-theme:hover,
.btn-theme:focus-visible {
    background: var(--primary-dark);
    -webkit-box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}
/* small modifier */
.btn-theme-sm {
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-font-size: var(--fs-xs);
    --bs-btn-border-radius: 8px;
}

/* 5.2 Dark pill (header Contact Us) */
.btn-dark-pill {
    --bs-btn-padding-x: 1.6rem;
    --bs-btn-padding-y: 0.8rem;
    --bs-btn-font-size: var(--fs-sm);
    --bs-btn-color: var(--white);
    --bs-btn-bg: var(--dark);
    --bs-btn-hover-color: var(--dark);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-active-color: var(--white);
    --bs-btn-active-bg: var(--dark);
    --bs-btn-border-width: 0;
    --bs-btn-border-radius: 35px;
    line-height: 1;
    -webkit-box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -6px -6px 9px var(--white);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -6px -6px 9px var(--white);
}

/* 5.3 Text link with arrow (Find out more / View all / More News) */
.btn-link-arrow {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: var(--fs-md);
    --bs-btn-font-weight: 400;
    --bs-btn-color: var(--primary);
    --bs-btn-hover-color: var(--primary-dark);
    --bs-btn-active-color: var(--primary-dark);
    --bs-btn-border-width: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-btn-color);
}
.btn-link-arrow:hover .bi {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}
.btn-link-arrow .bi {
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

/* 5.4 Outline pill / chip (Specialties) */
.btn-outline-pill {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.8rem;
    --bs-btn-font-size: var(--fs-sm);
    --bs-btn-font-weight: 400;
    --bs-btn-color: var(--text);
    --bs-btn-border-color: var(--text);
    --bs-btn-border-radius: 1000px;
    --bs-btn-hover-color: var(--white);
    --bs-btn-hover-bg: var(--text);
    --bs-btn-hover-border-color: var(--text);
    --bs-btn-active-color: var(--white);
    --bs-btn-active-bg: var(--text);
    --bs-btn-active-border-color: var(--text);
    line-height: 1;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 5.5 Circle outline icon button (News) */
.btn-circle-outline {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary-light);
    --bs-btn-hover-color: var(--white);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-border-radius: 50%;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
}

/* 5.6 Slider arrow (Services) */
.btn-slider-arrow {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: 2rem;
    --bs-btn-color: var(--heading);
    --bs-btn-hover-color: var(--primary);
    --bs-btn-active-color: var(--primary);
    --bs-btn-border-width: 0;
    line-height: 1;
}
.btn-slider-arrow .bi::before { font-weight: 700 !important; }

/* 5.7 Icon-only button (search) */
.btn-search {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-color: var(--text);
    --bs-btn-hover-color: var(--primary);
    --bs-btn-active-color: var(--primary);
    --bs-btn-border-width: 0;
    line-height: 1;
}

/* ---------- 6. Shared components ---------- */
/* Post card (Home news + Blog list) */
.post-card p {
    line-height: 1.68;
}

/* Form fields (Contact form) */
.form-theme .form-control,
.form-theme .form-select {
    padding: 0.85rem 1rem;
    font-size: var(--fs-xs);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.form-theme .form-control::-webkit-input-placeholder { color: #8A8A8A; }
.form-theme .form-control::-moz-placeholder { color: #8A8A8A; }
.form-theme .form-control::placeholder { color: #8A8A8A; }
.form-theme .form-select:invalid { color: #8A8A8A; }
.form-theme .form-control:focus,
.form-theme .form-select:focus {
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
}

/* Check list icon color */
.check-list .bi {
    color: var(--primary);
}

/* ---------- 7. Sections ---------- */

/* 7.1 Top bar */
.top-bar {
    background: var(--primary);
    background: var(--primary-gradient);
}
.top-bar a:hover { opacity: 0.8; }

/* 7.2 Header */
.site-header {
    background-color: var(--light-bg);
}
.site-header .nav-link {
    color: #060606;
    padding-left: 0;
    padding-right: 0;
}
.site-header .nav-link:hover {
    color: var(--primary);
}
.site-header .nav-link.active {
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    -webkit-text-decoration-color: var(--primary);
    text-decoration-color: var(--primary);
    text-underline-offset: 4px;
}

/* 7.3 Hero */
.hero-section .hero-media {
    padding: 2rem 2rem 0 0;
    isolation: isolate;
}
.hero-section .hero-dots {
    position: absolute;
    top: 0;
    left: 20%;
    z-index: -1;
}
.hero-section .hero-waves {
    position: absolute;
    right: 0;
    bottom: 10%;
}

/* 7.4 Trust */
.trust-section {
    -webkit-box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
    box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
}
.trust-section .trust-icon {
    font-size: 25px;
    line-height: 1;
}

/* 7.5 Services */
.services-section .services-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0.25rem;
}
.services-section .services-track::-webkit-scrollbar { display: none; }
.services-section .service-card {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc((100% - 3rem) / 3);
    flex: 0 0 calc((100% - 3rem) / 3);
    scroll-snap-align: start;
    border: 0.8px solid var(--dark);
    -webkit-box-shadow: 0 0 5px 1px rgba(0, 123, 164, 0.1);
    box-shadow: 0 0 5px 1px rgba(0, 123, 164, 0.1);
    line-height: 1.75;
}
.services-section .service-card p { opacity: 0.9; }
.services-section .btn-slider-arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 2;
}
.services-section .slider-prev { left: -4rem; }
.services-section .slider-next { right: -4rem; }

/* 7.6 Technology / EHR marquee */
.technology-section .logo-marquee {
    border-bottom: 1px solid #00B9FF;
    -webkit-box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
    box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
}
.technology-section .marquee-track {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    -webkit-animation: marquee 40s linear infinite;
    animation: marquee 40s linear infinite;
}
.technology-section .marquee-track:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}
.technology-section .marquee-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 1920px;
}
@-webkit-keyframes marquee {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes marquee {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

/* 7.7 About */
.about-section .check-list {
    line-height: 1.82;
}
.about-section .check-list .bi {
    color: var(--text);
}

/* 7.8 Specialties */
.specialties-section .btn-outline-pill.active {
    background-color: var(--text);
}

/* 7.9 News (uses shared .post-card component) */

/* 7.10 Testimonials */
.testimonials-section .testimonial-card {
    -webkit-box-shadow: var(--shadow-card);
    box-shadow: var(--shadow-card);
}
.testimonials-section .testimonial-card blockquote {
    line-height: 2;
}
.testimonials-section .avatar {
    width: 43px;
    height: 43px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.testimonials-section .google-logo {
    width: 48px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* 7.11 FAQ */
.faq-section .faq-accordion {
    --bs-accordion-border-color: var(--border);
    --bs-accordion-border-radius: 24px;
    --bs-accordion-inner-border-radius: 23px;
    --bs-accordion-btn-padding-x: 2rem;
    --bs-accordion-btn-padding-y: 1.75rem;
    --bs-accordion-body-padding-x: 2rem;
    --bs-accordion-body-padding-y: 1.5rem;
    --bs-accordion-btn-color: #060606;
    --bs-accordion-active-color: #060606;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-color: var(--text);
}
.faq-section .accordion-item:has(.accordion-collapse.show),
.faq-section .accordion-item.is-open {
    background: rgba(var(--primary-rgb), 0.3);
    background: linear-gradient(90deg, rgba(255, 173, 33, 0.3) 0%, rgba(221, 139, 8, 0.3) 100%);
}
.faq-section .accordion-button:not(.collapsed) {
    border-bottom: 1px solid var(--white);
}
.faq-section .accordion-body {
    line-height: 1.65;
}

/* 7.12 Footer */
.site-footer {
    color: var(--white-70);
}
.site-footer .footer-links a {
    color: var(--white-70);
    text-decoration: none;
}
.site-footer .footer-links a:hover {
    color: var(--primary);
}
.site-footer .footer-links address {
    line-height: 1.6;
}
.site-footer .newsletter-form .form-control {
    background-color: transparent;
    border: 0.6px solid #E5E5E5;
    border-radius: 4px;
    color: var(--white);
}
.site-footer .newsletter-form .form-control::-webkit-input-placeholder { color: #7B7B7B; }
.site-footer .newsletter-form .form-control::-moz-placeholder { color: #7B7B7B; }
.site-footer .newsletter-form .form-control::placeholder { color: #7B7B7B; }
.site-footer .newsletter-form .form-control:focus {
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.site-footer .social-circle {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--primary-dark);
    background-color: var(--white);
    text-decoration: none;
}
.site-footer .social-circle:hover {
    color: var(--white);
    background-color: var(--primary);
}

/* ================= Inner pages ================= */

/* 7.13 About - Mission */
.mission-section {
    -webkit-box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
    box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
}

/* 7.14 About - Why / Approach / Serve share the .check-list component */
.why-section .check-list,
.approach-section .check-list,
.serve-section .check-list {
    line-height: 1.5;
}

/* 7.15 About - Commitment */
.commitment-section .partner-card {
    border-radius: 24px;
}

/* 7.16 Contact - Form */
.contact-form-section {
    isolation: isolate;
}
.contact-form-section .contact-band {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 355px;
    z-index: -1;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
    box-shadow: 0 4px 27px 13px rgba(0, 123, 164, 0.09);
}
.contact-form-section .contact-band::before {
    content: "";
    position: absolute;
    top: 70px;
    left: 12%;
    width: 136px;
    height: 129px;
    border-radius: 50%;
    background: var(--primary);
    -webkit-filter: blur(60px);
    filter: blur(60px);
    opacity: 0.8;
}
.contact-form-section .contact-card {
    border-radius: 24px;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

/* 7.17 Blog - Hero search */
.blog-hero-section .search-form .form-control {
    padding: 0.85rem 3.25rem 0.85rem 1.25rem;
    font-size: var(--fs-xs);
    border: 1px solid var(--text);
    border-radius: 50px;
}
.blog-hero-section .search-form .form-control:focus {
    border-color: var(--primary);
    -webkit-box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
}
.blog-hero-section .search-form .btn-search {
    position: absolute;
    top: 50%;
    right: 1rem;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
