/* Üstündağ Mühendislik — Premium Frontend */

:root {
  --color-primary: #0B1F3A;
  --color-secondary: #1E6FFF;
  --color-accent: #FFFFFF;
  --color-bg: #F5F7FA;
  --color-text: #1A1A1A;
  --color-muted: #5A6577;
  --color-border: rgba(11, 31, 58, 0.08);
  --color-surface: #FFFFFF;
  --color-navy-deep: #061428;
  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 18px 40px rgba(11, 31, 58, 0.14);
  --header-h: 80px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767.98px) {
  body.has-mobile-bar {
    padding-bottom: 72px;
  }
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

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

.container-ust {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--surface {
  background: #fff;
}

.mid-banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background: var(--color-bg);
  line-height: 0;
}

.mid-banner__img {
  width: 1140px;
  height: 180px;
  max-width: 100%;
  object-fit: unset;
  object-position: center;
  display: block;
}

@media (max-width: 1140px) {
  .mid-banner__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1140 / 180;
  }
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .section-lead {
  margin-bottom: 0;
}

.text-balance {
  text-wrap: balance;
}

/* Buttons */
.btn-ust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn-ust-primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 111, 255, 0.28);
}

.btn-ust-primary:hover {
  background: #1558d6;
  color: #fff;
}

.btn-ust-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ust-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-ust-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ust-ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-ust-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-ust-light:hover {
  background: #f0f4fa;
  color: var(--color-primary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

body.nav-open {
  overflow: hidden;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--color-primary);
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  opacity: 0.88;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  opacity: 1;
  color: var(--color-secondary);
  background: rgba(30, 111, 255, 0.06);
}

.nav-desktop a.nav-cta {
  margin-left: 0.35rem;
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.nav-desktop a.nav-cta:hover {
  background: var(--color-secondary);
  color: #fff;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 1rem 0 1.25rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(11, 31, 58, 0.04);
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

.nav-mobile a.nav-cta {
  margin: 0.75rem 1.25rem 0;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  border: 0;
}

@media (min-width: 992px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 20, 40, 0.94) 0%, rgba(11, 31, 58, 0.88) 48%, rgba(14, 48, 96, 0.82) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(30, 111, 255, 0.28), transparent 55%),
    var(--color-primary);
}

.hero--image {
  background-size: cover;
  background-position: center;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
  pointer-events: none;
}

.hero__grid--subtle {
  opacity: 0.35;
}

.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(30, 111, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.hero__glow--subtle {
  opacity: 0.25;
}

.hero--slider .hero-slide {
  background-size: cover;
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0;
  max-width: 44rem;
}

.hero__brand {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 2rem;
}

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

/* Hero slider */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.06);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.1s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1);
}

.hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 1;
  transform: scale(1.04);
}

.hero-slide.is-from-next {
  transform: scale(1.08) translateX(3%);
}

.hero-slide.is-from-prev {
  transform: scale(1.08) translateX(-3%);
}

.hero-slide.is-active.is-from-next,
.hero-slide.is-active.is-from-prev {
  transform: scale(1) translateX(0);
}

.hero-slide .hero__content {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.hero-slide.is-active .hero__content {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide .hero__content {
    transition: opacity 0.35s ease;
    transform: none !important;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .hero-nav {
    bottom: 1.25rem;
  }

  .hero-nav-btn {
    width: 38px;
    height: 38px;
  }
}

/* Hero: gorsel slider modu — goruntu her cihazda tam gorunur */
.hero--images {
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--color-primary);
}

.hero--images .hero-slides {
  position: relative;
  inset: auto;
  display: grid;
  align-items: start;
}

.hero--images .hero-slide {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transform: none;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.1s;
}

.hero--images .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: none;
}

.hero--images .hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 1;
  transform: none;
}

.hero--images .hero-slide.is-from-next {
  transform: translateX(3%);
}

.hero--images .hero-slide.is-from-prev {
  transform: translateX(-3%);
}

.hero--images .hero-slide.is-active.is-from-next,
.hero--images .hero-slide.is-active.is-from-prev {
  transform: translateX(0);
}

.hero-slide-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1900 / 800;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Ileride slayta yazi/buton eklenirse: masaustunde goruntunun uzerinde */
.hero-slide-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-slide-caption .hero__content {
  pointer-events: auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  text-shadow: 0 1px 12px rgba(6, 20, 40, 0.55);
}

/* Mobil: yazi varsa gorselin altinda, koyu zemin uzerinde */
@media (max-width: 767px) {
  .hero-slide-caption {
    position: static;
    display: block;
    background:
      linear-gradient(135deg, rgba(6, 20, 40, 0.97) 0%, rgba(11, 31, 58, 0.94) 100%);
  }

  .hero-slide-caption .hero__content {
    padding: 1.5rem 0 2rem;
  }

  .hero-slide-caption .hero__brand {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }

  .hero--images .hero-nav {
    bottom: 0.75rem;
    gap: 0.6rem;
  }
}

/* Page header */
.page-header {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(135deg, rgba(6, 20, 40, 0.96), rgba(11, 31, 58, 0.9)),
    var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
  pointer-events: none;
}

.page-header__inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb-ust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.breadcrumb-ust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-ust a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-ust a:hover {
  color: #fff;
}

.breadcrumb-ust .sep {
  opacity: 0.45;
}

.breadcrumb-ust--dark li,
.breadcrumb-ust--dark a {
  color: var(--color-muted);
}

.breadcrumb-ust--dark a:hover {
  color: var(--color-secondary);
}

/* Cards */
.card-ust {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.card-ust__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0B1F3A, #163a66);
  overflow: hidden;
  display: block;
}

.card-ust__media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 2rem;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.card-ust:hover .card-ust__media img {
  transform: scale(1.04);
}

.card-ust__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-ust__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 111, 255, 0.1);
  color: var(--color-secondary);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-ust__meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.card-ust__title {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.card-ust__title a {
  color: inherit;
}

.card-ust__title a:hover {
  color: var(--color-secondary);
}

.card-ust__text {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.card-ust__link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-ust__link:hover {
  gap: 0.55rem;
}

.card-ust--service .card-ust__body {
  text-align: center;
  align-items: center;
}

.card-ust--service .card-ust__icon {
  margin-left: auto;
  margin-right: auto;
  animation: iconFloat 2.8s ease-in-out infinite;
}

.card-ust--service .card-ust__icon i {
  display: inline-block;
  transform-origin: center;
  animation: iconPulse 2.8s ease-in-out infinite;
}

.card-ust--service:hover .card-ust__icon {
  animation: none;
  transform: scale(1.12) rotate(-8deg);
  background: rgba(30, 111, 255, 0.18);
  box-shadow: 0 8px 20px rgba(30, 111, 255, 0.18);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card-ust--service:hover .card-ust__icon i {
  animation: none;
  transform: scale(1.08);
}

.card-ust--service .card-ust__link {
  align-self: flex-end;
  margin-top: auto;
}

.card-ust--project .card-ust__link {
  align-self: flex-end;
  margin-top: auto;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .card-ust--service .card-ust__icon,
  .card-ust--service .card-ust__icon i {
    animation: none;
  }
}

/* Filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-bar a:hover,
.filter-bar a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* About teaser / stats */
.about-teaser {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-teaser {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

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

.stat-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.stat-item span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.about-visual {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(11, 31, 58, 0.92), rgba(30, 111, 255, 0.55)),
    var(--color-primary);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.about-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #061428 0%, #0B1F3A 55%, #12305a 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.55rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 34rem;
}

/* Content prose */
.prose {
  color: var(--color-muted);
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.feature-list i {
  color: var(--color-secondary);
  margin-top: 0.15rem;
}

/* Project meta */
.meta-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 576px) {
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}

.meta-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.meta-item strong {
  color: var(--color-primary);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin: 1.5rem 0;
}

.gallery-grid a,
.gallery-grid img {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Project viewer */
.project-viewer__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--color-primary);
}

.project-viewer__main img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.project-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 31, 58, 0.55);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.project-viewer__nav:hover {
  background: var(--color-secondary);
}

.project-viewer__nav--prev {
  left: 1rem;
}

.project-viewer__nav--next {
  right: 1rem;
}

.project-viewer__counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(11, 31, 58, 0.6);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  z-index: 2;
}

.project-viewer__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.project-viewer__thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-viewer__thumb img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}

.project-viewer__thumb:hover {
  opacity: 1;
}

.project-viewer__thumb.is-active {
  border-color: var(--color-secondary);
  opacity: 1;
}

/* Project meta card (sidebar) */
.project-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project-meta-list li:first-child {
  padding-top: 0.25rem;
}

.project-meta-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-meta-list li > i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 111, 255, 0.1);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.project-meta-list span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.project-meta-list strong {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
}

.contact-grid > .reveal {
  display: flex;
  flex-direction: column;
}

.contact-info-card,
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  flex: 1;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.contact-info-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-list i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 111, 255, 0.1);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.92rem;
}

.contact-info-list span,
.contact-info-list a {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 1.5rem;
  min-height: 280px;
}

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

.map-embed--full {
  margin-top: 2.5rem;
  box-shadow: var(--shadow);
}

.map-embed--full iframe {
  height: 400px;
}

@media (max-width: 768px) {
  .map-embed--full iframe {
    height: 300px;
  }
}

.form-label-ust {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.form-control-ust {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-control-ust:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.15);
}

.form-control-ust.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback-ust {
  color: #dc3545;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-check-ust {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.alert-ust {
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert-ust-success {
  background: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.2);
  color: #146c43;
}

.alert-ust-danger {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.2);
  color: #b02a37;
}

/* Blog extras */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0;
}

.share-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.share-bar a:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.tag-list span {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.05);
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links--icon li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links--icon li a > i {
  color: var(--color-secondary);
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-links--icon li a:hover > i {
  transform: translateX(2px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-contact li > i {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact li a:hover {
  color: #fff;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.social-links a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a:hover {
  color: #fff;
}

.footer-author {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-author:hover {
  color: #fff;
  text-decoration: underline;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
}

.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.06);
}

@media (max-width: 767.98px) {
  body.has-mobile-bar .whatsapp-fab {
    bottom: 5.5rem;
  }
}

@media (max-width: 767.98px) {
  .whatsapp-fab.hide-mobile { display: none; }
}

@media (min-width: 768px) {
  .whatsapp-fab.hide-desktop { display: none; }
}

/* Mobile bottom bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1025;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(11, 31, 58, 0.08);
}

.mobile-bar a {
  min-height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.mobile-bar__quote {
  background: var(--color-primary);
  color: #fff;
}

.mobile-bar__quote:hover {
  color: #fff;
  background: #123055;
}

.mobile-bar__wa {
  background: #25D366;
  color: #fff;
}

.mobile-bar__wa:hover {
  color: #fff;
}

@media (max-width: 767.98px) {
  .mobile-bar.is-enabled {
    display: grid;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  max-width: 440px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 1.2rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

@media (max-width: 767.98px) {
  body.has-mobile-bar .cookie-banner {
    bottom: 5.25rem;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.error-page h1 {
  margin-bottom: 0.75rem;
}

.error-page p {
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

/* Pagination override */
.pagination {
  gap: 0.35rem;
}

.page-link {
  border-radius: 8px !important;
  border-color: var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
}

.page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Utilities */
.surface {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cover-xl {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.cover-xl img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.muted {
  color: var(--color-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Homepage blog slider */
.blog-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-slider__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.blog-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.blog-slider__item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.blog-slider__btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}

.blog-slider__btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}

.blog-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.card-ust--blog-compact {
  height: 280px;
}

.card-ust--blog-compact .card-ust__media {
  aspect-ratio: auto;
  height: 132px;
  flex-shrink: 0;
}

.card-ust--blog-compact .card-ust__body {
  padding: 0.85rem 0.95rem 1rem;
  min-height: 0;
  flex: 1;
}

.card-ust--blog-compact .card-ust__title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.4em * 3);
}

.card-ust--blog-compact .card-ust__link {
  align-self: flex-end;
  margin-top: auto;
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .blog-slider__item {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .blog-slider__item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .blog-slider__btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-fade,
  .reveal-stagger > *,
  .card-ust,
  .btn-ust {
    transition: none !important;
  }
  .reveal,
  .reveal-fade,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
