/* MEDICAL LABORATORY HOME PAGE
   Palette: navy blue, medical blue, teal and white
*/
:root {
    --navy: #062b55;
    --navy-dark: #041f3d;
    --medical-blue: #1676b9;
    --teal: #13aaa9;
    --teal-light: #e8f7f6;
    --ink: #263746;
    --muted: #637486;
    --pale: #f2f8fc;
    --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--ink); line-height: 1.7; background: var(--white); }
img { max-width: 100%; }
a { transition: .25s ease; }

/* TOP BAR */
.topbar {
  background: var(--navy-dark);
  color: #dce9f4;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.topbar-inner { max-width: 1200px; margin: auto; padding: 8px 24px; display: flex; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.topbar i { color: #42d0ca; margin-right: 7px; }

/* HEADER AND NAVIGATION */
.site-header {
  min-height: 82px;
  padding: 12px max(5%, calc((100% - 1200px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 36px; /* Matches the height of .topbar so it sits right underneath */
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 3px 18px rgba(5, 39, 72, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; background: var(--teal-light); color: var(--teal); font-size: 24px; }
.brand-name { font-size: 17px; line-height: 1.2; font-weight: 500; letter-spacing: .4px; }
.brand-name strong { color: var(--medical-blue); }
.brand-name small { display: block; color: #8293a2; font-size: 8px; letter-spacing: 1.5px; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { text-decoration: none; color: #34485b; font-size: 13px; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.main-nav .nav-appointment { background: var(--teal); color: white; padding: 12px 17px; border-radius: 5px; }
.main-nav .nav-appointment:hover { background: var(--navy); color: white; }
.nav-appointment i { margin-left: 7px; }
.menu-toggle { display: none; border: 0; background: var(--navy); color: white; width: 42px; height: 42px; border-radius: 5px; font-size: 19px; cursor: pointer; }

/* HERO */
.hero { min-height: 290px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4%; background: url("images/lab-hero.jpg") center/cover no-repeat; color: white; padding: 25px max(7%, calc((100% - 1120px)/2)) 32px; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 30, 59, .94) 0%, rgba(5, 47, 83, .82) 48%, rgba(5, 47, 83, .18) 100%); }
.hero-content { position: relative; z-index: 2; width: 54%; max-width: 560px; flex: 1 1 54%; min-width: 0; }
.eyebrow, .section-kicker { display: inline-block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.eyebrow { color: #7ce2dc; margin-bottom: 10px; }
.eyebrow i { margin-right: 7px; }
.hero h1 { font-size: clamp(32px, 4.1vw, 50px); line-height: 1.08; letter-spacing: -1.3px; margin-bottom: 13px; }
.hero h1 span { color: #56d3ce; }
.hero-content > p { max-width: 540px; color: #e0eaf2; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 19px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 21px; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 700; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: #087f91; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,.7); color: white; }
.btn-outline:hover { background: white; color: var(--navy); }
.hero-assurance { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 17px; color: #e4f0f6; font-size: 12px; }
.hero-assurance i { color: #62d8cf; margin-right: 6px; }
.hero-note { position: absolute; z-index: 3; left: 7%; right: auto; bottom: 8px; display: flex; align-items: center; gap: 13px; padding: 15px 20px; border-radius: 8px; background: white; color: var(--navy); box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.note-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-light); color: var(--teal); font-size: 19px; }
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { font-size: 13px; }
.hero-note small { color: var(--muted); font-size: 11px; }

/* HOMEPAGE HERO IMAGE SLIDESHOW - one full-width slide moves horizontally at a time */
.hero-gallery { position: relative; z-index: 2; flex: 0 0 42%; width: 42%; height: 235px; min-width: 0; border: 5px solid rgba(255,255,255,.92); border-radius: 13px; overflow: hidden; background: #092e4f; box-shadow: 0 18px 45px rgba(0,0,0,.28); box-sizing: border-box; }
.hero-slides { position: absolute; inset: 0; display: flex; flex-flow: row nowrap; width: 100%; height: 100%; margin: 0; padding: 0; transform: translate3d(0, 0, 0); transition: transform .65s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-slide { position: relative; display: block; flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%; height: 100%; margin: 0; padding: 0; opacity: 1; visibility: visible; box-sizing: border-box; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(2,20,39,.88)); }
.hero-slide figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 42px; color: #fff; }
.hero-slide figcaption strong, .hero-slide figcaption span { display: block; }
.hero-slide figcaption strong { font-size: 17px; line-height: 1.25; margin-bottom: 5px; }
.hero-slide figcaption span { font-size: 11px; line-height: 1.45; color: #e2edf6; }
.slide-arrow { position: absolute; z-index: 3; top: 45%; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); cursor: pointer; }
.slide-arrow:hover { background: var(--teal); color: #fff; }
.slide-prev { left: 12px; } .slide-next { right: 12px; }
.slide-dots { position: absolute; z-index: 3; left: 18px; bottom: 14px; display: flex; gap: 6px; }
.slide-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s, background .25s; }
.slide-dot.active { width: 20px; background: #62e0d8; }
.slide-counter { position: absolute; z-index: 3; right: 17px; bottom: 10px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; }


/* TRUST STRIP */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1120px; margin: -1px auto 0; padding: 28px 24px; background: white; }
.trust-strip > div { display: flex; align-items: center; gap: 13px; }
.trust-strip > div > i { color: var(--teal); font-size: 25px; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { color: var(--navy); font-size: 13px; }
.trust-strip small { color: var(--muted); font-size: 11px; }

/* SHARED SECTION */
.section-wrap { max-width: 1120px; margin: auto; padding-left: 24px; padding-right: 24px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding-top: 85px; padding-bottom: 90px; }
.intro-photo { position: relative; padding: 0 25px 25px 0; }
.intro-photo::before { content: ""; position: absolute; left: -14px; top: -14px; width: 48%; height: 55%; border: 3px solid #bce9e6; border-radius: 10px; z-index: -1; }
.intro-photo > img { display: block; width: 100%; height: 390px; object-fit: cover; border-radius: 9px; box-shadow: 0 12px 35px rgba(4, 39, 72, .13); }
.photo-caption { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--navy); color: white; padding: 15px 20px; border-radius: 7px; }
.photo-caption > i { color: #5bd4ce; font-size: 24px; }
.photo-caption strong, .photo-caption small { display: block; }
.photo-caption strong { font-size: 13px; }
.photo-caption small { color: #c5d7e5; font-size: 10px; }
.intro-copy h2, .why-copy h2 { color: var(--navy); font-size: clamp(29px, 3vw, 39px); line-height: 1.2; margin: 13px 0 20px; letter-spacing: -.7px; }
.intro-copy p, .why-copy p { color: var(--muted); font-size: 14px; margin-bottom: 15px; }
.intro-copy .lead { color: #344b60; font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--medical-blue); text-decoration: none; font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--teal); gap: 13px; }

/* SERVICES */
.services-section { background: var(--pale); padding: 80px 0 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2, .centered h2 { color: var(--navy); font-size: 34px; line-height: 1.2; margin-top: 8px; }
.section-intro { color: var(--muted); max-width: 690px; font-size: 14px; margin: 16px 0 30px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: white; border-radius: 9px; overflow: hidden; box-shadow: 0 5px 22px rgba(5, 43, 80, .06); transition: .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 13px 30px rgba(5, 43, 80, .12); }
.service-image { height: 180px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.service-card:hover .service-image img { transform: scale(1.05); }
.service-body { position: relative; padding: 25px 22px 23px; }
.service-icon { width: 43px; height: 43px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal); border-radius: 9px; font-size: 18px; margin-top: -47px; position: relative; border: 3px solid white; }
.service-body h3 { color: var(--navy); font-size: 17px; margin: 12px 0 7px; }
.service-body p { color: var(--muted); font-size: 12px; min-height: 60px; }
.service-body a { display: inline-block; color: var(--medical-blue); text-decoration: none; font-size: 11px; font-weight: 800; margin-top: 14px; }
.service-body a i { margin-left: 5px; }

/* WHY US */
.why-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; padding-top: 90px; padding-bottom: 90px; align-items: center; }
.why-copy .btn { margin-top: 17px; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.benefit { padding: 23px 20px; border: 1px solid #e5eef4; border-radius: 8px; }
.benefit i { color: var(--teal); font-size: 24px; margin-bottom: 12px; }
.benefit h3 { color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 11px; }

/* PROCESS */
.process-section { background: #f0f7fb; padding: 78px 0 85px; }
.centered { justify-content: center; text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 45px; }
.process-step { position: relative; background: white; border-radius: 8px; padding: 28px 20px 24px; text-align: center; box-shadow: 0 5px 20px rgba(5, 43, 80, .05); }
.process-step > span { position: absolute; top: 13px; right: 16px; color: #d8e7ef; font-size: 23px; font-weight: 800; }
.process-step > i { color: var(--teal); font-size: 28px; margin: 13px 0 15px; }
.process-step h3 { color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 11px; }

/* CTA */
.cta-section { background: linear-gradient(110deg, var(--navy), #0b5685); color: white; padding: 55px 24px; }
.cta-inner { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner .section-kicker { color: #6de0d8; }
.cta-inner h2 { font-size: 32px; margin: 7px 0; }
.cta-inner p { color: #d2e1ec; font-size: 13px; }
.btn-white { background: white; color: var(--navy); white-space: nowrap; }
.btn-white:hover { background: #dff7f5; transform: translateY(-2px); }

/* FOOTER */
.site-footer { background: #041f3d; color: #d1deea; padding: 60px max(5%, calc((100% - 1120px)/2)) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr 1fr; gap: 35px; padding-bottom: 45px; }
.footer-brand { color: white; }
.footer-brand .brand-name { color: white; }
.footer-about > p { color: #b4c5d4; font-size: 12px; max-width: 280px; margin-top: 18px; }
.footer-grid h3 { color: white; font-size: 14px; margin-bottom: 17px; }
.footer-grid > div:not(:first-child) > a { display: block; color: #c0cfdb; text-decoration: none; font-size: 12px; margin: 8px 0; }
.footer-grid a:hover { color: #59d6cf; }
.footer-grid p { color: #c0cfdb; font-size: 11px; margin: 9px 0; }
.footer-grid p i { color: #59d6cf; width: 18px; }
.footer-grid small { color: #91a7b9; font-size: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 17px 0; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #91a7b9; font-size: 10px; }

/* RESPONSIVE */
@media (max-width: 950px) {
    .main-nav { gap: 14px; }
    .main-nav a { font-size: 12px; }
    .hero-note { right: 4%; }
    .intro { gap: 40px; }
    .why-section { gap: 35px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hero { min-height: auto; padding: 34px 6% 30px; flex-direction: column; align-items: stretch; gap: 22px; }
    .hero-content { width: 100%; max-width: 100%; flex: 0 0 auto; }
    .hero-gallery { width: 100%; flex: 0 0 auto; height: 280px; }
    .hero-note { position: relative; left: auto; right: auto; bottom: auto; align-self: flex-start; margin-top: -8px; }
    .topbar-inner { justify-content: center; gap: 8px 18px; }
    .site-header { padding: 12px 5%; flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px 5px; border-top: 1px solid #edf2f5; }
    .main-nav .nav-appointment { text-align: center; margin-top: 8px; }
    .hero { min-height: auto; padding: 34px 5% 30px; flex-direction: column; align-items: stretch; gap: 22px; }
    .hero-content { width: 100%; flex: 0 0 auto; }
    .hero-gallery { width: 100%; flex: 0 0 auto; height: 270px; }
    .hero-note { left: 5%; bottom: 7px; }
    .hero-shade { background: rgba(3, 30, 59, .82); }
    .hero-note { display: none; }
    .trust-strip { grid-template-columns: 1fr; gap: 18px; padding: 28px 8%; }
    .intro { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; padding-bottom: 65px; }
    .intro-photo > img { height: 330px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .why-section { grid-template-columns: 1fr; padding-top: 65px; padding-bottom: 65px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
    .topbar-inner { font-size: 10px; }
    .brand-name { font-size: 14px; }
    .brand-icon { width: 41px; height: 41px; font-size: 21px; }
    .hero { min-height: auto; padding: 42px 7% 28px; flex-direction: column; align-items: stretch; gap: 24px; }
    .hero-content { width: 100%; max-width: 100%; flex-basis: auto; }
    .hero-gallery { width: 100%; flex: 0 0 auto; height: 260px; }
    .hero-note { position: relative; left: auto; bottom: auto; align-self: flex-start; margin-top: -8px; }
    .hero h1 { letter-spacing: -.8px; }
    .hero-content > p { font-size: 14px; }
    .hero-assurance { flex-direction: column; gap: 8px; }
    .service-grid, .benefit-grid, .process-grid { grid-template-columns: 1fr; }
    .section-heading h2, .centered h2 { font-size: 28px; }
    .intro-photo > img { height: 260px; }
    .photo-caption { right: -3px; padding: 11px 13px; }
    .footer-grid { grid-template-columns: 1fr; gap: 27px; }
    .footer-bottom { flex-direction: column; }
    .cta-inner h2 { font-size: 27px; }
}


/* VERAPH MEDICAL LABORATORY BRAND LOGO */
.site-logo { width: 68px; height: 68px; object-fit: contain; flex: 0 0 auto; border-radius: 50%; }
.footer-brand .site-logo { width: 58px; height: 58px; background: #fff; }
@media (max-width: 760px) { .site-logo { width: 54px; height: 54px; } .footer-brand .site-logo { width: 50px; height: 50px; } }
