
/* Inter, self-hosted for the portfolio banner. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
/* ---------------------------------------------------------------------------
   CreateTheWeb portfolio layer for the Gym Flooring mirror.

   Two things live here:
     1. The portfolio banner — a plain-CSS port of components/portfolio-banner.tsx.
        Bottom-LEFT here, not bottom-right as on most copies: the site's own
        contact button (.contact-flyout-wrapper, phone numbers and "Send an
        enquiry") owns the bottom-right corner on every page.
     2. The notice modal, shown when a form is submitted.

   Everything is prefixed (`ctw-` / `pf-`), scoped under its container and sets
   every property it depends on explicitly, so the site's own styles cannot
   reach in. The modal does take the site's *tokens*: Webflow's brand
   variables (blueberry navy, lime) and the `.gfbutton` look — uppercase,
   lime, a 5px corner — so it reads as the site's own.
   --------------------------------------------------------------------------- */

/* --- Modal --- */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  /* Above the banner (9999), the sticky header and the contact flyout. */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(19, 41, 55, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pf-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.pf-modal {
  width: 100%;
  max-width: 32rem;
  box-sizing: border-box;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.3);
  font-family: "Montserrat", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-modal * { box-sizing: border-box; }
.pf-modal-backdrop.is-open .pf-modal { transform: none; }

.pf-modal .pf-modal__eyebrow {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Webflow's brand variables, with their current values as the fallback. */
  color: var(--brand--apple, #258016);
}
.pf-modal .pf-modal__eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: currentColor;
}

.pf-modal .pf-modal__title {
  margin: 0 0 0.75rem;
  font-family: "roc-grotesk", "Montserrat", -apple-system, system-ui, sans-serif;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brand--blueberry, #132937);
}

.pf-modal .pf-modal__body {
  margin: 0 0 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #4b5563;
}

.pf-modal .pf-modal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.pf-modal .pf-modal__btn,
.pf-modal .pf-modal__btn:hover,
.pf-modal .pf-modal__btn:focus,
.pf-modal .pf-modal__btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-family: "roc-grotesk", "Montserrat", -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.pf-modal .pf-modal__btn--primary,
.pf-modal .pf-modal__btn--primary:focus,
.pf-modal .pf-modal__btn--primary:active {
  background: var(--brand--lime, #44d62c);
  border-color: var(--brand--lime, #44d62c);
  color: var(--brand--blueberry, #132937);
}
.pf-modal .pf-modal__btn--primary:hover {
  background: var(--brand--blueberry, #132937);
  border-color: var(--brand--blueberry, #132937);
  color: #ffffff;
}
.pf-modal .pf-modal__btn--secondary,
.pf-modal .pf-modal__btn--secondary:focus,
.pf-modal .pf-modal__btn--secondary:active {
  background: #ffffff;
  border-color: #d1d5db;
  color: var(--brand--blueberry, #132937);
}
.pf-modal .pf-modal__btn--secondary:hover { background: var(--brand--cool-smoke, #f4f4f4); border-color: #d1d5db; color: var(--brand--blueberry, #132937); }
.pf-modal .pf-modal__btn:focus-visible { outline: 2px solid var(--brand--lime, #44d62c); outline-offset: 2px; }

@media (max-width: 30rem) {
  .pf-modal__actions { flex-direction: column; }
  .pf-modal__btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   CreateTheWeb portfolio banner — bottom-left.
   --------------------------------------------------------------------------- */
.ctw-banner {
  --ctw-white: #ffffff;
  --ctw-gray-100: #f3f4f6;
  --ctw-gray-200: #e5e7eb;
  --ctw-gray-400: #9ca3af;
  --ctw-gray-500: #6b7280;
  --ctw-gray-600: #4b5563;
  --ctw-gray-900: #111827;
  --ctw-amber-50: #fffbeb;
  --ctw-amber-200: #fde68a;
  --ctw-amber-500: #f59e0b;
  --ctw-amber-700: #b45309;

  position: fixed;
  /* --ctw-lift is set from script to the height of whatever the site itself
     pins across the bottom of the viewport, so the banner never covers it. */
  bottom: calc(1.25rem + var(--ctw-lift, 0px));
  left: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
  transition: bottom 0.3s ease;
}
.ctw-banner *,
.ctw-banner *::before,
.ctw-banner *::after { box-sizing: border-box; }

/* Once there is room, a fixed-width card in the bottom-left corner, clear
   of the site's contact button. */
@media (min-width: 640px) {
  .ctw-banner { right: auto; width: 420px; }
}

.ctw-banner .ctw-banner__panel,
.ctw-banner .ctw-banner__pill {
  background: var(--ctw-white);
  border: 1px solid var(--ctw-gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.ctw-banner .ctw-banner__panel { padding: 1.25rem; }

/* Minimised: show the pill, hide the panel. Stays bottom-left. */
.ctw-banner .ctw-banner__pill { display: none; }
.ctw-banner.is-minimised .ctw-banner__panel { display: none; }
.ctw-banner.is-minimised .ctw-banner__pill { display: flex; }
.ctw-banner.is-minimised { left: 1.25rem; right: auto; width: auto; }

.ctw-banner .ctw-banner__pill {
  align-items: center;
  border-radius: 0.75rem;
  color: var(--ctw-gray-900);
  white-space: nowrap;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  margin-right: auto;
  cursor: pointer;
  font: inherit;
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
}
.ctw-banner .ctw-banner__pill:hover,
.ctw-banner .ctw-banner__pill:focus,
.ctw-banner .ctw-banner__pill:active {
  background: var(--ctw-white);
  border-color: var(--ctw-gray-200);
  color: var(--ctw-gray-900);
  outline: none;
}
.ctw-banner .ctw-banner__pill:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }

.ctw-banner .ctw-banner__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ctw-banner .ctw-banner__brand { display: flex; align-items: center; gap: 0.625rem; }

.ctw-banner .ctw-banner__logo {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--ctw-gray-100);
}
.ctw-banner .ctw-banner__logo img { height: 1.25rem; width: 1.25rem; object-fit: contain; display: block; }

.ctw-banner .ctw-banner__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ctw-gray-900);
  text-align: left;
}

.ctw-banner .ctw-banner__close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  border-radius: 0.5rem;
  padding: 0.25rem;
  color: var(--ctw-gray-400);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ctw-banner .ctw-banner__close:hover,
.ctw-banner .ctw-banner__close:focus,
.ctw-banner .ctw-banner__close:active {
  border: 0;
  background: var(--ctw-gray-100);
  color: var(--ctw-gray-600);
  outline: none;
}
.ctw-banner .ctw-banner__icon { height: 1rem; width: 1rem; display: block; }
.ctw-banner .ctw-banner__icon-sm { height: 0.75rem; width: 0.75rem; }

.ctw-banner .ctw-banner__body {
  margin: 0.75rem 0 0;
  font-size: 13px;
  line-height: 1.625;
  color: var(--ctw-gray-500);
}

.ctw-banner .ctw-banner__alert {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: var(--ctw-amber-50);
  border: 1px solid var(--ctw-amber-200);
  padding: 0.625rem 0.75rem;
  font-size: 12px;
  line-height: 1.625;
  color: var(--ctw-amber-700);
}
.ctw-banner .ctw-banner__alert-icon {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--ctw-amber-500);
}

.ctw-banner .ctw-banner__link {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--ctw-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ctw-banner .ctw-banner__link:hover { color: var(--ctw-gray-600); }

@media print { .ctw-banner, .pf-modal-backdrop { display: none; } }
