/* =========================================================
   Pleasant MEP Solutions — Premium Design System
   Brand: Royal Blue (#31579E) → Teal (#1AA78F)
   ========================================================= */

:root {
  --brand-blue: #31579e;
  --brand-blue-deep: #243f78;
  --brand-blue-dark: #0f1f3d;
  --brand-teal: #1aa78f;
  --brand-teal-light: #2ec4a8;
  --brand-gradient: linear-gradient(135deg, #31579e 0%, #1aa78f 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(49, 87, 158, 0.12), rgba(26, 167, 143, 0.12));
  --text-dark: #1a2744;
  --text-muted: #5a6a85;
  --text-light: #e8eef8;
  --bg-light: #f4f7fb;
  --bg-white: #ffffff;
  --border-soft: rgba(49, 87, 158, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 31, 61, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 31, 61, 0.1);
  --shadow-lg: 0 28px 80px rgba(15, 31, 61, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --nav-height: 88px;
  --container: 1200px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

#main {
  overflow-x: hidden;
  max-width: 100%;
}

.container-pleasant {
  width: min(100% - 2.5rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brand-teal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Contain Bootstrap grid bleed inside containers */
.container-pleasant > .row {
  --bs-gutter-x: 1.5rem;
  margin-inline: calc(var(--bs-gutter-x) * -0.5);
  max-width: none;
}

section,
.page-hero,
.hero,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

.section-padding {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 16ch;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 52ch;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-white {
  background: var(--bg-white);
}

.bg-soft {
  background: var(--bg-light);
}

.bg-navy {
  background: var(--brand-blue-dark);
  color: var(--text-light);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-navy p {
  color: inherit;
}

.bg-navy p {
  color: rgba(232, 238, 248, 0.78);
}

.pattern-grid {
  position: relative;
  overflow: hidden;
}

.pattern-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(49, 87, 158, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 158, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* ----- Preloader ----- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0f1f3d;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--brand-gradient);
  animation: pulseMark 1.2s ease-in-out infinite;
}

@keyframes pulseMark {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ----- Scroll Progress ----- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10000;
  background: var(--brand-gradient);
  box-shadow: 0 0 16px rgba(26, 167, 143, 0.45);
}

/* ----- Buttons ----- */
.btn {
  --bs-btn-font-family: var(--font-body);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition);
}

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

.btn-gradient {
  background: var(--brand-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 12px 28px rgba(49, 87, 158, 0.28);
}

.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  box-shadow: 0 18px 36px rgba(26, 167, 143, 0.32);
}

.btn-outline-brand {
  border: 1.5px solid rgba(49, 87, 158, 0.35);
  color: var(--brand-blue);
  background: transparent;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: rgba(26, 167, 143, 0.06);
}

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.btn-sm-pleasant {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* ----- Navbar ----- */
#site-header {
  position: relative;
  z-index: 1050;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.navbar-pleasant {
  min-height: var(--nav-height);
  padding: 0.65rem 0;
  z-index: 1050;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 31, 61, 0.08);
  transition: box-shadow var(--transition), padding var(--transition);
  width: 100%;
  max-width: 100%;
  left: 0;
  right: 0;
}

.navbar-pleasant .navbar-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  gap: 0.5rem;
  box-sizing: border-box;
}

.navbar-pleasant .navbar-brand {
  flex: 0 1 auto;
  max-width: calc(100% - 58px);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.navbar-pleasant .navbar-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* Toggler: always visible below xl, never pushed off-screen */
.navbar-pleasant .pleasant-toggler {
  flex: 0 0 44px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 1.5px solid rgba(49, 87, 158, 0.35);
  border-radius: 12px;
  background: #ffffff;
  color: #31579e;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  order: 2;
}

.navbar-pleasant .pleasant-toggler:hover,
.navbar-pleasant .pleasant-toggler:focus {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: #ffffff;
  outline: none;
}

.navbar-pleasant .pleasant-toggler:focus-visible {
  outline: 2px solid rgba(26, 167, 143, 0.45);
  outline-offset: 2px;
}

.navbar-pleasant .pleasant-toggler-icon {
  display: block;
  pointer-events: none;
}

.navbar-pleasant .navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  order: 3;
  width: 100%;
}

.navbar-pleasant .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.45rem 0.65rem !important;
  white-space: nowrap;
  position: relative;
}

.navbar-pleasant .nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar-pleasant .nav-link:hover,
.navbar-pleasant .nav-link.active {
  color: var(--brand-blue) !important;
}

.navbar-pleasant .nav-link:hover::after,
.navbar-pleasant .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-pleasant.scrolled {
  padding-block: 0.45rem;
  box-shadow: 0 10px 30px rgba(15, 31, 61, 0.12);
}

.navbar-cta {
  margin-left: 0.35rem;
}

/* Desktop xl+: hide toggler, inline menu */
@media (min-width: 1200px) {
  .navbar-pleasant .pleasant-toggler {
    display: none !important;
  }

  .navbar-pleasant .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 0;
    width: auto;
    order: 2;
  }

  .navbar-pleasant .navbar-brand {
    order: 1;
    max-width: none;
    margin-right: 1rem;
  }
}

/* Below xl: force toggler visible (override any Bootstrap margin-left:auto) */
@media (max-width: 1199.98px) {
  .navbar-pleasant.navbar-expand-xl .pleasant-toggler,
  .navbar-pleasant .pleasant-toggler {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.dropdown-menu {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.55rem;
}

.dropdown-item {
  border-radius: 10px;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--brand-gradient-soft);
  color: var(--brand-blue);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding: calc(var(--nav-height) + 3.5rem) 0 3rem;
  color: #fff;
  overflow: hidden;
  background: var(--brand-blue-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 40, 0.94) 0%, rgba(15, 31, 61, 0.82) 42%, rgba(15, 31, 61, 0.35) 72%, rgba(15, 31, 61, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 31, 61, 0.35) 0%, transparent 35%, rgba(15, 31, 61, 0.45) 100%);
  z-index: 1;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 70%, rgba(49, 87, 158, 0.28), transparent 32%),
    radial-gradient(circle at 88% 28%, rgba(26, 167, 143, 0.22), transparent 28%);
  mix-blend-mode: screen;
  animation: meshFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 4rem);
  flex: 1;
  box-sizing: border-box;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.hero-content {
  max-width: 34rem;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--brand-teal-light), rgba(255, 255, 255, 0.15)) 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(26, 167, 143, 0.18);
  flex-shrink: 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  max-width: 11ch;
  margin: 0 0 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  max-width: 34ch;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-aside-card {
  width: min(100%, 280px);
  padding: 1.6rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-aside-label {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-aside-list i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-teal-light);
  font-size: 0.85rem;
}

.typing-text {
  color: var(--brand-teal-light);
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #fff;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-stats {
  position: relative;
  z-index: 3;
  width: 100%;
}

.stats-bridge {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.counter-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.counter-section .stat-item {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1rem 1.45rem;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.counter-section .stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 167, 143, 0.28);
}

.counter-section .stat-num {
  white-space: nowrap;
}

.counter-section .stat-label {
  width: 100%;
  overflow-wrap: break-word;
}

/* ----- Page Hero ----- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 3rem) 0 3.5rem;
  background: var(--brand-blue-dark);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0.35;
}

.page-hero::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.05'%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.6;
}

.page-hero .container-pleasant {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
}

.breadcrumb-pleasant {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
}

.breadcrumb-pleasant li {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-pleasant li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  opacity: 0.55;
}

.breadcrumb-pleasant a {
  color: #fff;
}

/* ----- Cards ----- */
.service-card,
.feature-card,
.product-card,
.project-card,
.industry-card,
.info-card,
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.feature-card:hover,
.product-card:hover,
.project-card:hover,
.industry-card:hover,
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 167, 143, 0.28);
}

.service-card {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 24px rgba(49, 87, 158, 0.22);
}

.service-card h3 {
  font-size: 1.35rem;
}

.service-card .card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-card {
  padding: 1.6rem;
  height: 100%;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient-soft);
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.industry-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
  height: 100%;
}

.industry-card i {
  font-size: 1.6rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.industry-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Featured services asymmetric */
.services-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

.services-spotlight .service-card.large {
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(15, 31, 61, 0.92), rgba(49, 87, 158, 0.78)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1200&q=80") center/cover;
  color: #fff;
  border: none;
}

.services-spotlight .service-card.large h3,
.services-spotlight .service-card.large p,
.services-spotlight .service-card.large .card-link {
  color: #fff;
}

.services-stack {
  display: grid;
  gap: 1.25rem;
}

/* Product cards */
.product-card {
  overflow: hidden;
  height: 100%;
}

.product-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .thumb img {
  transform: scale(1.08);
}

.product-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

.search-field {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-field input {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(26, 167, 143, 0.12);
}

.search-field i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Project masonry */
.project-grid {
  columns: 3 280px;
  column-gap: 1.25rem;
}

.project-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  cursor: pointer;
}

.project-card .thumb {
  position: relative;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  display: block;
  transition: transform 0.7s ease;
}

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

.project-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(15, 31, 61, 0.88));
  color: #fff;
  transform: translateY(8px);
  opacity: 0.95;
  transition: var(--transition);
}

.project-card .overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.project-card .overlay span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Process */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal));
  opacity: 0.25;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step .step-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--brand-gradient);
  background-origin: border-box;
  background-clip: content-box, border-box;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  font-size: 0.88rem;
  margin: 0;
}

/* Why / split */
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.testimonial-card .stars {
  color: #f5b301;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.swiper-pagination-bullet-active {
  background: var(--brand-teal) !important;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button i {
  color: var(--brand-teal);
  transition: transform var(--transition);
}

.faq-item.active button i {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-body {
  max-height: 280px;
}

.faq-item .faq-body-inner {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(15, 31, 61, 0.92), rgba(49, 87, 158, 0.8) 50%, rgba(26, 167, 143, 0.75)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

/* HVAC product blocks */
.hvac-product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.hvac-product:nth-child(even) {
  direction: rtl;
}

.hvac-product:nth-child(even) > * {
  direction: ltr;
}

.hvac-product .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 360px;
}

.hvac-product .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  transition: transform 0.8s ease;
}

.hvac-product:hover .media img {
  transform: scale(1.04);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.spec-list li {
  display: flex;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spec-list li i {
  color: var(--brand-teal);
  margin-top: 0.25rem;
}

/* Solar tiles */
.solar-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.solar-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.solar-tile:hover img {
  transform: scale(1.08);
}

.solar-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(15, 31, 61, 0.88));
}

.solar-tile .content {
  position: relative;
  z-index: 1;
}

.solar-tile h3 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.solar-tile p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.92rem;
}

/* Contact */
.contact-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(26, 167, 143, 0.12);
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  margin-bottom: 0.85rem;
}

.contact-info-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(49, 87, 158, 0.85), rgba(26, 167, 143, 0.75)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1400&q=80") center/cover;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

a.map-placeholder {
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

a.map-placeholder:hover,
a.map-placeholder:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.contact-info-card a {
  color: inherit;
  text-decoration: none;
}

.contact-info-card a:hover,
.contact-info-card a:focus-visible {
  color: var(--brand-blue);
}

.gallery-pending {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px dashed var(--border-soft);
}

/* Gallery */
.gallery-grid {
  columns: 3 260px;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Careers */
.job-card {
  padding: 1.5rem;
  height: 100%;
}

.job-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.job-card .badge-soft {
  background: var(--brand-gradient-soft);
  color: var(--brand-blue);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Modal */
.project-modal .modal-content {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-modal .modal-body {
  padding: 0;
}

.project-modal .modal-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.project-modal .modal-copy {
  padding: 1.75rem;
}

/* Float actions */
#backToTop,
#whatsappFloat {
  position: fixed;
  right: 1.25rem;
  z-index: 1050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#backToTop {
  bottom: 5.5rem;
  background: var(--brand-blue-dark);
  opacity: 0;
  visibility: hidden;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#whatsappFloat {
  bottom: 1.5rem;
  background: #25d366;
  font-size: 1.75rem;
  line-height: 1;
}

#whatsappFloat i {
  font-size: inherit;
  line-height: 1;
}

#backToTop:hover,
#whatsappFloat:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0b1730;
  color: rgba(232, 238, 248, 0.78);
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(49, 87, 158, 0.35), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(26, 167, 143, 0.22), transparent 35%);
  pointer-events: none;
}

.site-footer .footer-inner {
  position: relative;
  z-index: 1;
}

.site-footer img.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.site-footer a {
  color: rgba(232, 238, 248, 0.78);
}

.site-footer a:hover {
  color: var(--brand-teal-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a,
.footer-links span {
  overflow-wrap: anywhere;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding: 1.35rem 0;
  font-size: 0.88rem;
}

/* Legal content */
.legal-content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

/* 404 */
.error-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(26, 167, 143, 0.55);
  outline-offset: 3px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10001;
  background: #fff;
  color: var(--brand-blue);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
