/* ==========================================================================
   TANSY GROUP — css/components.css
   Reusable components and shared sections: buttons, facts, header &
   navigation (incl. Projects submenu), footer, media frames, page hero, CTA
   band, divisions, steps, service area, forms and modifiers.
   Loaded on every page after main.css, before the page stylesheet.
   ========================================================================== */

/* 4. Components ------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--c-pink);
  flex-shrink: 0;
}

.on-dark .eyebrow,
.section--purple .eyebrow,
.section--deep .eyebrow {
  color: var(--c-pink);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-muted);
}

.section--purple .lead,
.section--deep .lead {
  color: var(--c-text-light);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head__title > * + * { margin-top: 1.1rem; }

.section-head--stacked {
  grid-template-columns: minmax(0, 760px);
}

/* Buttons */

.btn {
  --btn-bg: var(--c-purple);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  --btn-bg: var(--c-purple-soft);
  --btn-border: var(--c-purple-soft);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(4px);
}

.btn--accent {
  --btn-bg: var(--c-pink);
  --btn-fg: var(--c-purple-deep);
  --btn-border: var(--c-pink);
}

.btn--accent:hover {
  --btn-bg: #F27FA1;
  --btn-border: #F27FA1;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-purple);
  --btn-border: var(--c-line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--c-purple);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-purple);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-border: rgba(247, 243, 239, 0.4);
}

.btn--ghost-light:hover {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-purple);
  --btn-border: var(--c-white);
}

.btn--sm {
  min-height: 2.6rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn.is-unavailable,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Arrow text link */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-purple);
  padding-block: 0.3rem;
  background-image: linear-gradient(var(--c-pink), var(--c-pink));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  background-size: 100% 1px;
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(4px);
}

.section--purple .link-arrow,
.section--deep .link-arrow,
.on-dark .link-arrow {
  color: var(--c-white);
}

/* Status chip */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink-ink);
}

.on-dark .status,
.section--purple .status,
.section--deep .status {
  color: var(--c-pink);
}

.status__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 2.4s var(--ease) infinite;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.6;
}

70%, 100% { transform: scale(2.6); opacity: 0; }

}

/* Definition list of facts */
.facts {
  display: grid;
  border-top: 1px solid var(--c-line);
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(8rem, 2fr) 3fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--c-line);
}

.facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-top: 0.2rem;
}

.facts dd {
  color: var(--c-charcoal);
}

.on-dark .facts,
.on-dark .facts__row {
  border-color: var(--c-line-light);
}

.on-dark .facts dt { color: rgba(247, 243, 239, 0.6); }

.on-dark .facts dd { color: var(--c-white); }

/* Tick list */

.tick-list {
  display: grid;
  gap: 0.7rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.6rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.75rem;
  height: 1px;
  background: var(--c-pink);
}

/* Architectural divider */

.rule {
  position: relative;
  height: 1px;
  background: var(--c-line);
  border: 0;
}

.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--c-line-strong);
}

.rule::before { left: 0; }

.rule::after { right: 0; }

/* Icon */

.icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  color: var(--c-purple);
}

.icon path,
.icon rect,
.icon line,
.icon polyline,
.icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .icon-accent {
  stroke: var(--c-pink);
}

/* 5. Header & navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 239, 0.94);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -24px rgba(47, 4, 69, 0.45);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__mark {
  width: auto;
  height: 60px;
  aspect-ratio: 228 / 236;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--c-line);
}

.brand__name {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  color: var(--c-purple);
}

.brand__tagline {
  font-family: var(--f-heading);
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--c-pink-ink);
}

/* Larger logo and company name in the site header only (the footer brand keeps
   the base sizes). The brand grows into the free space left of the navigation,
   which is pushed right by margin-left: auto, so the nav and Enquire Now button
   keep their positions. The tagline size is unchanged. */
.site-header .brand__mark { height: 70px; }
.site-header .brand__name { font-size: 1.35rem; }

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-charcoal);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--c-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
  color: var(--c-purple);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current]::after {
  transform: scaleX(1);
}

/* Projects submenu (disclosure). Opens on hover, on keyboard focus without
   JS, and via the chevron button (js/components/navigation.js adds .is-open). */

.site-nav__item--has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--c-charcoal);
  cursor: pointer;
}

.subnav-toggle svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.subnav-toggle:hover { color: var(--c-purple); }

.subnav {
  position: absolute;
  top: 100%;
  left: -1.75rem;
  z-index: 110;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  width: min(36rem, 80vw);
  margin-top: 0.9rem;
  padding: 1.75rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-purple);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  box-shadow: 0 24px 48px -24px rgba(41, 37, 45, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

/* Invisible bridge so the pointer can travel from the link to the panel. */

.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 1rem;
}

.site-nav__item--has-sub.is-open .subnav,
html:not(.js) .site-nav__item--has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (hover: hover) {
  .site-nav__item--has-sub:hover .subnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

.site-nav__item--has-sub.is-open .subnav-toggle svg { transform: rotate(180deg); }

.subnav__group + .subnav__group {
  padding-left: 1.75rem;
  border-left: 1px solid var(--c-line);
}

.subnav__heading {
  margin-bottom: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink-ink);
}

.subnav__link {
  display: grid;
  gap: 0.3rem;
  margin-inline: -0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-s);
  transition: background-color 0.2s var(--ease);
}

.subnav__link:hover,
.subnav__link[aria-current] {
  background: var(--c-ivory);
}

.subnav__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--c-purple);
}

.subnav__badge {
  padding: 0.15rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-pink-ink);
}

.subnav__meta {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-muted);
}

.subnav__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  border-bottom: 1px solid var(--c-pink);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-left: auto;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--c-purple);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }

.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  /* Absolute (not fixed): the header's backdrop-filter would otherwise
  become the containing block and collapse a fixed panel. */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 99;
  overflow-y: auto;
  background: var(--c-ivory);
  border-top: 1px solid var(--c-line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 1.5rem 3rem;
}

.mobile-nav__list li {
  border-bottom: 1px solid var(--c-line);
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  font-family: var(--f-body);
  font-size: 1.375rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--c-purple);
}

.mobile-nav__link span {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--c-muted);
}

.mobile-nav__link[aria-current] {
  color: var(--c-pink-ink);
}

.mobile-subnav {
  display: grid;
  gap: 0.15rem;
  margin: -0.4rem 0 0.9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--c-pink);
}

.mobile-nav__list .mobile-subnav li { border-bottom: 0; }

.mobile-subnav__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-charcoal);
}

.mobile-subnav__link span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.mobile-subnav__link[aria-current] { color: var(--c-pink-ink); }

.mobile-nav__meta {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* 6. Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--c-purple-deep);
  color: var(--c-text-light);
  padding-top: clamp(4rem, 7vw, 6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.footer-brand {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  max-width: 22rem;
}

.footer-brand .brand__text {
  border-left-color: var(--c-line-light);
}

.footer-brand .brand__name { color: var(--c-white); }

.footer-brand .brand__tagline { color: var(--c-pink); }

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer-heading {
  margin-bottom: 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-pink);
}

.footer-list {
  display: grid;
  gap: 0.65rem;
  font-size: var(--fs-sm);
}

.footer-list a {
  transition: color 0.2s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-line-light);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(247, 243, 239, 0.62);
}

/* Contact links that wait for js/config.js values */

[data-contact].is-unavailable {
  cursor: default;
}

.footer-list [data-contact].is-unavailable,
.contact-method [data-contact].is-unavailable {
  opacity: 0.7;
}

/* 7. Media frames (image-ready) ---------------------------------------------
   Each .media holds an illustration today. To use a photograph, replace the
   <img> src with the photo — object-fit keeps the composition intact.        */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--c-purple);
  aspect-ratio: var(--ratio, 4 / 3);
  isolation: isolate;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--portrait { --ratio: 4 / 5; }

.media--tall { --ratio: 5 / 6; }

.media--wide { --ratio: 16 / 9; }

.media--panorama { --ratio: 21 / 9; }

.media--light { background: var(--c-ivory-deep); }

.media__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.4rem 0.75rem;
  background: rgba(247, 243, 239, 0.92);
  border-radius: var(--radius-s);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-purple);
}

/* Corner registration marks give frames a drafted, architectural finish */

.frame-marks {
  position: relative;
}

.frame-marks::before,
.frame-marks::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.frame-marks::before {
  top: -10px;
  left: -10px;
  border-top: 1px solid var(--c-pink);
  border-left: 1px solid var(--c-pink);
}

.frame-marks::after {
  right: -10px;
  bottom: -10px;
  border-right: 1px solid var(--c-pink);
  border-bottom: 1px solid var(--c-pink);
}

/* 8. Shared sections ------------------------------------------------------- */

/* Interior page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--c-ivory);
  border-bottom: 1px solid var(--c-line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  top: -30vw;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border: 1px solid rgba(238, 101, 141, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.page-hero__title > * + * { margin-top: 1.4rem; }

.page-hero__aside {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.breadcrumb a:hover { color: var(--c-purple); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--c-line-strong);
}

/* Index plate: small numbered list used in heroes */

.index-plate {
  display: grid;
  border-top: 1px solid var(--c-line-strong);
}

.index-plate a,
.index-plate > div {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--c-line);
}

.index-plate__num {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-pink-ink);
}

.index-plate__label {
  font-family: var(--f-heading);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--c-purple);
}

.index-plate__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.index-plate a::after {
  content: "\2192";
  color: var(--c-purple);
  transition: transform 0.25s var(--ease);
}

.index-plate a:hover::after,
.index-plate a:focus-visible::after {
  transform: translateX(4px);
}

/* Closing CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--c-purple);
  color: var(--c-text-light);
  padding-block: clamp(4.5rem, 3rem + 5vw, 7rem);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 720px;
  height: 720px;
  right: -200px;
  top: -420px;
  border: 1px solid rgba(238, 101, 141, 0.55);
}

.cta-band::after {
  width: 520px;
  height: 520px;
  right: -100px;
  top: -320px;
  border: 1px solid rgba(247, 243, 239, 0.12);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.cta-band h2 {
  color: var(--c-white);
}

.cta-band__actions {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.cta-band__note {
  font-size: var(--fs-sm);
  color: rgba(247, 243, 239, 0.7);
}

/* 9. Page sections --------------------------------------------------------- */

/* Divisions (two equal business lines) */

.divisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.division {
  display: flex;
  flex-direction: column;
  background: var(--c-ivory);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.division .media {
  border-radius: 0;
}

.division__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.division__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.division__num {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--c-pink-ink);
}

.division__body .tick-list {
  padding-top: 0.25rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.division__body .btn-row {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Featured project */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.feature__content > * + * { margin-top: 1.5rem; }

.feature__name {
  font-size: var(--fs-h1);
  line-height: 1.1;
}

.feature__positioning {
  font-family: var(--f-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-pink);
}

.feature__content .facts {
  margin-top: 2rem;
}

.feature__content .btn-row {
  margin-top: 2.25rem;
}

/* Approach / steps */

.steps {
  display: grid;
  grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.25rem;
  border-top: 1px solid var(--c-line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-pink);
}

.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--f-heading);
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: rgba(69, 7, 99, 0.18);
}

.step h3 {
  font-size: var(--fs-h4);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--c-muted);
}

.step .tick-list {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.section--purple .step,
.section--deep .step {
  border-top-color: var(--c-line-light);
}

.section--purple .step__num,
.section--deep .step__num {
  color: rgba(238, 101, 141, 0.55);
}

.section--purple .step p,
.section--deep .step p,
.section--purple .step .tick-list,
.section--deep .step .tick-list {
  color: var(--c-text-light);
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}

.section-foot p {
  color: var(--c-muted);
  max-width: 40rem;
}

/* Service area */

.area {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.area__content > * + * { margin-top: 1.4rem; }

.area-list {
  margin-top: 2.25rem !important;
  border-top: 1px solid var(--c-line-strong);
}

.area-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-purple);
}

.area-list li span {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.area__map {
  background: var(--c-white);
}

.area__note {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.note {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--c-pink);
  background: var(--c-ivory);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.section--ivory .note { background: var(--c-white); }

/* 10. Forms ---------------------------------------------------------------- */

.form-panel {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--c-white);
  border-radius: var(--radius-s);
  border-top: 2px solid var(--c-purple);
  box-shadow: var(--shadow-soft);
}

.form-panel__head {
  margin-bottom: 2rem;
}

.form-panel__head > * + * { margin-top: 0.75rem; }

.form-panel__head h2 {
  font-size: var(--fs-h3);
}

.form-panel__head p {
  color: var(--c-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-charcoal);
}

.field__optional {
  font-weight: var(--fw-regular);
  color: var(--c-muted);
}

.field__required {
  color: var(--c-pink-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-s);
  background: var(--c-white);
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23450763' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--c-purple-soft);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(238, 101, 141, 0.35);
}

.field [aria-invalid="true"] {
  border-color: #B42318;
  background-color: #FFF8F7;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #B42318;
}

.field__error:empty {
  display: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-footer .btn {
  justify-self: start;
}

.form-privacy {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.form-status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  font-size: var(--fs-sm);
  border-left: 3px solid var(--c-purple);
  background: var(--c-ivory);
}

.form-status[hidden] {
  display: none;
}

.form-status > * + * { margin-top: 0.75rem; }

.form-status strong {
  display: block;
  color: var(--c-purple);
}

.form-status--error {
  border-left-color: #B42318;
  background: #FFF4F2;
}

.form-status--error strong { color: #8A1C13; }

.form-status--success {
  border-left-color: #1E7A4C;
  background: #F1F8F4;
}

.form-status--success strong { color: #145235; }

.form-status--notice {
  border-left-color: var(--c-pink);
}

.form-setup-note {
  margin-bottom: 1.75rem;
}

.form-setup-note[hidden] {
  display: none;
}

/* Utilities & modifiers ---------------------------------------------------- */

.split__media { grid-column: span 5; }

.split__body { grid-column: span 7; }

.steps--stacked {
  --steps: 1;
  gap: 2rem;
  margin-top: 2rem !important;
}

.division--white { background: var(--c-white); }

.feature__positioning--light { color: var(--c-pink-ink); }

.section-head--flush { margin-bottom: 0; }

.area__map--ivory { background: var(--c-ivory); }

/* Without JavaScript (no .js class on <html>) the mobile menu button cannot
   work, so small screens show the navigation as a scrollable row instead. */
@media (max-width: 1120px) {
  html:not(.js) .header-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    row-gap: 0;
  }

  html:not(.js) .nav-toggle,
  html:not(.js) .subnav-toggle,
  html:not(.js) .subnav {
    display: none;
  }

  html:not(.js) .site-nav {
    display: block;
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  html:not(.js) .site-nav__list {
    gap: 1.25rem;
    padding-bottom: 0.75rem;
  }
}

/* Terms-and-conditions marker (e.g. rental guarantee*) */
.tc-mark {
  margin-left: 0.1em;
  font-family: var(--f-body);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 0;
}

.tc-mark a {
  color: var(--c-pink-ink);
  text-decoration: none;
}

.on-dark .tc-mark a { color: var(--c-pink); }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1120px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1121px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 1020px) {
  .feature,
  .area {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 32rem;
  }

  .steps {
    --steps: 2 !important;
  }

  .split__media,
  .split__body {
    grid-column: 1 / -1;
  }

  .split__media {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .section-head,
  .page-hero__grid,
  .cta-band__inner,
  .divisions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .brand__mark {
    height: 48px;
  }

  .site-header .brand__mark {
    height: 54px;
  }

  .site-header .brand__name {
    font-size: 1.05rem;
  }

  .brand__text {
    padding-left: 0.7rem;
  }

  .brand__name {
    font-size: 0.92rem;
    letter-spacing: 0.22em;
  }

  .brand__tagline {
    font-size: 0.75rem;
  }

  .steps {
    --steps: 1 !important;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .form-footer .btn {
    justify-self: stretch;
  }
}

@media (max-width: 340px) {
  .brand__text {
    display: none;
  }
}
