/* FUMSTOBII SERVICES LTD — shared styles */

:root {
  --blue: #00349e;
  --blue-2: #0d4eb3;
  --blue-3: #2570c6;
  --navy: #071b3d;
  --navy-2: #0a2758;
  --navy-3: #123066;
  --charcoal: #172033;
  --light-blue: #eaf2ff;
  --red: #d10504;
  --red-soft: #fdecec;
  --white: #ffffff;
  --bg: #eaf2ff;
  --bg-alt: #f5f8fd;
  --text: #172033;
  --muted: #64748b;
  --line: #dce5f2;
  --shadow: 0 10px 30px rgba(7, 27, 61, 0.08);
  --shadow-lg: 0 18px 50px rgba(7, 27, 61, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --focus: 0 0 0 3px rgba(0, 52, 158, 0.35);
  --teal: var(--blue);
  --teal-dark: var(--blue-2);
  --teal-soft: var(--light-blue);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.02rem;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.7em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue-3);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 10000;
  border-radius: 8px;
}
.skip-link:focus { top: 0.6rem; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

[hidden] { display: none !important; }

.main-nav .btn-primary {
  color: #fff;
  margin-left: 0.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--light-blue); color: var(--navy); border-color: var(--navy); }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--light-blue); color: var(--navy); border-color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  border-color: #128c7e;
}
.btn-whatsapp:hover { background: #0e7a6e; color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #c9d6e3;
  font-size: 0.84rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}
.topbar a { color: #e8eef4; }
.topbar a:hover { color: #fff; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar svg { width: 14px; height: 14px; flex: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: none;
  background: #fff;
  padding: 0.15rem 0;
}
.logo img {
  width: 230px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.2rem;
}
.main-nav a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--light-blue);
}
.header-cta { margin-left: 0.5rem; }

.nav-backdrop {
  display: none;
}

/* Hero slider */
.hero,
.hero-slider {
  position: relative;
  height: 680px;
  display: grid;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-slides {
  position: relative;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  display: grid;
  align-items: center;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide[data-focus="left"] img { object-position: 28% center; }
.hero-slide[data-focus="center"] img { object-position: 50% 42%; }
.hero-slide[data-focus="software"] img { object-position: 42% center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 27, 61, 0.9) 0%, rgba(7, 27, 61, 0.72) 46%, rgba(0, 52, 158, 0.42) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 5rem;
  max-width: 740px;
}
.hero-slider .btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.hero-slider .btn-secondary:hover {
  background: var(--light-blue);
  color: var(--navy);
  border-color: var(--light-blue);
}
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(7, 27, 61, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-nav:hover,
.hero-nav:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
}
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
.hero-nav svg { width: 20px; height: 20px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c9dbff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}
.hero h1,
.hero-slide h1,
.hero-slide h2 { color: #fff; margin-bottom: 0.8rem; }
.hero p.lead,
.hero-slide p.lead {
  color: #d7e2ec;
  font-size: 1.12rem;
  max-width: 58ch;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.2rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d6e3; max-width: 62ch; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 18px solid rgba(37, 112, 198, 0.22);
  border-radius: 40% 60%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #9fb0c2;
}
.breadcrumb a { color: #d5e0ea; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #7e90a3;
}

/* Sections */
.section { padding: 4.2rem 0; }
.section-muted { background: var(--light-blue); }
.section-navy { background: var(--navy); color: #d7e2ec; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head {
  max-width: 680px;
  margin-bottom: 2.2rem;
}
.section-head.center,
.center { text-align: center; margin-inline: auto; }
.kicker {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}
.section-navy .kicker { color: var(--teal); }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  height: 100%;
}
.card h3 { margin-bottom: 0.45rem; }
.card p, .card li { color: var(--muted); }
.card-link { display: block; color: inherit; height: 100%; }
.card-link:hover { color: inherit; }
.card-link:hover .card,
a.card:hover {
  border-color: #b9ccea;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
a.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.icon-wrap svg { width: 24px; height: 24px; }

.list-check {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.list-check li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  min-height: 280px;
  max-height: 460px;
}

/* Values / why */
.value-card {
  padding: 1.3rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.value-num {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Testimonials */
.quote {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
  color: var(--text);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.quote cite {
  font-style: normal;
  display: block;
  font-weight: 700;
  color: var(--navy);
}
.quote .org {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Portfolio */
.project-card .thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

/* Training */
.course-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body .btn { margin-top: auto; align-self: flex-start; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
}
.course-meta span {
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-bar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--charcoal);
}
.filter-bar button[aria-pressed="true"],
.filter-bar button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(110deg, rgba(7, 27, 61, 0.96), rgba(0, 52, 158, 0.88)),
    var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 2.4rem 1.6rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #d7e2ec; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
.contact-details {
  display: grid;
  gap: 1rem;
}
.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.form {
  display: grid;
  gap: 0.95rem;
}
.form-row {
  display: grid;
  gap: 0.95rem;
}
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}
.form-status.success { display: block; background: #e8f8f2; color: #0b6b4f; }
.form-status.error { display: block; background: var(--red-soft); color: #8a1010; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b7c4d2;
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 2rem;
}
.footer-brand p { color: #9fb0c2; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
}
.footer-logo-frame {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}
.footer-logo img {
  width: 210px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.footer-logo strong { color: #fff; }
.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer-links { list-style: none; display: grid; gap: 0.4rem; }
.footer-links a { color: #c5d2de; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1a3148;
  padding: 1rem 0;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Service detail */
.deliverables {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, a.card, .card-link:hover .card { animation: none; transform: none; opacity: 1; transition: none; }
  .hero-slide { transition: none; }
}

/* Responsive */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1.4fr auto; padding: 2.6rem 2.2rem; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}

@media (min-width: 1024px) {
  .hero,
  .hero-slider { height: 700px; }
  .hero-content { padding: 5.5rem 0 6rem; }
}

@media (min-width: 1440px) {
  .hero,
  .hero-slider { height: 720px; }
}

@media (max-width: 1023px) {
  .hero,
  .hero-slider { height: 620px; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-block; }
  .main-nav .header-cta { margin-top: 0.8rem; }
  .logo img { width: 180px; max-height: 52px; }
  .hero-prev { left: 0.5rem; }
  .hero-next { right: 0.5rem; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.2rem 2rem;
    gap: 0.25rem;
    transform: translateX(110%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1201;
  }
  .main-nav.is-open { transform: none; }
  .main-nav a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 35, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 430px) {
  .topbar-inner { justify-content: flex-start; }
  .logo img { width: 168px; max-height: 48px; }
  .hero,
  .hero-slider { height: 590px; }
  .hero-content { padding: 3.2rem 0 4.2rem; max-width: 100%; }
  .hero-nav { width: 42px; height: 42px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 180px; }
  .hero-slider .btn-row { flex-direction: column; }
  .hero-slider .btn-row .btn { width: 100%; flex: none; }
  .footer-logo img { width: 176px; max-height: 50px; }
}

@media (max-width: 359px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  h1 { font-size: 1.7rem; }
}
