/* Phillips Diagnostics Services — site styles */

:root {
  --red: #b8232f;
  --red-dark: #8a1822;
  --red-light: #f4d6d9;
  --ink: #1c1f24;
  --ink-soft: #4a4f57;
  --muted: #7a808a;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --bg-tint: #fbf3f4;
  --line: #e6e8ec;
  --shadow: 0 6px 24px rgba(20, 22, 28, 0.08);
  --radius: 10px;
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ===== Header / Nav ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: 0.5px;
}
.brand-text {
  font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand-text small {
  font-weight: 500; font-size: 0.72rem;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
}

.primary-nav { display: flex; gap: 6px; }
.primary-nav a {
  color: var(--ink-soft); text-decoration: none;
  padding: 10px 12px; border-radius: 6px;
  font-weight: 500; font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.primary-nav a:hover { background: var(--bg-tint); color: var(--red); }
.primary-nav a.active { color: var(--red); }

.nav-toggle {
  display: none; background: none; border: none;
  width: 40px; height: 40px; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: #111;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,15,20,0.78) 0%, rgba(184,35,47,0.45) 100%);
  display: flex; align-items: center;
}
.slide-content { color: #fff; max-width: 720px; }
.slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
}
.slide-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0 0 24px;
  opacity: 0.92;
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: #fff;
  border: none; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
}
.slider-dots button.is-active { background: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 22px;
  border-radius: 6px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all 0.15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red); text-decoration: none; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--bg-tint); color: var(--red-dark); text-decoration: none; }
.btn-block { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Features strip ===== */
.features {
  background: var(--bg-soft);
  padding: 50px 0;
}
.features .container {
  display: grid; gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
.feature { text-align: center; padding: 14px; }
.feature-icon {
  font-size: 2.2rem; margin-bottom: 8px;
}
.feature h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ===== Section: services preview ===== */
.services-preview { padding: 70px 0; }
.section-title {
  text-align: center; margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-sub {
  text-align: center; color: var(--ink-soft);
  margin: 0 auto 36px; max-width: 640px;
}
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red-light); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink); }
.card p { margin: 0 0 14px; color: var(--ink-soft); }
.card-link { font-weight: 600; }

/* ===== Pricing cards ===== */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .price-tag {
  display: inline-block;
  background: var(--red); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  align-self: flex-start;
  margin-bottom: 12px;
}
.pricing-card .btn { margin-top: auto; align-self: flex-start; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 50px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 4px; font-size: 1.6rem; }
.cta-band p { margin: 0; opacity: 0.92; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: linear-gradient(120deg, #1c1f24 0%, #3a1216 100%);
  color: #fff; padding: 80px 0 60px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 8px;
}
.page-hero p { margin: 0; opacity: 0.9; font-size: 1.1rem; }

/* ===== Content blocks ===== */
.content-block { padding: 70px 0; }
.content-block.alt { background: var(--bg-soft); }
.content-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 16px;
}
.content-block p { color: var(--ink-soft); }
.narrow { max-width: 800px; }

.two-col {
  display: grid; gap: 36px;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}
.info-box {
  background: var(--bg-tint);
  border-left: 4px solid var(--red);
  padding: 22px 24px; border-radius: 6px;
}
.info-box h4 { margin: 0 0 8px; color: var(--red-dark); }
.info-box p { margin: 0; color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li {
  padding: 8px 0 8px 28px; position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.check-list li:before {
  content: "✓"; color: var(--red);
  position: absolute; left: 4px; top: 8px; font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
  border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 12px; padding: 16px 20px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600;
  color: var(--ink); list-style: none;
  position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+"; position: absolute; right: 4px; top: -2px;
  font-size: 1.4rem; color: var(--red); transition: transform 0.2s;
}
.faq[open] summary:after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ===== Forms ===== */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.form-card label {
  display: block; margin-bottom: 14px;
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.form-card input, .form-card select, .form-card textarea {
  display: block; width: 100%;
  margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff;
  font-weight: 400;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}
.form-row {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.form-success {
  background: #e8f5ec; border: 1px solid #b6e0c2;
  color: #1e6c33; padding: 12px 16px; border-radius: 6px;
  margin-top: 14px;
}
.form-note { font-size: 0.85rem; margin-top: 14px; }

/* ===== Contact methods (no-form pages) ===== */
.contact-card h2 { margin-top: 0; }
.contact-card .info-heading { margin-top: 24px; font-size: 1.05rem; }
.contact-methods {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0 8px;
}
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.contact-method:hover {
  border-color: var(--red); background: var(--bg-tint);
  text-decoration: none; transform: translateY(-2px);
}
.contact-method-icon {
  font-size: 1.7rem;
  width: 46px; height: 46px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  border-radius: 8px; flex-shrink: 0;
}
.contact-method strong {
  display: block; color: var(--ink);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-method span {
  color: var(--ink-soft); font-size: 0.98rem;
  white-space: nowrap;
}
.contact-method > div:last-child { min-width: 0; }

@media (max-width: 540px) {
  .contact-methods { grid-template-columns: 1fr; }
}

/* ===== Map ===== */
.map-embed {
  margin-top: 18px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer {
  background: #14161b; color: #c9ccd2;
  padding: 50px 0 0; margin-top: 30px;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 36px;
}
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer .brand-text { color: #fff; }
.site-footer h4 {
  color: #fff; font-size: 0.95rem;
  margin: 0 0 12px; letter-spacing: 0.5px; text-transform: uppercase;
}
.site-footer p { color: #c9ccd2; margin: 0 0 10px; }
.site-footer a { color: #f0c8cc; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid #262a31;
  padding: 18px 0; font-size: 0.88rem; color: #8b909a;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features .container,
  .card-grid,
  .footer-grid,
  .two-col { grid-template-columns: 1fr; }
  .hero-slider { height: 460px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
    display: none;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 14px 22px; border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:last-child { border-bottom: none; }
  .nav-wrap { position: relative; }
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-slider { height: 420px; }
  .slider-arrow { width: 38px; height: 38px; }
  .cta-band-inner { text-align: center; justify-content: center; }
}
