/* RWC website - components layer. Composes only from tokens.css. */

/* ---------- Navigation ---------- */
.rwc-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--rwc-color-surface-page);
  border-bottom: var(--rwc-layout-hairline) solid var(--rwc-color-border-subtle);
  height: var(--rwc-nav-height);
}
@media (min-width: 1024px) {
  .rwc-nav { height: var(--rwc-nav-height-lg); }
}
.rwc-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rwc-space-lg);
}
.rwc-nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.rwc-nav__wordmark-primary {
  font-family: var(--rwc-font-family-base);
  font-weight: var(--rwc-font-weight-bold);
  font-size: 1.125rem;
  color: var(--rwc-color-brand-navy);
  letter-spacing: -0.01em;
}
.rwc-nav__wordmark-secondary {
  font-size: var(--rwc-type-eyebrow-size);
  font-weight: var(--rwc-type-eyebrow-weight);
  letter-spacing: var(--rwc-type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--rwc-color-brand-teal-ink);
}
.rwc-nav__links {
  display: none;
  align-items: center;
  gap: var(--rwc-space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .rwc-nav__links { display: flex; }
}
.rwc-nav__link {
  font-size: var(--rwc-type-label-size);
  font-weight: var(--rwc-type-label-weight);
  letter-spacing: var(--rwc-type-label-tracking);
  color: var(--rwc-color-brand-navy);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--rwc-space-2xs);
}
.rwc-nav__link:hover { color: var(--rwc-color-brand-teal-ink); }
.rwc-nav__link[aria-current="page"] {
  color: var(--rwc-color-brand-teal-ink);
  border-bottom: var(--rwc-layout-rule) solid var(--rwc-color-brand-teal-ink);
}
.rwc-nav__cta { display: none; }
@media (min-width: 768px) {
  .rwc-nav__cta { display: inline-flex; }
}

/* Mobile disclosure toggle */
.rwc-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rwc-control-min-height);
  height: var(--rwc-control-min-height);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rwc-color-brand-navy);
}
@media (min-width: 768px) {
  .rwc-nav__toggle { display: none; }
}
.rwc-nav__mobile {
  display: none;
  position: absolute;
  top: var(--rwc-nav-height);
  left: 0;
  right: 0;
  background: var(--rwc-color-surface-page);
  border-bottom: var(--rwc-layout-hairline) solid var(--rwc-color-border-subtle);
  box-shadow: var(--rwc-shadow-md);
  padding: var(--rwc-space-lg) var(--rwc-layout-gutter);
}
.rwc-nav__mobile[data-open="true"] { display: block; }
.rwc-nav__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rwc-space-md);
}
.rwc-nav__mobile-list a {
  display: block;
  font-size: var(--rwc-type-label-size);
  font-weight: var(--rwc-type-label-weight);
  color: var(--rwc-color-brand-navy);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.rwc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rwc-space-xs);
  font-family: var(--rwc-font-family-base);
  font-size: var(--rwc-type-label-size);
  font-weight: var(--rwc-type-label-weight);
  letter-spacing: var(--rwc-type-label-tracking);
  border-radius: var(--rwc-radius-md);
  min-height: var(--rwc-control-min-height);
  padding: var(--rwc-space-sm) var(--rwc-space-lg);
  text-decoration: none;
  cursor: pointer;
  border: var(--rwc-layout-hairline) solid transparent;
}
.rwc-button--compact { min-height: var(--rwc-control-min-height-compact); padding: var(--rwc-space-xs) var(--rwc-space-md); }

.rwc-button--primary {
  background: var(--rwc-color-brand-teal-ink);
  color: var(--rwc-color-text-on-dark);
}
.rwc-button--primary:hover { background: var(--rwc-color-brand-teal-ink-hover); }
.rwc-button--primary:active { background: var(--rwc-color-brand-teal-ink-hover); box-shadow: none; }
.rwc-button--primary:disabled {
  background: var(--rwc-color-state-disabled-bg);
  color: var(--rwc-color-state-disabled-fg);
  cursor: not-allowed;
}

.rwc-button--secondary {
  background: var(--rwc-color-surface-card);
  border-color: var(--rwc-color-border-strong);
  color: var(--rwc-color-brand-teal-ink);
}
.rwc-button--secondary:hover { background: var(--rwc-color-surface-teal-tint); }
.rwc-button--secondary:active { background: var(--rwc-color-surface-teal-tint); border-color: var(--rwc-color-brand-teal-ink-hover); }
.rwc-button--secondary:disabled {
  background: var(--rwc-color-state-disabled-bg);
  border-color: var(--rwc-color-state-disabled-fg);
  color: var(--rwc-color-state-disabled-fg);
  cursor: not-allowed;
}

.rwc-button--text {
  background: none;
  color: var(--rwc-color-brand-teal-ink);
  padding-inline: var(--rwc-space-2xs);
}
.rwc-button--text:hover { color: var(--rwc-color-brand-teal-ink-hover); text-decoration: underline; }
.rwc-button--text:disabled { color: var(--rwc-color-state-disabled-fg); cursor: not-allowed; }

/* ---------- Section header ---------- */
.rwc-section-header {
  max-width: var(--rwc-layout-content-max);
  margin-bottom: var(--rwc-space-2xl);
}
.rwc-section-header__standfirst {
  margin-top: var(--rwc-space-sm);
  color: var(--rwc-color-text-body);
}

/* ---------- Band (alternating content section) ---------- */
.rwc-band--muted { background: var(--rwc-color-surface-muted); }
.rwc-band--teal-tint { background: var(--rwc-color-surface-teal-tint); }

/* ---------- Hero ---------- */
.rwc-hero {
  padding-block: var(--rwc-space-3xl);
}
@media (min-width: 1024px) {
  .rwc-hero { padding-block: var(--rwc-space-5xl); }
}
.rwc-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rwc-space-2xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .rwc-hero__grid { grid-template-columns: 1fr 1fr; gap: var(--rwc-space-3xl); }
}
.rwc-hero__eyebrow { margin-bottom: var(--rwc-space-md); }
.rwc-hero__headline {
  color: var(--rwc-color-brand-navy);
  max-width: 18ch;
}
@media (min-width: 1024px) { .rwc-hero__headline { max-width: 15ch; } }
.rwc-hero__standfirst {
  max-width: var(--rwc-layout-content-max);
  margin-top: var(--rwc-space-lg);
  color: var(--rwc-color-text-body);
}
.rwc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rwc-space-md);
  margin-top: var(--rwc-space-xl);
}

/* Hero media: photo + a decorative teal shape behind it + a small
   overlay card, per the brief. Order in source is text-first (the
   headline is what a screen reader / no-CSS view meets first); the
   grid re-orders media to the right visually at bp_lg+. */
.rwc-hero__media {
  position: relative;
  margin-bottom: var(--rwc-space-lg); /* room for the overlay card's overhang */
}
@media (min-width: 1024px) {
  .rwc-hero__media { order: 2; }
  .rwc-hero__content { order: 1; }
}
.rwc-hero__shape {
  position: absolute;
  top: calc(-1 * var(--rwc-space-lg));
  right: calc(-1 * var(--rwc-space-lg));
  width: 75%;
  height: 75%;
  background: var(--rwc-color-brand-teal); /* decorative graphic only, per 1.1 */
  border-radius: var(--rwc-radius-lg);
  z-index: 0;
}
.rwc-hero__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rwc-radius-lg);
}
.rwc-hero__overlay-card {
  position: absolute;
  z-index: 2;
  left: var(--rwc-space-lg);
  bottom: calc(-1 * var(--rwc-space-lg));
  max-width: 12rem;
  background: var(--rwc-color-surface-card);
  border-radius: var(--rwc-radius-lg);
  box-shadow: var(--rwc-shadow-md);
  padding: var(--rwc-space-md) var(--rwc-space-lg);
}
.rwc-hero__overlay-card p {
  margin: 0;
  color: var(--rwc-color-brand-navy);
  font-weight: var(--rwc-font-weight-semibold);
  font-size: var(--rwc-type-body-sm-size);
  line-height: 1.4;
}

/* ---------- Cards / services grid ---------- */
.rwc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rwc-layout-grid-gap);
}
@media (min-width: 1024px) {
  .rwc-grid { grid-template-columns: repeat(12, 1fr); }
}
.rwc-card {
  grid-column: 1 / -1;
  background: var(--rwc-color-surface-card);
  border: var(--rwc-layout-hairline) solid var(--rwc-color-border-subtle);
  border-radius: var(--rwc-radius-lg);
  padding: var(--rwc-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--rwc-space-sm);
}
@media (min-width: 1024px) {
  .rwc-card--half { grid-column: span 6; }
  .rwc-card--third { grid-column: span 4; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rwc-card--third { grid-column: span 2; }
}
.rwc-card__title { color: var(--rwc-color-brand-navy); }
.rwc-card__body { color: var(--rwc-color-text-body); }

/* ---------- Credibility strip ----------
   The brief asks for a warm-sand panel; GL-1018 has no sand surface
   token (sand is text-on-navy or ornament only), so this uses the
   muted surface with a sand top-rule as the ornamental nod instead of
   introducing an off-token colour. */
.rwc-credibility {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rwc-space-xl);
}
@media (min-width: 768px) {
  .rwc-credibility { grid-template-columns: repeat(3, 1fr); }
}
.rwc-credibility__item {
  border-top: var(--rwc-layout-rule) solid var(--rwc-color-accent-sand);
  padding-top: var(--rwc-space-md);
}
.rwc-credibility__title { color: var(--rwc-color-brand-navy); }
.rwc-credibility__body {
  margin-top: var(--rwc-space-xs);
  color: var(--rwc-color-text-body);
}

/* ---------- Approach + testimonial (paired side by side) ---------- */
.rwc-approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rwc-space-2xl);
  align-items: start;
}
@media (min-width: 1024px) {
  .rwc-approach__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--rwc-space-3xl);
    align-items: center;
  }
}

/* ---------- Checklist (How we help) ---------- */
.rwc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rwc-space-md);
  max-width: var(--rwc-layout-content-max);
}
.rwc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--rwc-space-sm);
}
.rwc-checklist__icon {
  flex-shrink: 0;
  color: var(--rwc-color-brand-teal); /* decorative graphic only, per 1.1 */
  margin-top: 0.2em;
}
.rwc-checklist__text { color: var(--rwc-color-text-body); }

/* ---------- CTA band ---------- */
.rwc-cta-band {
  background: var(--rwc-color-brand-navy);
  color: var(--rwc-color-text-on-dark);
  padding-block: var(--rwc-space-3xl);
  text-align: center;
}
@media (min-width: 1024px) {
  .rwc-cta-band { padding-block: var(--rwc-space-4xl); }
}
.rwc-cta-band__inner {
  max-width: var(--rwc-layout-content-max);
  margin-inline: auto;
}
.rwc-cta-band h2 { color: var(--rwc-color-text-on-dark); }
.rwc-cta-band__body {
  margin-top: var(--rwc-space-sm);
  color: var(--rwc-color-text-on-dark-muted);
}
.rwc-cta-band .rwc-button { margin-top: var(--rwc-space-xl); }

/* ---------- Testimonial ---------- */
.rwc-testimonial {
  background: var(--rwc-color-surface-teal-tint);
  border-radius: var(--rwc-radius-lg);
  padding: var(--rwc-space-xl);
  border-left: var(--rwc-layout-rule) solid var(--rwc-color-brand-teal-ink);
  max-width: var(--rwc-layout-content-max);
}
.rwc-testimonial blockquote {
  font-size: var(--rwc-type-quote-size);
  font-weight: var(--rwc-type-quote-weight);
  line-height: var(--rwc-type-quote-lh);
  letter-spacing: var(--rwc-type-quote-tracking);
  color: var(--rwc-color-brand-navy);
}
.rwc-testimonial figcaption {
  margin-top: var(--rwc-space-md);
  font-size: var(--rwc-type-meta-size);
  color: var(--rwc-color-text-muted);
}

/* ---------- Form field ---------- */
.rwc-form { max-width: var(--rwc-layout-content-max); }
.rwc-field { margin-bottom: var(--rwc-space-lg); }
.rwc-field__label {
  display: block;
  font-size: var(--rwc-type-label-size);
  font-weight: var(--rwc-type-label-weight);
  color: var(--rwc-color-brand-navy);
  margin-bottom: var(--rwc-space-xs);
}
.rwc-field__control {
  width: 100%;
  min-height: var(--rwc-control-min-height);
  padding: var(--rwc-space-md);
  font-family: var(--rwc-font-family-base);
  font-size: var(--rwc-type-body-size);
  color: var(--rwc-color-text-body);
  background: var(--rwc-color-surface-card);
  border: var(--rwc-layout-hairline) solid var(--rwc-color-border-strong);
  border-radius: var(--rwc-radius-md);
}
.rwc-field__control:hover { border-color: var(--rwc-color-brand-navy); }
textarea.rwc-field__control { min-height: var(--rwc-field-textarea-min-height); resize: vertical; }
.rwc-field__helper {
  margin-top: var(--rwc-space-xs);
  font-size: var(--rwc-type-meta-size);
  color: var(--rwc-color-text-muted);
}
.rwc-field--invalid .rwc-field__control {
  border-color: var(--rwc-color-status-error);
}
.rwc-field__error {
  margin-top: var(--rwc-space-xs);
  font-size: var(--rwc-type-meta-size);
  color: var(--rwc-color-status-error);
}
.rwc-field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rwc-form__status {
  margin-top: var(--rwc-space-md);
  padding: var(--rwc-space-sm) var(--rwc-space-md);
  border-radius: var(--rwc-radius-md);
  font-size: var(--rwc-type-body-sm-size);
  display: none;
}
.rwc-form__status[data-state="success"] {
  display: block;
  background: var(--rwc-color-status-success-surface);
  color: var(--rwc-color-status-success);
}
.rwc-form__status[data-state="error"] {
  display: block;
  background: var(--rwc-color-status-error-surface);
  color: var(--rwc-color-status-error);
}

/* ---------- Footer ---------- */
.rwc-footer {
  background: var(--rwc-color-brand-navy);
  color: var(--rwc-color-text-on-dark);
  padding-block: var(--rwc-space-3xl);
}
@media (min-width: 1024px) {
  .rwc-footer { padding-block: var(--rwc-space-4xl); }
}
.rwc-footer__grid {
  display: grid;
  gap: var(--rwc-space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .rwc-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.rwc-footer h4 { color: var(--rwc-color-text-on-dark); }
.rwc-footer a {
  color: var(--rwc-color-text-on-dark);
  text-decoration: none;
  font-size: var(--rwc-type-body-sm-size);
}
.rwc-footer a:hover { color: var(--rwc-color-accent-sand); }
.rwc-footer__divider {
  border: none;
  border-top: var(--rwc-layout-hairline) solid var(--rwc-color-accent-sand);
  margin-block: var(--rwc-space-xl);
}
.rwc-footer__legal {
  font-size: var(--rwc-type-meta-size);
  color: var(--rwc-color-text-on-dark-muted);
}
