/* Makropor - Brand Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-primary: #3E7FBC;
  --brand-secondary: #3E7FBC;
  --brand-accent: #065C2E;
  --brand-text: #1A1A1A;
  --brand-bg-light: #F8F9FB;
  --font-sans: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-manrope: "Manrope", sans-serif;
  --header-height: 72px;
}

@media (min-width: 576px) {
  :root {
    --header-height: 76px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: var(--brand-text);
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

.font-manrope { font-family: var(--font-manrope); }
.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }
.text-brand-accent { color: var(--brand-accent) !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; }
.bg-brand-secondary { background-color: var(--brand-secondary) !important; }
.bg-brand-accent { background-color: var(--brand-accent) !important; }
.bg-brand-bg-light { background-color: var(--brand-bg-light) !important; }
.border-brand-accent { border-color: var(--brand-accent) !important; }
.border-brand-secondary { border-color: rgba(62, 127, 188, 0.15) !important; }

.text-gray-650 { color: #525252; }

/* Technical Grid Overlays */
.tech-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(62, 127, 188, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 127, 188, 0.05) 1px, transparent 1px);
}

.tech-grid-fine {
  background-size: 10px 10px;
  background-image:
    linear-gradient(to right, rgba(62, 127, 188, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 127, 188, 0.02) 1px, transparent 1px);
}

/* Blueprint border */
.blueprint-border {
  position: relative;
}

.blueprint-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--brand-accent);
  border-left: 1.5px solid var(--brand-accent);
}

.blueprint-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid var(--brand-accent);
  border-right: 1.5px solid var(--brand-accent);
}

/* Hover scale */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-4px);
}

/* Section badge */
.section-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--brand-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  background: rgba(6, 92, 46, 0.05);
  padding: 0.375rem 1rem;
  border: 1px solid rgba(6, 92, 46, 0.25);
  display: inline-block;
}

.section-title {
  font-family: var(--font-manrope);
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 4rem;
  height: 4px;
  background: var(--brand-accent);
}

/* Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  transition: all 0.3s ease;
  padding: 0.875rem 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(65, 90, 119, 0.12);
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.06);
}

.site-header.scrolled {
  padding: 0.625rem 0;
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.site-header-nav {
  flex: 1;
  justify-content: center;
}

.site-header-actions {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    display: none !important;
  }

  body.mobile-menu-open {
    overflow: auto;
    touch-action: auto;
  }
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

@media (min-width: 576px) {
  .site-logo {
    height: 48px;
    max-width: 220px;
  }
}

@media (min-width: 992px) {
  .site-logo {
    height: 52px;
  }
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}

.mobile-menu-toggle {
  color: var(--brand-primary) !important;
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  color: var(--brand-accent) !important;
}

/* Mobile menu - slide panel */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(13, 27, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  z-index: 1095;
  width: min(100%, 320px);
  height: calc(100dvh - var(--header-height));
  background: var(--brand-primary);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.show {
  transform: translateX(0);
}

.mobile-menu-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1.25rem 2rem;
}

.mobile-menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-panel-title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-accent);
}

.mobile-menu-close {
  color: #e5e7eb !important;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  color: var(--brand-accent) !important;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding: 0.5rem 0;
}

.mobile-menu-nav .nav-link-mobile {
  color: #e5e7eb;
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  text-align: left;
  border-radius: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu-nav .nav-link-mobile:hover,
.mobile-menu-nav .nav-link-mobile:active {
  color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e5e7eb;
  text-decoration: none;
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem;
  min-height: 48px;
}

.mobile-menu-phone:hover {
  color: var(--brand-accent);
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  background: var(--brand-accent);
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 48px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-cta:hover {
  background: #ffffff;
  color: var(--brand-primary);
}

.site-header .nav-link-custom {
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: color 0.3s;
  text-decoration: none;
}

.site-header .nav-link-custom:hover {
  color: var(--brand-accent);
}

.site-header .phone-label {
  font-size: 10px;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.site-header .phone-number {
  font-size: 12px;
  font-family: monospace;
  font-weight: 600;
  color: var(--brand-primary);
}

.btn-quote {
  padding: 0.625rem 1.5rem;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-bottom: 2px solid var(--brand-accent);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-quote:hover {
  background: var(--brand-secondary);
  color: white;
}

.phone-box {
  padding: 0.5rem;
  background: var(--brand-bg-light);
  border: 1px solid rgba(65, 90, 119, 0.15);
}

/* Hero */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

#hero > .container-custom {
  width: 100%;
  max-width: 80rem;
  margin-left: 0;
  margin-right: auto;
}

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

.hero-bg-inner {
  position: relative;
  height: 100%;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (min-width: 992px) {
  .hero-bg-inner {
    display: flex;
    justify-content: flex-end;
  }
  .hero-image-wrap {
    width: 50%;
  }
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.hero-slide-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide-media.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide-video-youtube {
  position: relative;
  overflow: hidden;
}

.hero-slide-video-youtube iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-slides-content {
  position: relative;
  min-height: 18rem;
  width: 100%;
  text-align: left;
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  width: 100%;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide-content.is-active {
  position: relative;
  width: 100%;
  text-align: left;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slider-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .hero-slider-controls {
    right: calc(50% + 1.5rem);
  }
}

.hero-slider-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(65, 90, 119, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

.hero-slider-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 0.5rem;
}

.hero-slider-dot {
  width: 2.5rem;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(13, 27, 42, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-dot.is-active {
  background: var(--brand-accent);
  transform: scaleY(1.5);
}

.hero-overlay-primary {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(13, 27, 42, 0.05);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-gradient-r {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, white, rgba(255,255,255,0.95), rgba(255,255,255,0.3));
}

@media (min-width: 992px) {
  .hero-gradient-r {
    background: linear-gradient(to right, white, rgba(255,255,255,0.95), transparent);
  }
}

.hero-gradient-t {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, white, rgba(255,255,255,0.7), transparent);
}

@media (min-width: 992px) {
  .hero-gradient-t { display: none; }
}

.hero-fade-left {
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 8rem;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to right, white, transparent);
  display: none;
}

@media (min-width: 992px) {
  .hero-fade-left { display: block; }
}

.hero-contour {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.4;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-contour { width: 50%; }
}

.hero-contour svg {
  width: 100%;
  height: 100%;
  transform: scale(1.25) translate(3rem, 3rem);
}

.hero-accent-bar {
  width: 3rem;
  height: 4px;
  background: var(--brand-accent);
}

.hero-title {
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--brand-primary);
  text-align: left;
}

.hero-features {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--brand-secondary);
  border-left: 2px solid var(--brand-accent);
  padding-left: 1rem;
}

.btn-hero-primary {
  padding: 1rem 2rem;
  background: var(--brand-accent);
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  background: var(--brand-primary);
  color: white;
}

.btn-hero-secondary {
  padding: 1rem 2rem;
  background: var(--brand-primary);
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--brand-primary);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: var(--brand-secondary);
  color: white;
}

/* Trust cards */
.trust-card {
  padding: 2rem;
  background: white;
  border: 1px solid rgba(65, 90, 119, 0.15);
  position: relative;
  overflow: hidden;
}

.trust-card:hover {
  border-color: var(--brand-accent);
}

.trust-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(65, 90, 119, 0.2);
  transition: background 0.3s;
}

.trust-card:hover .trust-card-top-bar {
  background: var(--brand-accent);
}

.trust-card-number {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  font-family: ui-monospace, monospace;
  font-size: 6rem;
  font-weight: 900;
  color: var(--brand-secondary);
  transform: translate(1rem, 1rem);
  pointer-events: none;
  user-select: none;
}

.trust-icon-box {
  padding: 0.75rem;
  background: var(--brand-bg-light);
  border: 1px solid rgba(65, 90, 119, 0.1);
  color: var(--brand-accent);
}

.trust-value {
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-primary);
}

/* Service cards */
.service-card {
  background: white;
  padding: 0;
  border: 1px solid rgba(65, 90, 119, 0.15);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--brand-accent);
}

.service-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-primary);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-modal-thumb {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid var(--brand-accent);
}

.service-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-title {
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  line-height: 1.375;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.service-card:hover .service-card-title {
  color: var(--brand-accent);
}

.service-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(65, 90, 119, 0.05);
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-primary);
}

.service-card:hover .service-card-footer {
  color: var(--brand-accent);
}

/* CTA box */
.cta-box {
  background: var(--brand-primary);
  color: white;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(65, 90, 119, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-box-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  font-family: ui-monospace, monospace;
  font-size: 9rem;
  font-weight: 800;
  transform: translate(4rem, 4rem);
  pointer-events: none;
}

.btn-cta {
  padding: 0.75rem 1.5rem;
  background: var(--brand-accent);
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid rgba(13, 27, 42, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: white;
  color: var(--brand-primary);
}

/* Process */
.process-step-btn {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(65, 90, 119, 0.1);
  background: var(--brand-bg-light);
  text-align: left;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-step-btn:hover {
  background: white;
  border-color: var(--brand-accent);
}

.process-step-btn.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-accent);
}

.process-step-index {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(65, 90, 119, 0.2);
  background: white;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.process-step-btn.active .process-step-index {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-color: var(--brand-accent);
}

.process-detail-card {
  background: var(--brand-primary);
  color: white;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(65, 90, 119, 0.3);
  position: relative;
  overflow: hidden;
}

.process-detail-icon {
  padding: 1rem;
  background: var(--brand-accent);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-sub-box {
  background: rgba(65, 90, 119, 0.2);
  padding: 1.5rem;
  border: 1px solid rgba(65, 90, 119, 0.4);
}

.process-sub-item-num {
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(212, 163, 115, 0.2);
  border: 1px solid rgba(212, 163, 115, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  color: var(--brand-accent);
  flex-shrink: 0;
}

/* Blog cards */
.blog-card {
  background: white;
  border: 1px solid rgba(65, 90, 119, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  border-color: var(--brand-accent);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--brand-primary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(13, 27, 42, 0.95);
  color: var(--brand-accent);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(212, 163, 115, 0.2);
}

/* Why choose us */
.why-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(212, 163, 115, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(212, 163, 115, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Reference cards */
.ref-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid rgba(65, 90, 119, 0.15);
  min-height: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  border-color: var(--brand-accent);
}

.ref-type-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brand-bg-light);
  padding: 0.125rem 0.5rem;
  border: 1px solid rgba(65, 90, 119, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

/* Contact form */
.form-control-custom,
.form-select-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--brand-bg-light);
  border: 1px solid rgba(65, 90, 119, 0.15);
  font-size: 0.875rem;
  color: var(--brand-primary);
  transition: all 0.3s;
}

.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: white;
}

.form-label-custom {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-panel {
  background: #111F30;
  color: white;
  padding: 2rem;
  border: 1px solid rgba(65, 90, 119, 0.35);
  border-top: 2px solid var(--brand-accent);
  position: relative;
  overflow: hidden;
}

.contact-icon-box {
  padding: 0.5rem;
  background: rgba(212, 163, 115, 0.2);
  border: 1px solid rgba(212, 163, 115, 0.3);
  color: var(--brand-accent);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--brand-primary);
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: var(--brand-accent);
  color: white;
}

.btn-whatsapp {
  padding: 0.75rem 1.25rem;
  background: #059669;
  color: white;
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background: #10b981;
  color: white;
}

/* Footer */
.site-footer {
  background: #f5f7f8;
  color: #5f6b76;
  border-top: 1px solid rgba(62, 127, 188, 0.16);
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}


.footer-iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(62, 127, 188, 0.18);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
}

.footer-col-title {
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: #5f6b76;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--brand-accent);
}

.btn-scroll-top {
  padding: 0.75rem;
  background: rgba(65, 90, 119, 0.3);
  color: #d1d5db;
  border: 1px solid rgba(65, 90, 119, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-scroll-top:hover {
  background: var(--brand-accent);
  color: white;
}

/* Modals custom */
.modal-content-custom {
  border-radius: 0;
  border: 1px solid var(--brand-accent);
  overflow: hidden;
}

.modal-header-custom {
  background: var(--brand-primary);
  color: white;
  border-bottom: 1px solid rgba(65, 90, 119, 0.15);
  padding: 1.5rem;
}

.modal-body-custom {
  padding: 1.5rem 2rem;
}

/* Animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 50s linear infinite;
}

@keyframes pulse-custom {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-custom {
  animation: pulse-custom 6s infinite;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section spacing */
.section-py {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Success state */
.success-icon-box {
  padding: 1rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.ticket-card {
  background: var(--brand-bg-light);
  padding: 1rem;
  border: 1px solid rgba(65, 90, 119, 0.15);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

/* Bootstrap overrides */
.btn:focus, .btn:active:focus {
  box-shadow: none;
}

.container-custom {
  max-width: 80rem;
}

/* ===== Responsive improvements ===== */
@media (max-width: 991.98px) {
  .section-py {
    padding: 4rem 0;
  }

  .section-title.display-5 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }

  .section-badge {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.75rem;
  }

  .trust-card {
    padding: 1.5rem;
  }

  .cta-box {
    padding: 1.25rem;
  }

  .cta-box-watermark {
    font-size: 5rem;
  }

  .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .modal-body-custom {
    padding: 1rem 1.25rem;
  }

  .modal-header-custom {
    padding: 1rem 1.25rem;
  }

  .site-footer {
    padding-top: 3rem;
  }
}

@media (max-width: 575.98px) {
  .section-py {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-features .col-6 {
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .trust-value {
    font-size: 2rem;
  }

  .ref-card {
    min-height: 100px;
    padding: 1rem;
  }

  .footer-logo {
    height: 48px;
  }

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

@media (hover: hover) {
  .hover-scale:hover {
    transform: translateY(-4px);
  }
}

@media (hover: none) {
  .hover-scale:hover {
    transform: none;
  }
}

.site-header .nav-link-custom.is-active,
.mobile-menu-nav .nav-link-mobile.is-active {
  color: var(--brand-accent);
}

.content-panel {
  background: #ffffff;
  border: 1px solid rgba(65, 90, 119, 0.15);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.content-panel-compact {
  padding: 1.5rem;
}

.page-shell {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.page-kicker {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.page-title {
  font-family: var(--font-manrope);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--brand-primary);
  text-transform: uppercase;
  line-height: 1.05;
}

.page-lead {
  color: var(--brand-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 52rem;
}

.page-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-primary);
  border: 1px solid rgba(65, 90, 119, 0.15);
}

.page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rich-text {
  color: var(--brand-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  color: var(--brand-primary);
  font-family: var(--font-manrope);
  font-weight: 800;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

.rich-text p,
.rich-text ul,
.rich-text ol {
  margin-bottom: 1rem;
}

.rich-text img {
  max-width: 100%;
  height: auto;
}

.page-meta-list {
  display: grid;
  gap: 1rem;
}

.page-meta-item {
  padding: 1rem 1.25rem;
  background: var(--brand-bg-light);
  border: 1px solid rgba(65, 90, 119, 0.12);
}

.page-meta-label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: 0.375rem;
}

.list-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(65, 90, 119, 0.15);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--brand-accent);
}

.project-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-primary);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  background: rgba(212, 163, 115, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.18);
  padding: 0.3rem 0.6rem;
}

.reference-logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.reference-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
}

.why-item-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(65, 90, 119, 0.1);
  padding: 1.25rem;
}

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

.team-card {
  background: #ffffff;
  border: 1px solid rgba(65, 90, 119, 0.15);
  overflow: hidden;
}

.team-card-image {
  aspect-ratio: 4 / 4.4;
  background: var(--brand-bg-light);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-body {
  padding: 1.25rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cert-card,
.contact-card {
  background: #ffffff;
  border: 1px solid rgba(65, 90, 119, 0.15);
  padding: 1.5rem;
  height: 100%;
}

.cert-preview {
  aspect-ratio: 4 / 3;
  background: var(--brand-bg-light);
  border: 1px solid rgba(65, 90, 119, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
}

.empty-state {
  border: 1px dashed rgba(65, 90, 119, 0.22);
  background: rgba(248, 249, 251, 0.8);
  padding: 2rem;
  color: var(--brand-secondary);
}

.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

@media (max-width: 1199.98px) {
  .list-page-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .page-hero-grid,
  .list-page-grid,
  .cert-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
