/*
Theme Name: Merit Diagnostics
Theme URI: https://meritdiagnostics.com
Author: Merit Diagnostics Team
Description: Clean, sober, and modern WordPress theme for Merit Diagnostics laboratory and clinical services. Includes full marketing site, coming soon mode, and dynamic career CMS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: merit-diagnostics
*/
/* ===== Brand colours ===== */
:root {
  --purple: #7A4697;
  --purple-dark: #5e3375;
  --purple-deep: #3d2150;
  --teal: #5AA7A7;
  --teal-dark: #468f8f;
  --dark: #1f1530;
  --text: #4a4458;
  --muted: #7d7690;
  --light: #f7f3fa;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(61, 33, 80, 0.12);

  /* logo colours (white on purple by default) */
  --logo-main: #ffffff;
  --logo-lines: var(--purple);
  --logo-text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container {
  width: 100%;
  max-width: 1560px;
  padding-left: clamp(16px, 3.5vw, 44px);
  padding-right: clamp(16px, 3.5vw, 44px);
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 8px 22px rgba(90, 167, 167, 0.4); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-purple { background: var(--purple); color: var(--white); box-shadow: 0 8px 22px rgba(122, 70, 151, 0.35); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--purple); }
.full { width: 100%; }
.wa { width: 18px; height: 18px; fill: currentColor; }

/* ===== Logo ===== */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 50px; height: 50px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; font-family: "Comfortaa", sans-serif; color: var(--logo-text); line-height: 1.05; transition: color 0.3s; }
.logo-text strong { font-size: 1.6rem; font-weight: 700; -webkit-text-stroke: 0.6px currentColor; letter-spacing: 0.5px; }
.logo-text span { font-size: 1.2rem; font-weight: 400; letter-spacing: 0.3px; }

/* ===== Header ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.scrolled {
  --logo-main: var(--purple);
  --logo-lines: #ffffff;
  --logo-text: var(--purple);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(61, 33, 80, 0.1);
  padding: 10px 0;
}

.nav { display: flex; gap: 30px; }
.nav a { color: rgba(255, 255, 255, 0.9); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--teal); transition: width 0.3s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header.scrolled .nav a { color: var(--dark); }

.comm { display: flex; align-items: center; gap: 20px; }
.comm-item { display: flex; align-items: center; gap: 10px; color: var(--white); transition: color 0.3s; }
.header.scrolled .comm-item { color: var(--dark); }
.comm-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s;
}
.header.scrolled .comm-icon, .contact .comm-icon { background: rgba(90, 167, 167, 0.15); }
.comm-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header:not(.scrolled) .comm-icon svg { stroke: var(--white); }
.comm-text { display: flex; flex-direction: column; font-size: 0.9rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.comm-text small { font-size: 0.72rem; font-weight: 400; opacity: 0.75; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 24px; position: relative; }
.menu-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }
.header.scrolled .menu-toggle span { background: var(--purple); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 60%, var(--purple-deep) 100%);
  color: var(--white); padding: 170px 0 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 16s ease-in-out infinite; }
.b1 { width: 480px; height: 480px; background: var(--teal); opacity: 0.35; top: -160px; right: -120px; }
.b2 { width: 380px; height: 380px; background: #b07ccf; opacity: 0.3; bottom: -180px; left: -100px; animation-delay: -8s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(36px, 4vw, 70px);
  align-items: center;
}
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 50px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90, 167, 167, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(90, 167, 167, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.15; font-weight: 700; margin: 22px 0 18px; }
.hl { color: var(--teal); }
.hero-content > p { font-size: 1.08rem; opacity: 0.88; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 44px; flex-wrap: wrap; }
.stats { display: flex; gap: clamp(24px, 3.5vw, 48px); flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stats span { font-size: 0.85rem; opacity: 0.75; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.visual-card { background: var(--white); color: var(--dark); border-radius: 24px; box-shadow: 0 30px 60px rgba(20, 8, 30, 0.35); }
.main-card {
  --logo-main: var(--purple); --logo-lines: #ffffff;
  width: min(420px, 100%); padding: clamp(30px, 3vw, 44px) clamp(24px, 2.5vw, 38px);
}
.big-mark { width: 90px; height: 90px; margin-bottom: 22px; }
.main-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--purple); }
.main-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.link-arrow { color: var(--teal); font-weight: 600; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; animation: bob 5s ease-in-out infinite; }
.float-card strong { display: block; font-size: 0.92rem; }
.float-card small { color: var(--muted); font-size: 0.78rem; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--purple); color: var(--white); font-weight: 700; }
.fc-icon.teal { background: var(--teal); }
.fc1 { top: -30px; right: -10px; }
.fc2 { bottom: -28px; right: -10px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Sections ===== */
.section { padding: clamp(70px, 7vw, 110px) 0; }
.section-tint { background: var(--light); }
.section-purple { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 4.5vw, 60px); }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 600; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--dark); line-height: 1.25; margin-bottom: 14px; }
.section-head p { color: var(--muted); }
.section-head.light h2 { color: var(--white); }

/* Services */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2vw, 32px); }
.card { padding: 34px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid #eee6f3; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, var(--purple), var(--teal)); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { color: var(--dark); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2.5vw, 36px); align-items: stretch; }
.package { position: relative; background: var(--white); border-radius: 24px; padding: 40px 34px; box-shadow: 0 8px 30px rgba(61, 33, 80, 0.06); display: flex; flex-direction: column; }
.package h3 { color: var(--dark); font-size: 1.2rem; }
.price { font-size: 2.2rem; font-weight: 700; color: var(--purple); margin: 10px 0 20px; }
.price small { font-size: 1rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.package ul { list-style: none; margin-bottom: 28px; flex: 1; }
.package li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed #eee6f3; font-size: 0.94rem; }
.package li::before { content: "\2713"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: rgba(90, 167, 167, 0.15); color: var(--teal); font-size: 0.72rem; display: grid; place-items: center; font-weight: 700; }
.package.featured { background: linear-gradient(160deg, var(--purple), var(--purple-deep)); color: var(--white); transform: scale(1.05); box-shadow: 0 30px 60px rgba(122, 70, 151, 0.35); }
.package.featured h3, .package.featured .price { color: var(--white); }
.package.featured .price small { color: rgba(255, 255, 255, 0.6); }
.package.featured li { border-color: rgba(255, 255, 255, 0.15); }
.package.featured li::before { background: var(--teal); color: var(--white); }
.tag { position: absolute; top: 20px; right: 20px; background: var(--teal); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 50px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 4.5vw, 75px); align-items: center; }
.about-box {
  --logo-main: #ffffff; --logo-lines: var(--purple);
  position: relative; aspect-ratio: 1 / 0.9; border-radius: 30px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  display: grid; place-items: center; overflow: hidden;
}
.about-box::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: var(--teal); filter: blur(90px); opacity: 0.45; }
.about-mark { position: relative; width: 45%; height: 45%; }
.exp { position: absolute; bottom: 26px; left: 26px; background: var(--white); border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.exp strong { font-size: 1.8rem; color: var(--purple); line-height: 1.1; }
.exp span { font-size: 0.85rem; color: var(--muted); }
.about-content > p { color: var(--muted); margin-bottom: 28px; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why { display: flex; gap: 18px; align-items: flex-start; }
.why > span { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(122, 70, 151, 0.1); color: var(--purple); font-weight: 700; }
.why h4 { color: var(--dark); font-size: 1.05rem; }
.why p { color: var(--muted); font-size: 0.92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2vw, 30px); }
.step { text-align: center; padding: 40px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.step-no { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal); font-size: 1.4rem; font-weight: 700; }
.step h3 { margin-bottom: 8px; }
.step p { opacity: 0.8; font-size: 0.93rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 4vw, 65px); align-items: start; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: center; color: var(--dark); font-weight: 500; }
.info-list small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.info-list a:hover { color: var(--purple); }
.contact-form { background: var(--white); border-radius: 24px; padding: clamp(26px, 3vw, 42px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; border-top: 5px solid var(--teal); }
.contact-form h3 { color: var(--purple); font-size: 1.4rem; margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e6dcec;
  font: inherit; font-size: 0.93rem; color: var(--dark); background: var(--light); outline: none; transition: border-color 0.25s, background 0.25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); background: var(--white); }
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--purple-deep); color: rgba(255, 255, 255, 0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 44px); padding-bottom: 50px; }
.footer-logo { margin-bottom: 18px; }
.footer-grid p { max-width: 320px; font-size: 0.93rem; }
.footer h4 { color: var(--white); margin-bottom: 16px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--teal); }
.copy { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; text-align: center; font-size: 0.85rem; }

/* Careers Banner */
.careers-banner {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee6f3;
  padding: 50px 48px;
  box-shadow: 0 10px 32px rgba(61, 33, 80, 0.05);
}
.careers-banner-content { max-width: 860px; }
.careers-banner-content h2 { margin-bottom: 12px; }
.careers-banner-content p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin-bottom: 24px; }
.careers-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* WhatsApp float */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .comm-item[href^="mailto"] .comm-text { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 1150px) {
  .comm-item .comm-text { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(300px, 80%); height: 100vh;
    flex-direction: column; gap: 26px; padding: 100px 34px;
    background: var(--white); box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15); transition: right 0.35s;
  }
  .nav.open { right: 0; }
  .nav a, .header.scrolled .nav a { color: var(--dark); font-size: 1.05rem; }
  .menu-toggle { z-index: 101; }
  .menu-toggle.open span { background: var(--purple); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 100px; }
  .hero-visual { margin-top: 30px; }
  .cards-grid, .packages, .steps { grid-template-columns: 1fr 1fr; }
  .package.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .logo-icon { width: 42px; height: 42px; }
  .logo-text strong { font-size: 1.3rem; }
  .logo-text span { font-size: 1rem; }
  .comm { gap: 10px; }
  .comm-item[href^="mailto"] { display: none; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 10px; }
  .cards-grid, .packages, .steps, .row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .contact-form { padding: 28px 22px; }
  .stats { gap: 28px; }
  .fc1, .fc2 { right: 0; }
}
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

