:root {
  --blue: #0b49bd;
  --blue-2: #07419f;
  --navy: #001d3f;
  --navy-2: #042b57;
  --text: #071735;
  --muted: #4b5870;
  --line: #d6dce7;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 964px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 8px rgba(6, 18, 42, .14);
}

.header-inner {
  min-height: 66px;
  padding: 0;
}

.brand img {
  width: 116px;
  height: 62px;
  object-fit: contain;
  animation: logo-blue-glow 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 0 rgba(11, 73, 189, 0));
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(11, 73, 189, .72));
}

.main-nav {
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 66px;
  padding: 0;
  color: #060a16;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover {
  color: var(--blue);
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 74px;
  height: 4px;
  transform: translateX(-50%);
  background: var(--blue);
}

.main-nav .nav-cta {
  align-self: center;
  min-width: 158px;
  height: 38px;
  padding: 0 22px;
}

.navbar-toggler {
  border-color: rgba(11, 73, 189, .35);
}

.hero {
  min-height: 298px;
  background:
    linear-gradient(90deg, rgba(0, 26, 62, .94) 0%, rgba(0, 38, 83, .78) 38%, rgba(0, 0, 0, .18) 100%),
    url("assets/hero-generated.png") center/cover no-repeat;
}

.hero-content {
  padding: 49px 0 43px 24px;
  color: #fff;
  max-width: 600px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 54px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.btn {
  min-width: 172px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.btn-calabria,
.btn-calabria:focus {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: #49a0ff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue-2);
  --bs-btn-hover-border-color: #6bb2ff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #063889;
  --bs-btn-active-border-color: #49a0ff;
  color: #fff;
  background: var(--blue);
  border: 1px solid #49a0ff;
}

.hero .btn-outline-light {
  --bs-btn-hover-color: var(--navy);
  border: 1px solid rgba(255, 255, 255, .75);
}

.btn i { font-size: 19px; }

.services {
  padding: 13px 0 12px;
  background: #fff;
}

.section-intro {
  padding: 25px 0 0;
}

.section-intro span,
.about span,
.portfolio span,
.contact span,
.process > span,
.service-areas strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.section-intro h2,
.about h2,
.contact h2 {
  margin: 8px 0 0;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 900;
}

.section-intro h2::after {
  content: "";
  display: block;
  width: 39px;
  height: 3px;
  margin-top: 14px;
  background: var(--blue);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px 12px;
}

.service-card {
  min-height: 142px;
  padding: 12px 10px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.service-card:hover {
  border-color: rgba(11, 73, 189, .65);
  box-shadow: 0 10px 26px rgba(11, 73, 189, .24);
  transform: translateY(-4px);
}

.service-icon {
  display: block;
  margin: 0 auto 6px;
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}

.service-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: #11192b;
}

@keyframes logo-blue-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(11, 73, 189, 0));
  }
  45% {
    filter: drop-shadow(0 0 12px rgba(11, 73, 189, .58));
  }
  65% {
    filter: drop-shadow(0 0 20px rgba(11, 73, 189, .34));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand img,
  .service-card {
    animation: none;
    transition: none;
  }

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

.about {
  position: relative;
  padding: 34px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 24%, rgba(12, 82, 191, .28), transparent 32%),
    linear-gradient(135deg, #00152f 0%, var(--navy) 52%, #063469 100%);
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 28px;
  align-items: center;
}

.about h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
}

.about-text p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.75;
}

.about-visual {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,29,63,.04), rgba(0,29,63,.36));
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 292px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 118px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  color: #fff;
  background: rgba(11, 73, 189, .92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}

.experience-badge strong {
  display: block;
  font-size: 35px;
  line-height: .9;
  font-weight: 900;
}

.experience-badge span {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.about-content {
  display: grid;
  gap: 18px;
}

.process {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
  text-align: center;
}

.process-steps div {
  position: relative;
}

.process-steps div:not(:last-child)::after {
  display: none;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
  position: relative;
}

.process-icon i {
  font-size: 18px;
}

.process-steps b {
  display: grid;
  place-items: center;
  position: absolute;
  right: -3px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 11px;
}

.process-steps strong {
  display: block;
  min-height: 31px;
  font-size: 13px;
  line-height: 1.15;
}

.process-steps p {
  margin: 3px 0 0;
  font-size: 9.5px;
  line-height: 1.35;
}

.portfolio {
  padding: 10px 0 14px;
  text-align: center;
}

.portfolio h2 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.05;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.portfolio-grid article {
  position: relative;
  height: 108px;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd;
}

.portfolio-grid article.wide {
  grid-column: span 2;
}

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

.portfolio-grid h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 4px 5px;
  color: #fff;
  background: rgba(5, 63, 148, .93);
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
}

.portfolio-more {
  margin-top: 14px;
}

.portfolio-hero {
  padding: 54px 0 58px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 26, 62, .96), rgba(0, 38, 83, .74), rgba(0, 0, 0, .20)),
    url("assets/hero-generated.png") center/cover no-repeat;
}

.portfolio-hero span,
.portfolio-page-heading span {
  color: #4d9bff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.portfolio-hero h1 {
  max-width: 680px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  font-weight: 900;
}

.portfolio-hero p {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.portfolio-library,
.before-after-section {
  padding: 34px 0;
}

.before-after-section {
  background: #f6f8fc;
}

.portfolio-page-heading {
  margin-bottom: 16px;
}

.portfolio-page-heading.centered {
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: center;
}

.portfolio-page-heading span {
  color: var(--blue);
}

.portfolio-page-heading h2 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.portfolio-page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.portfolio-filters button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #cbd5e4;
  border-radius: 4px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(11, 73, 189, .20);
}

.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.portfolio-page-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 6px;
  background: #d9e1ee;
  box-shadow: 0 8px 20px rgba(7, 23, 53, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.portfolio-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 73, 189, .22);
}

.portfolio-page-card[hidden] {
  display: none;
}

.portfolio-page-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.portfolio-page-card h3 {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  background: rgba(5, 63, 148, .94);
  font-size: 13px;
  font-weight: 900;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.before-after-card {
  overflow: hidden;
  border: 1px solid #d9e1ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 23, 53, .08);
}

.before-after-card h3 {
  margin: 0;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.comparison {
  --position: 50%;
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #d7dfe9;
}

.comparison::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 4;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 73, 189, .45);
  pointer-events: none;
}

.comparison::after {
  content: "\f07e";
  position: absolute;
  top: 50%;
  left: var(--position);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 4px 16px rgba(7, 23, 53, .25);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  pointer-events: none;
}

.comparison img,
.comparison-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison > img {
  position: absolute;
  inset: 0;
}

.comparison-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: var(--position);
  overflow: hidden;
}

.comparison .tag {
  position: absolute;
  top: 10px;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: rgba(0, 29, 63, .82);
  font-size: 11px;
  font-weight: 900;
}

.comparison .before {
  left: 10px;
}

.comparison .after {
  right: 10px;
}

.comparison input {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.contact {
  padding: 10px 0 8px;
}

.contact-box {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact h2 {
  font-size: 22px;
}

.contact-info p {
  position: relative;
  margin: 14px 0 0;
  padding-left: 31px;
  font-size: 13px;
  line-height: 1.35;
}

.contact-icon {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.contact-icon.whatsapp { background: #0fb958; }
.contact-info p:nth-of-type(3) .contact-icon { border-radius: 2px; }

.map {
  width: 100%;
  height: 142px;
  object-fit: cover;
  align-self: center;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cdd4df;
  border-radius: 3px;
  padding: 0 11px;
  font: 12px Arial, sans-serif;
  color: #536076;
  background: #fff;
}

.quote-form input,
.quote-form select { height: 27px; }
.quote-form textarea {
  grid-column: 1 / -1;
  height: 51px;
  padding-top: 10px;
  resize: vertical;
}

.quote-form button {
  grid-column: 1 / -1;
  height: 30px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.promo {
  background: linear-gradient(90deg, #001b39, #07315f);
  color: #fff;
}

.promo-inner {
  height: 53px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 34px;
}

.promo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 35px;
}

.promo-item:first-child {
  border-right: 1px solid rgba(255,255,255,.65);
}

.promo-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
}

.promo-item strong {
  font-size: 32px;
  line-height: .9;
}

.promo-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.promo-icon.discount {
  color: var(--navy);
  background: #fff;
  border: 0;
}

.site-footer {
  background: #fff;
  text-align: center;
}

.footer-inner {
  display: grid;
  grid-template-columns: 200px 185px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 69px;
  text-align: left;
}

.footer-inner img {
  width: 150px;
  max-height: 118px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  padding-right: 24px;
  border-right: 1px solid #79859b;
  font-size: 11px;
  line-height: 1.45;
}

.service-areas {
  text-align: center;
}

.service-areas div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.service-areas span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #0d1d3a;
  font-size: 10px;
  font-weight: 800;
}

.service-areas i {
  color: var(--blue);
  font-size: 17px;
}

.copyright {
  margin: 0 auto;
  padding: 6px 0 7px;
  width: min(964px, calc(100% - 40px));
  border-top: 1px solid #e3e6ed;
  font-size: 11px;
}

@media (max-width: 980px) {
  .header-inner { min-height: 66px; padding: 4px 0; }
  .main-nav { gap: 0; padding: 8px 0 14px; }
  .main-nav .nav-link { height: auto; padding: 10px 4px; }
  .main-nav .nav-link.active::after { display: none; }
  .main-nav .nav-cta { justify-content: center; width: 220px; margin-top: 6px; }
  .section-intro { padding-top: 8px; }
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .about { padding: 28px 0; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-visual { min-height: 260px; }
  .about-visual img { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; padding: 16px 0; }
  .footer-inner img { margin: 0 auto; }
  .footer-inner p { border-right: 0; padding-right: 0; }
}

@media (max-width: 760px) {
  .brand img { width: 96px; height: 58px; }
  .hero-content { padding: 38px 0 36px; }
  .hero p br { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .about h2 { font-size: 26px; }
  .process-steps { grid-template-columns: 1fr; gap: 12px; }
  .process-steps div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    text-align: left;
    align-items: start;
  }
  .process-icon { margin: 0; }
  .process-steps div:not(:last-child)::after { display: none; }
  .process-steps strong { min-height: 0; }
  .process-steps p { grid-column: 2; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid article.wide { grid-column: span 2; }
  .portfolio-page-grid { grid-template-columns: repeat(2, 1fr); }
  .before-after-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { padding: 12px; }
  .quote-form { grid-template-columns: 1fr; }
  .promo-inner { height: auto; grid-template-columns: 1fr; gap: 0; padding: 12px 0; }
  .promo-item:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 10px; }
  .promo-item:last-child { padding-top: 10px; }
  .service-areas div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 38px; }
  .service-cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid article.wide { grid-column: auto; }
  .portfolio-page-grid,
  .before-after-grid { grid-template-columns: 1fr; }
  .portfolio-filters button { flex: 1 1 calc(50% - 8px); }
  .comparison { height: 210px; }
  .about-visual,
  .about-visual img { min-height: 220px; }
}
