/* =========================================================
   Jayathissa Lanka Enterprises (JCC) — Main Stylesheet
   ========================================================= */

:root {
  --blue: #002d62;
  --blue-deep: #001a3a;
  --blue-mid: #0a4a8a;
  --blue-soft: #e8f0f8;
  --gold: #f5b800;
  --gold-hover: #e0a800;
  --white: #ffffff;
  --muted: #f5f7fa;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 16px 48px rgba(0, 45, 98, 0.12);
  --shadow-sm: 0 6px 20px rgba(0, 45, 98, 0.08);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --nav-h: 72px;
  --topbar-h: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.topbar__contact span,
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.topbar__contact a:hover {
  color: var(--gold);
}

.topbar__social {
  display: flex;
  gap: 0.75rem;
}

.topbar__social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s;
}

.topbar__social a:hover {
  background: var(--gold);
  color: var(--blue);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  height: var(--nav-h);
  transition: box-shadow 0.4s var(--ease), background 0.4s, border-color 0.4s;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 45, 98, 0.08);
  border-color: transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 48px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand--footer .brand__logo {
  height: 52px;
  margin-bottom: 0.75rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--blue);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav__chevron {
  opacity: 0.6;
}

.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text);
}

.nav__dropdown a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--blue);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--blue-soft);
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.nav__link .badge {
  position: static;
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

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

.btn--primary:hover {
  background: var(--blue-mid);
  box-shadow: 0 8px 24px rgba(0, 45, 98, 0.35);
}

.btn--gold {
  background: var(--gold);
  color: var(--blue-deep);
}

.btn--gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 8px 24px rgba(245, 184, 0, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  min-height: max(560px, calc(100svh - var(--topbar-h) - var(--nav-h)));
  color: var(--white);
  overflow: hidden;
  background: var(--blue-deep);
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  z-index: 1;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--blue-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 7s ease-out;
  z-index: 0;
}

.hero__slide.is-active .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 18, 42, 0.9) 0%, rgba(0, 45, 98, 0.55) 48%, rgba(0, 45, 98, 0.25) 100%);
  z-index: 1;
}

.hero__slide.is-active .hero__badge,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .hero__actions {
  animation: fadeUp 0.8s var(--ease) both;
}

.hero__slide.is-active .hero__badge { animation-delay: 0.12s; }
.hero__slide.is-active .hero__title { animation-delay: 0.22s; }
.hero__slide.is-active .hero__text { animation-delay: 0.34s; }
.hero__slide.is-active .hero__actions { animation-delay: 0.46s; }

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 4rem 7rem;
  max-width: 720px;
  margin-inline: max(1rem, calc((100% - 1180px) / 2)) auto;
  width: min(720px, calc(100% - 2rem));
  box-sizing: border-box;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(245, 184, 0, 0.15);
  border: 1px solid rgba(245, 184, 0, 0.45);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__title span {
  display: block;
  color: var(--gold);
}

.hero__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.hero__dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s, transform 0.35s var(--ease-spring), width 0.35s var(--ease);
}

.hero__dot.is-active {
  background: var(--gold);
  width: 28px;
  border-radius: 999px;
  transform: none;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  transition: border-color 0.3s, opacity 0.3s;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollBounce 1.6s var(--ease) infinite;
}

.hero__scroll:hover {
  border-color: var(--gold);
}

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

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 10;
  margin-top: -7rem;
  margin-bottom: 1rem;
}

.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 1.5rem 1.25rem;
}

.stats__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem;
  justify-content: center;
}

.stats__item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stats__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}

.stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.stats__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section--muted {
  background:
    radial-gradient(ellipse 70% 60% at 10% 20%, rgba(10, 74, 138, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245, 184, 0, 0.07), transparent 45%),
    var(--muted);
  position: relative;
  overflow: hidden;
}

.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Divisions ---------- */
.divisions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  perspective: 1000px;
}

.division-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s;
}

.division-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 1;
}

.division-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 45, 98, 0.14);
  border-color: transparent;
}

.division-card:hover::before {
  transform: scaleX(1);
}

.division-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.15rem;
}

.division-card__tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, var(--blue-mid));
  margin-bottom: 0.85rem;
}

.division-card__media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.9rem;
  background: var(--muted);
}

.division-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.division-card:hover .division-card__media img {
  transform: scale(1.06);
}

.division-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.division-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--accent, var(--blue));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  align-self: flex-start;
  transition: filter 0.2s, transform 0.2s;
}

.division-card__btn:hover {
  filter: brightness(1.08);
  transform: translateX(2px);
}

/* ---------- Why choose ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.why__item {
  text-align: center;
  padding: 1rem;
}

.why__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.why__item:hover .why__icon {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-4px);
}

.why__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.why__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  margin-inline: auto;
}

/* ---------- CTA ---------- */
.cta {
  padding-top: 2rem;
}

.cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 55%, #0c5a9e 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta__banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.18), transparent 65%);
  pointer-events: none;
}

.cta__copy {
  position: relative;
  max-width: 480px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.cta__title span {
  color: var(--gold);
}

.cta__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  background:
    linear-gradient(180deg, #002248 0%, var(--blue-deep) 40%, #000f22 100%);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4rem;
  padding-top: 4.5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 184, 0, 0.45), transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) 2fr;
  gap: 3rem 4rem;
  padding-bottom: 3rem;
}

.footer__brand .brand__logo {
  height: 56px;
  margin-bottom: 1.1rem;
}

.footer__tagline {
  font-size: 0.925rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 340px;
  margin-bottom: 1.1rem;
}

.footer__reg {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__reg span {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.15fr;
  gap: 2rem 2.5rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}

.footer__links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer__contact li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer__contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.footer__contact strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}

.footer__contact div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 0.55rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.social-link:hover {
  color: var(--blue-deep);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 0 1.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

.footer__credit a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s, opacity 0.2s;
}

.footer__credit a:hover {
  opacity: 0.85;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__legal-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer__legal-links a:hover {
  color: var(--gold);
}

.footer__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* keep legacy class harmless if referenced */
.social-circle { display: none; }


/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Modern motion layer ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform-origin: left;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(245, 184, 0, 0.35);
}

.stats__icon {
  transition: transform 0.45s var(--ease-spring), background 0.35s, color 0.35s;
}

.stats__item:hover .stats__icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--blue);
  color: var(--white);
}

.stats__value {
  font-variant-numeric: tabular-nums;
}

.nav__link {
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.nav__link:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.cta__banner {
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.cta__banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 45, 98, 0.28);
}

.cta__banner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -60px;
  left: -40px;
  animation: floatOrb 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -16px); }
}

.why__item {
  border-radius: 16px;
  transition: background 0.35s, transform 0.35s var(--ease);
}

.why__item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
}

.divisions {
  position: relative;
  overflow: hidden;
}

.divisions::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 45, 98, 0.05), transparent 70%);
  top: 10%;
  right: -80px;
  pointer-events: none;
}

.topbar,
.navbar,
.hero,
.footer,
.cta,
.section {
  max-width: 100%;
}

@media (max-width: 640px) {
  .hero__scroll {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container {
    width: min(1180px, calc(100% - 1.75rem));
  }

  .divisions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer__nav {
    grid-template-columns: 1.3fr 0.9fr 1.1fr;
    gap: 1.5rem;
  }

  .cta__banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
    gap: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

/* Tablet / small laptop — mobile nav, hide top contact banner */
@media (max-width: 900px) {
  :root {
    --topbar-h: 0px;
    --nav-h: 64px;
  }

  .topbar {
    display: none;
  }

  .navbar {
    height: var(--nav-h);
  }

  .brand__logo {
    height: 42px;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-soft);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s, visibility 0.3s, padding 0.3s;
    box-shadow: 0 16px 40px rgba(0, 45, 98, 0.12);
    z-index: 99;
  }

  .nav.is-open {
    max-height: min(80vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 0.75rem 1rem 1.5rem;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav__link {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav__link.is-active {
    background: var(--blue-soft);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    max-height: none;
    padding: 0.15rem 0 0.35rem 0.75rem;
    display: none;
    background: transparent;
    min-width: 0;
  }

  .nav__item--dropdown.is-open .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  /* Mobile hero: content drives height (active slide is in-flow) */
  .hero {
    min-height: 0;
    max-height: none;
    height: auto;
    background: var(--blue-deep);
  }

  .hero__slider {
    position: relative;
    inset: auto;
    min-height: 0;
  }

  .hero__slide {
    position: absolute;
    inset: 0;
    align-items: flex-start;
    padding-top: 1.75rem;
  }

  .hero__slide.is-active {
    position: relative;
    inset: auto;
    min-height: 0;
  }

  .hero__content {
    display: block;
    margin: 0 auto;
    width: calc(100% - 1.75rem);
    max-width: none;
    padding: 0.5rem 0 4.5rem;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 12, 32, 0.82) 0%,
      rgba(0, 32, 72, 0.75) 55%,
      rgba(0, 26, 58, 0.88) 100%
    );
  }

  .hero__badge {
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
    max-width: 100%;
    margin-bottom: 0.85rem;
  }

  .hero__badge span {
    white-space: normal;
    line-height: 1.35;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    margin-bottom: 0.65rem;
  }

  .hero__text {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 1.15rem;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .hero__actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
  }

  .hero__dots {
    bottom: 1.1rem;
  }

  .hero__scroll {
    display: none;
  }

  .stats {
    margin-top: -4.5rem;
    position: relative;
    z-index: 5;
  }

  .stats__card {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0.5rem;
  }

  .stats__item {
    justify-content: flex-start;
    padding: 1rem 0.75rem;
  }

  .stats__item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stats__item:nth-child(1),
  .stats__item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .stats__item:nth-child(2),
  .stats__item:nth-child(4) {
    border-right: none;
  }

  .stats__icon {
    width: 42px;
    height: 42px;
  }

  .stats__value {
    font-size: 1.3rem;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--contact {
    grid-column: 1 / -1;
  }
}

/* Phones */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  :root {
    --nav-h: 60px;
  }

  .brand__logo {
    height: 38px;
  }

  .hero {
    min-height: 0;
    height: auto;
  }

  .hero__content {
    display: block;
    padding: 0.25rem 0 4.25rem;
    width: calc(100% - 1.25rem);
  }

  .hero__badge {
    font-size: 0.64rem;
    gap: 0.35rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.15;
  }

  .hero__text {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .hero__dots {
    bottom: 0.9rem;
  }

  .hero__scroll {
    display: none;
  }

  .stats {
    margin-top: -3.75rem;
    margin-bottom: 0.5rem;
  }

  .stats__card {
    border-radius: 14px;
    padding: 0.35rem;
  }

  .stats__item {
    padding: 0.85rem 0.55rem;
    gap: 0.6rem;
  }

  .stats__icon {
    width: 38px;
    height: 38px;
  }

  .stats__icon svg {
    width: 18px;
    height: 18px;
  }

  .stats__value {
    font-size: 1.15rem;
  }

  .stats__label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section__eyebrow {
    font-size: 0.75rem;
  }

  .section__title {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  }

  .section__desc {
    font-size: 0.9rem;
  }

  .divisions__grid,
  .why__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .division-card {
    padding: 1.1rem;
  }

  .division-card:hover {
    transform: none;
  }

  .why__item {
    padding: 1rem 0.5rem;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "icon text";
    column-gap: 0.9rem;
    row-gap: 0.25rem;
    align-items: start;
  }

  .why__icon {
    grid-area: icon;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }

  .why__title {
    grid-area: title;
    font-size: 1rem;
    margin-bottom: 0;
    padding-top: 0.2rem;
  }

  .why__text {
    grid-area: text;
    max-width: none;
    margin: 0;
    font-size: 0.85rem;
  }

  .why__item:hover {
    transform: none;
  }

  .cta {
    padding-top: 1rem;
  }

  .cta__banner {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    gap: 1.1rem;
  }

  .cta__title {
    font-size: 1.25rem;
  }

  .cta__text {
    font-size: 0.88rem;
  }

  .cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    margin-top: 2.5rem;
    padding-top: 3rem;
  }

  .footer__top {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer__nav {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__col--contact {
    grid-column: auto;
  }

  .footer__links--cols {
    grid-template-columns: 1fr;
  }

  .footer__brand .brand__logo {
    height: 48px;
  }

  .footer__tagline {
    max-width: none;
    font-size: 0.875rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.15rem 0 1.5rem;
  }

  .footer__legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .divisions::before {
    display: none;
  }

  /* Disable heavy hover motion on phones */
  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .hero__badge {
    font-size: 0.6rem;
  }

  .stats__card {
    grid-template-columns: 1fr;
  }

  .stats__item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .stats__item:last-child {
    border-bottom: none;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  background: var(--muted);
}

.legal__hero {
  background:
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 2.75rem;
}

.legal__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal__meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.legal__body {
  max-width: 860px;
  margin: -1.5rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem 2.5rem;
  margin-bottom: 3rem;
}

.legal__section {
  margin-bottom: 1.75rem;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.legal__section p,
.legal__section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal__section ul {
  margin: 0.5rem 0 0 1.15rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal__contact {
  list-style: none !important;
  margin-left: 0 !important;
  gap: 0.45rem !important;
}

.legal__contact strong {
  color: var(--text);
}

.legal__contact a {
  color: var(--blue-mid);
  font-weight: 600;
}

.legal__contact a:hover {
  color: var(--blue);
}

.legal__back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.legal__back a {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.legal__back a:hover {
  color: var(--gold-hover);
}

@media (max-width: 640px) {
  .legal__hero {
    padding: 2.5rem 0 2rem;
  }

  .legal__body {
    padding: 1.5rem 1.15rem 2rem;
    margin-top: -1rem;
    border-radius: 14px;
  }
}

/* ---------- Jayathissa Lanka Express ---------- */
.express {
  overflow-x: hidden;
}

.ex-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.ex-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--blue-deep) center / cover no-repeat;
  transform: scale(1.04);
  animation: kenBurns 12s ease-out both;
}

.ex-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 18, 42, 0.35) 0%,
    rgba(0, 26, 58, 0.55) 40%,
    rgba(0, 18, 42, 0.92) 100%
  );
}

.ex-hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  max-width: 760px;
}

.ex-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.ex-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.ex-hero__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
}

.ex-hero__text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.ex-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ex-gallery__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.ex-gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  background: var(--blue-soft);
}

.ex-gallery__item--wide {
  grid-row: span 2;
  min-height: 100%;
}

.ex-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.6s var(--ease);
}

.ex-gallery__item:hover img {
  transform: scale(1.04);
}

.ex-routes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.ex-route {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.ex-route:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ex-route__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1rem;
}

.ex-route__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
}

.ex-route__path {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-bottom: 1rem;
}

.ex-route__path li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ex-route__path li span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
}

.ex-route__path li:not(:last-child)::after {
  content: "→";
  color: var(--gold);
  font-weight: 800;
  margin-left: 0.35rem;
}

.ex-route__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ex-hire__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.ex-hire__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.ex-hire__card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.ex-hire__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  margin-bottom: 0.85rem;
}

.ex-hire__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.ex-hire__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ex-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ex-contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  color: inherit;
}

a.ex-contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.ex-contact__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.ex-contact__card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--blue);
}

.ex-contact__card span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ex-seo {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.ex-seo__box {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(10, 74, 138, 0.06), transparent 50%),
    var(--muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
}

.ex-seo__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ex-seo__content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ex-seo__content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.ex-seo__content strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ex-hire__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ex-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ex-gallery__item--wide {
    grid-row: auto;
    grid-column: span 2;
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .ex-hero {
    min-height: auto;
  }

  .ex-hero__content {
    padding: 3rem 0 2.5rem;
  }

  .ex-routes__grid,
  .ex-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ex-hero__actions {
    flex-direction: column;
  }

  .ex-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ex-gallery__grid {
    grid-template-columns: 1fr;
  }

  .ex-gallery__item--wide {
    grid-column: auto;
  }

  .ex-hire__grid {
    grid-template-columns: 1fr;
  }

  .ex-seo__box {
    padding: 1.5rem 1.15rem;
  }

  .ex-route__path li:not(:last-child)::after {
    margin-left: 0.25rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    display: none;
  }
}
