/* ==========================================================================
   Cosmeaderm — design system
   Replaces the Bootstrap 4 "MedLab" stylesheet. Section 9 keeps the legacy
   class names alive so page bodies written in Bootstrap markup still render.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --brand: #99022f;
  --brand-600: #7d0226;
  --brand-700: #5e021d;
  --brand-100: #f7e8ed;
  --brand-050: #fdf5f8;

  --cream: #fbf8f4;
  --sand: #efe6da;
  --sand-600: #ddcdb8;
  --ink: #2a2422;
  --ink-700: #4a423e;
  --ink-500: #6f6762;
  --white: #fff;

  --line: rgba(42, 36, 34, 0.12);
  --line-strong: rgba(42, 36, 34, 0.22);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.7vw, 4.2rem);
  --step-5: clamp(2.9rem, 1.9rem + 4.6vw, 6rem);

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 2.5rem + 6vw, 8rem);

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-s: 0 2px 8px rgba(42, 36, 34, 0.06);
  --shadow-m: 0 12px 32px -12px rgba(42, 36, 34, 0.18);
  --shadow-l: 0 32px 64px -24px rgba(42, 36, 34, 0.28);

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);

  --topbar-h: 0px;
  --bar-h: 68px;
  --header-h: calc(var(--topbar-h) + var(--bar-h));

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1024px) {
  :root {
    --topbar-h: 44px;
    --bar-h: 88px;
  }
}

/* 2. Reset ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-hero {
  padding-top: 0;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-700);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--step-4);
}

h2,
.h2 {
  font-size: var(--step-3);
}

h3,
.h3 {
  font-size: var(--step-2);
}

h4,
.h4 {
  font-size: var(--step-1);
}

h5,
.h5,
h6,
.h6 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 3. Layout primitives ------------------------------------------------------ */

.c-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.c-container--narrow {
  max-width: var(--container-narrow);
}

.c-section {
  padding-block: var(--space-2xl);
}

.c-section--tight {
  padding-block: var(--space-xl);
}

.c-section--cream {
  background: var(--cream);
}

.c-section--sand {
  background: var(--sand);
}

.c-skip {
  position: absolute;
  left: var(--space-s);
  top: var(--space-s);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.c-skip:focus {
  transform: translateY(0);
  color: var(--white);
}

/* 4. Typographic helpers ---------------------------------------------------- */

.c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.c-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.c-eyebrow--center {
  justify-content: center;
}

.c-lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-700);
}

.c-heading {
  max-width: 22ch;
}

.c-heading em {
  font-style: italic;
  color: var(--brand);
}

.c-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-bottom: var(--space-xl);
}

.c-section-head--center {
  align-items: center;
  text-align: center;
}

.c-section-head--center .c-heading {
  max-width: 26ch;
}

.c-section-head p {
  max-width: 62ch;
  color: var(--ink-500);
}

/* 5. Buttons ---------------------------------------------------------------- */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.c-btn:hover {
  transform: translateY(-2px);
}

.c-btn svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.c-btn--primary {
  background: var(--brand);
  color: var(--white);
}

.c-btn--primary:hover {
  background: var(--brand-700);
  color: var(--white);
}

.c-btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.c-btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.c-btn--light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.c-btn--light:hover {
  background: var(--white);
  color: var(--ink);
}

.c-btn--white {
  background: var(--white);
  color: var(--brand);
}

.c-btn--white:hover {
  background: var(--cream);
  color: var(--brand-700);
}

.c-btn--sm {
  padding: 0.65rem 1.3rem;
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
}

.c-link svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease);
}

.c-link:hover svg {
  transform: translateX(4px);
}

/* 6. Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: var(--white);
  box-shadow: var(--shadow-s);
}

.site-header__topbar {
  display: none;
  height: var(--topbar-h);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--step--1);
}

@media (min-width: 1024px) {
  .site-header__topbar {
    display: block;
  }
}

.site-header__topbar .c-container {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: 100%;
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.site-header__meta a,
.site-header__socials a {
  color: inherit;
  text-decoration: none;
}

.site-header__meta a:hover,
.site-header__socials a:hover {
  color: var(--white);
}

.site-header__meta span,
.site-header__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__meta svg,
.site-header__socials svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.site-header__socials {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-inline-start: auto;
}

.site-header__bar {
  height: var(--bar-h);
}

.site-header__bar .c-container {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: 100%;
}

.site-header__logo {
  flex: none;
  display: block;
  /* Padding is constant so the hero tile below causes no layout shift when stuck. */
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
}

.site-header__logo img {
  max-height: calc(var(--bar-h) - 40px);
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-inline-start: auto;
}

.site-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__cta {
    display: inline-flex;
  }
}

/* Transparent over a hero, solid once scrolled */
body.has-hero .site-header {
  background: transparent;
  box-shadow: none;
}

body.has-hero .site-header__topbar {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

body.has-hero .site-header__bar {
  color: var(--white);
}

/* The logo is a light wordmark on transparency, so give it a tile rather than recolouring it. */
body.has-hero .site-header__logo {
  background: var(--white);
  box-shadow: var(--shadow-s);
}

body.has-hero .site-header.is-stuck {
  background: var(--white);
  box-shadow: var(--shadow-s);
}

body.has-hero .site-header.is-stuck .site-header__logo {
  background: none;
  box-shadow: none;
}

body.has-hero .site-header.is-stuck .site-header__topbar {
  background: var(--ink);
  backdrop-filter: none;
}

body.has-hero .site-header.is-stuck .site-header__bar {
  color: var(--ink);
}

/* 7. Navigation ------------------------------------------------------------- */

.site-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  color: inherit;
}

.site-nav__toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

body.nav-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .site-nav__toggle {
    display: none;
  }
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.site-nav__caret {
  width: 0.7em;
  height: 0.7em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

/* -- Mobile drawer -- */
@media (max-width: 1023.98px) {
  .site-nav__panel {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    z-index: 95;
    width: min(86vw, 380px);
    padding: var(--space-m) var(--gutter) var(--space-xl);
    background: var(--white);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: var(--shadow-l);
  }

  body.nav-open .site-nav__panel {
    transform: translateX(0);
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav__backdrop {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(42, 36, 34, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 90;
  }

  body.nav-open .site-nav__backdrop {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link {
    padding-block: 1rem;
    justify-content: space-between;
    width: 100%;
  }

  .site-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--space-s) var(--space-s);
    display: none;
  }

  .site-nav__item.is-open .site-nav__sub {
    display: block;
  }

  .site-nav__item.is-open .site-nav__caret {
    transform: rotate(180deg);
  }

  .site-nav__sub a {
    display: block;
    padding-block: 0.55rem;
    color: var(--ink-700);
    text-decoration: none;
    font-size: var(--step--1);
  }

  .site-nav__mobile-cta {
    margin-top: var(--space-m);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* -- Desktop bar -- */
@media (min-width: 1024px) {
  .site-nav__backdrop {
    display: none;
  }

  .site-nav__panel {
    margin-inline: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, -0.6rem + 1.9vw, 1.9rem);
  }

  .site-nav__item {
    position: relative;
  }

  .site-nav__link {
    padding-block: 0.6rem;
    white-space: nowrap;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }

  .site-nav__item:hover .site-nav__link::after,
  .site-nav__item.is-active .site-nav__link::after {
    transform: scaleX(1);
  }

  .site-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% 10px;
    min-width: 250px;
    list-style: none;
    margin: 0;
    padding: 0.6rem;
    background: var(--white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-m);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), translate 0.22s var(--ease), visibility 0.22s;
  }

  .site-nav__item:hover .site-nav__sub,
  .site-nav__item:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    translate: -50% 0;
  }

  .site-nav__sub a {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-s);
    font-size: var(--step--1);
    color: var(--ink-700);
    text-decoration: none;
  }

  .site-nav__sub a:hover {
    background: var(--brand-050);
    color: var(--brand);
  }

  .site-nav__mobile-cta {
    display: none;
  }
}

/* 8. Home sections ---------------------------------------------------------- */

/* -- Media frame with placeholder fallback -- */
.c-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--sand) 0%, var(--brand-100) 100%);
}

.c-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-media--placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.c-media--placeholder::after {
  content: "";
  width: 34%;
  max-width: 90px;
  aspect-ratio: 1;
  opacity: 0.55;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M12 21s-7-4.6-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.4-7 10-7 10z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* An explicit icon replaces the generic heart motif. */
.c-media--placeholder:has(.c-media__icon)::after {
  content: none;
}

.c-media__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand);
  box-shadow: var(--shadow-s);
}

.c-media--4x3 {
  aspect-ratio: 4 / 3;
}

.c-media--3x4 {
  aspect-ratio: 3 / 4;
}

.c-media--1x1 {
  aspect-ratio: 1;
}

/* -- Hero -- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-l));
  padding-bottom: var(--space-2xl);
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media--placeholder {
  background: radial-gradient(120% 100% at 20% 0%, #4a1026 0%, #2a0a17 55%, #140509 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(14, 5, 9, 0.85) 0%,
    rgba(14, 5, 9, 0.45) 45%,
    rgba(14, 5, 9, 0.55) 100%
  );
}

.hero__inner {
  max-width: 48rem;
}

.hero .c-eyebrow {
  color: var(--sand);
}

.hero__title {
  margin-top: var(--space-s);
  font-size: var(--step-5);
  color: var(--white);
}

.hero__title em {
  font-style: italic;
  color: var(--sand);
}

.hero__text {
  margin-top: var(--space-m);
  max-width: 46ch;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-l);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-m);
  translate: -50% 0;
  display: none;
  color: rgba(255, 255, 255, 0.7);
  animation: hero-bob 2.4s var(--ease) infinite;
}

@media (min-width: 768px) {
  .hero__scroll {
    display: block;
  }
}

.hero__scroll svg {
  width: 26px;
  height: 26px;
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* -- USP strip -- */
.usp {
  position: relative;
  margin-top: calc(var(--space-xl) * -1);
  z-index: 5;
}

.usp__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}

@media (min-width: 768px) {
  .usp__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usp__item {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--white);
}

.usp__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand);
}

.usp__icon svg {
  width: 24px;
  height: 24px;
}

.usp__item h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
}

.usp__item p {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* -- Split (intro) -- */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-2xl);
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
}

.split__badge {
  position: absolute;
  right: calc(var(--space-m) * -1);
  bottom: var(--space-m);
  display: grid;
  gap: 0.1rem;
  padding: var(--space-s) var(--space-m);
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  text-align: center;
}

@media (max-width: 899.98px) {
  .split__badge {
    right: var(--space-m);
  }
}

.split__badge strong {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
}

.split__badge span {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.split__body > * + * {
  margin-top: var(--space-s);
}

.split__body .c-btn,
.split__body .c-link {
  margin-top: var(--space-m);
}

.split__signature {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.split__signature strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
}

.split__signature span {
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* -- Card grid -- */
.cards {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
}

.card__media,
.card > .c-media {
  border-radius: 0;
  aspect-ratio: 16 / 11;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: var(--space-m);
}

.card__title {
  font-size: var(--step-2);
}

.card__body p {
  color: var(--ink-500);
  font-size: var(--step--1);
}

.card__body .c-link {
  margin-top: auto;
  padding-top: var(--space-s);
}

/* Whole-card click target without nesting interactive elements */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* -- Mosaic gallery -- */
.mosaic {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }

  .mosaic .c-media {
    aspect-ratio: auto;
    height: 100%;
  }

  /* First tile is the feature; the remaining four fill the 4x2 grid exactly. */
  .mosaic > :nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* -- Brand row -- */
.brands {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.brand-chip {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: var(--space-s);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.brand-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-3px);
}

/* -- CTA band -- */
.cta-band {
  position: relative;
  padding-block: var(--space-2xl);
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 85% 15%, rgba(255, 255, 255, 0.14), transparent 60%);
}

.cta-band .c-container {
  position: relative;
}

.cta-band__inner {
  display: grid;
  gap: var(--space-m);
  align-items: center;
  text-align: center;
  justify-items: center;
}

.cta-band .c-eyebrow {
  color: var(--sand);
}

.cta-band h2 {
  color: var(--white);
  max-width: 20ch;
}

.cta-band p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

/* 9. Footer ----------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-2xl) var(--space-m);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--step--1);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-s);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__contact li {
  display: flex;
  gap: 0.7rem;
}

.site-footer__contact svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  margin-top: 0.35em;
  color: var(--sand);
}

.site-footer__brand p {
  margin-top: var(--space-s);
  max-width: 34ch;
}

.site-footer__logo {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
}

.site-footer__logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

.site-footer__socials {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.site-footer__socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-footer__socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
}

.site-footer__cta {
  margin-top: var(--space-s);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--step--1);
}

/* Floating WhatsApp / back-to-top */
.c-fab {
  position: fixed;
  right: var(--space-s);
  bottom: var(--space-s);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: var(--shadow-m);
  transition: transform 0.25s var(--ease);
}

.c-fab:hover {
  transform: scale(1.06);
  color: var(--white);
}

.c-fab svg {
  width: 26px;
  height: 26px;
}

/* 10. Legacy compatibility --------------------------------------------------
   Keeps page bodies that were authored as Bootstrap 4 markup readable while
   the subpages are migrated. Remove once pages are rewritten.
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--space-s) * -1);
}

.row > [class*="col-"],
.row > .col {
  width: 100%;
  padding-inline: var(--space-s);
  margin-bottom: var(--space-m);
}

.row > .col-6 {
  width: 50%;
}

@media (min-width: 768px) {
  .row > .col-md-4 {
    width: 33.3333%;
  }
  .row > .col-md-6 {
    width: 50%;
  }
  .row > .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .row > .col-lg-4 {
    width: 33.3333%;
  }
  .row > .col-lg-6 {
    width: 50%;
  }
  .row > .col-lg-8 {
    width: 66.6666%;
  }
  .text-lg-left {
    text-align: left;
  }
  .pr-lg-4 {
    padding-right: var(--space-m);
  }
  .mt-lg-0 {
    margin-top: 0;
  }
  .mt-lg-4 {
    margin-top: var(--space-m);
  }
  .mb-lg-0 {
    margin-bottom: 0;
  }
  .pt-lg-2 {
    padding-top: var(--space-2xs);
  }
}

.page-content > .section:first-child {
  padding-top: var(--space-xl);
}

.section {
  padding-block: var(--space-2xl);
}

.bg-grey {
  background: var(--cream);
}

.text-center {
  text-align: center;
}

.text-nowrap {
  white-space: nowrap;
}

.w-100 {
  width: 100%;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: var(--radius-m);
}

.shadow-sm {
  box-shadow: var(--shadow-s);
}

.theme-color {
  color: var(--brand);
}

.mt-2 {
  margin-top: var(--space-2xs);
}
.mt-3 {
  margin-top: var(--space-s);
}
.mt-4 {
  margin-top: var(--space-m);
}
.mt-5 {
  margin-top: var(--space-l);
}
.mb-4 {
  margin-bottom: var(--space-m);
}
.mt-0 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .mt-md-0 {
    margin-top: 0;
  }
  .mt-md-3 {
    margin-top: var(--space-s);
  }
}

.max-500 {
  max-width: 500px;
  margin-inline: auto;
}
.max-600 {
  max-width: 600px;
  margin-inline: auto;
}
.max-700 {
  max-width: 700px;
  margin-inline: auto;
}

.title-wrap {
  margin-bottom: var(--space-m);
}

.h-sub {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.h-decor {
  width: 56px;
  height: 3px;
  margin-top: var(--space-s);
  background: var(--brand);
  border-radius: 2px;
}

.text-center .h-decor,
.title-wrap.text-center .h-decor {
  margin-inline: auto;
}

.service-card-style2 {
  height: 100%;
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.service-card-style2:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow-m);
}

.service-card-icon {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: var(--space-s);
}

.service-card-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.icn-text-alt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  text-align: left;
}

.icn-text-alt-icn {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand);
  font-size: 1.6rem;
}

.icn-text-alt-title {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
}

.icn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.icn-list li {
  display: flex;
  gap: 0.7rem;
}

.marker-list-md {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.marker-list-md li {
  position: relative;
  padding-left: 1.6rem;
}

.marker-list-md li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.numbered-list-xl {
  list-style: none;
  padding: 0;
  counter-reset: nl;
  display: grid;
  gap: var(--space-m);
}

.numbered-list-xl li {
  position: relative;
  padding-left: 3.6rem;
  counter-increment: nl;
}

.numbered-list-xl li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--brand);
  opacity: 0.35;
}

.numbered-list-xl li h5 {
  margin-bottom: 0.25rem;
}

.numbered-list-xl li p {
  font-size: var(--step--1);
  color: var(--ink-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--brand-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-xs {
  padding: 0.55rem 1.1rem;
}

.btn-link {
  padding: 0;
  background: none;
  color: var(--brand);
  text-transform: uppercase;
}

.btn-link:hover {
  background: none;
  color: var(--brand-700);
}

/* -- Subpage header -- */
.page-head {
  padding-block: var(--space-l) var(--space-m);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  margin: 0.4rem 0 0;
  font-size: var(--step-4);
}

.page-head__lead {
  max-width: 62ch;
  margin: var(--space-xs) 0 0;
  font-size: var(--step-1);
  color: var(--ink-700);
}

/* Legacy templates wrap the breadcrumb in a full-height .section; collapse that. */
.section:has(> .breadcrumbs-wrap) {
  padding-block: var(--space-m) 0;
}

/* The breadcrumbs plugin ships line-height:48px and padding-left:48px, and its
   stylesheet is injected after this one, so these rules need the extra `body`
   to outrank it. */
body #breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-500);
}

body #breadcrumbs span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

body #breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

body #breadcrumbs a:hover {
  text-decoration: underline;
}

/* The plugin's divider is an icon-font <i>; keep its glyph, just align it. */
body #breadcrumbs i {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--sand-600);
  font-size: 0.8em;
  line-height: inherit;
}
