/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "James Fajardo";
  src: url("../fonts/James_Fajardo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Site styles that complement the Tailwind tokens defined in partials/head.php
   ========================================================================== */

:root {
  --brand: #0b82c3;
  --brand-dark: #0874ad;
  --ink: #011018;
  --surface: #f6f6f6;
  --border: #dadde1;
  --muted: #667780;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
.font-heading {
  font-family: "Mona Sans", system-ui, sans-serif;
  letter-spacing: -0.015em;
}

img,
svg,
iframe {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Focus + skip link
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 210;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Page loader
   -------------------------------------------------------------------------- */

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.page-loader-name {
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-loader-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  animation: page-loader-bar 4s linear forwards;
}

@keyframes page-loader-bar {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-bar {
    animation: none;
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container-site {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container-site {
    padding-inline: 24px;
  }
}

/*
 * The reference builds the page from full-bleed rounded panels sitting on a
 * light grey canvas. `.panel` is that shape.
 */
.panel {
  border-radius: 20px;
  overflow: hidden;
  max-width: 100%;
}

@media (min-width: 768px) {
  .panel {
    border-radius: 28px;
  }
}

.accent-serif {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

/* Signature reference CTA: solid bar with a light square arrow tile inside. */
.btn-cta {
  padding-left: 24px;
  padding-right: 6px;
  gap: 18px;
  background: var(--brand);
  color: #fff;
}

.btn-cta:hover {
  background: var(--brand-dark);
}

.btn-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: transform 160ms ease;
}

.btn-cta:hover .btn-tile {
  transform: translateX(2px);
}

.btn-solid {
  background: var(--brand);
  color: #fff;
}

.btn-solid:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-on-dark {
  background: #fff;
  color: var(--ink);
}

.btn-on-dark:hover {
  background: #eaf6fb;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  height: 44px;
  font-size: 14px;
}

/* Circular arrow action used on cards */
.arrow-circle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.group:hover .arrow-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.arrow-circle-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.group:hover .arrow-circle-light {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Notched card
   A circular bite is masked out of the top-right corner so a badge or action
   button can sit in the gap. This is the reference's signature card shape.
   -------------------------------------------------------------------------- */

.notch-tr {
  --notch-inset: 28px;
  --notch-radius: 40px;
  -webkit-mask-image: radial-gradient(
    circle var(--notch-radius) at calc(100% - var(--notch-inset)) var(--notch-inset),
    transparent 97%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle var(--notch-radius) at calc(100% - var(--notch-inset)) var(--notch-inset),
    transparent 97%,
    #000 100%
  );
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.notch-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
}

.feature-card-icon svg {
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Photograph fades into the panel background so the headline stays readable. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

@media (min-width: 1024px) {
  .hero-photo::after {
    background: linear-gradient(
      90deg,
      #fff 26%,
      rgba(255, 255, 255, 0.96) 40%,
      rgba(255, 255, 255, 0.55) 55%,
      rgba(255, 255, 255, 0) 72%
    );
  }
}

.hero-slider-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slider-ui {
  position: absolute;
  z-index: 20;
  right: max(1.25rem, calc((100% - 1320px) / 2 + 1.5rem));
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1023px) {
  .hero-slider-ui {
    right: 50%;
    bottom: 0.85rem;
    transform: translateX(50%);
  }
}

.hero-slider-ui .arrow-circle {
  width: 40px;
  height: 40px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(1, 16, 24, 0.08);
}

.hero-slider-ui .arrow-circle:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(1, 16, 24, 0.22);
  cursor: pointer;
}

.hero-slider-dot.is-active {
  background: var(--brand);
  width: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 20px 8px 8px;
  border-radius: 10px;
  border: 1px solid rgba(218, 221, 225, 0.9);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}

/* --------------------------------------------------------------------------
   Pills, eyebrows, drop cap
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.pill-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pill-light::before {
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--ink);
}

.tag-on-blue {
  background: #fff;
  color: var(--brand);
}

.dropcap::first-letter {
  float: left;
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 400;
  color: var(--brand);
  padding-right: 10px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Oversized editorial marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
}

/* Two copies of the sequence sit side by side. The track starts halfway
   off-canvas and eases to the right so the loop is seamless. */
.marquee-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  gap: clamp(20px, 3vw, 48px);
  white-space: nowrap;
  font-family: "Mona Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
  will-change: transform;
  animation: marquee-ltr 42s linear infinite;
}

.marquee:hover .marquee-line {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-line {
    animation: none;
    will-change: auto;
  }
}

.marquee-star {
  flex: none;
  width: clamp(20px, 2.4vw, 34px);
  height: clamp(20px, 2.4vw, 34px);
  opacity: 0.55;
}

/* Oversized ghost numerals behind step content */
.ghost-num {
  font-family: "Mona Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 0.8;
  color: rgba(1, 16, 24, 0.07);
}

.inner-hero-shade {
  background:
    linear-gradient(
      180deg,
      rgba(1, 16, 24, 0.78) 0%,
      rgba(1, 16, 24, 0.42) 20%,
      rgba(1, 16, 24, 0.1) 42%,
      rgba(1, 16, 24, 0) 58%
    ),
    linear-gradient(
      90deg,
      #011018 0%,
      rgba(1, 16, 24, 0.94) 22%,
      rgba(1, 16, 24, 0.72) 42%,
      rgba(1, 16, 24, 0.28) 62%,
      rgba(1, 16, 24, 0) 82%
    );
}

.inner-hero-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 18px 6px 6px;
  background: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

@media (min-width: 768px) {
  .inner-hero-crumb {
    min-height: 56px;
    padding: 6px 22px 6px 6px;
    gap: 14px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link.is-active {
  background: var(--brand);
  color: #fff;
}

.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
}

/* Invisible bridge so the pointer can move from the label into the panel. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.nav-item.is-open > .nav-dropdown,
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .nav-item:hover > .nav-link,
  .nav-item.is-open > .nav-link {
    color: var(--brand);
  }

  .nav-item:hover > .nav-link.is-active,
  .nav-item.is-open > .nav-link.is-active {
    color: #fff;
  }
}

.header-on-hero {
  background-color: transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.header-on-hero:not(.is-solid) {
  background: transparent;
}

.header-on-hero:not(.is-solid) .text-ink,
.header-on-hero:not(.is-solid) .nav-link {
  color: #fff;
}

.header-on-hero:not(.is-solid) .text-muted {
  color: rgba(255, 255, 255, 0.72);
}

.header-on-hero:not(.is-solid) .bg-border {
  background: rgba(255, 255, 255, 0.22);
}

.header-on-hero:not(.is-solid) .nav-link:hover,
.header-on-hero:not(.is-solid) .nav-item:hover > .nav-link,
.header-on-hero:not(.is-solid) .nav-item.is-open > .nav-link {
  color: #fff;
}

.header-on-hero:not(.is-solid) .nav-link.is-active,
.header-on-hero:not(.is-solid) .nav-item:hover > .nav-link.is-active,
.header-on-hero:not(.is-solid) .nav-item.is-open > .nav-link.is-active {
  color: #fff;
  background: var(--brand);
}

.header-on-hero:not(.is-solid) .nav-dropdown a,
.header-on-hero:not(.is-solid) .nav-dropdown .text-ink {
  color: var(--ink);
}

.header-on-hero:not(.is-solid) .nav-dropdown a.text-brand,
.header-on-hero:not(.is-solid) .nav-dropdown a:hover {
  color: var(--brand);
}

.header-on-hero:not(.is-solid) [data-menu-toggle] {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.header-on-hero:not(.is-solid) a img {
  filter: drop-shadow(0 1px 6px rgba(1, 16, 24, 0.4));
}

.header-on-hero.is-solid {
  background-color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.mobile-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, visibility 200ms;
}

/* visibility keeps the closed drawer out of the tab order */
.mobile-panel {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 240ms ease-out, visibility 240ms;
}

body.nav-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open .mobile-panel {
  transform: translateX(0);
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.mobile-sub {
  display: none;
}

.mobile-acc.is-open .mobile-sub {
  display: block;
}

.mobile-acc.is-open .mobile-acc-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* Dark surface with two soft brand glows, shared by the footer and the
   enquiry conversion panel. */
.glow-dark {
  position: relative;
  isolation: isolate;
  background: var(--ink);
}

.glow-dark::before,
.glow-dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.glow-dark::before {
  top: -12%;
  left: -6%;
  width: 46%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(11, 130, 195, 0.5), transparent 100%);
}

.glow-dark::after {
  right: -8%;
  bottom: -14%;
  width: 48%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(11, 130, 195, 0.28), transparent 100%);
}

.product-copy {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.product-copy > *:first-child {
  margin-top: 0;
}

.product-copy p,
.product-copy ul,
.product-copy ol,
.product-copy blockquote {
  margin-top: 1.15em;
}

.product-copy ul,
.product-copy ol {
  padding-left: 1.25em;
}

.product-copy li + li {
  margin-top: 0.35em;
}

.product-copy h2,
.product-copy h3,
.product-copy h4 {
  color: var(--ink);
  font-family: "Mona Sans", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 1.4em;
}

.product-copy h2 {
  font-size: 22px;
}

.product-copy h3 {
  font-size: 18px;
}

.product-copy h4 {
  font-size: 16px;
}

.product-copy a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-copy a:hover {
  color: var(--brand-dark);
}

.product-copy blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 1em;
}

.footer-marquee {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Map + forms
   -------------------------------------------------------------------------- */

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Floating contact
   -------------------------------------------------------------------------- */

.float-contact {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(1, 16, 24, 0.18);
  transition: transform 160ms ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

/* Keep the last section clear of the floating controls. */
@media (max-width: 1023px) {
  .site-footer-bottom {
    padding-bottom: 84px;
  }
}
