:root {
  --primary-color: #17406f;
  --primary-dark: #081c33;
  --primary-light: #2c6696;
  --primary-electric: #6aa9dc;
  --accent-color: #8fc5ee;
  --accent-light: #d9ecfb;
  --secondary-color: #47657e;
  --text-dark: #132234;
  --text-light: #516477;
  --white: #ffffff;
  --light-bg: #eef4f8;
  --soft-blue: #f6fbff;
  --line-color: rgba(18, 43, 67, 0.12);
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --section-py: clamp(3.5rem, 6vw, 5.5rem);
  --section-py-compact: clamp(2.5rem, 4vw, 4rem);
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 6px 16px rgba(8, 28, 51, 0.07);
  --shadow-md: 0 14px 30px rgba(8, 28, 51, 0.1);
  --shadow-lg: 0 24px 50px rgba(8, 28, 51, 0.16);
  --shadow-xl: 0 30px 70px rgba(8, 28, 51, 0.22);
  --radius-sm: 8px;
  --radius-md: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-overlap: 50px;
  --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle texture is applied only to accent sections via pseudo-elements */

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  max-width: var(--container-width);
  padding: 0 var(--spacing-md);
}

.btn {
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 48px;
  overflow: hidden;
  padding: 12px 30px;
  position: relative;
  transition: var(--transition);
}

.btn::after {
  background: rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  content: '';
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn:active::after {
  opacity: 1;
  transition: 0s;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 10px 24px rgba(8, 28, 51, 0.22);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 8px 25px rgba(46, 59, 132, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-secondary {
  box-shadow: inset 0 0 0 2px var(--white);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--white);
  color: var(--primary-color);
}

.btn-secondary:active {
  transform: scale(0.96);
}

.btn-secondary-dark {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(23, 64, 111, 0.22);
  color: var(--primary-color);
}

.btn-secondary-dark:hover,
.btn-secondary-dark:focus-visible {
  background: var(--soft-blue);
  box-shadow: inset 0 0 0 1px rgba(23, 64, 111, 0.36);
}

.section-padding {
  padding: var(--section-py) 0;
}

header {
  left: 0;
  padding: 15px 0;
  position: absolute;
  top: 0;
  transition: var(--transition);
  width: 100%;
  z-index: 100;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-color), var(--shadow-sm);
  padding: 10px 0;
  position: fixed;
}

.nav-wrapper {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  position: relative;
}

.logo {
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 28, 51, 0.13);
  display: flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 0 18px;
}

.logo img {
  display: block;
  height: 48px;
  object-fit: contain;
  transform: translateY(4px);
  width: auto;
}

.logo-kicker {
  align-self: end;
  color: var(--secondary-color);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-word {
  align-self: start;
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 0.95;
}

.logo-seven {
  align-self: center;
  color: var(--primary-light);
  font-size: 1.9rem;
  font-weight: 900;
  grid-column: 2;
  grid-row: 1 / 3;
  line-height: 1;
}

nav {
  justify-self: center;
}

nav ul {
  display: flex;
  gap: 30px;
}

.nav-home {
  display: none;
}

header.scrolled .nav-home {
  display: list-item;
}

nav a {
  color: var(--white);
  font-weight: 600;
  opacity: 0.95;
  position: relative;
}

header.scrolled nav a,
header.scrolled .mobile-toggle {
  color: var(--text-dark);
}

nav a::after {
  background: var(--accent-color);
  bottom: -5px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transition: var(--transition);
  width: 0;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

.mobile-toggle {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  align-items: center;
  background-color: var(--text-dark);
  color: var(--white);
  display: flex;
  height: calc(100vh + var(--hero-overlap));
  height: calc(100svh + var(--hero-overlap));
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  animation: kenBurns 18s ease-in-out infinite alternate;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  width: 100%;
  z-index: 0;
  transform-origin: center center;
}

@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, 1%); }
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 28, 51, 0.96) 0%, rgba(8, 28, 51, 0.78) 46%, rgba(8, 28, 51, 0.18) 100%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-content {
  margin-left: 0;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-label {
  animation: heroFadeIn 0.7s ease both;
  animation-delay: 0.05s;
  color: var(--accent-light);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  opacity: 0;
  text-transform: uppercase;
}

/* Hero text reveal — each line is a mask */
.hero-headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
  gap: 0.02em;
  margin-bottom: var(--spacing-sm);
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  animation: heroLineReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.1s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.28s; }

@keyframes heroLineReveal {
  to { transform: translateY(0); }
}

.hero-sub {
  animation: heroFadeIn 0.7s ease both;
  animation-delay: 0.74s;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
  max-width: 58ch;
  opacity: 0;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 0.92; transform: translateY(0); }
}

.cta-group {
  animation: heroFadeIn 0.7s ease both;
  animation-delay: 0.9s;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  opacity: 0;
}

.hero-proof {
  animation: heroFadeIn 0.7s ease both;
  animation-delay: 1.05s;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, max-content);
  margin-top: 34px;
  max-width: 100%;
  opacity: 0;
  padding-top: 22px;
  position: relative;
  width: fit-content;
}

.hero-proof::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.42) 18%, rgba(255, 255, 255, 0.24) 82%, transparent 100%);
  bottom: 2px;
  content: '';
  display: none;
  left: 50%;
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  width: 1px;
}

.hero-proof .stat-item {
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  position: relative;
  text-align: left;
  width: max-content;
  z-index: 1;
}

.hero-proof .stat-item:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  margin-left: 28px;
  padding-left: 28px;
}

/* Road-dash scroll indicator */
.scroll-hint {
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 11;
}

.road-dash {
  animation: roadDash 1.4s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  height: 10px;
  width: 3px;
}

.road-dash:nth-child(1) { animation-delay: 0s; }
.road-dash:nth-child(2) { animation-delay: 0.2s; }
.road-dash:nth-child(3) { animation-delay: 0.4s; }

@keyframes roadDash {
  0%, 100% { opacity: 0.2; transform: translateY(-4px); }
  50%       { opacity: 1;   transform: translateY(4px); }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
  background: var(--white);
  margin-top: calc(-1 * var(--hero-overlap));
  padding: var(--section-py-compact) 0;
  position: relative;
  z-index: 10;
}

/* Desktop grid stays as-is */
.features-carousel-track {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  perspective: 1000px;
}

.carousel-dots {
  display: none;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 40px;
  position: relative;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  background: var(--gradient-primary);
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  top: 0;
  transition: var(--transition);
  width: 100%;
}

.feature-card::after {
  background: radial-gradient(circle at center, rgba(84, 104, 255, 0.15) 0%, transparent 70%);
  content: '';
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover {
  border-color: rgba(84, 104, 255, 0.3);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before { height: 8px; }
.feature-card:hover::after  { opacity: 1; }

/* Icon: animated ring draw on scroll enter */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  height: 72px;
  margin: 0 auto 20px;
  position: relative;
  width: 72px;
  color: var(--primary-color);
}

.icon-animated {
  position: relative;
}

.icon-animated::before {
  border: 2.5px solid var(--primary-electric);
  border-radius: 50%;
  content: '';
  height: 72px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%) scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 72px;
}

.feature-card.active .icon-animated::before,
.feature-card.reveal.active .icon-animated::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p,
.about-content p {
  color: var(--text-light);
}

.stat-item {
  padding: 0;
}

.stat-number {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
  overflow: visible;
  white-space: nowrap;
}

.stat-label {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.about-section {
  align-items: center;
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr 1fr;
}

.about-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  overflow: hidden;
}

.about-image img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content h2,
.section-header h2 {
  color: var(--primary-color);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.about-content .subtitle {
  color: var(--secondary-color);
  display: block;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.check-list li {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  color: var(--secondary-color);
  content: '✓';
  font-weight: 800;
  left: 0;
  position: absolute;
}

.services,
.location {
  background: var(--light-bg);
}

.section-header {
  margin: 0 auto var(--spacing-lg);
  max-width: 640px;
  text-align: center;
}

/* =========================================
   CATEGORIES — TABS + CAROUSEL
   ========================================= */

/* Smooth-scroll landing offset for category groups */
.category-group {
  background: var(--white);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(8, 28, 51, 0.06);
  overflow: hidden;
  scroll-margin-top: 96px;
}

/* Tabs — hidden on desktop, shown on mobile */
.category-tabs {
  display: none;
  gap: 10px;
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 6px;
  padding: 10px 20px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-tab:hover,
.cat-tab:focus-visible {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cat-tab:active { transform: scale(0.95); }

.cat-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(8, 28, 51, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.cat-tab.active::after {
  background: var(--accent-color);
  border-radius: 2px;
  bottom: 5px;
  content: '';
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 22px;
}

.hidden-panel { display: block; }

/* Mobile panel/card enter animations */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.category-group.tab-active {
  animation: panelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.category-group.tab-active .category-card {
  animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.category-group.tab-active .category-card:nth-child(1) { animation-delay: 0.05s; }
.category-group.tab-active .category-card:nth-child(2) { animation-delay: 0.12s; }
.category-group.tab-active .category-card:nth-child(3) { animation-delay: 0.19s; }
.category-group.tab-active .category-card:nth-child(4) { animation-delay: 0.26s; }

.categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.category-group-header {
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--soft-blue) 100%);
  border-bottom: 1px solid var(--line-color);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.category-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.category-title i {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(106, 169, 220, 0.36);
  border-radius: var(--radius-sm);
  color: var(--primary-color);
  display: flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.category-group-header h3 {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin: 0;
}

.category-group-header p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 4px 0 0;
}

.category-count {
  background: rgba(106, 169, 220, 0.16);
  border: 1px solid rgba(106, 169, 220, 0.28);
  border-radius: var(--radius-sm);
  color: var(--primary-color);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.category-table {
  display: block;
}

.category-card {
  background: var(--white);
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 110px 1fr auto;
  min-height: 74px;
  padding: 18px 24px;
  transition: var(--transition);
}

.category-card + .category-card {
  border-top: 1px solid var(--line-color);
}

.category-card:hover {
  background: var(--soft-blue);
}

.category-card:active {
  transform: scale(0.99);
}

.category-card-badge {
  align-self: center;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  color: var(--white);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-width: 58px;
  padding: 7px 10px;
  text-align: center;
  width: fit-content;
}

.category-card p {
  align-self: center;
  color: var(--text-light);
  font-size: 0.96rem;
  line-height: 1.4;
  margin: 0;
}

.category-age {
  align-self: center;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  width: fit-content;
}

/* Carousel dots */
.dot {
  background: rgba(0, 0, 0, 0.2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 8px;
  padding: 0;
  transition: var(--transition);
  width: 8px;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.steps-section {
  background: var(--primary-color);
  color: var(--white);
}

.steps-scroll-section {
  --steps-progress: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 50% 0 / 82px 100%,
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 58%, #1f5b8f 100%);
  min-height: 420svh;
  overflow: clip;
  padding: 0;
  position: relative;
}

.steps-sticky {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding: clamp(92px, 12vh, 132px) 0 clamp(76px, 10vh, 116px);
  position: sticky;
  top: 0;
}

.steps-scroll-layout {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: 170px minmax(0, 1fr);
}

.steps-progress {
  display: flex;
  flex-direction: column;
  height: min(54vh, 460px);
  justify-content: space-between;
  padding-left: 34px;
  position: relative;
}

.steps-progress-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 10px;
  left: 7px;
  overflow: hidden;
  position: absolute;
  top: 10px;
  width: 2px;
}

.steps-progress-fill {
  background: var(--accent-light);
  display: block;
  height: 100%;
  transform: scaleY(var(--steps-progress));
  transform-origin: top;
  width: 100%;
}

.steps-progress-marker {
  color: rgba(255, 255, 255, 0.56);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

.steps-progress-marker::before {
  background: var(--primary-color);
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  content: '';
  height: 12px;
  left: -33px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  width: 12px;
}

.steps-progress-marker.active {
  color: var(--white);
  transform: translateX(6px);
}

.steps-progress-marker.active::before {
  background: var(--accent-light);
  border-color: var(--white);
  box-shadow: 0 0 0 6px rgba(217, 236, 251, 0.16);
}

.steps-stage {
  display: grid;
  min-height: clamp(320px, 44vh, 430px);
  perspective: 1000px;
}

.steps-panel {
  align-self: center;
  grid-area: 1 / 1;
  max-width: 790px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) rotateX(-16deg);
  transform-origin: center top;
  transition: none;
  visibility: hidden;
}

.steps-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotateX(0);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: visible;
}

.steps-kicker {
  color: var(--accent-light);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.steps-panel h2,
.steps-panel h3 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 10ch;
}

.steps-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  margin: 0;
  max-width: 48ch;
}

.steps-panel .step-number {
  color: var(--accent-light);
  display: block;
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 24px;
}

.cta-bar {
  background: var(--white);
  color: var(--text-dark);
  padding: var(--section-py-compact) 0;
  text-align: center;
}

.cta-bar h2 {
  margin-bottom: 20px;
}

.cta-bar p {
  color: var(--text-light);
  margin: 0 auto 30px;
  max-width: 600px;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.location {
  background: var(--primary-color);
  color: var(--white);
}

.location .section-header h2 {
  color: var(--white);
}

.location .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.location-layout {
  margin: 0 auto;
  max-width: 1040px;
}

.map-embed {
  background: linear-gradient(135deg, var(--soft-blue), #e7f0f7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-height: clamp(360px, 52vw, 520px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.map-embed::before {
  color: var(--primary-color);
  content: 'Mapa se učitava';
  font-weight: 800;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.map-embed iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  padding-top: var(--section-py);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h4::after {
  background: var(--secondary-color);
  bottom: 0;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 40px;
}

.logo-footer {
  display: inline-flex;
}

.logo-footer img {
  height: 90px;
  object-fit: contain;
  width: auto;
}

.footer-tagline {
  margin-top: 20px;
  opacity: 0.72;
}

.contact-info li {
  align-items: center;
  color: var(--text-light);
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--primary-color);
}

.copyright {
  background: #08111b;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 20px 0;
  text-align: center;
}

/* Bottom Navigation Bar */
.bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  bottom: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 72px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(105%);
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: 100%;
  z-index: 999;
}

.bottom-nav.bottom-nav-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bottom-nav-item {
  align-items: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  transition: var(--transition);
}

.bottom-nav-item i {
  font-size: 1.2rem;
  transition: var(--transition);
}

.bottom-nav-item.active,
.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
  color: var(--primary-color);
}

.bottom-nav-item.active i,
.bottom-nav-item:hover i,
.bottom-nav-item:focus-visible i {
  transform: translateY(-3px) scale(1.15);
}

.bottom-nav-cta {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: var(--white);
  height: 48px;
  justify-self: center;
  margin: auto 0;
  padding: 0 14px;
  width: min(74px, calc(100% - 10px));
}

.bottom-nav-cta i {
  font-size: 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.fade-left {
  transform: translateX(-30px);
}

.reveal.fade-right {
  transform: translateX(30px);
}

.reveal.zoom-in {
  transform: scale(0.9);
}

.reveal.active.fade-left,
.reveal.active.fade-right {
  transform: translateX(0);
}

.reveal.active.zoom-in {
  transform: scale(1);
}

@keyframes scrollBounce {
  0%,
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
}

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

  .hero-bg,
  .about-image img {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  header {
    background: transparent;
    box-shadow: none;
    padding: 14px 0;
    position: fixed;
    transform: translateY(0);
    will-change: transform;
  }

  header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
  }

  header.header-hidden {
    transform: translateY(-100%);
  }

  .nav-wrapper {
    grid-template-columns: auto 1fr auto;
  }

  nav {
    justify-self: center;
  }

  nav ul {
    background: #0d1b2a;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0;
    left: var(--spacing-md);
    opacity: 0;
    overflow: hidden;
    padding: 10px 0;
    position: absolute;
    right: var(--spacing-md);
    text-align: center;
    top: calc(100% + 6px);
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
  }

  nav ul.nav-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-home {
    display: list-item;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav li:last-child {
    border-bottom: 0;
  }

  nav a,
  header.scrolled nav a {
    color: var(--white);
    display: block;
    padding: 14px var(--spacing-md);
  }

  nav a:hover,
  nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  nav a::after {
    display: none;
  }

  .mobile-toggle,
  header.scrolled .mobile-toggle {
    color: var(--text-dark);
    display: inline-flex;
  }

  header:not(.scrolled) .mobile-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(8, 28, 51, 0.13);
    color: var(--primary-dark);
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  header.scrolled .mobile-toggle {
    background: transparent;
    box-shadow: none;
    height: auto;
    width: auto;
  }

  .bottom-nav {
    display: grid;
  }

  body {
    padding-bottom: 72px;
  }

  .hero {
    background-attachment: scroll;
    min-height: 700px;
    padding-top: 86px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 28, 51, 0.93) 0%, rgba(8, 28, 51, 0.76) 100%);
  }

  .hero-bg {
    object-position: center;
  }

  .hero-headline {
    font-size: clamp(2.7rem, 9vw, 4rem);
  }

  .hero p {
    font-size: 1.08rem;
  }

  .hero-proof {
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
    max-width: 430px;
    width: auto;
  }

  .hero-proof::after {
    display: block;
  }

  .hero-proof .stat-item:last-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .hero-proof .stat-number {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .hero-proof .stat-label {
    font-size: 0.74rem;
  }

  .hero-proof .stat-item:first-child {
    justify-self: end;
  }

  .hero-proof .stat-item:last-child {
    justify-self: start;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .reveal.fade-left,
  .reveal.fade-right {
    transform: translateY(24px);
  }

  .reveal.active.fade-left,
  .reveal.active.fade-right {
    transform: translateY(0);
  }

  /* Features: horizontal swipe carousel */
  .features-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: var(--spacing-md) 0 var(--spacing-sm);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .features-carousel-track::-webkit-scrollbar { display: none; }

  .features-carousel-track .feature-card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
  }

  /* Category tabs + single-panel view */
  .category-tabs {
    display: flex;
  }

  .categories-wrapper {
    gap: 0;
  }

  .hidden-panel {
    display: none;
  }

  .category-group {
    background: transparent;
    border: 0;
    box-shadow: none;
    scroll-margin-top: 120px;
  }

  .category-group-header {
    background: transparent;
    border-bottom: 0;
    margin-bottom: 14px;
    padding: 0;
  }

  .category-title i {
    font-size: 1.2rem;
  }

  .category-group-header h3 {
    font-size: 1.1rem;
  }

  .category-group-header p,
  .category-count {
    display: none;
  }

  /* Category card carousel on mobile */
  .cat-swipe {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cat-swipe::-webkit-scrollbar { display: none; }

  .cat-swipe .category-card {
    border: 1px solid var(--line-color);
    border-radius: var(--radius-md);
    display: flex;
    flex: 0 0 72vw;
    flex-direction: column;
    gap: 10px;
    max-width: 270px;
    min-height: 146px;
    scroll-snap-align: start;
  }

  .cat-swipe .category-card + .category-card {
    border-top: 1px solid var(--line-color);
  }

  .steps-scroll-section {
    background-size: 56px 100%, auto;
    min-height: 400svh;
  }

  .steps-sticky {
    padding: 96px 0 96px;
  }

  .steps-scroll-layout {
    gap: 34px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .steps-progress {
    flex-direction: row;
    height: auto;
    justify-content: space-between;
    padding-left: 0;
    width: 100%;
  }

  .steps-progress-track {
    bottom: auto;
    height: 2px;
    left: 0;
    right: 0;
    top: 6px;
    width: auto;
  }

  .steps-progress-fill {
    transform: scaleX(var(--steps-progress));
    transform-origin: left;
  }

  .steps-progress-marker {
    justify-content: center;
    padding-top: 28px;
    width: 25%;
  }

  .steps-progress-marker::before {
    left: 50%;
    top: 6px;
    transform: translate(-50%, -50%);
  }

  .steps-progress-marker.active {
    transform: translateY(-2px);
  }

  .steps-stage {
    min-height: 360px;
  }

  .steps-panel {
    justify-self: center;
    max-width: 100%;
    transform: translateY(24px) rotateX(-12deg);
  }

  .steps-panel h2,
  .steps-panel h3 {
    font-size: clamp(2.45rem, 11vw, 3.45rem);
    margin: 0 auto 18px;
    max-width: 11ch;
  }

  .steps-panel p {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 31ch;
  }

  .steps-panel .step-number {
    font-size: clamp(3.2rem, 18vw, 5rem);
    margin-bottom: 20px;
  }

  .map-embed {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1.1rem;
  }

  .logo {
    height: 38px;
    padding: 0 14px;
  }

  .logo img {
    height: 44px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-label {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .hero-headline {
    font-size: clamp(2.55rem, 12vw, 3.2rem);
  }

  .hero-proof .stat-number {
    min-width: 0;
    font-size: clamp(1.45rem, 6.4vw, 1.9rem);
    margin-bottom: 4px;
  }

  .hero-proof .stat-item:nth-child(2) .stat-number {
    font-size: clamp(1.35rem, 6vw, 1.78rem);
  }

  .hero-proof {
    gap: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    max-width: 100%;
    padding-top: 14px;
  }

  .hero-proof::after {
    top: 14px;
  }

  .hero-proof .stat-label {
    font-size: 0.64rem;
    line-height: 1.1;
  }

  .cta-group,
  .cta-bar .container > div {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-card {
    padding: 28px;
  }
}
