/*
Theme Name: BrightSteps Preview Fix
Description: Responsive BrightSteps Therapy and Learning Center landing page, rebuilt from the supplied Canva PDF.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: brightsteps-preview-fix
*/

:root {
  --bs-navy: #092e5d;
  --bs-deep: #03449a;
  --bs-blue: #0964cc;
  --bs-mid: #216bc8;
  --bs-pale: #b8e1ed;
  --bs-yellow: #ffcf2b;
  --bs-surface: #fff;
  --bs-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.bs-shell {
  box-sizing: border-box;
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.bs-landing,
.bs-inner,
.bs-header {
  line-height: 1.55;
}

.bs-landing h1,
.bs-landing h2,
.bs-landing h3 {
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0;
}

.bs-landing h1 { font-size: clamp(2.6rem, 4.5vw, 4.5rem); }
.bs-landing h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.bs-landing h3 { font-size: 1.36rem; }
.bs-landing p { margin: 0; }
.bs-landing a:focus-visible,
.bs-header a:focus-visible,
.bs-contact-form :focus-visible {
  outline: 3px solid var(--bs-yellow);
  outline-offset: 4px;
}
.bs-header a:focus-visible,
.bs-contact-form :focus-visible { outline-color: var(--bs-navy); }

.bs-hero {
  color: var(--bs-surface);
  background: linear-gradient(180deg, var(--bs-pale) 0%, #4b94d7 25%, #135cb6 53%, #03469d 100%);
}

.bs-header { padding-block: 1rem; }
.bs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bs-nav .bs-nav-links,
.bs-landing .bs-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.bs-nav .wp-block-button__link,
.bs-landing .bs-actions .wp-block-button__link,
.bs-send {
  padding: .75rem 1rem;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: .75rem;
  font: 700 .79rem/1.3 var(--bs-mono);
  letter-spacing: .015em;
  text-transform: uppercase;
}

.bs-nav .wp-block-button__link {
  color: var(--bs-navy);
  background: linear-gradient(#f3faff, #b3d7f1);
  border: 1px solid #ffffffa8;
  border-radius: 999px;
}

.bs-nav .wp-block-button__link:hover { background: #fff; }

.bs-header .bs-logo { margin: 0; flex: 0 0 auto; width: 4.2rem; }
.bs-logo img { display: block; width: 100%; height: auto; }

.bs-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: 1.35rem 4rem;
}

.bs-hero-copy h1 { text-transform: uppercase; }
.bs-hero-copy .bs-tagline {
  margin-top: 1.1rem;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}

.bs-hero-copy .bs-intro { margin-top: .6rem; max-width: 33ch; }
.bs-hero-copy .bs-actions { margin-top: 1.7rem; }
.bs-landing .bs-actions .wp-block-button__link,
.bs-send {
  color: var(--bs-navy);
  background: var(--bs-yellow);
  border: 1px solid var(--bs-yellow);
}

.bs-landing .bs-actions .wp-block-button__link:hover,
.bs-send:hover:not(:disabled) { background: #ffe280; }

.bs-hero-layout .bs-hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2.5rem;
  clip-path: polygon(0 0, 72% 0, 100% 33%, 100% 100%, 0 100%);
}

.bs-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.04;
  object-fit: cover;
  object-position: center 51%;
  display: block;
}

.bs-section { padding-block: clamp(3rem, 7vw, 6rem); }
.bs-about, .bs-services { background: var(--bs-blue); }
.bs-approach, .bs-reviews, .bs-contact { background: var(--bs-mid); }
.bs-centered { text-align: center; }
.bs-centered h2 { max-width: 21ch; margin-inline: auto; }
.bs-about h2 { text-transform: uppercase; }
.bs-centered > p:not(.bs-eyebrow) { max-width: 61ch; margin: 1rem auto 0; }
.bs-landing .bs-eyebrow {
  text-transform: uppercase;
  font: 700 .79rem/1.5 var(--bs-mono);
  letter-spacing: .09em;
  margin-bottom: .8rem;
}

.bs-approach-layout,
.bs-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.bs-approach-copy,
.bs-mission,
.bs-contact-card {
  border: 1px solid #c9eeff7a;
  border-radius: 1.6rem;
  padding: clamp(1.3rem, 4vw, 2.55rem);
}

.bs-approach-copy { background: linear-gradient(155deg, #135eb4, #063f91); }
.bs-mission { color: var(--bs-navy); background: linear-gradient(155deg, #e1f3f9, #95c6eb); }
.bs-approach-layout h2 + p, .bs-contact-card h3 + p { margin-top: .75rem; }
.bs-approach-layout h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.bs-services h2 { text-align: center; }
.bs-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.55rem);
  margin-top: 2rem;
}

.bs-service .bs-service-art {
  background: #338bee;
  border: 1px solid #b6e0ffb0;
  border-radius: 1.5rem;
  min-height: 12rem;
  padding: 1.2rem .7rem .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: center;
}

.bs-service:nth-child(even) .bs-service-art { background: #ffda61; border-color: #ffebaa; }
.bs-service .bs-service-icon {
  padding: .65rem;
  box-sizing: border-box;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bs-yellow);
  border-radius: 50%;
}

.bs-service:nth-child(even) .bs-service-icon { background: #3b9bf5; }
.bs-service-icon img { max-height: 5.65rem; width: auto; object-fit: contain; }
.bs-service .bs-service-title {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  border-radius: 999px;
  padding: .55rem .8rem;
  color: var(--bs-navy);
  background: #e0f5ff;
}

.bs-service:nth-child(even) .bs-service-title { background: #ffec9a; }
.bs-service > p { margin-top: .8rem; }

.bs-review-panel {
  margin: 1.6rem auto 0;
  padding: 1.7rem;
  max-width: 42rem;
  background: #c6e7fb;
  color: var(--bs-navy);
  border-radius: 1.4rem;
}

.bs-contact { padding-top: .5rem; }
.bs-contact-title { text-align: center; }
.bs-contact-grid { margin-top: 2rem; }
.bs-contact-card {
  background: linear-gradient(160deg, #e8f7fc, #91c7f1);
  color: var(--bs-navy);
}

.bs-contact-card a { color: inherit; }
.bs-contact-form { display: grid; gap: .85rem; margin-top: 1rem; }
.bs-contact-form label { display: grid; gap: .23rem; font-weight: 700; }
.bs-contact-form input, .bs-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #6484a4;
  border-radius: .7rem;
  background: #fff;
  color: #182e47;
  font: inherit;
  font-weight: normal;
}

.bs-contact-form textarea { resize: vertical; min-height: 6rem; }
.bs-send { justify-self: start; cursor: pointer; }
.bs-send:disabled { background: #eef1f5; border-color: #bdccdd; cursor: default; }
.bs-form-note, .bs-form-status { font-size: .92rem; }
.bs-contact-card .bs-form-status { padding: .8rem; margin-top: 1rem; background: #fff; border-radius: .7rem; }
.bs-form-trap { display: none; }
.bs-contact-email { overflow-wrap: anywhere; }
.bs-map { text-align: center; margin-top: 2.7rem; }
.bs-map .bs-actions { justify-content: center; margin-top: .9rem; }
.bs-footer { padding-block: 1.15rem; background: var(--bs-deep); color: #fff; }
.bs-inner { padding-block: 2rem 4rem; overflow-wrap: anywhere; }
.bs-inner a { color: #fff; }

@media (max-width: 800px) {
  .bs-hero-layout { grid-template-columns: 1fr; }
  .bs-hero-copy h1 { font-size: clamp(2.35rem, 7vw, 4rem); }
  .bs-hero-photo img { aspect-ratio: 1.25; }
  .bs-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .bs-shell { width: calc(100% - 2rem); }
  .bs-header-row { align-items: flex-start; gap: .5rem; }
  .bs-header .bs-logo { width: 3rem; }
  .bs-nav .bs-nav-links { gap: .35rem; }
  .bs-nav .wp-block-button__link { padding: .7rem .65rem; font-size: .73rem; }
  .bs-hero-layout { padding-bottom: 2.5rem; }
  .bs-approach-layout, .bs-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .bs-services-grid { grid-template-columns: 1fr; }
}

/* Keep landing layout consistent in Site Editor and on the public page. */
.bs-landing, .bs-header, .bs-footer { font-family: Arial, Helvetica, sans-serif; }
.bs-landing *, .bs-header *, .bs-footer * { box-sizing: border-box; }
.bs-landing { width: 100%; max-width: none; color: #fff; }
.bs-landing img { max-width: 100%; }
.bs-landing .wp-block-button__link, .bs-header .wp-block-button__link {
  display: inline-block; text-decoration: none;
}
.bs-landing .wp-block-group, .bs-header .wp-block-group { margin-block-start: 0; }
.bs-landing .bs-services-grid, .bs-landing .bs-contact-grid { margin-top: 2rem; }
