/* =========================================================================
   Ravexa International Holding Limited — stylesheet
   Brand: #0369a1 (blue) with #E67E22 (orange) accent
   Hand-written CSS. No build step, no framework.
   ========================================================================= */

/* --- Tokens ------------------------------------------------------------ */
:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 10%;
  --card: 0 0% 100%;
  --primary: 200 97% 32%;
  --primary-foreground: 0 0% 100%;
  --secondary: 200 30% 96%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 10% 40%;
  --accent: 28 80% 52%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --border: 220 13% 91%;
  --ring: 200 97% 32%;

  --blue-dark: 200 97% 25%;
  --blue-light: 200 60% 95%;
  --navy: 220 40% 13%;

  --radius: 0.5rem;
  --radius-md: 0.375rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 hsl(var(--foreground) / 0.05);
  --shadow-lg: 0 10px 15px -3px hsl(var(--foreground) / 0.1), 0 4px 6px -4px hsl(var(--foreground) / 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(var(--foreground) / 0.1), 0 8px 10px -6px hsl(var(--foreground) / 0.1);
  --shadow-2xl: 0 25px 50px -12px hsl(var(--foreground) / 0.25);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container { max-width: 640px;  padding-inline: 2rem; } }
@media (min-width: 768px)  { .container { max-width: 768px;  } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1400px; } }

.container--narrow { max-width: 42rem; }

.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }

.section--muted   { background: hsl(var(--muted) / 0.5); }
.section--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.section--tinted  {
  background: linear-gradient(135deg, hsl(var(--blue-light)) 0%, hsl(var(--background)) 50%, hsl(var(--background)) 100%);
}

.section-head {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } }

.section-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); margin-bottom: 1rem; }
.section-head p  { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) { .section-head p { font-size: 1.25rem; } }

.section--primary .section-head p { color: hsl(var(--primary-foreground) / 0.8); }

/* --- Grids ------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* --- Icons ------------------------------------------------------------- */
.icon {
  width: 1.25rem; height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1rem;    height: 1rem; }
.icon--md { width: 1.5rem;  height: 1.5rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.icon--xl { width: 2rem;    height: 2rem; }
.icon--2xl{ width: 3rem;    height: 3rem; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:disabled { opacity: .5; pointer-events: none; }

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover { background: hsl(var(--primary) / 0.9); }

.btn--outline {
  border-color: hsl(var(--border));
  background: hsl(var(--background));
}
.btn--outline:hover { background: hsl(var(--secondary)); }

.btn--secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
}
.btn--secondary:hover { background: hsl(var(--secondary) / 0.8); }

.btn--accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn--accent:hover { background: hsl(var(--accent) / 0.9); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: hsl(var(--secondary)); }

.btn--lg { height: 2.75rem; padding: 0.5rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--elevated {
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.25);
}
.btn--elevated:hover { box-shadow: 0 20px 25px -5px hsl(var(--primary) / 0.3); }

.btn--icon { width: 2.5rem; height: 2.5rem; padding: 0; }

/* --- Pills / badges ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--primary));
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.pill--lg { padding: 0.375rem 1rem; margin-bottom: 0; }
.pill--accent {
  border-color: hsl(var(--accent) / 0.2);
  background: hsl(var(--accent) / 0.05);
  color: hsl(var(--accent));
}
.pill--danger {
  border-color: hsl(var(--destructive) / 0.2);
  background: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}
.pill--invert {
  border-color: hsl(var(--primary-foreground) / 0.2);
  background: hsl(var(--primary-foreground) / 0.1);
  color: hsl(var(--primary-foreground));
}
.pill__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: hsl(var(--accent));
  animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}

/* --- Cards ------------------------------------------------------------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.card--hover:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-lg);
}
.card--center { text-align: center; }

.card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background-color .3s;
}
.card--hover:hover .card__icon { background: hsl(var(--primary) / 0.2); }
.card__icon--round {
  width: 4rem; height: 4rem; border-radius: 9999px;
  margin-inline: auto;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.2));
}
.card__icon--circle {
  width: 3.5rem; height: 3.5rem; border-radius: 9999px; margin-inline: auto;
}
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p  { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.card--link { display: block; }
.card--link .card__more {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--primary));
  opacity: 0;
  transition: opacity .3s;
}
.card--link:hover .card__more { opacity: 1; }
.card--link:hover h3 { color: hsl(var(--primary)); }
.card--link .card__more .icon { transition: transform .3s; }
.card--link:hover .card__more .icon { transform: translateX(0.25rem); }

/* Card on a primary (blue) background */
.card--invert {
  background: hsl(var(--primary-foreground) / 0.05);
  border-color: hsl(var(--primary-foreground) / 0.1);
}
.card--invert:hover { background: hsl(var(--primary-foreground) / 0.1); }
.card--invert p { color: hsl(var(--primary-foreground) / 0.7); }
.card--invert .card__icon { background: hsl(var(--accent) / 0.2); color: hsl(var(--accent)); }

/* Challenge cards carry a gradient rule down the left edge */
.card--ruled { position: relative; padding-left: 2.5rem; }
.card--ruled::before {
  content: "";
  position: absolute; inset-block: 0; left: 0;
  width: 0.25rem;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: linear-gradient(to bottom, hsl(var(--destructive) / 0.6), hsl(var(--accent) / 0.6));
}
.card--ruled h3 { font-size: 1rem; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: hsl(var(--background));
  border-bottom-color: hsl(var(--border));
  box-shadow: var(--shadow-sm);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .site-header__bar { height: 5rem; } }

.site-header__logo img { height: 2.5rem; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 3rem; } }

.nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav { display: flex; } }

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  color: hsl(var(--muted-foreground));
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.nav__link.is-active { color: hsl(var(--primary)); }
.nav .btn { margin-left: 1rem; }

.nav-toggle { display: inline-flex; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle .icon--close, .nav-toggle.is-open .icon--open { display: none; }
.nav-toggle.is-open .icon--close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .mobile-nav.is-open { display: none; } }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1rem;
}
.mobile-nav a:not(.btn) {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  color: hsl(var(--muted-foreground));
}
.mobile-nav a:not(.btn):hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.mobile-nav a.is-active { background: hsl(var(--secondary)); color: hsl(var(--primary)); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, hsl(var(--blue-light)) 0%, hsl(var(--background)) 45%, hsl(var(--background)) 100%);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, hsl(var(--border)) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border)) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
          mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-block: 3rem; }
@media (min-width: 768px)  { .hero__inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .hero__inner { padding-block: 6rem; } }

.hero__content { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.hero__content > .pill { align-self: center; }
@media (min-width: 1024px) {
  .hero__content { text-align: left; align-items: flex-start; }
  .hero__content > .pill { align-self: flex-start; }
}

.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; }
.hero__underlined { position: relative; color: hsl(var(--primary)); white-space: nowrap; }
.hero__underlined svg {
  position: absolute;
  left: 0; bottom: -0.5rem;
  width: 100%; height: 0.75rem;
  color: hsl(var(--accent) / 0.3);
}
.hero__tagline {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
}
@media (min-width: 768px) { .hero__tagline { font-size: 1.25rem; } }

.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .hero__trust { flex-direction: row; } }
@media (min-width: 1024px) { .hero__trust { align-items: flex-start; } }
.hero__trust > div { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust .icon { color: hsl(var(--accent)); }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; width: auto; justify-content: center; } }
@media (min-width: 1024px) { .hero__actions { justify-content: flex-start; } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  width: 100%;
}
.stat { text-align: center; }
@media (min-width: 1024px) { .stat { text-align: left; } }
.stat__value {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 0.25rem;
}
@media (min-width: 1024px) { .stat__value { justify-content: flex-start; } }
.stat__value .icon { color: hsl(var(--accent)); }
.stat__value span { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .stat__value span { font-size: 1.875rem; } }
.stat__label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) { .stat__label { font-size: 0.875rem; } }

/* --- Hero media / carousel --------------------------------------------- */
.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-2xl);
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 3;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(var(--background) / 0.8), transparent 50%);
}

.hero__badge {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.75rem;
}
.hero__avatars { display: flex; }
.hero__avatars span {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}
.hero__avatars span + span { margin-left: -0.5rem; }
.hero__avatars span:nth-child(2) { background: hsl(var(--accent) / 0.2); color: hsl(var(--accent)); }
.hero__badge strong { display: block; font-size: 0.875rem; }
.hero__badge small { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.carousel__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.carousel__dots button {
  width: 0.5rem; height: 0.5rem;
  padding: 0; border: 0; cursor: pointer;
  border-radius: 9999px;
  background: hsl(var(--muted-foreground) / 0.3);
  transition: width .3s, background-color .3s;
}
.carousel__dots button:hover { background: hsl(var(--muted-foreground) / 0.5); }
.carousel__dots button.is-active { width: 1.5rem; background: hsl(var(--primary)); }

/* --- Decorated figures ------------------------------------------------- */
.figure { position: relative; }
.figure img { border-radius: var(--radius-2xl); width: 100%; object-fit: cover; }
.figure--4x3 img { aspect-ratio: 4 / 3; box-shadow: var(--shadow-xl); }
.figure--16x10 img { aspect-ratio: 16 / 10; box-shadow: var(--shadow-2xl); }
.figure::before, .figure::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: var(--radius-2xl);
}
.figure::before { bottom: -1rem; right: -1rem; width: 6rem;   height: 6rem;   background: hsl(var(--accent) / 0.2); }
.figure::after  { top: -1rem;    left: -1rem;  width: 4rem;   height: 4rem;   background: hsl(var(--primary) / 0.15); }
.figure__caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  font-size: 1.125rem; font-weight: 600;
}
.figure__overlay {
  position: absolute; inset: 0;
  border-radius: var(--radius-2xl);
  background: linear-gradient(to top, hsl(var(--background) / 0.9), transparent 50%);
}

/* --- Checklist --------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; }
.checklist .icon { color: hsl(var(--accent)); margin-top: 0.2rem; }

.prose { display: flex; flex-direction: column; gap: 1rem; color: hsl(var(--muted-foreground)); }
.prose strong { color: hsl(var(--foreground)); font-weight: 500; }

/* --- Compare panels (About) -------------------------------------------- */
.compare { display: grid; gap: 2rem; max-width: 56rem; margin-inline: auto; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: var(--radius-xl); padding: 1.5rem; border: 1px solid; }
.panel h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.panel ul { display: flex; flex-direction: column; gap: 0.75rem; color: hsl(var(--muted-foreground)); }
.panel li { display: flex; align-items: flex-start; gap: 0.5rem; }
.panel--bad  { background: hsl(var(--destructive) / 0.05); border-color: hsl(var(--destructive) / 0.2); }
.panel--bad h3, .panel--bad .mark { color: hsl(var(--destructive)); }
.panel--good { background: hsl(var(--primary) / 0.05); border-color: hsl(var(--primary) / 0.2); }
.panel--good h3, .panel--good .mark { color: hsl(var(--primary)); }

/* --- Steps (engagement model) ------------------------------------------ */
.steps { display: grid; gap: 1rem; max-width: 56rem; margin-inline: auto; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { text-align: center; }
.step__num {
  width: 3rem; height: 3rem;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.75rem; color: hsl(var(--primary-foreground) / 0.7); }

/* --- Service detail blocks --------------------------------------------- */
.service { scroll-margin-top: 6rem; }
.service + .service { margin-top: 4rem; }
.service__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.service__head h2 { font-size: 1.5rem; }
@media (min-width: 768px) { .service__head h2 { font-size: 1.875rem; } }
.service__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-xl);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service__lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.service__deliverables { margin-bottom: 1.5rem; }
.service__deliverables h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.service__deliverables li { color: hsl(var(--muted-foreground)); }
.service__impact {
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.service__impact b { color: hsl(var(--primary)); }
.service__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
}
.service__visual div > div {
  width: 6rem; height: 6rem;
  margin-inline: auto; margin-bottom: 1rem;
  border-radius: var(--radius-2xl);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.service__visual p { font-size: 1.125rem; font-weight: 500; }
@media (min-width: 1024px) {
  .service--flip .service__body   { order: 2; }
  .service--flip .service__visual { order: 1; }
}

/* --- CTA banner -------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: var(--radius-3xl);
  padding: 2rem;
  text-align: center;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--blue-dark)));
}
@media (min-width: 768px)  { .cta-banner { padding: 3rem; } }
@media (min-width: 1024px) { .cta-banner { padding: 4rem; } }
.cta-banner__glow { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.cta-banner__glow::before, .cta-banner__glow::after {
  content: ""; position: absolute; width: 16rem; height: 16rem; border-radius: 9999px; filter: blur(48px);
}
.cta-banner__glow::before { top: 0; left: 0; background: hsl(var(--primary-foreground)); transform: translate(-50%, -50%); }
.cta-banner__glow::after  { bottom: 0; right: 0; background: hsl(var(--accent)); transform: translate(50%, 50%); }
.cta-banner > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.cta-banner h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
.cta-banner p { font-size: 1.125rem; color: hsl(var(--primary-foreground) / 0.8); max-width: 42rem; }
@media (min-width: 768px) { .cta-banner p { font-size: 1.25rem; } }

/* --- Forms ------------------------------------------------------------- */
.form-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-card--lg { border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card--lg { padding: 2.5rem; } }
.form-card > h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.form { display: flex; flex-direction: column; gap: 1.5rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > label { font-size: 0.875rem; font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: hsl(var(--muted-foreground)); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  padding-right: 2rem;
  cursor: pointer;
}
.field select:invalid { color: hsl(var(--muted-foreground)); }

.field__error {
  font-size: 0.875rem;
  color: hsl(var(--destructive));
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: hsl(var(--destructive)); }
.field.has-error .field__error { display: block; }

.checkbox-grid { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 1rem; height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius-sm, 0.25rem);
  cursor: pointer;
  transition: background-color .15s;
}
.checkbox input:checked {
  background-color: hsl(var(--primary));
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.75rem;
  background-position: center;
  background-repeat: no-repeat;
}
.checkbox input:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* Success panel shown after a form is sent */
.form-success { text-align: center; padding-block: 3rem; }
.form-success__icon {
  width: 4rem; height: 4rem;
  margin-inline: auto; margin-bottom: 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.form-success h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

/* --- Contact details list ---------------------------------------------- */
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-list > li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list__icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.contact-list h3 { font-size: 1rem; font-weight: 500; }
.contact-list a, .contact-list p { color: hsl(var(--muted-foreground)); transition: color .2s; }
.contact-list a:hover { color: hsl(var(--primary)); }

/* --- Toast ------------------------------------------------------------- */
.toast-region {
  position: fixed;
  z-index: 100;
  bottom: 1rem; right: 1rem; left: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
@media (min-width: 640px) { .toast-region { left: auto; max-width: 24rem; } }
.toast {
  pointer-events: auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--primary));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  animation: toast-in .25s ease-out;
}
.toast--error { border-left-color: hsl(var(--destructive)); }
.toast strong { display: block; font-size: 0.875rem; margin-bottom: 0.125rem; }
.toast span { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: hsl(var(--navy));
  color: hsl(var(--primary-foreground));
  padding-block: 3rem;
}
@media (min-width: 768px) { .site-footer { padding-block: 4rem; } }
.site-footer h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer a, .site-footer p, .site-footer span { color: hsl(var(--primary-foreground) / 0.8); }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: hsl(var(--primary-foreground)); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-contact a, .footer-contact div { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.site-footer .btn--accent { color: hsl(var(--accent-foreground)); padding: 0.625rem 1.5rem; height: auto; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p, .footer-bottom a { color: hsl(var(--primary-foreground) / 0.6); }
.footer-bottom nav { display: flex; gap: 1.5rem; }

/* --- 404 --------------------------------------------------------------- */
.notfound {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: hsl(var(--muted));
}
.notfound h1 { font-size: 3rem; margin-bottom: 1rem; }
.notfound p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

/* --- Helpers ----------------------------------------------------------- */
.text-center { text-align: center; }
.muted { color: hsl(var(--muted-foreground)); }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.narrow { max-width: 42rem; margin-inline: auto; }

/* --- Animation --------------------------------------------------------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulse   { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes toast-in{ from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }

.fade-in { opacity: 0; animation: fade-in .6s ease-out forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

.spinner { animation: spin 1s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; }
}

/* --- Contact page grid (info first on mobile, form left on desktop) ----- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .contact-grid__form { order: 1; }
  .contact-grid__info { order: 2; }
}

/* --- Spam honeypot: must stay invisible to people ----------------------- */
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* --- Legal pages (privacy, terms) --------------------------------------- */
.legal { max-width: 46rem; margin-inline: auto; }
.legal > p:first-of-type { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.legal h2 {
  font-size: 1.375rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}
.legal h2:first-of-type { margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal p { margin-bottom: 1rem; color: hsl(var(--muted-foreground)); }
.legal strong { color: hsl(var(--foreground)); font-weight: 600; }
.legal a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
.legal ul { margin: 0 0 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.legal ul li {
  position: relative;
  padding-left: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.legal ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.6rem;
  width: 0.375rem; height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
}
.legal__meta {
  display: inline-block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  margin-bottom: 0;
}
.legal__callout {
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.legal__callout p:last-child { margin-bottom: 0; }
