/* Clariplex site styles */

:root {
  --navy: #1D3461;
  --navy-deep: #142647;
  --teal: #0BADA0;
  --teal-dark: #08867C;
  --slate: #8A9BB8;
  --ink: #1B2333;
  --muted: #55627A;
  --line: #E3E8F0;
  --wash: #F5F7FB;
  --white: #FFFFFF;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: auto; flex: none; }
.brand-word { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.brand-word .clari { color: var(--navy); }
.brand-word .plex { color: var(--teal); }
.brand .bar-a { fill: var(--navy); }
.brand .bar-b { fill: var(--teal); }
.brand--reverse .brand-word .clari { color: var(--white); }
.brand--reverse .bar-a { fill: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 0.95rem; color: var(--navy); cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-dark); }
.site-nav .btn { color: var(--white); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; margin-top: 14px; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal); color: var(--white);
  padding: 13px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--teal);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--small { padding: 9px 18px; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--wash); border-color: var(--wash); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section--wash { background: var(--wash); }
.section--navy { background: var(--navy); color: #DCE3EF; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--teal); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.section--navy .lede { color: #C3CDDF; }

/* Hero */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero h1 .accent { color: var(--teal); }
.hero .tagline {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 20px; display: block;
}

.seam {
  background: var(--wash); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
}
.seam-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.seam-side h3 { font-size: 1rem; margin-bottom: 10px; }
.seam-side ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.seam-side li { padding: 3px 0; }
.seam-join {
  width: 54px; position: relative; display: flex; align-items: center; justify-content: center;
}
.seam-join::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 0;
  border-left: 2px dashed var(--teal);
}
.seam-join span {
  position: relative; background: var(--teal); color: var(--white); font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.seam-caption { grid-column: 1 / -1; text-align: center; margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .seam { grid-template-columns: 1fr; padding: 18px; }
  .seam-join { width: auto; height: 44px; }
  .seam-join::before { top: 50%; bottom: auto; left: 8px; right: 8px; width: auto; border-left: 0; border-top: 2px dashed var(--teal); }
}

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  font-size: 0.92rem; color: var(--muted); font-weight: 500;
}
.trust li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); margin-right: 10px; vertical-align: middle; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #E3F6F4; color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.section-head { max-width: 46em; margin-bottom: 44px; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.6rem; }
.service-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-item { background: var(--wash); border-radius: var(--radius); padding: 20px; }
.service-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .service-items { grid-template-columns: 1fr; }
}

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: #FFF4DB; color: #8A5A00; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 7px 0 7px 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { counter-increment: step; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.tier--featured { border: 2px solid var(--teal); }
.tier .hours { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 4px 0 2px; }
.tier .hours-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.tier p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.about-photo figcaption { padding: 14px 18px; font-size: 0.9rem; color: var(--muted); background: var(--wash); }
.about-photo figcaption strong { color: var(--navy); display: block; font-size: 1rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 340px; }
}

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
}
.timeline strong { color: var(--navy); display: block; }
.timeline span { color: var(--muted); font-size: 0.95rem; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badges li {
  font-size: 0.88rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--wash); border: 1px solid var(--line); color: var(--navy);
}

h2.spaced { margin-top: 40px; font-size: 1.5rem; }
.spaced-below { margin-bottom: 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.contact-list a { font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--navy); }
.contact-list a:hover { color: var(--teal-dark); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* Page header */
.page-head { padding: clamp(56px, 8vw, 88px) 0 clamp(32px, 5vw, 48px); background: var(--wash); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); max-width: 18em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C4D8; padding: 56px 0 32px; font-size: 0.93rem; }
.site-footer a { color: #DCE3EF; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-tagline { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--slate); margin: 12px 0 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
