/* Lab division (/labor/) — moved verbatim from template-saf-laboratory.php */
:root {
    --primary-color: #0f2846;
    --primary-deep: #0a1d33;
    --primary-soft: #1a3a52;
    --secondary-color: #738697;
    --accent-green: #58923d;
    --accent-green-dark: #467a30;     /* buttons + green text (white on it 5.1:1) */
    --accent-green-darker: #3b6628;   /* their hover */
    --accent-blue: #17a2b8;
    --light-bg: #f4f7fa;
    --ink: #14273d;
    --muted: #5b6b7b;
    --line: #e3e9ef;
    --radius: 18px;
    --shadow-sm: 0 4px 14px rgba(15,40,70,0.06);
    --shadow-md: 0 14px 40px rgba(15,40,70,0.12);
    --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

/* html scroll-behavior + scroll-padding-top: header.css */

body {
    font-family: var(--font);
    direction: rtl;
    overflow-x: hidden;
    background: #fff;
    color: var(--ink);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, button, input { font-family: var(--font); }
img { max-width: 100%; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Header: assets/css/header.css ---------- */

/* ---------- Hero ---------- */
.lab-hero {
    position: relative;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(88,146,61,0.25), transparent 60%),
                linear-gradient(135deg, var(--primary-color) 0%, var(--primary-soft) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.lab-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.lab-hero .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88,146,61,0.18);
    border: 1px solid rgba(88,146,61,0.55);
    color: #cfe8c1;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-title span { color: #8fd16a; }

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn-lab-primary, .btn-lab-secondary, .btn-lab-light {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.9rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-lab-primary {
    background: var(--accent-green-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(88,146,61,0.35);
}

.btn-lab-primary:hover { background: var(--accent-green-darker); color: #fff; transform: translateY(-2px); }

.btn-lab-secondary {
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}

.btn-lab-secondary:hover { background: #fff; color: var(--primary-color); }

.btn-lab-light { background: #fff; color: var(--primary-color); }
.btn-lab-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); color: var(--primary-color); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-number { font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat-number small { color: #8fd16a; font-size: 1.4rem; }
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.65); }

.hero-mosaic {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 520px;
}

.hero-mosaic figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.hero-mosaic figure:first-child { grid-row: 1 / span 2; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.hero-mosaic figure:hover img { transform: scale(1.05); }

.hero-mosaic figcaption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem 1rem 0.8rem;
    background: linear-gradient(transparent, rgba(17,24,32,0.85));
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-float {
    position: absolute;
    left: -18px;
    bottom: 36px;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.hero-float i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(88,146,61,0.12);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.hero-float strong { display: block; font-size: 0.95rem; }
.hero-float span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Standards strip ---------- */
.standards-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}

.standards-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.standards-label { font-weight: 600; color: var(--muted); font-size: 0.95rem; }

.standards-list { display: flex; gap: 1rem; flex-wrap: wrap; }

.standard-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1rem 0.55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--light-bg);
    transition: border-color 0.2s, transform 0.2s;
}

.standard-chip:hover { border-color: var(--accent-green); transform: translateY(-2px); }

.standard-chip b {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.standard-chip span {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
    direction: ltr;
    line-height: 1.3;
}

/* ---------- Shared section bits ---------- */
.section { padding: 6rem 0; }
.section-light { background: var(--light-bg); }
/* Formerly navy; a white section with hairlines since 10A (the class name is kept for the markup). */
.section-dark {
    background: #fff;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green-dark);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.section-badge::before, .section-badge::after {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}


.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 1rem;
}


.section-description { font-size: 1.08rem; color: var(--muted); line-height: 2; }

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 0 2.5rem 2.5rem; }

.about-media .main {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
}

.about-media .main img, .about-media .inset img { width: 100%; height: 100%; object-fit: cover; }

.about-media .inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow-md);
}

.about-text p { font-size: 1.08rem; color: var(--muted); line-height: 2.05; margin-bottom: 1.5rem; }

.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; margin: 2rem 0; list-style: none; padding: 0; }

.about-points li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--ink); }
.about-points i { color: var(--accent-green); font-size: 1.15rem; }

.dept-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }

.dept-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dept-link i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(88,146,61,0.1);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.dept-link:hover { border-color: var(--accent-green); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }

/* ---------- Vision & Mission ---------- */
.vm-card {
    background: var(--light-bg);
    border: 1px solid var(--line);
    padding: 2.5rem;
    border-radius: var(--radius);
    height: 100%;
    transition: border-color 0.3s, background 0.3s;
}

.vm-card:hover { border-color: rgba(88,146,61,0.45); background: #fff; box-shadow: var(--shadow-sm); }

.vm-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.vm-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--primary-color); }
.vm-text { font-size: 1.08rem; line-height: 2; color: var(--muted); }

/* ---------- Values ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.value-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.4rem; }
.value-text { font-size: 0.98rem; line-height: 1.9; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-media {
    position: relative;
    min-height: 100%;
    background: var(--primary-color);
}

.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,32,0.05) 30%, rgba(17,24,32,0.9) 100%);
}

.service-media-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.75rem;
    color: #fff;
}

.service-num {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #8fd16a;
}

.service-title { font-size: 1.55rem; font-weight: 700; line-height: 1.4; margin: 0.2rem 0 0.25rem; }
.service-title .en { display: block; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; font-weight: 400; opacity: 0.8; }
.service-subtitle { font-size: 1rem; opacity: 0.85; margin: 0; }

.service-body { padding: 2rem; }

.service-description { font-size: 1.02rem; line-height: 2; color: var(--muted); margin-bottom: 1.5rem; }

.service-header-plain {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem 0;
}

.service-header-plain .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(88,146,61,0.1);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.service-header-plain .service-title { color: var(--primary-color); font-size: 1.35rem; margin: 0; }
.service-header-plain .service-title .en { color: var(--muted); }
.service-header-plain .service-subtitle { color: var(--muted); font-size: 0.92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

.test-table { width: 100%; border-collapse: collapse; min-width: 520px; }

.test-table th {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.85rem 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.test-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.93rem;
    vertical-align: middle;
}

.test-table tr:last-child td { border-bottom: 0; }
.test-table tbody tr { transition: background 0.15s; }
.test-table tbody tr:hover { background: rgba(88,146,61,0.05); }
.test-table td.en { font-family: 'IBM Plex Sans', sans-serif; direction: ltr; text-align: right; color: var(--muted); }
.test-table .num { color: var(--secondary-color); font-family: 'IBM Plex Sans', sans-serif; width: 48px; }

.test-code {
    display: inline-block;
    font-family: 'IBM Plex Sans', sans-serif;
    direction: ltr;
    background: rgba(15,40,70,0.06);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

.field-tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; list-style: none; padding: 0; margin: 0; }

.field-tests li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--light-bg);
    border-radius: 14px;
    border: 1px solid var(--line);
}

.field-tests i { color: var(--accent-green); font-size: 1.25rem; margin-top: 0.1rem; }
.field-tests strong { display: block; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.field-tests span { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.82rem; color: var(--muted); }

.see-photos {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: var(--accent-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.see-photos:hover { color: var(--accent-green-darker); }

/* ---------- Gallery ---------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d5dde6;
    background: #fff;
    color: #3f4f61;
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-filter .count {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    background: #eef2f6;
    border-radius: 50px;
    padding: 0.05rem 0.5rem;
}

.gallery-filter:hover { border-color: var(--primary-color); color: var(--primary-color); }
.gallery-filter.active { background: var(--accent-green-dark); border-color: var(--accent-green-dark); color: #fff; }
.gallery-filter.active .count { background: rgba(0,0,0,0.22); } /* white 7:1 (was 3.4 on a light tint) */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e9eef3;
    cursor: zoom-in;
    text-align: right;
}

.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .cap {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 2.5rem 0.9rem 0.75rem;
    background: linear-gradient(transparent, rgba(17,24,32,0.88));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 3px solid var(--accent-green-dark); outline-offset: 2px; }
.gallery-item.is-hidden { display: none; }

.gallery-more { text-align: center; margin-top: 2.5rem; }

.gallery-more button {
    border: 1px solid #cfd8e2;
    background: #fff;
    color: var(--primary-color);
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-more button:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(12,16,21,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 3.5rem 4.5rem 2rem;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.lightbox-caption { color: #fff; margin-top: 1rem; text-align: center; font-size: 0.98rem; }
.lightbox-caption small { display: block; color: rgba(255,255,255,0.55); font-family: 'IBM Plex Sans', sans-serif; margin-top: 0.15rem; }

.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.lb-btn:hover { background: var(--accent-green); }
.lb-close { top: 1rem; left: 1rem; }
.lb-prev { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { left: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.lab-cta { padding: 0 0 6rem; background: var(--light-bg); }

.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 3.5rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--accent-green-dark);
    box-shadow: var(--shadow-sm);
}

.cta-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--primary-color); margin-bottom: 0.6rem; }
.cta-text { font-size: 1.1rem; color: var(--muted); margin-bottom: 0; }
.cta-box .btn-lab-light { border: 1px solid #cfd8e2; }
.cta-box .btn-lab-light:hover { border-color: var(--primary-color); box-shadow: none; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Footer: light grey with a hairline, like the location section above it ---------- */
.lab-footer { background: #eef2f6; border-top: 1px solid #dde4ec; color: var(--ink); padding: 4.5rem 0 2rem; }

.footer-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; font-weight: 700; font-size: 1.25rem; line-height: 1.4; color: var(--primary-color); }
.footer-logo img { height: 52px; width: auto; }
.footer-logo span { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }

.footer-text { color: #3f4f61; line-height: 1.95; font-size: 0.97rem; margin-bottom: 1.5rem; }

.footer-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--primary-color); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; }

.footer-links a {
    color: #3f4f61;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s, padding 0.2s;
}

.footer-links a i { font-size: 0.75rem; color: var(--accent-green); }
.footer-links a:hover { color: var(--primary-color); padding-right: 0.3rem; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; color: #3f4f61; font-size: 0.95rem; }
.footer-contact-item i { color: var(--accent-green); font-size: 1.1rem; margin-top: 0.2rem; }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { color: var(--primary-color); }
.footer-contact-item .person { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.45rem; }

.footer-social { display: flex; gap: 0.6rem; }

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dde4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.social-link:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid #dde4ec;
    margin-top: 3rem;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hero-mosaic { height: 460px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .lab-hero { padding: 3.5rem 0 4rem; }
    .hero-mosaic { height: 380px; margin-top: 3rem; }
    .hero-float { left: 12px; bottom: 12px; }
    .about-media { margin-bottom: 3rem; }
    .service-media { min-height: 280px; }
    .cta-actions { justify-content: flex-start; margin-top: 1.75rem; }
}

@media (max-width: 767px) {
    .section { padding: 4.5rem 0; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.8rem; }
    .hero-mosaic { height: 320px; gap: 10px; }
    .standards-row { justify-content: center; text-align: center; }
    .standards-list { justify-content: center; }
    .standard-chip span { display: none; }
    .about-points, .dept-links { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item .cap { opacity: 1; transform: none; font-size: 0.75rem; padding: 1.8rem 0.6rem 0.5rem; }
    .service-body { padding: 1.5rem; }
    .service-header-plain { padding: 1.5rem 1.5rem 0; }
    .cta-box { padding: 2.25rem 1.5rem; }
    .lightbox { padding: 3.5rem 0.75rem 1.5rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Phase 2: links to published service pages (the nav dropdown: header.css) ---------- */
/* ---------- Phase 9B: card actions — quote CTA, «اعرف المزيد» (published services), photos link ---------- */
.service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-top: 1.5rem;
}
.service-actions .see-photos { margin-top: 0; }
.service-cta,
.service-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
    padding: .45rem 1.15rem;
    border-radius: 50px;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.service-cta { border: 0; background: var(--accent-green-dark); color: #fff; cursor: pointer; }
.service-cta:hover { background: var(--accent-green-darker); }
.service-more { border: 1px solid var(--line); background: #fff; color: var(--primary-color); }
.service-more:hover { border-color: var(--accent-green); color: var(--accent-green-darker); }
.service-cta:focus-visible,
.service-more:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 2px; }
