/* ==========================================================================
   Romanzo Diagnostics — Design tokens
   ========================================================================== */
:root {
  --ink: #1B1F1D;
  --ink-soft: #3A3F3A;
  --muted: #6E7369;
  --paper: #FBFAF7;
  --paper-alt: #F4F2ED;
  --line: #E3E0D8;
  --orange: #F14C1C;
  --orange-deep: #C93A12;
  --orange-tint: #FCE7DA;
  --orange-tint-2: #FDF1E8;
  --white: #FFFFFF;

  --display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo-img {
  height: 58px;
  width: auto;
  display: block;
}
.footer-brand .logo-img { height: 50px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
}
.main-nav a:hover { color: var(--orange-deep); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-deep); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-ghost { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.btn-ghost:hover { color: var(--orange-deep); }

.hamburger { display: none; }

/* ==========================================================================
   Pulse line — signature motif
   ========================================================================== */
.pulse-divider {
  width: 100%;
  height: 40px;
  overflow: hidden;
}
.pulse-divider svg { width: 100%; height: 100%; display: block; }
.pulse-line-path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140 1000;
  animation: pulseTravel 3.2s linear infinite;
}
.pulse-line-path.pulse-line-thick {
  stroke-width: 3;
  stroke-dasharray: 90 1000;
  animation-duration: 2.6s;
}
@keyframes pulseTravel {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: -1000; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-line-path { animation: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}
.hero h1 {
  font-size: 56px;
  margin: 22px 0 22px;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  color: var(--ink);
}
.hero-stats .stat span {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  background: var(--orange-tint-2);
  border: 1px solid var(--orange-tint);
  border-radius: 4px;
  padding: 30px;
  height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-card-top .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
}
.hero-card-top .live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.hero-card-top .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3E9B5C;
}
.hero-visual .big-metric {
  font-family: var(--display);
  font-size: 84px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-visual .big-metric-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.hero-visual-line { width: 100%; height: 90px; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  flex-wrap: wrap;
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.trust-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ==========================================================================
   Photo Banner
   ========================================================================== */
.photo-banner {
  position: relative;
  height: 440px;
  overflow: hidden;
}
.photo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,23,21,0.92) 0%, rgba(20,23,21,0.68) 42%, rgba(227,91,37,0.28) 100%);
}
.photo-banner .wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.photo-banner-content { max-width: 560px; color: var(--white); }
.photo-banner-content .eyebrow { color: #FFB08A; }
.photo-banner-content .eyebrow::before { background: #FFB08A; }
.photo-banner-content h2 {
  font-size: 38px;
  color: var(--white);
  margin-top: 16px;
}
.photo-banner-content p {
  color: rgba(255,255,255,0.78);
  font-size: 15.5px;
  margin-top: 16px;
  max-width: 460px;
}
.photo-banner-content .hero-ctas { margin-top: 28px; margin-bottom: 0; }
@media (max-width: 620px) {
  .photo-banner { height: 480px; }
  .photo-banner-content h2 { font-size: 28px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: 38px;
  margin-top: 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 34px 30px;
  transition: background .18s ease;
}
.service-card:hover { background: var(--white); }
.service-card .icon {
  width: 42px; height: 42px;
  color: var(--orange);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--muted);
}
.service-card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* Process / how it works */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  border-top: 2px solid var(--orange);
  padding-top: 20px;
}
.process-step .num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
}
.process-step h4 {
  font-size: 17px;
  margin: 10px 0 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--muted);
}

/* Split section (about / why choose) */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split-image {
  background: var(--orange-tint-2);
  border: 1px solid var(--orange-tint);
  border-radius: 4px;
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.split-image .caption {
  padding: 24px;
  background: rgba(27,31,29,0.82);
  color: var(--white);
  width: 100%;
  font-size: 13.5px;
  position: relative;
  z-index: 1;
}
.feature-list { margin-top: 28px; display: grid; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--muted); }

/* Packages / pricing */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.package-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.package-card.featured {
  border-color: var(--orange);
  background: var(--orange-tint-2);
  position: relative;
}
.package-card .badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}
.package-card h3 { font-size: 20px; margin-bottom: 6px; }
.package-card .price {
  font-family: var(--display);
  font-size: 30px;
  margin: 14px 0 4px;
}
.package-card .price span { font-size: 13px; color: var(--muted); font-family: var(--body); }
.package-card .desc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.package-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.package-card li { font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.package-card li svg { width: 15px; height: 15px; color: var(--orange); margin-top: 3px; flex-shrink: 0; }
.package-card .btn { margin-top: auto; justify-content: center; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.testimonial-card .stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange-tint); color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
}
.testimonial-card .who b { display: block; font-size: 13.5px; }
.testimonial-card .who span { font-size: 12px; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band h2 { font-size: 32px; max-width: 480px; }
.cta-band p { color: rgba(255,255,255,0.65); margin-top: 12px; font-size: 15px; }
.cta-band .btn-primary { background: var(--orange); }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 44px; margin-top: 16px; }
.page-header p { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 560px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--orange-deep); font-weight: 600; }

/* Department list (services page) */
.dept-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.dept-block:last-child { border-bottom: none; }
.dept-meta .eyebrow { margin-bottom: 14px; }
.dept-meta h3 { font-size: 24px; margin-bottom: 10px; }
.dept-meta p { font-size: 14.5px; color: var(--muted); }
.dept-tests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.dept-tests .test-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.dept-tests .test-row span:last-child { color: var(--muted); font-size: 13px; }

/* Form (appointment / contact) */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
}
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14.5px;
  border-radius: var(--radius);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 8px; }

.info-card {
  background: var(--orange-tint-2);
  border: 1px solid var(--orange-tint);
  padding: 32px;
  margin-bottom: 20px;
}
.info-card h3 { font-size: 16px; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-row:last-child { margin-bottom: 0; }
.info-row svg { width: 19px; height: 19px; color: var(--orange-deep); flex-shrink: 0; margin-top: 2px; }
.info-row b { display: block; font-size: 13.5px; }
.info-row span { font-size: 13.5px; color: var(--muted); }

.map-frame {
  height: 260px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Team grid (about page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: left; }
.team-photo {
  height: 200px;
  background: var(--orange-tint-2);
  border: 1px solid var(--orange-tint);
  margin-bottom: 14px;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card h4 { font-size: 15.5px; margin-bottom: 3px; }
.team-card span { font-size: 12.5px; color: var(--muted); }

/* Values grid (about) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card .num { font-family: var(--display); color: var(--orange); font-size: 14px; font-weight: 700; }
.value-card h4 { font-size: 18px; margin: 12px 0 8px; }
.value-card p { font-size: 14px; color: var(--muted); }

/* Timeline (about) */
.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item .year { font-family: var(--display); font-size: 20px; color: var(--orange-deep); }
.timeline-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 22px;
  font-weight: 400;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 640px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-family: var(--body);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 13.5px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .links { display: flex; gap: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid, .split, .form-shell { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 220px; margin-bottom: 8px; }
  .hero-visual .big-metric { font-size: 56px; }
  .services-grid, .process-list, .packages-grid, .testimonial-grid, .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dept-block { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 190px; padding: 22px; }
  .hero-visual .big-metric { font-size: 46px; }
  .section-head h2 { font-size: 28px; }
  .services-grid, .process-list, .packages-grid, .testimonial-grid, .team-grid, .values-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .section { padding: 64px 0; }
}
