/* CSS Design System: Clinical Lab (White, Sky Blue & Mint) with Sidebar Layout & Bento Box */
:root {
    --color-primary: #0077CC;       /* Sky Blue */
    --color-primary-hover: #005FA3; /* Darker Blue */
    --color-secondary: #20C997;     /* Mint Green */
    --color-dark: #1A2530;          /* Charcoal Text */
    --color-bg-dark: #0F2537;       /* Dark Navy Footer */
    --color-bg-light: #F4F7FA;      /* Clinical Light Gray */
    --color-border: #E1E8ED;        /* Crisp Light Border */
    --color-text-main: #2C3E50;     /* Slate body text */
    --color-text-muted: #7F8C8D;    /* Gray muted text */
    --color-white: #FFFFFF;
    --border-radius: 6px;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.ac-body {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar navigation on desktop */
.ac-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-right: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.ac-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.ac-logo-icon {
    color: var(--color-secondary);
}

.ac-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.ac-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.ac-sidebar__link {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.ac-sidebar__link:hover,
.ac-sidebar__link.active {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.ac-sidebar__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
    color: #94A3B8;
}

.ac-phone-btn {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-top: 5px;
    margin-bottom: 15px;
}

.ac-hours-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Mobile top bar */
.ac-mobile-bar {
    display: none;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ac-mobile-logo {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

.ac-menu-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Area */
.ac-main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-width: 0;
}

/* Hero Banner: Centered full width */
.ac-hero-banner {
    position: relative;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    padding: 150px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.ac-hero-banner__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 37, 55, 0.85); /* Deep Navy Overlay */
    z-index: 1;
}

.ac-hero-banner__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--color-white);
}

.ac-pill {
    background-color: rgba(32, 201, 151, 0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(32, 201, 151, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 25px;
}

.ac-hero-title {
    font-size: 3.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ac-hero-subtext {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.ac-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.ac-btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ac-btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.ac-btn--primary:hover {
    background-color: var(--color-primary-hover);
}

.ac-btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.ac-btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
}

.ac-btn--block {
    width: 100%;
}

/* Sections */
.ac-section {
    padding: 100px 40px;
}

.ac-section--alt {
    background-color: var(--color-bg-light);
}

.ac-container {
    max-width: 1100px;
    margin: 0 auto;
}

.ac-section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.ac-pre-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.ac-section-intro h2 {
    font-size: 2.4rem;
    color: var(--color-dark);
}

/* Bento Box Grid Layout */
.ac-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 25px;
}

.ac-bento-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.ac-bento-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 119, 204, 0.05);
}

.ac-bento-card--large {
    grid-row: span 2;
}

.ac-bento-card--wide {
    grid-column: span 2;
}

.ac-bento-card--image {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.ac-bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-bento-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(transparent, rgba(15, 37, 55, 0.9));
    color: var(--color-white);
    padding: 30px;
}

.ac-bento-img-overlay h4 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.ac-bento-card--light {
    background-color: var(--color-bg-light);
}

.ac-bento-badge {
    background-color: rgba(32, 201, 151, 0.1);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 15px;
}

.ac-bento-price {
    background-color: rgba(0, 119, 204, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 15px;
}

.ac-bento-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.ac-bento-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.ac-bento-list {
    list-style: none;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.ac-bento-list li {
    margin-bottom: 8px;
}

.ac-bento-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.ac-trust-flex {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ac-trust-pill {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text-main);
}

/* Split screen section */
.ac-split-screen {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    align-items: center;
}

.ac-split-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.ac-split-text p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.ac-timeline {
    margin-top: 30px;
}

.ac-timeline-step {
    border-left: 2px solid var(--color-primary);
    padding-left: 20px;
    padding-bottom: 25px;
    position: relative;
}

.ac-timeline-step::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.ac-timeline-step:last-child {
    padding-bottom: 0;
}

.ac-timeline-step strong {
    color: var(--color-dark);
}

/* Masonry Reviews */
.ac-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ac-masonry-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 35px;
    border-radius: var(--border-radius);
}

.ac-stars {
    color: #F1C40F;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.ac-masonry-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.ac-masonry-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* Contact Details */
.ac-contact-info {
    margin-top: 30px;
}

.ac-contact-block {
    margin-bottom: 20px;
}

.ac-contact-block strong {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.ac-contact-block p,
.ac-contact-block a {
    font-size: 1.05rem;
    color: var(--color-text-main);
    text-decoration: none;
}

.ac-contact-block a:hover {
    color: var(--color-primary);
}

/* Footer layout */
.ac-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 80px 40px;
    border-top: 4px solid var(--color-primary);
}

.ac-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.ac-footer-info h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.ac-footer-info p {
    color: #94A3B8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ac-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ac-footer-col h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.ac-footer-col a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.ac-footer-col a:hover {
    color: var(--color-secondary);
}

/* Modal Popup Form */
.ac-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 37, 55, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ac-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.ac-modal__content {
    background-color: var(--color-white);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ac-modal.active .ac-modal__content {
    transform: translateY(0);
}

.ac-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.ac-modal__close:hover {
    color: var(--color-dark);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    padding: 10px 14px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-control::placeholder {
    color: #999;
}

.form-control:focus {
    border-color: var(--color-primary);
}

/* Cookie banner style */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    pointer-events: auto;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.cookie-banner a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Multi-page templates header */
.ac-section-header-bg {
    background-color: var(--color-bg-light);
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.ac-section-header-bg h1 {
    font-size: 2.6rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.ac-section-header-bg p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.ac-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ac-detail-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--border-radius);
    align-items: center;
}

.ac-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.ac-detail-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.ac-detail-price {
    font-size: 1.15rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.ac-detail-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ac-detail-content li {
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

.ac-detail-sidebar {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--border-radius);
}

.ac-detail-sidebar h3 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.ac-detail-sidebar p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Legal table */
.ac-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.ac-legal-table th, .ac-legal-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.ac-legal-table th {
    background-color: var(--color-bg-light);
    color: var(--color-dark);
}

.ac-legal-table td {
    color: var(--color-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    body.ac-body {
        display: block;
        padding-top: 60px; /* Space for fixed mobile top bar */
    }

    .ac-sidebar {
        transform: translateX(-100%);
        top: 60px;
        bottom: 0;
        width: 100%;
        border-right: none;
    }

    .ac-sidebar.open {
        transform: translateX(0);
    }

    .ac-mobile-bar {
        display: flex;
    }

    .ac-main-content {
        margin-left: 0;
    }

    .ac-hero-banner {
        padding: 80px 20px;
    }

    .ac-hero-title {
        font-size: 2.2rem;
    }

    .ac-hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .ac-section {
        padding: 60px 20px;
    }

    .ac-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .ac-bento-card--wide,
    .ac-bento-card--large {
        grid-column: span 1;
        grid-row: auto;
    }

    .ac-split-screen,
    .ac-masonry,
    .ac-footer-grid,
    .ac-detail-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ac-footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
