/* ==========================================================================
   EseSphere theme
   Loaded after main.css. Re-themes the whole site from one place.
   Palette is taken from the EseSphere logo (sky blue + deep blue) with a
   deep navy "ink" for text and dark sections.
   ========================================================================== */

:root {
  --es-ink: #0B1F3A;          /* headings, dark sections */
  --es-ink-2: #132B4D;        /* raised surfaces on ink */
  --es-blue: #1F6FB2;         /* buttons, links (from logo) */
  --es-blue-dark: #175A92;
  --es-sky: #66CFFD;          /* highlight on dark backgrounds (from logo) */
  --es-mist: #F2F6FA;         /* alternate section background */
  --es-line: #DCE4EE;         /* borders */
  --es-slate: #51607A;        /* secondary text */
  --es-text: #25324A;         /* body text */
  --es-radius: 14px;
  --es-radius-sm: 8px;
  --es-header-h: 116px;       /* topbar (40) + nav bar (76) */

  --es-font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --es-font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Feed the template's own variables so every existing page follows */
  --default-font: var(--es-font-body);
  --heading-font: var(--es-font-display);
  --nav-font: var(--es-font-body);
  --default-color: var(--es-text);
  --heading-color: var(--es-ink);
  --accent-color: var(--es-blue);
  --nav-color: var(--es-ink);
  --nav-hover-color: var(--es-blue);
  --nav-dropdown-color: var(--es-ink);
  --nav-dropdown-hover-color: var(--es-blue);
}

.accent-background,
.dark-background {
  --background-color: var(--es-ink);
  --default-color: #E6EDF6;
  --heading-color: #ffffff;
  --accent-color: var(--es-sky);
  --surface-color: var(--es-ink-2);
  --contrast-color: #ffffff;
}

.light-background {
  --background-color: var(--es-mist);
}

html { scroll-padding-top: var(--es-header-h); }

body {
  font-family: var(--es-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--es-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--es-font-display);
  color: var(--heading-color);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p { text-wrap: pretty; }

a { color: var(--accent-color); }
a:hover { color: var(--es-blue-dark); }

:focus-visible {
  outline: 3px solid var(--es-sky);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--es-sky); color: var(--es-ink); }

.es-skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10000;
  background: var(--es-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--es-radius-sm);
}
.es-skip-link:focus { top: 12px; color: #fff; }

#preloader { background: #fff; }
#preloader:before { border-color: var(--es-blue) var(--es-mist) var(--es-mist); }

/* ---------- Buttons ---------- */
.es-btn {
  --btn-bg: var(--es-blue);
  --btn-fg: #fff;
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--es-radius-sm);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--es-font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.es-btn:hover { color: var(--btn-fg); }
.es-btn-primary:hover { --btn-bg: var(--es-blue-dark); }
.es-btn-light { --btn-bg: #fff; --btn-fg: var(--es-ink); --btn-border: #fff; }
.es-btn-light:hover { --btn-bg: var(--es-mist); --btn-border: var(--es-mist); }
.es-btn-outline { --btn-bg: transparent; --btn-fg: var(--es-ink); --btn-border: var(--es-line); }
.es-btn-outline:hover { --btn-border: var(--es-ink); }
.es-btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.55); }
.es-btn-outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-border: #fff; }
.es-btn-whatsapp { --btn-bg: #25D366; --btn-fg: #06301a; --btn-border: #25D366; }
.es-btn-whatsapp:hover { --btn-bg: #1ebe5d; --btn-border: #1ebe5d; }

/* Bootstrap buttons used on inner pages */
.btn-primary, .bg-primary {
  --bs-btn-bg: var(--es-blue);
  --bs-btn-border-color: var(--es-blue);
  --bs-btn-hover-bg: var(--es-blue-dark);
  --bs-btn-hover-border-color: var(--es-blue-dark);
  --bs-btn-active-bg: var(--es-blue-dark);
}
.bg-primary { background-color: var(--es-blue) !important; }

.es-link {
  font-weight: 600;
  color: var(--es-blue);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  --background-color: #ffffff;
  background: #fff;
  box-shadow: 0 1px 0 var(--es-line);
}
.scrolled .header { box-shadow: 0 6px 24px rgba(11, 31, 58, .08); }

.header .topbar {
  background: var(--es-ink);
  height: 40px;
  font-size: 14px;
}
.header .topbar .contact-info { gap: 22px; }
.es-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #DCE7F3;
  font-weight: 500;
}
.es-topbar-link i { color: var(--es-sky); font-size: 14px; }
.es-topbar-link .bi-whatsapp { color: #25D366; }
.es-topbar-link:hover { color: #fff; }
.header .topbar .social-links a { color: #A9BBD1; margin-left: 18px; }
.header .topbar .social-links a:hover { color: #fff; }

@media (max-width: 575px) {
  .header .topbar .contact-info { gap: 14px; }
  .es-topbar-link { font-size: 13px; }
}

.header .branding { min-height: 76px; padding: 10px 0; background: #fff; }

.es-logo img { height: 58px; width: auto; display: block; }
@media (max-width: 575px) { .es-logo img { height: 42px; } }

/* Desktop menu */
@media (min-width: 1200px) {
  .navmenu > ul > li { padding: 14px 13px; }
  .navmenu a, .navmenu a:focus { font-size: 15.5px; font-weight: 500; color: var(--es-ink); }
  .navmenu > ul > li > a:before { bottom: -8px; height: 2px; background: var(--es-blue); }
  .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus { color: var(--es-blue); }

  .navmenu > ul > li.es-nav-cta { padding: 0 0 0 14px; }
  .navmenu > ul > li.es-nav-cta > a {
    background: var(--es-blue);
    color: #fff;
    padding: 11px 20px;
    border-radius: var(--es-radius-sm);
    font-weight: 600;
  }
  .navmenu > ul > li.es-nav-cta > a:hover,
  .navmenu > ul > li.es-nav-cta > a.active { background: var(--es-blue-dark); color: #fff; }
  .navmenu > ul > li.es-nav-cta > a:before { display: none; }
}

/* Mobile menu */
.mobile-nav-toggle {
  background: none;
  border: 0;
  padding: 6px;
  color: var(--es-ink);
}
@media (max-width: 1199px) {
  .mobile-nav-toggle { color: var(--es-ink); margin-right: 0; }
  .navmenu ul { inset: 126px 16px auto 16px; max-height: calc(100vh - 150px); border-radius: var(--es-radius); box-shadow: 0 20px 50px rgba(11,31,58,.18); }
  .navmenu a, .navmenu a:focus { color: var(--es-ink); font-size: 17px; }
  .navmenu .active, .navmenu a:hover { color: var(--es-blue); }
  .navmenu li.es-nav-cta { padding: 8px 20px 12px; }
  .navmenu li.es-nav-cta a { background: var(--es-blue); color: #fff; justify-content: center; border-radius: var(--es-radius-sm); }
  .mobile-nav-active .mobile-nav-toggle { color: #fff; position: absolute; font-size: 32px; top: 15px; right: 15px; z-index: 9999; }
  .mobile-nav-active .navmenu { background: rgba(11, 31, 58, .75); }
  .mobile-nav-active .navmenu > ul { inset: 70px 16px auto 16px; }
}

/* ==========================================================================
   Inner page titles (all pages that use .page-title)
   ========================================================================== */
.page-title {
  --background-color: var(--es-ink);
  --heading-color: #fff;
  --default-color: #D5E0EE;
  background: var(--es-ink) linear-gradient(115deg, rgba(31,111,178,.35) 0%, rgba(11,31,58,0) 55%);
}
.page-title .heading {
  padding: calc(var(--es-header-h) + 64px) 0 56px;
  border-top: 0;
}
.page-title .heading .row { justify-content: flex-start !important; }
.page-title .heading .text-center { text-align: left !important; }
.page-title .heading h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.page-title .heading p { font-size: 1.125rem; max-width: 60ch; color: #C7D5E6; }
.page-title nav {
  background: rgba(255, 255, 255, .06);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.page-title nav ol { font-size: 14px; font-weight: 500; }
.page-title nav ol a { color: #9FB3CB; }
.page-title nav ol a:hover { color: #fff; }
.page-title nav ol li.current { color: #fff; }

/* ==========================================================================
   Sections & section titles
   ========================================================================== */
section, .section { padding: 88px 0; }
@media (max-width: 767px) { section, .section { padding: 64px 0; } }

.section-title {
  text-align: left;
  padding-bottom: 44px;
}
.section-title > * { max-width: 760px; }
.section-title h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  padding-bottom: 0;
  margin-bottom: 14px;
}
.section-title h2:after { display: none; }
.section-title p { color: var(--es-slate); font-size: 1.125rem; max-width: 62ch; }

.es-section { padding: 96px 0; }
@media (max-width: 767px) { .es-section { padding: 68px 0; } }
.es-section-mist { background: var(--es-mist); }
.es-section-ink { background: var(--es-ink); color: #D5E0EE; }
.es-section-ink h2, .es-section-ink h3 { color: #fff; }

.es-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.es-lead { font-size: 1.2rem; color: var(--es-ink); font-weight: 500; }

.es-section-head { max-width: 700px; margin-bottom: 44px; }
.es-section-head p { color: var(--es-slate); font-size: 1.125rem; margin: 0; }
.es-section-ink .es-section-head p { color: #AFC1D6; }
.es-section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.es-section-head-row > div:first-child { max-width: 700px; }

.es-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--es-blue);
  background: rgba(31, 111, 178, .09);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.es-section-ink .es-tag { color: var(--es-sky); background: rgba(102, 207, 253, .12); }

/* ==========================================================================
   Home: hero carousel
   ========================================================================== */
.es-hero {
  position: relative;
  padding: 0;
  margin-top: var(--es-header-h);
  background: var(--es-ink);
  color: #fff;
  overflow: hidden;
}
.es-hero-swiper { height: clamp(560px, 82vh, 780px); }
.es-hero-slide { position: relative; display: flex; align-items: center; overflow: hidden; }
.es-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.swiper-slide-active .es-hero-bg { transform: scale(1); }
.es-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,31,58,.94) 0%, rgba(11,31,58,.80) 38%, rgba(11,31,58,.25) 75%, rgba(11,31,58,.10) 100%),
    linear-gradient(0deg, rgba(11,31,58,.75) 0%, rgba(11,31,58,0) 35%);
}
.es-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
}
.es-hero-content h1,
.es-hero-content .es-hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin-bottom: 22px;
}
.es-hero-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: #D5E0EE;
  max-width: 46ch;
  margin-bottom: 32px;
}
.es-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text arrives with the slide */
.es-hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.swiper-slide-active .es-hero-content > * { opacity: 1; transform: none; }
.swiper-slide-active .es-hero-content > :nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .es-hero-content > :nth-child(3) { transition-delay: .24s; }

/* Service tabs with autoplay progress */
.es-hero-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(11,31,58,.55);
  backdrop-filter: blur(6px);
}
.es-hero-tablist { display: flex; align-items: stretch; }
.es-hero-tab {
  --progress: 0;
  position: relative;
  flex: 1 1 0;
  background: none;
  border: 0;
  color: #9FB3CB;
  text-align: left;
  padding: 20px 18px 22px 0;
  font-family: var(--es-font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: color .2s ease;
}
.es-hero-tab + .es-hero-tab { padding-left: 18px; }
.es-hero-tab:hover, .es-hero-tab.is-active { color: #fff; }
.es-hero-progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 18px;
  height: 3px;
  background: var(--es-sky);
  transform-origin: left;
  transform: scaleX(0);
}
.es-hero-tab + .es-hero-tab .es-hero-progress { left: 18px; }
.es-hero-tab.is-active .es-hero-progress { transform: scaleX(var(--progress)); }
.es-hero-pause {
  flex: 0 0 auto;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.14);
  color: #fff;
  width: 56px;
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .es-hero-swiper { height: 620px; }
  .es-hero-tab span { display: none; }
  .es-hero-tab { padding: 0; height: 52px; }
  .es-hero-tab + .es-hero-tab { padding-left: 0; margin-left: 8px; }
  .es-hero-progress, .es-hero-tab + .es-hero-tab .es-hero-progress { top: 24px; left: 0; right: 0; height: 4px; background: var(--es-sky); }
  .es-hero-tab::before { content: ""; position: absolute; top: 24px; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.25); }
  .es-hero-tab:not(.is-active) .es-hero-progress { transform: scaleX(0); }
  .es-hero-content { padding-bottom: 72px; }
  .es-hero-slide::after { background: linear-gradient(0deg, rgba(11,31,58,.95) 0%, rgba(11,31,58,.75) 55%, rgba(11,31,58,.45) 100%); }
}

/* ==========================================================================
   Home: about
   ========================================================================== */
.es-about p { color: var(--es-slate); }
.es-about .es-lead { color: var(--es-ink); }
.es-checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.es-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--es-ink); font-weight: 500; }
.es-checklist i {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31,111,178,.1); color: var(--es-blue); font-size: 18px;
}
.es-about-figure { margin: 0; border-radius: var(--es-radius); overflow: hidden; aspect-ratio: 5 / 4; }
.es-about-figure img { width: 100%; height: 100%; object-fit: cover; }

.es-values { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--es-line); }
.es-values h3 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.es-values h3 i { color: var(--es-blue); }
.es-values p { color: var(--es-slate); margin: 0; }

/* ==========================================================================
   Service cards (home + services page)
   ========================================================================== */
.services .service-item {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius);
  padding: 32px 28px 28px;
  height: 100%;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.services .service-item:hover { border-color: var(--es-blue); box-shadow: 0 14px 34px rgba(11,31,58,.08); }
.services .service-item .icon {
  width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; background: rgba(31,111,178,.09);
  display: flex; align-items: center; justify-content: center; position: static;
}
.services .service-item .icon i { font-size: 24px; color: var(--es-blue); line-height: 1; transition: none; }
.services .service-item .icon:before { display: none; }
.services .service-item:hover .icon, .services .service-item:hover .icon i { background: rgba(31,111,178,.09); color: var(--es-blue); }
.services .service-item h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; border: 0; padding: 0; }
.services .service-item h3:after { display: none; }
.services .service-item p { color: var(--es-slate); font-size: 1rem; margin-bottom: 18px; }
.services .service-item .readmore { font-weight: 600; color: var(--es-blue); display: inline-flex; align-items: center; gap: 2px; }
.services .service-item .readmore i { font-size: 1.3rem; transition: transform .2s ease; }
.services .service-item:hover .readmore i { transform: translateX(3px); }

/* ==========================================================================
   Carousels: shared controls
   ========================================================================== */
.es-carousel-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.es-carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--es-line); background: #fff; color: var(--es-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
  transition: border-color .2s ease, background-color .2s ease;
}
.es-carousel-btn:hover { border-color: var(--es-ink); }
.es-carousel-btn.swiper-button-disabled { opacity: .4; cursor: default; }
.es-section-ink .es-carousel-btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.es-section-ink .es-carousel-btn:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Home: recent work */
.es-work-swiper { overflow: hidden; }
.es-work-swiper .swiper-slide { height: auto; }
.es-work-card {
  height: 100%;
  background: var(--es-ink-2);
  border-radius: var(--es-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.es-work-media { aspect-ratio: 4 / 3; overflow: hidden; background: #0e2442; }
.es-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.es-work-card:hover .es-work-media img { transform: scale(1.04); }
.es-work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.es-work-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.es-work-body p { color: #AFC1D6; font-size: .98rem; margin-bottom: 18px; }
.es-work-link { color: var(--es-sky); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.es-work-link:hover { color: #fff; }
.es-work-footer { margin-top: 40px; }

/* ==========================================================================
   Home: process steps
   ========================================================================== */
.es-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--es-line);
}
.es-steps li {
  counter-increment: step;
  padding: 28px 28px 8px 0;
  position: relative;
}
.es-steps li + li { padding-left: 28px; border-left: 1px solid var(--es-line); }
.es-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--es-font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--es-blue);
  line-height: 1;
  margin-bottom: 18px;
}
.es-steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.es-steps p { color: var(--es-slate); margin: 0; font-size: 1rem; }
@media (max-width: 991px) {
  .es-steps { grid-template-columns: repeat(2, 1fr); }
  .es-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .es-steps li { padding-bottom: 28px; }
}
@media (max-width: 575px) {
  .es-steps { grid-template-columns: 1fr; }
  .es-steps li, .es-steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--es-line); }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials .swiper { padding-bottom: 8px; }
.testimonials .swiper-slide { height: auto; }
.testimonials .testimonial-item {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius);
  padding: 30px 28px;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  min-height: 0;
}
.testimonials .testimonial-item .stars { margin-bottom: 16px; }
.testimonials .testimonial-item .stars i { color: #F5A524; margin-right: 2px; }
.testimonials .testimonial-item blockquote {
  font-size: 1.05rem;
  color: var(--es-ink);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.testimonials .testimonial-item h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--es-font-body); font-weight: 700; }
.testimonials .testimonial-item h4 { font-size: .95rem; color: var(--es-slate); margin: 0; font-family: var(--es-font-body); font-weight: 400; }
.testimonials .swiper-pagination { position: relative; margin-top: 32px; }
.testimonials .swiper-pagination .swiper-pagination-bullet { background: var(--es-line); opacity: 1; width: 10px; height: 10px; }
.testimonials .swiper-pagination .swiper-pagination-bullet-active { background: var(--es-blue); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq .faq-container .faq-item {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-sm);
  padding: 20px 56px 20px 24px;
  box-shadow: none;
  margin-bottom: 12px;
}
.faq .faq-container .faq-item h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--es-font-body); color: var(--es-ink); margin: 0; }
.faq .faq-container .faq-item .faq-content p { color: var(--es-slate); margin-top: 12px; }
.faq .faq-container .faq-item .faq-toggle { top: 22px; right: 22px; color: var(--es-slate); }
.faq .faq-container .faq-active { border-color: var(--es-blue); background: #fff; }
.faq .faq-container .faq-active h3, .faq .faq-container .faq-active .faq-toggle { color: var(--es-blue); }
.faq p a { font-weight: 600; }

/* ==========================================================================
   Portfolio page
   ========================================================================== */
.es-featured { padding-bottom: 72px; }
.es-featured-swiper { overflow: hidden; }
.es-featured-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius);
  overflow: hidden;
  min-height: 440px;
}
.es-featured-media { background: var(--es-mist); position: relative; }
.es-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-featured-body { padding: 48px 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.es-featured-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.es-featured-body p { color: var(--es-slate); font-size: 1.1rem; margin-bottom: 28px; max-width: 40ch; }
.es-featured-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.es-featured-pagination { position: relative !important; margin-top: 22px; text-align: left; }
.es-featured-pagination .swiper-pagination-bullet { background: var(--es-line); opacity: 1; width: 10px; height: 10px; }
.es-featured-pagination .swiper-pagination-bullet-active { background: var(--es-blue); width: 28px; border-radius: 6px; }
@media (max-width: 991px) {
  .es-featured-slide { grid-template-columns: 1fr; min-height: 0; }
  .es-featured-media { aspect-ratio: 4 / 3; }
  .es-featured-body { padding: 28px 24px 32px; }
}

.es-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.es-filter {
  border: 1.5px solid var(--es-line);
  background: #fff;
  color: var(--es-ink);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.es-filter span {
  font-size: 12px;
  background: var(--es-mist);
  color: var(--es-slate);
  border-radius: 999px;
  padding: 1px 8px;
}
.es-filter:hover { border-color: var(--es-ink); }
.es-filter.is-active { background: var(--es-ink); border-color: var(--es-ink); color: #fff; }
.es-filter.is-active span { background: rgba(255,255,255,.16); color: #fff; }

.es-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 991px) { .es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 575px) { .es-grid { grid-template-columns: 1fr; } }

.es-card {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.es-card[hidden] { display: none; }
.es-card:hover { box-shadow: 0 16px 36px rgba(11,31,58,.09); border-color: #c9d5e3; }
.es-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #E7EEF5;
  overflow: hidden;
}
.es-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s ease; }
.es-card:hover .es-card-media img { transform: scale(1.035); }
/* Flyers and social graphics contain text – show them whole instead of cropping */
.es-fit-digital { background: #E7EEF5; }
.es-fit-digital img { object-fit: contain; padding: 14px; }
.es-card-zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11,31,58,.8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.es-card-media:hover .es-card-zoom,
.es-card-media:focus-visible .es-card-zoom { opacity: 1; transform: none; }
.es-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.es-card-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.es-card-body p { color: var(--es-slate); font-size: .97rem; margin-bottom: 14px; }
.es-card-link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: .97rem; }
.es-empty { font-size: 1.1rem; color: var(--es-slate); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact .info-container {
  background: var(--es-ink);
  border-radius: var(--es-radius) 0 0 var(--es-radius);
  padding: 36px 28px;
  align-items: stretch !important;
}
.contact .info-item { width: 100%; background: rgba(255,255,255,.05); border-radius: var(--es-radius-sm); padding: 18px; margin-bottom: 12px; }
.contact .info-item i { background: rgba(102,207,253,.14); color: var(--es-sky); }
.contact .info-item h3 { color: #fff; font-size: 1rem; font-family: var(--es-font-body); font-weight: 700; }
.contact .info-item p, .contact .info-item p a { color: #D5E0EE; margin: 0; }
.contact .info-item p a:hover { color: #fff; }
.contact .info-item .bi-whatsapp { color: #25D366; background: rgba(37,211,102,.14); }
.contact .php-email-form {
  border: 1px solid var(--es-line);
  border-left: 0;
  border-radius: 0 var(--es-radius) var(--es-radius) 0;
  box-shadow: none;
  height: 100%;
}
.contact .php-email-form button[type=submit] { background: var(--es-blue); border-radius: var(--es-radius-sm); padding: 13px 30px; font-weight: 600; }
.contact .php-email-form button[type=submit]:hover { background: var(--es-blue-dark); }
@media (max-width: 991px) {
  .contact .info-container { border-radius: var(--es-radius); }
  .contact .php-email-form { border-left: 1px solid var(--es-line); border-radius: var(--es-radius); }
}

/* Form fields site-wide */
.form-control, .form-select {
  border-color: var(--es-line);
  border-radius: var(--es-radius-sm);
}
.form-control:focus, .form-select:focus {
  border-color: var(--es-blue);
  box-shadow: 0 0 0 3px rgba(31,111,178,.15);
}

/* ==========================================================================
   Footer CTA band + footer
   ========================================================================== */
.es-cta-band { padding: 0 0 96px; background: transparent; }
.es-cta-inner {
  background: var(--es-blue) linear-gradient(120deg, var(--es-blue) 0%, #1A5F9C 100%);
  border-radius: 20px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}
.es-cta-copy h2 { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.es-cta-copy p { color: #DCEBF8; margin: 0; max-width: 52ch; font-size: 1.08rem; }
.es-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; flex: 0 0 auto; max-width: 440px; }
.es-cta-actions .es-btn-primary { --btn-bg: var(--es-ink); --btn-border: var(--es-ink); }
.es-cta-actions .es-btn-primary:hover { --btn-bg: #06142a; --btn-border: #06142a; }
@media (max-width: 991px) {
  .es-cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .es-cta-actions { justify-content: flex-start; max-width: none; }
}

/* Sections with the mist background directly before the CTA band */
.es-section-mist + .es-cta-band,
.es-portfolio + .es-cta-band { background: var(--es-mist); }

.es-footer.footer {
  --background-color: var(--es-ink);
  --default-color: #B8C7D9;
  --heading-color: #fff;
  --accent-color: var(--es-sky);
  background: var(--es-ink);
  color: #B8C7D9;
  font-size: 15px;
  padding-bottom: 0;
}
.es-footer .footer-top { padding-top: 72px; }
.es-footer-logo { height: 64px; width: auto; margin-bottom: 20px; }
.es-footer .footer-about p { font-size: 15px; max-width: 42ch; }
.es-footer h4 { font-size: 1rem; font-family: var(--es-font-body); font-weight: 700; color: #fff; padding-bottom: 10px; margin-bottom: 8px; }
.es-footer .footer-links ul a { color: #B8C7D9; }
.es-footer .footer-links ul a:hover { color: #fff; }
.es-footer .footer-links ul li { padding: 7px 0; }
.es-footer .social-links a { border-color: rgba(255,255,255,.2); color: #B8C7D9; }
.es-footer .social-links a:hover { border-color: #fff; color: #fff; }
.es-footer address { color: #B8C7D9; line-height: 1.7; }
.es-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.es-footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.es-footer-contact i { color: var(--es-sky); font-size: 18px; margin-top: 2px; }
.es-footer-contact .bi-whatsapp { color: #25D366; }
.es-footer-contact small { display: block; font-size: 12px; color: #8196AF; line-height: 1.2; }
.es-footer-contact a { color: #fff; font-weight: 600; }
.es-footer-contact a:hover { color: var(--es-sky); }
.es-footer .copyright {
  margin-top: 56px;
  padding: 24px 12px 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  text-align: left;
}
.es-footer .copyright p { margin: 0; }
.es-footer .copyright a { color: #B8C7D9; margin-left: 20px; }
.es-footer .copyright a:first-child { margin-left: 0; }
.es-footer .copyright a:hover { color: #fff; }

.scroll-top { background: var(--es-ink); border-radius: 50%; width: 44px; height: 44px; }
.scroll-top i { color: #fff; }
.scroll-top:hover { background: var(--es-blue); }

/* ==========================================================================
   Inner pages: small consistency fixes
   ========================================================================== */
.service-details .services-list a.active { background: var(--es-blue); border-color: var(--es-blue); }
.service-details .services-list a { border-radius: var(--es-radius-sm); }
.card { border-color: var(--es-line); border-radius: var(--es-radius); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .es-hero-bg { transform: none !important; }
  .es-hero-content > * { opacity: 1; transform: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
.page-title nav ol { padding-left: 0; }

/* Project links (website / Google Play / App Store) */
.es-project-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.es-featured-actions .es-btn-outline i.bi-google-play { color: #34A853; }
