/* R2R Diagnostic Group - design tokens pulled from the live Wix site */
:root {
  --navy: #1F2A44;        /* headings, accent-2, base-2 */
  --blue: #3D85C6;        /* accent-1, primary buttons */
  --deep: #002B5B;        /* accent-4 */
  --pale: #D9E3F0;        /* accent-3 */
  --shade-1: #F5F7FA;
  --shade-2: #E1E6ED;
  --text: #4A5A7D;        /* paragraph color */
  --white: #FFFFFF;
  --font-head: "Inter", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Neue Haas Unica Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 50px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1; }
h3 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.1; }
h4 { font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.1; }
h5 { font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.1; }
h6 { font-size: clamp(0.95rem, 1.4vw, 1.125rem); line-height: 1.1; }
p { margin: 0; font-size: clamp(1rem, 1.56vw, 1.25rem); }
p.small { font-size: clamp(0.9rem, 1.25vw, 1rem); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.stack > * + * { margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 500;
  border: 0; cursor: pointer; transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #2f6fa9; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--pale); }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy) url("r2r_background.jpg") center / cover no-repeat;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 24px; max-width: 1400px; margin: 0 auto;
}
.logo img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { color: var(--white); font-size: 1rem; opacity: .9; }
.site-nav a:hover, .site-nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.site-header .btn { padding: 12px 26px; font-size: .95rem; letter-spacing: .02em; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  background: var(--navy) url("r2r_background.jpg") center / cover no-repeat;
  color: var(--white); padding: 120px 24px;
}
.hero h1, .hero h4, .hero p { color: var(--white); }
.hero .inner { max-width: 900px; margin: 0 auto; }
.hero h4 { margin-top: 28px; font-weight: 400; }
.hero p { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero .btn { margin-top: 40px; }

/* Sections */
section.block { padding: 96px 24px; }
section.block.shade { background: var(--shade-1); }
.section-head { max-width: 820px; margin: 0 auto 56px; }
.section-head p { margin-top: 20px; }

.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 28px; }

.card { text-align: center; }
.card img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 22px; }
.card h5 { margin-bottom: 12px; }
.card .btn { margin-top: 22px; }
.card.tile {
  background: var(--white); border: 1px solid var(--shade-2); border-radius: 20px;
  padding: 32px 28px 36px;
}
.card.tile img { width: 110px; height: 110px; }
.eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

.step img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 18px; }
.step h6 { color: var(--blue); letter-spacing: .1em; margin-bottom: 8px; }
.step h5 { margin-bottom: 10px; }
.step p { font-size: 1rem; }

/* Statement band */
.statement { background: var(--pale); padding: 80px 24px; }
.statement h2 { color: var(--navy); }

/* CTA band */
.cta { background: var(--shade-1); padding: 110px 24px; }
.cta h2 { margin-top: 18px; }
.cta .btn { margin-top: 36px; }

/* Forms */
.form-card {
  max-width: 760px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--shade-2); border-radius: 20px; padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .95rem; color: var(--navy); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--navy);
  padding: 13px 16px; border: 1px solid var(--shade-2); border-radius: 10px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--text); }
.form-actions { margin-top: 28px; text-align: center; }
.form-actions .btn { min-width: 220px; }
.form-note { margin-top: 16px; font-size: .9rem; text-align: center; }
.form-status { margin-top: 18px; text-align: center; font-weight: 500; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b3261e; }
.inline-form { display: flex; gap: 12px; max-width: 520px; margin: 28px auto 0; }
.inline-form input { flex: 1; font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--shade-2); border-radius: 10px; }
.inline-form input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
.site-footer {
  background: var(--navy) url("r2r_background.jpg") center / cover no-repeat;
  color: var(--white); padding: 72px 24px 36px;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start;
  max-width: var(--max); margin: 0 auto;
}
.site-footer h6 { color: var(--white); line-height: 1.5; font-weight: 500; }
.site-footer h6 a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { color: var(--white); font-size: 1rem; line-height: 1.6; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo img { height: 64px; }
.social { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
}
.social a:hover { background: rgba(255,255,255,.12); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright {
  max-width: var(--max); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2); font-size: .9rem; text-align: center; color: rgba(255,255,255,.85);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--navy); padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,.15);
  }
  .site-nav.open { display: flex; }
  .hero { padding: 80px 24px; }
  section.block { padding: 64px 24px; }
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .inline-form { flex-direction: column; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
}
