/* =========================================
   Health Solution Diagnostic Services
   Brand colors: navy #0e1a3a, gold #c9a14a
   ========================================= */

:root {
  --navy: #0e1a3a;
  --navy-2: #16234a;
  --gold: #c9a14a;
  --gold-2: #b48d35;
  --green: #16a374;
  --bg: #f6f7fb;
  --text: #1a1f33;
  --muted: #5a6478;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(14, 26, 58, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.white { color: var(--white) !important; }
.text-center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 720px; margin: 0 auto 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9ecf3;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  height: 70px;
  overflow: visible;
}
.brand-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: -15px 0;
  transition: transform .2s;
}
.brand:hover .brand-logo { transform: scale(1.03); }

.site-nav { display: flex; align-items: center; gap: 2.4rem; }
.site-nav a {
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--navy);
  position: relative;
  transition: color .2s;
}
.site-nav a.btn { font-size: 1.1rem; padding: .85rem 1.6rem; }
.site-nav a:hover { color: var(--gold-2); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-2); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 600px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-content {
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content h1 { color: var(--white); }
.hero-text {
  font-size: 1.05rem;
  max-width: 540px;
  opacity: .9;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  background: linear-gradient(135deg, #2a3a6a, #1a2750);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: .82rem;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.eyebrow-green { color: var(--green); }

/* ---------- Section ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { margin-bottom: 3rem; }
.head-rule {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: .8rem;
}

.services-section { background: var(--bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  text-align: center;
  transition: transform .2s, box-shadow .25s;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card h3 {
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: .8rem;
}
.service-card p { opacity: .9; margin: 0; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* ---------- Why ---------- */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-image {
  background: linear-gradient(135deg, #d8dde9, #a9b3cc);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--green);
  min-height: 460px;
  position: relative;
}
.why-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: .6rem;
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 800;
}
.check-list.gold li::before { color: var(--gold); }

.why-text { color: var(--muted); margin: 1.5rem 0; }

/* ---------- Mobile Section ---------- */
.mobile-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.mobile-section h2 { color: var(--white); }
.mobile-image {
  margin: 3rem auto 0;
  max-width: 800px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 16 / 9;
  position: relative;
}
.mobile-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

/* ---------- Compliance ---------- */
.compliance-section { background: var(--bg); }
.compliance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.compliance-image {
  background: linear-gradient(135deg, #d8dde9, #a9b3cc);
  border-radius: var(--radius);
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.compliance-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(14,26,58,0.05);
}
.info-card h3 { color: var(--navy); margin-bottom: .6rem; }
.info-card p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold);
  color: var(--navy);
  overflow: hidden;
  padding: 1rem 0;
  font-weight: 700;
  letter-spacing: .15em;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { opacity: .9; max-width: 640px; }

/* ---------- Service rows (services.html) ---------- */
.service-list { display: flex; flex-direction: column; gap: 3.5rem; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row-card {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-stats > div {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gold);
}
.about-stats strong {
  display: block;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: .3rem;
}
.about-stats span { font-size: .9rem; opacity: .85; }

.values-section { background: var(--bg); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 12px rgba(14,26,58,0.06);
}
.value-card h3 { color: var(--navy); }
.value-card p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: var(--navy);
  padding: 4rem 0;
}
.cta-band-inner { text-align: center; }
.cta-band h2 { color: var(--navy); margin-bottom: .6rem; }
.cta-band p { margin-bottom: 2rem; }
.cta-band .btn-gold {
  background: var(--navy);
  color: var(--white);
}
.cta-band .btn-gold:hover { background: var(--navy-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecf3;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contact-list strong { color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--gold-2); font-weight: 600; }

.contact-form {
  background: var(--bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
}
.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .75rem 1rem;
  border: 1px solid #d4d9e6;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,161,74,0.18);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-success {
  margin-top: 1rem;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  opacity: .7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 5%;
    gap: 1rem;
    border-bottom: 1px solid #e9ecf3;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .brand-logo { height: 120px; margin: -38px 0; }

  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 320px; }

  .why-grid,
  .compliance-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .about-stats { grid-template-columns: 1fr; }
}
