:root {
  --brand-red: #e11d2e;
  --brand-red-dark: #b81422;
  --brand-blue: #1a3a9a;
  --brand-blue-deep: #0d2460;
  --brand-orange: #f0a020;
  --tally-cyan: #00aeef;
  --ink: #0e1524;
  --ink-soft: #5a6578;
  --paper: #eef3f9;
  --surface: #ffffff;
  --line: #d5deea;
  --accent: var(--brand-blue);
  --shadow: 0 20px 50px rgba(13, 36, 96, 0.1);
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(225, 29, 46, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 174, 239, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(240, 160, 32, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(26, 58, 154, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 40%, #e8eef8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-red);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(213, 222, 234, 0.8);
  box-shadow: 0 8px 30px rgba(13, 36, 96, 0.04);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange), var(--tally-cyan), var(--brand-blue));
}

.site-header .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(225, 29, 46, 0.12));
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-red), var(--brand-blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--brand-blue);
  background: rgba(26, 58, 154, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2548b0 45%, #1a6fd4 100%);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(26, 58, 154, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-red), #ff4d5a);
  box-shadow: 0 14px 30px rgba(225, 29, 46, 0.35);
  color: #fff !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue) !important;
}

.hero-carousel {
  position: relative;
  min-height: min(82vh, 680px);
  overflow: hidden;
  background: var(--brand-blue-deep);
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: min(82vh, 680px);
}

.hero-slide {
  position: relative;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 85% center;
  background-color: var(--brand-blue-deep);
  display: flex;
  align-items: flex-end;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(0, 174, 239, 0.35), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(240, 160, 32, 0.22), transparent 40%),
    linear-gradient(115deg, rgba(9, 18, 48, 0.96) 0%, rgba(26, 58, 154, 0.78) 42%, rgba(225, 29, 46, 0.55) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.25rem;
  color: #fff;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #b8ecff;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  max-width: 42ch;
  font-size: 1.12rem;
  line-height: 1.55;
  opacity: 0.94;
  margin-bottom: 1.5rem;
}

.hero-content .btn-primary {
  background: linear-gradient(135deg, var(--tally-cyan), #0088cc);
  box-shadow: 0 14px 32px rgba(0, 174, 239, 0.4);
}

.hero-content .btn-primary:hover {
  background: linear-gradient(135deg, #fff, #e8f7ff);
  color: var(--brand-blue) !important;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
}

.carousel-indicators .active {
  background-color: var(--tally-cyan);
}

.hero-fallback {
  min-height: min(72vh, 560px);
  display: grid;
  place-items: end start;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.35), transparent 40%),
    linear-gradient(135deg, var(--brand-blue-deep), var(--brand-red));
  color: #fff;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange), var(--tally-cyan));
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.product-grid,
.event-grid,
.testimonial-grid,
.logo-grid {
  display: grid;
  gap: 1.25rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.event-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.logo-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: stretch;
}

.product-tile,
.event-tile,
.testimonial-tile {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(213, 222, 234, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-tile:hover,
.event-tile:hover,
.testimonial-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 28px 55px rgba(13, 36, 96, 0.14);
}

.product-tile .media,
.event-tile .media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 174, 239, 0.18), transparent 50%),
    linear-gradient(145deg, #e8f0ff 0%, #fff0f2 55%, #fff8e8 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-tile .media img,
.event-tile .media img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.event-tile .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile:hover .media img {
  transform: scale(1.06) rotate(-1deg);
}

.product-tile .body,
.event-tile .body,
.testimonial-tile {
  padding: 1.2rem 1.25rem 1.4rem;
}

.product-tile h3,
.event-tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.logo-cell {
  background: linear-gradient(160deg, #fff, #f3f7ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--brand-blue);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-cell:hover {
  transform: translateY(-3px);
  border-color: var(--tally-cyan);
  box-shadow: 0 14px 28px rgba(0, 174, 239, 0.12);
}

.logo-cell img {
  max-height: 56px;
  object-fit: contain;
}

.testimonial-tile {
  position: relative;
}

.testimonial-tile::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(0, 174, 239, 0.18);
  pointer-events: none;
}

.testimonial-tile blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.stars {
  color: var(--brand-orange);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.page-banner {
  padding: 3.75rem 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.site-footer {
  margin-top: 0;
  border-top: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 174, 239, 0.18), transparent 40%),
    linear-gradient(160deg, #0b1530 0%, #141b2e 55%, #1a1020 100%);
  color: #d7dde6;
}

.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer a {
  color: #f2f4f7;
}

.site-footer a:hover {
  color: var(--tally-cyan);
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-grid a,
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--tally-cyan);
  box-shadow: 0 14px 28px rgba(0, 174, 239, 0.16);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 32, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: riseIn 0.25s ease both;
}

.lightbox-image {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #0b1530;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 0;
  color: #e8eef8;
  text-align: center;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0e1524;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  background: var(--brand-red);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 240, 255, 0.75));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  border-block: 1px solid rgba(213, 222, 234, 0.7);
}

.section-alt > .section-head,
.section-alt > .product-grid,
.section-alt > .why-grid,
.section-alt > .testimonial-grid,
.section-alt > .mt-4 {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-alt > .section-head {
  margin-bottom: 2rem;
}

.about-intro {
  max-width: 48rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  padding: 1.25rem 1.2rem;
  color: #fff;
  box-shadow: 0 16px 36px rgba(13, 36, 96, 0.18);
}

.stat-card:nth-child(1) {
  background: linear-gradient(145deg, #1a3a9a, #00aeef);
}

.stat-card:nth-child(2) {
  background: linear-gradient(145deg, #b81422, #e11d2e 60%, #f0a020);
}

.stat-card:nth-child(3) {
  background: linear-gradient(145deg, #0d2460, #1a3a9a);
}

.stat-card:nth-child(4) {
  background: linear-gradient(145deg, #c47a00, #f0a020);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -30px;
  top: -40px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.service-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.service-card,
.why-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem 1.3rem 1.4rem;
  box-shadow: 0 12px 30px rgba(13, 36, 96, 0.06);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before,
.why-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--tally-cyan));
}

.service-card:nth-child(2n)::before,
.why-card:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
}

.service-card:nth-child(3n)::before,
.why-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--brand-orange), var(--tally-cyan));
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(13, 36, 96, 0.12);
}

.service-card h3,
.why-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
}

.service-card p,
.why-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.98rem;
}

.cta-band {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d2460 0%, #1a3a9a 35%, #c8102e 100%);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -80px;
  top: -160px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.45), transparent 65%);
  animation: floatGlow 8s ease-in-out infinite;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  left: 8%;
  bottom: -140px;
  background: radial-gradient(circle, rgba(240, 160, 32, 0.35), transparent 65%);
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.94;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-outline {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.cta-outline:hover {
  background: #fff !important;
  color: var(--brand-blue) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 12px) scale(1.06);
  }
}

@media (max-width: 860px) {
  .site-footer .inner {
    grid-template-columns: 1fr;
  }

  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slide {
    background-position: center 18%;
    background-size: 55%;
  }

  .hero-content h1 {
    max-width: 20ch;
  }
}
