:root {
  --blue: #243a8f;
  --deep-blue: #173763;
  --navy: #102c51;
  --red: #c61527;
  --pale-blue: #edf4fb;
  --ink: #18314f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  min-height: 100vh;
  padding: 26px;
}

.site-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(36, 58, 143, 0.035) 48% 49%, transparent 49% 100%),
    #fff;
  background-size: 170px 170px;
  box-shadow: 0 22px 70px rgba(16, 44, 81, 0.2);
}

.site-header {
  min-height: 146px;
  padding: 22px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  background:
    linear-gradient(120deg, #fff 0 56%, rgba(228, 239, 250, 0.95) 100%);
}

.brand {
  display: block;
  flex: 0 0 auto;
}

.brand-image {
  width: 236px;
  height: 118px;
  display: block;
  overflow: hidden;
  position: relative;
}

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

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-width: 112px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(180deg, #285180, #112f58);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px 7px 2px 2px;
  box-shadow: 0 5px 12px rgba(16, 44, 81, 0.15);
  transition: transform 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  transform: translateY(-2px);
  background: var(--red);
  outline: none;
}

.hero {
  position: relative;
  min-height: 325px;
  padding: 40px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 54px;
  color: #fff;
  background:
    linear-gradient(45deg, transparent 0 49.6%, rgba(112, 163, 211, 0.18) 49.6% 50.2%, transparent 50.2% 100%),
    linear-gradient(-45deg, transparent 0 49.6%, rgba(112, 163, 211, 0.14) 49.6% 50.2%, transparent 50.2% 100%),
    linear-gradient(100deg, #173763 0%, #173763 66%, #1a416f 100%);
  background-size: 220px 220px, 260px 260px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 7px;
  background: linear-gradient(135deg, #fff 4px, transparent 0) 0 0 / 8px 8px repeat-x;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 28px 32px 30px;
  color: var(--deep-blue);
  background: #fff;
  border: 2px solid #c9d8e7;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 6px 18px rgba(4, 24, 48, 0.25);
}

.eyebrow,
.section-heading p,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-card h1 span {
  display: block;
  color: var(--blue);
}

.hero-question {
  margin: 15px 0 0;
  color: var(--red);
  font-weight: 750;
  line-height: 1.4;
}

.hero-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
}

.hero-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 800;
}

.hero-links a:hover span,
.hero-links a:focus-visible span {
  color: #ffb9c0;
}

.hero-links b {
  color: #fff;
  font-size: 1.25rem;
}

.rating-strip {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--deep-blue);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.rating-strip .red-star {
  color: var(--red);
}

.services {
  padding: 24px 46px 50px;
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-width: 0;
  text-align: center;
}

.service-visual {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  border: 5px solid #fff;
  outline: 2px solid #9eb4cd;
  background-image:
    linear-gradient(rgba(20, 52, 99, 0.7), rgba(24, 55, 105, 0.82)),
    url("vivision-affiche.jpeg");
  background-repeat: no-repeat;
  box-shadow: 0 7px 20px rgba(16, 44, 81, 0.15);
}

.service-visual.branding {
  background-size: auto, 250%;
  background-position: center, 6% 5%;
}

.service-visual.web-design {
  background-size: auto, 235%;
  background-position: center, 92% 38%;
}

.service-visual.community {
  background-size: auto, 230%;
  background-position: center, 68% 18%;
}

.service-visual.video {
  background-size: auto, 230%;
  background-position: center, 91% 76%;
}

.service-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(198, 21, 39, 0.76);
  backdrop-filter: blur(3px);
}

.service-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.service-card > a {
  position: relative;
  width: 76%;
  min-height: 31px;
  margin: 12px auto 0;
  padding: 7px 16px;
  display: block;
  color: #fff;
  background: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  transition: background 160ms ease, transform 160ms ease;
}

.service-card > a:hover,
.service-card > a:focus-visible {
  background: var(--blue);
  transform: translateY(-2px);
  outline: none;
}

.content-grid {
  padding: 18px 46px 48px;
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
  gap: 28px;
}

.welcome-card {
  padding: 30px 34px;
  background: linear-gradient(140deg, #eef5fb 0%, #fff 70%);
  border-left: 5px solid var(--blue);
  box-shadow: 0 8px 25px rgba(16, 44, 81, 0.08);
}

.welcome-card h2,
.contact-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.welcome-card p:not(.panel-kicker) {
  margin: 0 0 14px;
  color: #3b5069;
  font-size: 0.97rem;
  line-height: 1.72;
}

.welcome-card .lead-copy {
  color: var(--deep-blue);
  font-size: 1.08rem;
}

.welcome-card strong {
  color: var(--red);
}

.mini-features {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mini-features span {
  padding: 7px 11px;
  color: var(--blue);
  background: #e0eafa;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(45deg, transparent 0 49.5%, rgba(255, 255, 255, 0.07) 49.5% 50.5%, transparent 50.5% 100%) 0 0 / 100px 100px,
    var(--deep-blue);
}

.contact-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 11px;
  background: linear-gradient(135deg, transparent 7px, #fff 0) 0 0 / 14px 14px repeat-x;
}

.contact-card .panel-kicker {
  color: #ff8d9a;
}

.contact-list {
  display: grid;
  gap: 15px;
  font-style: normal;
}

.contact-list a {
  min-width: 0;
  padding-bottom: 13px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 750;
}

.contact-list a > span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

.contact-list a > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list small {
  margin-bottom: 2px;
  display: block;
  color: #b9cce0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.whatsapp-button {
  margin-top: 24px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 850;
  transition: background 160ms ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #9f0e1d;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-footer {
  min-height: 74px;
  padding: 22px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #6a7b8d;
  border-top: 1px solid #dfe7ef;
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  color: var(--red);
  font-weight: 750;
}

@media (max-width: 900px) {
  .page-wrap {
    padding: 16px;
  }

  .site-header {
    padding: 20px 28px;
  }

  .brand-image {
    width: 200px;
    height: 100px;
  }

  .top-nav a {
    min-width: auto;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 36px 38px;
    grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.75fr);
    gap: 34px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 0;
  }

  .site-shell {
    box-shadow: none;
  }

  .site-header {
    min-height: auto;
    padding: 14px 18px 18px;
    flex-direction: column;
    gap: 10px;
  }

  .brand-image {
    width: 190px;
    height: 95px;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .top-nav a {
    min-width: 0;
    padding: 9px 5px;
    font-size: 0.69rem;
  }

  .hero {
    min-height: auto;
    padding: 29px 19px 34px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-card {
    padding: 24px 22px;
    border-radius: 13px;
  }

  .hero-card h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-links {
    gap: 11px;
  }

  .hero-links a {
    padding-bottom: 9px;
    font-size: 0.9rem;
  }

  .services {
    padding: 22px 19px 38px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .service-visual {
    min-height: 178px;
  }

  .service-card > a {
    width: 68%;
  }

  .content-grid {
    padding: 10px 19px 34px;
    gap: 20px;
  }

  .welcome-card,
  .contact-card {
    padding: 25px 22px;
  }

  .site-footer {
    padding: 20px 19px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
