/* =========================================================
   AccutixHealth - Global Stylesheet
   Shared by index.html and all service pages
   ========================================================= */

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

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --navy: #0b1f3a;
    --navy-2: #0f2b52;
    --secondary: #34a853;
    --accent: #fbbc05;
    --light: #f8f9fa;
    --dark: #202124;
    --gray: #5f6368;
    --light-gray: #dadce0;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --topbar-h: 42px;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9fbfd;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
p { margin-bottom: 1rem; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}
h3 { font-size: 1.4rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; }

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray);
    font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 15px rgba(26,115,232,.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,115,232,.4); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--light-gray); transform: translateY(-3px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Disabled (e.g. Schedule a Demo, social links) */
.is-disabled {
    opacity: .5;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(.4);
}
.soon-badge {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(255,255,255,.25);
    padding: .1rem .45rem;
    border-radius: 20px;
}

/* =========================================================
   HEADER  (top contact bar + big transparent header,
   shrinks into a narrower floating bar on scroll)
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Top contact bar */
.topbar {
    background: var(--navy);
    color: #dbe5f3;
    font-size: .86rem;
    max-height: 120px;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--topbar-h);
    gap: 1rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
}
.topbar-contacts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); font-size: .8rem; }
.tb-label {
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.1);
    padding: 0 .4rem;
    border-radius: 4px;
    font-size: .75rem;
}
.topbar-note { opacity: .85; display: inline-flex; align-items: center; gap: .45rem; }

.site-header.scrolled .topbar { max-height: 0; opacity: 0; }

/* Main header bar */
.header-wrap { padding: 0; transition: padding .4s ease; }
.header-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    transition: max-width .45s ease, padding .4s ease, background .4s ease,
                border-radius .45s ease, box-shadow .4s ease;
}
.site-header.scrolled .header-wrap { padding: 10px 1rem 0; }
.site-header.scrolled .header-inner {
    max-width: 1140px;
    padding: .55rem 1.5rem;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    border-color: rgba(26,115,232,.12);
    box-shadow: 0 10px 30px rgba(13,71,161,.15);
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-icon { color: var(--primary); font-size: 2.3rem; transition: font-size .4s ease; }
.logo-text {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.5px;
    transition: font-size .4s ease;
}
.logo-text span { color: var(--primary); }
.site-header.scrolled .logo-icon { font-size: 1.55rem; }
.site-header.scrolled .logo-text { font-size: 1.35rem; }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > li { position: relative; }
.nav-links > li > a:not(.contact-btn) {
    font-weight: 600;
    font-size: 1.02rem;
    position: relative;
    padding: .4rem 0;
    transition: color .3s;
}
.nav-links > li > a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: width .3s ease;
}
.nav-links > li > a:not(.contact-btn):hover,
.nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a:not(.contact-btn):hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links .fa-chevron-down.desk-caret { font-size: .7rem; margin-left: .25rem; transition: transform .3s; }
.has-dropdown:hover .desk-caret { transform: rotate(180deg); }

.nav-btns { display: flex; gap: .6rem; align-items: center; }
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.15rem;
    background: var(--gradient);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: .92rem;
    border: 2px solid transparent;
    transition: all .3s ease;
    box-shadow: 0 4px 10px rgba(26,115,232,.3);
    white-space: nowrap;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(26,115,232,.4); }
.contact-btn.outline { background: transparent; color: var(--primary); border-color: var(--primary); box-shadow: none; }
.contact-btn.outline:hover { background: var(--primary); color: #fff; }

.mobile-menu-btn {
    display: none;
    background: #fff;
    border: 1px solid var(--light-gray);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
    align-items: center;
    justify-content: center;
}

.services-toggle {
    display: none;
    background: var(--light);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    transition: transform .3s ease;
}
.services-toggle.active { transform: rotate(180deg); }

/* Services mega dropdown */
.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 820px;
    padding-top: 18px;              /* invisible hover bridge */
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 1001;
}
.has-dropdown:hover .services-dropdown,
.has-dropdown:focus-within .services-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
    border: 1px solid rgba(0,0,0,.05);
    padding: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.dropdown-col h4 {
    font-size: .95rem;
    color: var(--primary);
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.dropdown-col h4 a:hover { text-decoration: underline; }
.dropdown-col li { border-radius: 6px; transition: all .2s ease; }
.dropdown-col li:hover { background: rgba(26,115,232,.06); transform: translateX(3px); }
.dropdown-col li a {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .85rem;
    line-height: 1.3;
    padding: .4rem .35rem;
}
.dropdown-col li a i { color: var(--secondary); font-size: .7rem; margin-top: .25rem; flex-shrink: 0; }
.dropdown-cta {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}
.dropdown-cta a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 600;
    padding: .45rem .9rem;
    border-radius: 6px;
    background: rgba(26,115,232,.1);
    font-size: .9rem;
    transition: background .2s;
}
.dropdown-cta a:hover { background: rgba(26,115,232,.2); }

/* =========================================================
   HOME PAGE SECTIONS
   ========================================================= */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 190px 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before, .page-hero::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,.12), transparent 70%);
    top: -160px; right: -140px;
}
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 2; }
.hero-content { flex: 1; }
.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; margin-bottom: 2rem; color: var(--gray); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { flex: 1; position: relative; height: 380px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.hero-slider { position: absolute; inset: 0; display: flex; transition: transform .8s ease; }
.hero-slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; }
.slider-controls {
    position: absolute; bottom: 20px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 3;
}
.slider-btn {
    background: rgba(255,255,255,.85); border: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all .3s ease; box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.slider-btn:hover { background: #fff; transform: scale(1.1); }
.slider-indicators { display: flex; gap: 8px; }
.slider-indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.slider-indicator.active { background: #fff; transform: scale(1.2); }

.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    background: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center;
    transition: all .3s ease; box-shadow: var(--card-shadow); border: 1px solid rgba(0,0,0,.05);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,.1); }
.feature-icon {
    font-size: 2.5rem; margin-bottom: 1.5rem;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.about { background: var(--light); }
.about-container { display: flex; align-items: center; gap: 3rem; }
.about-image { flex: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; transition: transform .5s ease; }
.about-image:hover img { transform: scale(1.05); }
.about-content { flex: 1; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
    padding: 2.5rem 2rem; border-radius: var(--radius); background: #fff;
    transition: all .3s ease; box-shadow: var(--card-shadow); border: 1px solid rgba(0,0,0,.05);
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { background: var(--gradient); color: #fff; transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,.12); }
.service-icon-wrapper { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.service-icon { font-size: 2.5rem; color: var(--primary); transition: all .3s ease; }
.service-card:hover .service-icon { color: #fff; transform: scale(1.1) rotate(5deg); }
.service-card h3 { text-align: center; font-size: 1.35rem; }
.service-description { color: var(--gray); margin-bottom: 1.5rem; font-size: .95rem; text-align: center; line-height: 1.5; transition: color .3s; }
.service-card:hover .service-description { color: rgba(255,255,255,.9); }
.service-features { margin-bottom: 1.5rem; }
.service-features li { margin-bottom: .8rem; font-size: .9rem; display: flex; align-items: flex-start; line-height: 1.4; }
.service-features li i { color: var(--secondary); margin-right: 10px; margin-top: 2px; flex-shrink: 0; transition: color .3s; }
.service-card:hover .service-features li i { color: #fff; }
.learn-more {
    margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--primary); align-self: center; transition: gap .2s, color .3s;
}
.service-card:hover .learn-more { color: #fff; gap: .7rem; }

.services-cta {
    text-align: center; margin-top: 3rem; padding: 2.2rem; border-radius: var(--radius);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.services-cta p { max-width: 600px; margin: 0 auto 1.5rem; }

.testimonials { background: var(--light); }
.testimonial-slider { max-width: 800px; margin: 0 auto; }
.testimonial {
    background: #fff; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--card-shadow);
    text-align: center; position: relative;
}
.testimonial::before {
    content: '"'; position: absolute; top: 20px; left: 30px; font-size: 5rem;
    color: var(--primary); opacity: .1; font-family: Georgia, serif;
}
.testimonial-text { font-style: italic; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-author { font-weight: 600; margin-bottom: .2rem; }
.testimonial-role { color: var(--gray); font-size: .9rem; }

/* CTA band (used on all pages) */
.cta { background: var(--gradient); color: #fff; text-align: center; padding: 5rem 0; position: relative; overflow: hidden; }
.cta::before {
    content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: rgba(255,255,255,.06); bottom: -200px; left: -120px;
}
.cta h2 { color: #fff; position: relative; }
.cta h2::after { background: #fff; }
.cta p { max-width: 620px; margin: 0 auto 2rem; position: relative; opacity: .95; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; position: relative; flex-wrap: wrap; }

/* =========================================================
   SERVICE PAGES
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 185px 0 4.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; color: var(--gray); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .65rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(26,115,232,.1); color: var(--primary);
    padding: .35rem .95rem; border-radius: 30px; font-weight: 600; font-size: .85rem; margin-bottom: 1rem;
}
.page-hero h1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .lead { font-size: 1.12rem; color: var(--gray); margin-bottom: 2rem; }

.included-card {
    background: #fff; border-radius: 16px; padding: 1.8rem; box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}
.included-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; color: var(--primary-dark); }
.included-card li a {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .75rem .9rem; border-radius: 10px; font-weight: 500; font-size: .95rem;
    transition: all .2s ease; border: 1px solid transparent;
}
.included-card li + li { margin-top: .35rem; }
.included-card li a:hover { background: rgba(26,115,232,.06); border-color: rgba(26,115,232,.15); color: var(--primary); }
.included-card li a span { display: flex; align-items: center; gap: .65rem; }
.included-card li a span i { color: var(--secondary); width: 18px; text-align: center; }
.included-card li a > i { font-size: .75rem; color: var(--gray); }

.overview { background: #fff; }
.overview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.overview-grid h2 { text-align: left; }
.overview-grid h2::after { left: 0; transform: none; }
.overview-text p { color: var(--gray); font-size: 1.04rem; }
.highlight-list { display: grid; gap: 1rem; }
.highlight-item {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem;
    background: var(--light); border-radius: var(--radius); border-left: 4px solid var(--secondary);
}
.highlight-item i { color: var(--secondary); font-size: 1.3rem; margin-top: .15rem; }
.highlight-item h4 { margin-bottom: .25rem; font-size: 1rem; }
.highlight-item p { margin: 0; color: var(--gray); font-size: .92rem; }

.detail-section { background: var(--light); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.detail-card {
    background: #fff; border-radius: 16px; padding: 2.2rem; box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,.05); transition: transform .3s ease, box-shadow .3s ease;
    scroll-margin-top: 110px; position: relative; overflow: hidden;
}
.detail-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,.1); }
.detail-card:hover::before, .detail-card:target::before { transform: scaleX(1); }
.detail-card:target { box-shadow: 0 0 0 3px rgba(26,115,232,.35), var(--card-shadow); }
.detail-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.detail-icon {
    width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
    background: rgba(26,115,232,.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.detail-head h3 { margin: 0; font-size: 1.25rem; }
.detail-card > p { color: var(--gray); }
.detail-card ul li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; font-size: .95rem; }
.detail-card ul li i { color: var(--secondary); margin-top: .25rem; }

.process { background: #fff; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process-step {
    text-align: center; padding: 2rem 1.4rem; border-radius: 16px; background: var(--light);
    position: relative; counter-increment: step; transition: transform .3s;
}
.process-step:hover { transform: translateY(-6px); }
.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--gradient); color: #fff; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(26,115,232,.3);
}
.process-step h4 { font-size: 1.05rem; }
.process-step p { color: var(--gray); font-size: .92rem; margin: 0; }

.benefits { background: var(--light); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.benefit-card {
    background: #fff; padding: 2rem 1.5rem; border-radius: 16px; box-shadow: var(--card-shadow);
    text-align: center; transition: all .3s ease;
}
.benefit-card:hover { background: var(--gradient); color: #fff; transform: translateY(-6px); }
.benefit-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; transition: color .3s; }
.benefit-card:hover i { color: #fff; }
.benefit-card h4 { font-size: 1.05rem; }
.benefit-card p { font-size: .92rem; color: var(--gray); margin: 0; transition: color .3s; }
.benefit-card:hover p { color: rgba(255,255,255,.9); }

.faq { background: #fff; }
.faq-list { max-width: 850px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item { background: var(--light); border-radius: var(--radius); border: 1px solid rgba(0,0,0,.05); overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--gray); margin: 0; }

.related { background: var(--light); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.related-card {
    background: #fff; border-radius: 14px; padding: 1.6rem; box-shadow: var(--card-shadow);
    display: flex; flex-direction: column; gap: .6rem; transition: all .3s ease; border: 1px solid transparent;
}
.related-card:hover { transform: translateY(-5px); border-color: rgba(26,115,232,.25); }
.related-card i.main { font-size: 1.6rem; color: var(--primary); }
.related-card h4 { margin: 0; font-size: 1.05rem; }
.related-card p { font-size: .88rem; color: var(--gray); margin: 0; flex: 1; }
.related-card span { color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 65%, #12407e 100%);
    color: #c9d5e6;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,.18), transparent 70%);
    top: -200px; right: -150px; pointer-events: none;
}

.footer-contact-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
    padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); position: relative;
}
.quick-contact {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; transition: all .3s ease;
}
.quick-contact:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.qc-icon {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; background: var(--gradient);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(26,115,232,.4);
}
.qc-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; color: #8fa6c4; }
.qc-value { font-weight: 700; color: #fff; font-size: 1.02rem; word-break: break-word; }

.footer-main {
    display: grid; grid-template-columns: 1.4fr .9fr 1.1fr 1.6fr; gap: 2.5rem;
    padding: 3rem 0; position: relative;
}
.footer-brand .logo-text { color: #fff; font-size: 1.6rem; }
.footer-brand .logo-text span { color: #6ea8ff; }
.footer-brand .logo-icon { color: #6ea8ff; font-size: 1.8rem; }
.footer-brand p { margin: 1rem 0 1.2rem; font-size: .95rem; line-height: 1.7; }
.hipaa-badge {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600;
    background: rgba(52,168,83,.15); color: #7ddc96; padding: .4rem .85rem; border-radius: 30px;
    border: 1px solid rgba(52,168,83,.3);
}
.social-links { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; transition: all .3s ease;
}
.social-links a:hover { background: var(--gradient); transform: translateY(-3px); }
.social-note { font-size: .78rem; color: #8fa6c4; margin-top: .5rem; }

.footer-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.4rem; position: relative; padding-bottom: .6rem; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--gradient); }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; transition: all .25s ease; font-size: .95rem; }
.footer-links a i { font-size: .65rem; color: #6ea8ff; transition: transform .25s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover i { transform: translateX(3px); }

.office-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 1.1rem 1.2rem; transition: border-color .3s;
}
.office-card + .office-card { margin-top: 1rem; }
.office-card:hover { border-color: rgba(110,168,255,.4); }
.office-card h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.office-tag { font-size: .7rem; background: var(--gradient); color: #fff; padding: .1rem .5rem; border-radius: 4px; }
.office-line { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; margin-bottom: .45rem; line-height: 1.5; }
.office-line:last-child { margin-bottom: 0; }
.office-line i { color: #6ea8ff; margin-top: .25rem; width: 14px; text-align: center; flex-shrink: 0; }
.office-line a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: #8fa6c4; position: relative;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient); color: #fff; border: none; cursor: pointer; z-index: 900;
    box-shadow: 0 8px 20px rgba(26,115,232,.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* =========================================================
   CONTACT MODAL
   ========================================================= */
.modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000;
    align-items: center; justify-content: center; padding: 1rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: fadeIn .3s ease; overflow-y: auto;
}
.modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: #fff; border-radius: 20px; width: 100%; max-width: 500px; max-height: 92vh;
    box-shadow: 0 25px 50px rgba(0,0,0,.3); animation: modalSlideIn .4s cubic-bezier(.175,.885,.32,1.275);
    overflow: hidden; position: relative; display: flex; flex-direction: column;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px) scale(.9); } to { opacity: 1; transform: none; } }
.modal-header { background: var(--gradient); color: #fff; padding: 2rem; text-align: center; position: relative; flex-shrink: 0; }
.modal-header h3 { margin: 0; font-size: 1.8rem; }
.modal-header p { margin: .5rem 0 0; opacity: .9; }
.close-modal {
    position: absolute; top: 1.2rem; right: 1.2rem; background: rgba(255,255,255,.2); border: none;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: #fff;
    transition: all .3s ease; display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.modal-body { padding: 2.2rem 2.5rem; flex-grow: 1; overflow-y: auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; font-size: .95rem; }
.form-control {
    width: 100%; padding: .9rem 1.2rem; border: 2px solid var(--light-gray); border-radius: 10px;
    font-size: 1rem; transition: all .3s ease; background: #f9fbfd; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(26,115,232,.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control.error { border-color: #e53935; box-shadow: 0 0 0 2px rgba(229,57,53,.1); }
.error-message { color: #e53935; font-size: .85rem; margin-top: .4rem; display: none; }
.modal-footer { padding: 0 2.5rem 2.2rem; display: flex; justify-content: center; flex-shrink: 0; }
.submit-btn {
    padding: .9rem 2.5rem; background: var(--gradient); color: #fff; border: none; border-radius: 10px;
    font-weight: 600; cursor: pointer; transition: all .3s ease; box-shadow: 0 4px 15px rgba(26,115,232,.3); font-size: 1rem;
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,115,232,.4); }
.submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.success-message { display: none; text-align: center; padding: 2rem 1rem; animation: fadeIn .5s ease; }
.success-message i { font-size: 4rem; margin-bottom: 1.2rem; color: var(--secondary); animation: bounceIn .6s ease; }
@keyframes bounceIn { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.success-message h3 { color: var(--secondary); font-size: 1.8rem; }
.success-message p { color: var(--gray); font-size: 1.05rem; }
.countdown-indicator { width: 100px; height: 4px; background: rgba(52,168,83,.2); border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.countdown-bar { height: 100%; width: 100%; background: var(--secondary); animation: countdown 3s linear forwards; }
@keyframes countdown { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .header-inner { padding: 1.3rem 1.5rem; }
    .nav-links { gap: 1.2rem; }
    .services-dropdown { width: 760px; }
}

/* Tablet & mobile navigation */
@media (max-width: 1100px) {
    html { scroll-padding-top: 85px; }
    .mobile-menu-btn { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: .75rem;
        right: .75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,.18);
        padding: .6rem;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .nav-links.active { display: flex; animation: fadeIn .25s ease; }
    .nav-links > li { padding: .25rem .6rem; border-bottom: 1px solid rgba(0,0,0,.05); }
    .nav-links > li:last-child { border-bottom: none; }
    .nav-links > li > a:not(.contact-btn) { display: inline-block; padding: .7rem 0; }
    .nav-links > li > a:not(.contact-btn)::after { display: none; }
    .desk-caret { display: none; }
    .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .services-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .services-dropdown {
        display: none; position: static; width: 100%; padding-top: 0;
        transform: none !important; opacity: 1; visibility: visible;
    }
    .services-dropdown.mobile-active { display: block; }
    .dropdown-panel { grid-template-columns: 1fr 1fr; box-shadow: none; background: var(--light); border-radius: 12px; padding: 1rem; margin-bottom: .6rem; }
    .nav-btns { flex-wrap: wrap; padding: .6rem 0 .3rem; }
    .site-header.scrolled .header-inner { border-radius: 20px; }

    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .hero-container, .about-container { flex-direction: column; }
    .hero-content, .about-content { text-align: center; }
    .hero-buttons, .about-content .btn { justify-content: center; }
    .hero-image { height: 320px; }
    .page-hero-grid, .overview-grid { grid-template-columns: 1fr; }
    .process-steps, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-contact-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 3.2rem 0; }
    .topbar { font-size: .8rem; }
    .topbar-note { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-contacts { justify-content: center; gap: .3rem 1rem; }
    .header-inner { padding: 1rem 1.1rem; }
    .logo-icon { font-size: 1.8rem; }
    .logo-text { font-size: 1.5rem; }
    .hero { padding: 175px 0 3.5rem; }
    .page-hero { padding: 170px 0 3.5rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .dropdown-panel { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .modal { padding: .5rem; align-items: flex-start; }
    .modal-content { max-height: none; margin: 1.5rem 0; }
    .modal-header { padding: 1.5rem; }
    .modal-header h3 { font-size: 1.5rem; }
    .modal-body { padding: 1.5rem; }
    .modal-footer { padding: 0 1.5rem 1.5rem; }
}

@media (max-width: 560px) {
    .process-steps, .benefits-grid { grid-template-columns: 1fr; }
    .hero-image { height: 240px; }
    .hero-buttons .btn, .page-hero .hero-buttons .btn { width: 100%; justify-content: center; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
    .detail-card { padding: 1.6rem; }
    .submit-btn { width: 100%; }
    .site-header.scrolled .header-wrap { padding: 8px .5rem 0; }
    .site-header.scrolled .header-inner { padding: .5rem 1rem; }
}

@media (max-width: 380px) {
    .logo-text { font-size: 1.3rem; }
    .tb-label { display: none; }
}

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