/* ============================================================
   components.css — Builder custom components rebuilt as CSS classes.
   Each maps to a Builder component (props noted). Phase D uses these
   classes when rebuilding each page from its screenshot.

   Component -> class:
     Hero            -> .hero            (heading, paragraph, button)
     SectionHeading  -> .section-heading (heading, subHeading)
     Card            -> .card            (leadText, heading, button, variant)
     Icon Card       -> .icon-card       (image, heading)
     Simple Card     -> .simple-card     (heading + highlight word, button)
     imagePanel      -> .image-panel     (image, title)
     TeamMembers     -> .team-grid/.team-member
     Testimonials    -> .testimonials/.testimonial
     Ticker          -> .ticker (logo marquee)
     BlogList        -> .blog-list (see blog.css usage)
   Plus .styled-table (D8 Custom-Code table) and generic layout helpers.
   ============================================================ */

/* ---- layout helpers ---- */
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* keep a 2-up grid from stretching full width on large screens */
.grid--center { max-width: 760px; margin-inline: auto; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--teal-ink); }

/* ---- Hero ---- */
.hero {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero--split { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero__heading { margin: 0; }
.hero__paragraph { font-size: 1.15rem; max-width: 60ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
@media (max-width: 768px) { .hero--split { grid-template-columns: 1fr; } }

/* ---- SectionHeading ---- */
.section-heading { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-heading--center { text-align: center; }
.section-heading__heading { margin: 0 0 .5rem; }
.section-heading__sub { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-inline: auto; }
/* icon that sits above a section heading (What We Do / Blueprint sections) */
.section-icon { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 1rem; }
/* wide illustration below a section's cards */
.section-illus { display: block; max-width: 460px; width: 100%; height: auto; margin: 2.5rem auto 0; }

/* ---- What We Do: service section (matches prod: icon -> heading -> sub -> illustration -> cards) ---- */
.svc-block { padding-block: clamp(2rem, 4.5vw, 3rem); text-align: center; }
.svc-block__icon { display: block; width: 88px; height: 88px; object-fit: contain; margin: 0 auto 1rem; }
.svc-block__title { font-family: var(--font-head); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .75rem; }
.svc-block__sub { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 64ch; margin: 0 auto; }
.svc-block__illus { display: block; max-width: 360px; width: 100%; height: auto; margin: 1.5rem auto 0; }
/* 2-up card grid below the illustration (prod layout) */
.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 980px; margin: clamp(1.5rem, 3vw, 2rem) auto 0; }
@media (max-width: 720px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-cards .card { text-align: left; }
.svc-cards .card__lead { text-align: center; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); font-weight: 700; }
.svc-cards .card__heading { text-align: center; font-size: 1.5rem; margin: .25rem 0 1.25rem; }

/* ---- Card ---- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card__lead { color: var(--teal-ink); font-weight: 600; font-size: .9rem; }
.card__heading { margin: 0 0 .25rem; font-size: 1.25rem; }
.card__actions { margin-top: auto; padding-top: 1rem; }
/* illustration inside a feature card (Blueprint "advanced suite") */
.card__illus { display: block; max-width: 220px; width: 100%; height: auto; margin: .5rem auto 1rem; }
.card__illus--logo { max-width: 180px; }

/* Blueprint "advanced suite": 2-column masonry of centered feature cards */
.suite-grid { columns: 2; column-gap: 2rem; max-width: 900px; margin: 2.5rem auto 0; }
@media (max-width: 720px) { .suite-grid { columns: 1; } }
.suite-grid .card {
  break-inside: avoid; margin-bottom: 2rem; text-align: center; display: block;
}
.suite-grid .card__lead { text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--muted); font-weight: 700; }
.suite-grid .card__heading { color: var(--navy); font-size: 1.4rem; margin: .3rem 0 1rem; }
.suite-grid .card__illus { max-width: 200px; margin: 0 auto 1.25rem; }
.suite-grid .card > div { text-align: left; }
.suite-grid .card > div p { margin: 0 0 .8rem; }
/* wide dashboard screenshot inside a card (Blueprint Analytics) */
.card__illus--wide { max-width: 100%; margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: 8px; }
.card--primary { border-top: 3px solid var(--teal); }
.card--secondary { border-top: 3px solid var(--navy); }

/* ---- Icon Card ---- */
.icon-card { text-align: center; display: grid; gap: .75rem; justify-items: center; padding: 1.25rem; }
.icon-card__img { width: 64px; height: 64px; object-fit: contain; }
.icon-card__heading { font-size: 1.05rem; margin: 0; }

/* Blueprint "right solution" cards: circular icon left, heading + text right */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.feat-card__icon { width: 56px; height: 56px; object-fit: contain; }
.feat-card__heading { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; margin: .1rem 0 .5rem; }
.feat-card__text { color: var(--body); font-size: .92rem; line-height: 1.55; margin: 0; }

/* ---- Simple Card ---- */
.simple-card {
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: #eaf1f3;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.simple-card__heading { color: #fff; }
.simple-card__highlight { color: var(--teal); }

/* ---- imagePanel ---- */
.image-panel { position: relative; border-radius: var(--radius); overflow: hidden; }
.image-panel__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-panel__title {
  position: absolute; inset: auto 0 0; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(26,51,64,.85));
  color: #fff; font-family: var(--font-head); font-size: 1.25rem;
}

/* ---- TeamMembers ---- */
.team-grid { display: grid; gap: 3rem 2rem; grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.team-connect { text-align: center; margin: 2.5rem 0 0; }
.team-connect a { font-weight: 600; color: var(--teal-ink); }
.team-connect a:hover { color: var(--coral); }
.team-member { text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-member.is-hidden { display: none; }
.team-member__photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; }
.team-member__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; }
.team-member__role { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }

/* filter pills (All / Executive / Board of Advice) */
.team-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.75rem; }
.team-filter__btn {
  font: inherit; cursor: pointer; padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.team-filter__btn:hover { border-color: var(--teal); }
.team-filter__btn.is-active { background: var(--coral); border-color: var(--coral); color: #fff; }

/* "Learn more" trigger button */
.team-member__btn {
  font: inherit; cursor: pointer; margin-top: auto;
  background: var(--teal); color: var(--navy); font-weight: 600; font-size: .82rem;
  padding: .4rem 1rem; border: 0; border-radius: 999px;
  transition: background .15s, color .15s;
}
.team-member__btn:hover { background: var(--navy); color: #fff; }

/* member bio modal */
.team-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.team-modal.is-open { display: block; }
.team-modal__backdrop { position: absolute; inset: 0; background: rgba(36, 69, 84, .45); }
.team-modal__card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 16px; padding: 2.25rem 2.25rem 2.5rem;
  width: min(560px, calc(100vw - 2rem)); max-height: min(80vh, 640px); overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); text-align: left;
}
.team-modal__name { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.9rem; margin: 0 0 1rem; }
.team-modal__bio { color: var(--body); line-height: 1.65; }
.team-modal__bio p { margin: 0 0 .9rem; }
.team-modal__bio p:last-child { margin-bottom: 0; }
.team-modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.team-modal__close:hover { background: var(--bg-alt, #f6f8f9); }

/* ---- Partners (logo left, text right) ---- */
.partner-list { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3.5rem); max-width: 980px; margin-inline: auto; }
.partner-row { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.partner-row__logo { display: flex; align-items: center; justify-content: center; }
.partner-row__logo img { max-width: 200px; max-height: 90px; width: auto; height: auto; object-fit: contain; opacity: .85; }
.partner-row__body h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.4rem; margin: 0 0 .6rem; }
.partner-row__body p { color: var(--body); line-height: 1.65; margin: 0; }
@media (max-width: 640px) {
  .partner-row { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .partner-row__body { text-align: left; }
}

/* ---- Testimonials ---- */
.testimonials { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.testimonial {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.testimonial__quote { font-size: 1.05rem; font-style: italic; margin: 0 0 1rem; }
.testimonial__author { font-weight: 600; color: var(--ink); }
.testimonial__role { color: var(--muted); font-size: .9rem; }

/* ---- Ticker (logo marquee) ---- */
.ticker { overflow: hidden; width: 100%; }
.ticker__track { display: flex; gap: 3rem; align-items: center; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker__track img { height: var(--ticker-h, 48px); width: auto; object-fit: contain; }
.ticker--grayscale .ticker__track img { filter: grayscale(1); opacity: .7; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; flex-wrap: wrap; } }

/* ---- Contact Form (Web3Forms, Phase D) ---- */
.contact-form { display: grid; gap: 1rem; max-width: 560px; }
.contact-form label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__honeypot { position: absolute; left: -9999px; }  /* anti-spam */

/* ---- styled-table (D8: Custom Code block in one blog post) ---- */
.styled-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.styled-table th, .styled-table td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.styled-table thead th { background: var(--navy-deep); color: #fff; }
.styled-table tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ---- reveal-on-scroll (opt-in via [data-reveal]) ---- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---- Home hero + logo strip (Phase D) ---- */
/* Extra top space so the hero graphic (which is taller than the hero text and
   overhangs downward) doesn't overlap this bar. */
.logo-strip { padding-block: clamp(3.5rem, 7vw, 4.5rem) 0.5rem; position: relative; z-index: 1; }
/* On narrow-desktop widths the tall hero graphic would overlap the logo bar;
   hide it a little earlier on the home hero specifically (blog keeps 860px). */
@media (max-width: 920px) { .home-hero .bl-hero__graphic { display: none; } }
.logo-strip__inner { display: flex; align-items: center; gap: 1.5rem; }
.logo-strip__label { flex: 0 0 auto; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; max-width: 6rem; line-height: 1.2; }
.logo-strip .ticker { flex: 1 1 auto; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-strip .ticker__track { gap: 3.5rem; }
.logo-strip .ticker__track img { height: 40px; width: auto; object-fit: contain; }

/* ---- Home service cards (Solutions for every practice) ---- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.svc-card__lead { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 .35rem; }
.svc-card__heading { font-size: 1.5rem; margin: 0 0 1.25rem; color: var(--navy); }
.svc-card__desc { color: var(--body); line-height: 1.65; max-width: 46ch; }
.svc-card__desc p { margin: 0 0 1rem; }
.svc-card__features { margin: .5rem 0 1.5rem; color: var(--body); }
/* feature blocks: first <p> is a teal sub-label, rest are the feature lines */
.svc-card__features p { margin: 0 0 .4rem; }
.svc-card__features p:first-child { color: var(--teal-ink); font-weight: 700; margin-bottom: .75rem; }
.svc-card__btn { margin-top: auto; }

/* ---- Home: Which service is right for me ---- */
.ws-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 960px; margin: 0 auto 3rem; }
@media (max-width: 768px) { .ws-intro { grid-template-columns: 1fr; gap: 1.5rem; } }
.ws-intro__col { color: var(--body); line-height: 1.7; }
.ws-intro__col p { margin: 0 0 1rem; }
.ws-intro__col strong { color: var(--navy); font-size: 1.1rem; }

.ws-rows { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); }
.ws-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ws-row--flip .ws-row__media { order: 2; }
@media (max-width: 768px) { .ws-row, .ws-row--flip .ws-row__media { grid-template-columns: 1fr; order: 0; } }
.ws-row__media img { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.ws-row__heading { font-size: 1.5rem; color: var(--navy); margin: .25rem 0 1rem; }
.ws-row__text { color: var(--body); line-height: 1.7; margin-bottom: 1.5rem; }
.ws-row__card .btn { margin-top: .5rem; }

/* ---- Home testimonials carousel ---- */
.tm-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.tm-carousel { max-width: 820px; margin: 0 auto; text-align: center; }
.tm-viewport { position: relative; min-height: 260px; }
.tm-slide { margin: 0; opacity: 0; visibility: hidden; position: absolute; inset: 0; transition: opacity .4s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tm-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.tm-lead { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: var(--navy); margin: 0 0 1.25rem; line-height: 1.35; }
.tm-lead::before { content: "\201C"; color: var(--teal); font-size: 1.4em; vertical-align: -.25em; margin-right: .1em; }
.tm-quote { color: var(--body); line-height: 1.7; margin: 0 0 1.5rem; max-width: 62ch; }
.tm-author { display: flex; flex-direction: column; gap: .15rem; }
.tm-name { font-weight: 700; color: var(--navy); }
.tm-company { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.tm-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background .2s ease; }
.tm-dot.is-active { background: var(--teal); }

/* ---- Contact form layout (Connect section) ---- */
.connect { padding-block: clamp(3rem, 7vw, 5rem); }
.contact-form { max-width: 620px; margin: 0 auto; }
.contact-form__row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.contact-form__submit { margin-top: .5rem; }
.contact-form__status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.2em; }
.contact-form__status.is-success { color: var(--teal-ink); font-weight: 600; }
.contact-form__status.is-error { color: #c0392b; font-weight: 600; }

/* ---- Simple page hero + prose pages (legal, docs) ---- */
.page-hero { background: var(--navy-deep); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cdd8de; margin: .5rem 0 0; max-width: 60ch; }

/* Light hero without graphic (legal + composer docs — matches live: navy
   heading on white, no teal graphic). */
.page-hero--light { background: transparent; padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero--light h1 { color: var(--navy); font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1.15; margin: 0; }
.page-hero--light p { color: var(--body); margin: 1rem 0 0; max-width: 60ch; }

/* ---- Light page hero with teal/coral graphic (About, Blueprint, What We Do,
   Blueprint Analytics — matches live: navy heading on white + graphic pinned
   to the viewport right edge, same treatment as the home/blog hero). ---- */
.page-hero--graphic {
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  position: relative;
}
.page-hero--graphic h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0;
}
.page-hero--graphic p { color: var(--body); font-size: 1.12rem; line-height: 1.7; margin: 1rem 0 0; max-width: 52ch; }
.page-hero__graphic { position: relative; min-height: 300px; align-self: stretch; }
.page-hero__graphic svg {
  position: absolute;
  top: 50%;
  right: min(
    calc(-1 * var(--gutter) - (100vw - var(--maxw)) / 2),
    calc(-1 * var(--gutter))
  );
  transform: translateY(-50%);
  height: 520px;
  width: auto;
  max-width: none;
  pointer-events: none;
}
@media (max-width: 860px) {
  .page-hero--graphic { grid-template-columns: 1fr; }
  .page-hero__graphic { display: none; }
}
.prose-page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose-page .prose { max-width: 760px; }

/* checklist with teal ticks (About intro, service benefits) */
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .5rem 0; }
.check-list li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}
