/* ==========================================================================
   Bramble & Bone — Pet Care, Portland OR
   Naming: BEM (block__element--modifier)
   ========================================================================== */

:root {
  --cream: #f5efe4;
  --paper: #fbf8f2;
  --ink: #26302a;
  --ink-soft: #55605a;
  --moss: #3d5a45;
  --moss-dark: #2c4433;
  --clay: #c0603a;
  --clay-dark: #a24e2d;
  --sand: #e6dccb;
  --line: #d9cfbe;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header--scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 10px rgba(38, 48, 42, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__mark {
  width: 34px;
  height: 34px;
  color: var(--clay);
}

.logo__text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.logo__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- nav ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover {
  border-bottom-color: var(--sand);
}

.nav__link--active {
  border-bottom-color: var(--clay);
}

.nav__item--has-sub {
  position: relative;
}

.nav__more {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(38, 48, 42, 0.12);
  display: none;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--sub-open .nav__sub {
  display: block;
}

.nav__item--has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav__sublink {
  display: block;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 500;
}

.nav__sublink:hover {
  background: var(--cream);
}

.nav__sublink--active {
  color: var(--clay);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- button ---------- */
.button {
  display: inline-block;
  padding: 13px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  background: var(--clay);
  border: 2px solid var(--clay);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.button--small {
  padding: 9px 16px;
  font-size: 15px;
}

.button--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.button--light:hover {
  background: #fff;
  border-color: #fff;
}

/* ---------- hero (home) ---------- */
.hero {
  padding: 64px 0 0;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
  padding-bottom: 72px;
}

.hero__lead {
  font-size: 19px;
  color: var(--ink);
  max-width: 32em;
  margin-bottom: 10px;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero__avatars {
  display: flex;
}

.hero__avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  margin-left: -10px;
}

.hero__avatars img:first-child {
  margin-left: 0;
}

.hero__rating b {
  color: var(--ink);
}

.hero__strip {
  background: var(--ink);
  color: #e3e0d6;
}

.hero__strip-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__strip-item {
  padding: 26px 24px;
  border-left: 1px solid #3c4740;
}

.hero__strip-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero__strip-title {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  color: #fff;
  margin-bottom: 4px;
}

.hero__strip-text {
  font-size: 15px;
  margin: 0;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--clay);
}

.hero__text {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero__facts {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.hero__facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--ink);
}

.hero__media {
  position: relative;
}

.hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero__img--small {
  position: absolute;
  left: -48px;
  bottom: -36px;
  width: 44%;
  aspect-ratio: 1;
  border: 8px solid var(--cream);
}

.hero__note {
  position: absolute;
  top: 24px;
  right: -14px;
  max-width: 200px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
  transform: rotate(2deg);
  box-shadow: 0 6px 18px rgba(38, 48, 42, 0.1);
}

.hero__note b {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
}

/* ---------- page-hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero__crumbs {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-hero__crumbs a {
  text-decoration: none;
}

.page-hero__crumbs a:hover {
  text-decoration: underline;
}

.page-hero__title {
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 500;
  max-width: 16em;
}

.page-hero__text {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0;
}

/* ---------- section ---------- */
.section {
  padding: 88px 0;
}

.section--paper {
  background: var(--paper);
}

.section--moss {
  background: var(--moss);
  color: #f1ede3;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section__head--stack {
  display: block;
  max-width: 640px;
}

.section__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}

.section--moss .section__label {
  color: #e9b796;
}

.section__title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  margin: 0;
}

.section__intro {
  color: var(--ink-soft);
  max-width: 34em;
  margin: 14px 0 0;
}

.section--moss .section__intro {
  color: #cfd6cc;
}

/* ---------- service-card ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-size: 23px;
}

.service-card__text {
  color: var(--ink-soft);
  flex: 1;
}

.service-card__link {
  align-self: flex-start;
  font-weight: 700;
  font-size: 15px;
  color: var(--clay);
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  width: 100%;
}

.service-card__link::after {
  content: " \2192";
}

.service-card__link:hover {
  color: var(--clay-dark);
  text-decoration: underline;
}

/* ---------- split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.split__title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
}

.split__text {
  color: var(--ink-soft);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.checklist__item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.checklist__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: rotate(-45deg);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps__item {
  counter-increment: step;
  border-top: 2px solid rgba(241, 237, 227, 0.35);
  padding-top: 20px;
}

.steps__item::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: #e9b796;
  margin-bottom: 10px;
}

.steps__title {
  font-size: 21px;
}

.steps__text {
  color: #cfd6cc;
  font-size: 16px;
  margin: 0;
}

/* ---------- review ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.review {
  margin: 0;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.review--featured {
  background: var(--sand);
  border-color: var(--sand);
}

.review__stars {
  color: var(--clay);
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 12px;
}

.review__text {
  font-size: 17px;
  flex: 1;
  margin: 0 0 20px;
}

.review--featured .review__text {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.4;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review__name {
  font-weight: 700;
  display: block;
}

.review__pet {
  color: var(--ink-soft);
}

/* ---------- cta ---------- */
.cta {
  background: var(--clay);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  margin: 0 0 6px;
}

.cta__text {
  margin: 0;
  opacity: 0.9;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- service-detail (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-detail__title {
  font-size: 34px;
  font-weight: 500;
}

.service-detail__text {
  color: var(--ink-soft);
}

.service-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
}

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-jump__link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 99px;
}

.service-jump__link:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- team-card ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  filter: saturate(0.85);
}

.team-card__name {
  font-size: 21px;
  margin-bottom: 2px;
}

.team-card__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 8px;
}

.team-card__text {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}

.timeline__item {
  position: relative;
  padding: 0 0 30px 30px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
}

.timeline__year {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  display: block;
}

.timeline__text {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.04);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 26, 22, 0.88);
}

.lightbox--open {
  display: flex;
}

.lightbox__img {
  max-height: 86vh;
  max-width: 100%;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font: inherit;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--clay);
  transition: transform 0.2s;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item--open .faq__icon::after {
  transform: rotate(0);
}

.faq__answer {
  display: none;
  padding: 0 40px 20px 0;
  color: var(--ink-soft);
}

.faq__item--open .faq__answer {
  display: block;
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: start;
}

.contact-info__block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-info__title {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}

.contact-info__value {
  font-size: 18px;
  margin: 0;
}

.contact-info__value a {
  text-decoration: none;
}

.contact-info__value a:hover {
  text-decoration: underline;
}

.hours {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
}

.hours__cell {
  padding: 3px 0;
}

.hours__cell--time {
  text-align: right;
}

.map {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map__frame {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

/* ---------- form ---------- */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form__title {
  font-size: 28px;
  font-weight: 500;
}

.form__intro {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field {
  margin-bottom: 18px;
}

.form__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form__label span {
  font-weight: 400;
  color: var(--ink-soft);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
  border-color: var(--moss);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__field--error .form__input,
.form__field--error .form__select {
  border-color: #b3261e;
}

.form__error {
  display: none;
  font-size: 14px;
  color: #b3261e;
  margin-top: 4px;
}

.form__field--error .form__error {
  display: block;
}

.form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.form__check input {
  accent-color: var(--moss);
  width: 17px;
  height: 17px;
}

.form__success {
  display: none;
  padding: 18px 20px;
  background: #e3ecdf;
  border-left: 4px solid var(--moss);
  border-radius: var(--radius);
  margin-top: 18px;
}

.form__success--visible {
  display: block;
}

/* ---------- areas ---------- */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #c9cfc8;
  padding: 64px 0 28px;
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3c4740;
}

.footer .logo__text {
  color: #fff;
}

.footer .logo__text small {
  color: #9aa49c;
}

.footer__about {
  margin-top: 16px;
  max-width: 26em;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__link {
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 14px;
  color: #8c968e;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats__item {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.stats__num {
  display: block;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}

.stats__label {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- day (a day with us) ---------- */
.day {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.day__time {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--clay);
}

.day__text {
  margin: 0;
}

.day__text strong {
  display: block;
}

/* ---------- post-card ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.post-card__meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.post-card__title {
  font-size: 22px;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--clay);
}

.post-card__text {
  color: var(--ink-soft);
  font-size: 16px;
}

.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.post-card--featured .post-card__img {
  margin: 0;
}

.post-card--featured .post-card__title {
  font-size: 34px;
  font-weight: 500;
}

/* ---------- article (journal post body) ---------- */
.article {
  max-width: 700px;
}

.article h3 {
  font-size: 24px;
  margin-top: 1.6em;
}

.article p,
.article li {
  color: var(--ink-soft);
}

/* ---------- filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter__btn {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 7px 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 99px;
  cursor: pointer;
}

.filter__btn:hover {
  background: var(--sand);
}

.filter__btn--active,
.filter__btn--active:hover {
  background: var(--ink);
  color: var(--cream);
}

.is-hidden {
  display: none !important;
}

/* ---------- rating summary ---------- */
.rating {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 48px;
}

.rating__score {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.rating__stars {
  color: var(--clay);
  letter-spacing: 3px;
  margin: 6px 0 4px;
}

.rating__count {
  font-size: 14px;
  color: var(--ink-soft);
}

.rating__bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rating__bar {
  display: grid;
  grid-template-columns: 54px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.rating__track {
  height: 8px;
  background: var(--sand);
  border-radius: 99px;
  overflow: hidden;
}

.rating__fill {
  display: block;
  height: 100%;
  background: var(--moss);
}

.reviews--grid {
  grid-template-columns: repeat(3, 1fr);
}

.review__date {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* ---------- jobs (careers) ---------- */
.jobs {
  border-top: 1px solid var(--line);
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.job__title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.job__text {
  color: var(--ink-soft);
  margin: 0;
  max-width: 40em;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.perks__item {
  border-top: 2px solid rgba(241, 237, 227, 0.35);
  padding-top: 16px;
}

.perks__title {
  font-size: 20px;
}

.perks__text {
  color: #cfd6cc;
  font-size: 16px;
  margin: 0;
}

/* ---------- faq layout ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.faq-layout__nav {
  position: sticky;
  top: 100px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-layout__link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.faq-layout__link:hover {
  color: var(--clay);
}

.faq-group {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.faq-group__title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ---------- offer banner ---------- */
.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}

.offer__img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.offer__body {
  padding: 48px;
  align-self: center;
}

.offer__title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
}

.offer__code {
  display: inline-block;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 12px;
  border: 2px dashed var(--clay);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .review--featured {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail {
    grid-template-columns: 320px 1fr;
    gap: 36px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }
}

@media (max-width: 1020px) {
  .posts,
  .reviews--grid,
  .perks {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero__strip-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero__strip-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .post-card--featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav--open .nav__list {
    display: flex;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__link--active {
    color: var(--clay);
    border-bottom-color: var(--line);
  }

  .nav__item--cta {
    margin-top: 16px;
  }

  .nav--open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav--open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__list {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav__more {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__item--has-sub::after {
    display: none;
  }

  .nav__item--has-sub:hover .nav__sub {
    display: none;
  }

  .nav__sub,
  .nav__item--sub-open .nav__sub,
  .nav__item--sub-open:hover .nav__sub {
    position: static;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 0 16px;
  }

  .nav__item--sub-open .nav__sub,
  .nav__item--sub-open:hover .nav__sub {
    display: block;
  }

  .nav__sublink {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__sublink:hover {
    background: none;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
  }

  .rating,
  .faq-layout,
  .offer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-layout__nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-layout__link {
    border: 1px solid var(--ink);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 15px;
  }

  .offer__body {
    padding: 32px 24px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero__inner,
  .split,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .hero__media {
    max-width: 480px;
    margin-left: 40px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    display: block;
  }

  .section__head .button {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .services-grid,
  .steps,
  .reviews,
  .reviews--grid,
  .posts,
  .perks,
  .hero__strip-list,
  .footer__grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .hero__strip-item,
  .hero__strip-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #3c4740;
    padding: 18px 0;
  }

  .hero__strip-item:first-child {
    border-top: 0;
  }

  .stats__num {
    font-size: 38px;
  }

  .day__item {
    grid-template-columns: 70px 1fr;
    gap: 14px;
  }

  .review--featured {
    grid-column: auto;
  }

  .team {
    gap: 20px;
  }

  .hero__media {
    margin-left: 24px;
  }

  .hero__img--small {
    left: -24px;
  }

  .hero__note {
    right: 0;
  }

  .hero__facts {
    gap: 20px;
  }

  .form {
    padding: 24px 20px;
  }

  .cta {
    padding: 32px 24px;
  }

  .cta__actions {
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-direction: column;
  }

}
