/* =========================================================
   ANROCK Facility Management Services ? Brand Stylesheet
   Palette: #1C75BC ? #262262 | #FFE43B ? #F58730 | Jost
   ========================================================= */

:root {
  --blue: #1c75bc;
  --blue-deep: #262262;
  --blue-mid: #255b99;
  --gold: #ffe43b;
  --orange: #f58730;
  --charcoal: #414042;

  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f3f6fb;
  --bg-muted: #e8eef7;
  --ink: #1a1f2e;
  --ink-soft: #3d4558;
  --muted: #5c6678;
  --line: #d5deeb;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(213, 222, 235, 0.9);
  --hero-overlay: linear-gradient(
    105deg,
    rgba(12, 22, 48, 0.88) 0%,
    rgba(12, 22, 48, 0.62) 45%,
    rgba(12, 22, 48, 0.38) 100%
  );
  --shadow: 0 20px 50px rgba(38, 34, 98, 0.12);
  --shadow-soft: 0 8px 28px rgba(15, 30, 60, 0.08);
  --footer-bg: #0b152c;
  --success-bg: #e8f8ef;
  --success-ink: #146c3b;
  --panel-glass: rgba(255, 255, 255, 0.08);

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 112px;
  --font: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-light: url("../assets/logo-mark.svg");
  --logo-word: url("../assets/logo.svg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin: 0.65rem 0 0.85rem;
  max-width: 18ch;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(28, 117, 188, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1f2e;
  box-shadow: 0 12px 30px rgba(245, 135, 48, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1f2e;
  box-shadow: 0 10px 28px rgba(245, 135, 48, 0.28);
}

.btn-accent:hover {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand .brand-logo {
  width: auto;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-actions .nav-links {
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  position: relative;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 99px;
}

.nav-cta {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: 0.25s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  transform: scale(1.02);
  animation: heroZoom 22s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 14, 32, 0.9) 0%, rgba(8, 14, 32, 0.62) 42%, rgba(8, 14, 32, 0.28) 72%, rgba(8, 14, 32, 0.18) 100%),
    radial-gradient(circle at 78% 22%, rgba(255, 228, 59, 0.16), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.hero-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.55rem;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-logo {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
  border-radius: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  letter-spacing: 0.01em;
  max-width: 22ch;
  margin-bottom: 1rem;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}

.hero > .container > p,
.hero-content > p {
  max-width: 58ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  opacity: 0.94;
  margin-bottom: 1.85rem;
  font-weight: 400;
  animation: fadeUp 0.9s var(--ease) 0.24s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.9s var(--ease) 0.36s both;
}

.hero-brand-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 2.2rem;
  animation: fadeUp 0.9s var(--ease) 0.48s both;
}

.hero-brand-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-brand-dots span:nth-child(1),
.hero-brand-dots span:nth-child(5) {
  background: var(--orange);
}

.hero-brand-dots span:nth-child(2) { animation-delay: 0.15s; }
.hero-brand-dots span:nth-child(3) { animation-delay: 0.3s; }
.hero-brand-dots span:nth-child(4) { animation-delay: 0.45s; }
.hero-brand-dots span:nth-child(5) { animation-delay: 0.6s; }

/* ---------- Page Hero (inner) ---------- */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 228, 59, 0.16), transparent 28%),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -90px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  clip-path: polygon(30% 0%, 100% 0%, 100% 70%, 70% 100%, 0% 100%, 0% 30%);
  opacity: 0.32;
  animation: floatShape 7s ease-in-out infinite;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.5rem 0 0.75rem;
}

.page-hero p {
  max-width: 52ch;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  opacity: 0.8;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-head.center {
  text-align: center;
  display: grid;
  justify-items: center;
}

.section-head.center .section-title,
.section-head.center .section-lead {
  max-width: 48ch;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Service tiles ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-tile {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s ease;
  overflow: hidden;
}

.service-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-tile:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(28, 117, 188, 0.12);
  color: var(--blue);
  transition: background 0.3s ease, color 0.3s ease;
}

.service-tile:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1f2e;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-tile h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-tile .tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue);
}

.service-tile .tile-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.service-tile:hover .tile-link svg {
  transform: translateX(4px);
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 340px;
  max-height: 460px;
}

.split-media::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  right: -12px;
  bottom: -12px;
  z-index: -1;
  background: linear-gradient(135deg, var(--blue), transparent);
  border-radius: 18px;
}

.feature-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--gold) 0 35%, transparent 36%),
    var(--blue);
}

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  background: var(--blue-deep);
  color: #fff;
  padding: clamp(3.2rem, 7vw, 4.8rem) 0;
  overflow: hidden;
}

.quote-band::before {
  content: "\201C";
  position: absolute;
  left: 6%;
  top: -0.15em;
  font-size: 14rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.35;
}

.quote-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 120px;
  background: var(--orange);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Applications grid ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.app-item {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease;
}

.app-item:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.app-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.app-item h3 .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  background: rgba(28, 117, 188, 0.12);
  color: var(--blue);
}

.app-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Training modules ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.module {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.module::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 26, 0.25), transparent 70%);
}

.module h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--blue);
}

.module ul {
  display: grid;
  gap: 0.55rem;
}

.module li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-panel {
  background: var(--blue-deep);
  color: #fff;
  border-radius: 20px;
  padding: 2rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 28px;
  transform: rotate(18deg);
  opacity: 0.85;
}

.contact-panel h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-panel > p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.contact-list a,
.contact-list div {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--panel-glass);
  transition: background 0.25s ease;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-list .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(240, 196, 26, 0.2);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list .icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(26, 74, 150, 0.12);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note a {
  color: var(--blue);
  font-weight: 700;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--success-ink);
  font-weight: 600;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.45s var(--ease);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background:
    radial-gradient(circle at 12% 50%, rgba(240, 196, 26, 0.22), transparent 30%),
    linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: clamp(2.8rem, 6vw, 3.8rem) 0;
}

.cta-strip .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 18ch;
}

.cta-strip p {
  opacity: 0.88;
  margin-top: 0.45rem;
  max-width: 42ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 1.8rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.55rem;
}

.footer-brand p {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}

.footer-col a,
.footer-col li {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- Service detail blocks ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.service-detail h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.service-detail p {
  color: var(--muted);
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 0.45rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Map embed ---------- */
.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(26, 74, 150, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.3s var(--ease);
  z-index: 50;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover {
  background: var(--orange);
}

.back-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid,
  .apps-grid,
  .modules,
  .process,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split.reverse,
  .contact-grid,
  .footer-grid,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

}

@media (max-width: 780px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    display: none;
  }

  .brand .brand-logo {
    height: 72px;
  }

  .hero-logo {
    width: clamp(180px, 48vw, 280px);
  }

  .hero {
    min-height: 82svh;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, calc(100% - 1.4rem));
  }

  .services-grid,
  .apps-grid,
  .modules,
  .process,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-strip .inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-brand-dots span,
  .page-hero::before,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
