/* =========================================================
   SILVERSIDE HOMENEW - CLEAN CSS FROM SCRATCH
========================================================= */

:root {
  --navy: #002043;
  --red: #eb5b56;
  --blue: #2e94c2;
  --green: #21a68c;
  --yellow: #ffc000;
  --page-bg: #f8f9f1;
  --white: #fffafa;
  --text: #000;
  --max-width: 1312px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 96px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Aptos, Arial, sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   FONTS
========================================================= */

@font-face {
  font-family: "PolySans";
  src: url("fonts/PolySans-Neutral.otf") format("opentype");
}

@font-face {
  font-family: "Aptos";
  src: url("fonts/Aptos.ttf") format("truetype");
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  top: 16px;
  left: 64px;
  right: 64px;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.header-content {
  width: 100%;
  min-height: 76px;
  padding: 16px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.logo-image {
  width: 250px;
  height: auto;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button {
  position: relative;
  height: 34px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.text-button p {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.text-button:hover,
.text-button.dropdown:hover {
  background: var(--navy);
  border-radius: 8px 8px 0 0;
}

.text-button:hover p {
  color: #fff;
}

/* Dropdown */

.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 1001;

  display: none;
  flex-direction: column;
  gap: 4px;

  min-width: 300px;
  padding: 12px;

  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 0 12px 12px 12px;

  box-shadow: 0 16px 32px rgba(0, 32, 67, 0.16);
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;

  color: var(--navy);
  text-decoration: none;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;

  border-radius: 8px;
}

.dropdown-item:hover {
  background: rgba(0,32,67,.08);
  color: var(--navy);
}

.dropdown-item span{
    flex:1;
}

.menu-icon,
.dropdown-item .menu-icon,
.dropdown-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.menu-icon{
    width:20px;
    height:20px;
    flex:0 0 20px;
    object-fit:contain;
}

/* Software dropdown with logo column */

.dropdown-menu.software-menu .dropdown-item,
.text-button.software-dropdown .dropdown-item {
  grid-template-columns: 220px 1fr;
}

.dropdown-menu.software-menu .menu-icon,
.text-button.software-dropdown .menu-icon {
  width: 28px;
  height: 22px;
}

.software-menu {
  min-width: 420px;
}

.software-menu .dropdown-item {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  gap: 18px;
}

.software-menu .dropdown-item span {
  order: 1;
}

.software-menu .dropdown-item .menu-icon {
  order: 2;
  justify-self: end;
  width: 120px;
  height: 34px;
  object-fit: contain;
}

/* Phone */

.phonenumber {
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.phone-link:hover {
  text-decoration: none;
}

.phone-icon {
  width: 18px;
  height: 18px;
}

.whitetext {
  color: #fff;
  font-size: 14px;
}

/* Language selector */

.languageselect {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.language-flag {
  width: 24px;
  height: 24px;
}

/* Mobile menu */

.mobile-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 3px;
  background: var(--navy);
  border-radius: 999px;
  transition: 0.25s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 12px; }
.mobile-menu-toggle span:nth-child(2) { top: 21px; }
.mobile-menu-toggle span:nth-child(3) { top: 30px; }

.mobile-menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* =========================================================
   PARTNER LOGOS
========================================================= */

.logo-header {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.partner-logos {
  display: flex;
  align-items: center;
  z-index: 1;
  justify-content: center;
  gap: 54px;
}

.partner-logo img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.logo-header .partner-logo.active::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #eb5b56;
}

.partner-logo.active img {
  opacity: 1;
}

/* Microsoft */

.logo-header img.microsoft {height: 48px;opacity: 1;filter: none;}

/* HCL */

.logo-header img.hclsoftware {height: 14px;opacity: 0.50;}

/* Zoho */

.logo-header img.zoho {height: 28px;opacity: 0.65;}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  height: 620px;
  margin-top: -200px;
  overflow: visible;
}

.pacecorners {
  position: absolute;
  top: 80px;
  left: 49.8%;
  width: 980px;
  max-width: 78vw;
  height: 633px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.pacecorners svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  top: 250px;
  left: 50%;
  z-index: 2;
  width: min(900px, 90vw);
  transform: translateX(-50%);
  text-align: center;
}

.hero-title {
  margin: 0;
  margin-top: 4px;
  color: var(--navy);
  font-family: PolySans, Arial, sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
}

.hero-intro {
  margin: 24px 0 0;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

/* =========================================================
   TOP CARDS
   Designer update: cards now have a full border, including bottom.
========================================================= */

.cards-row {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 32px;
}

.cards-row > .card {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: 316px;
  height: 175px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--white);
  border-radius: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.cards-row > .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px;
  pointer-events: none;
  transition: border 180ms ease;
}

.card--blue::before {
  border: 3px solid var(--blue);
}

.card--red::before {
  border: 3px solid var(--red);
}

.card--yellow::before {
  border: 3px solid var(--yellow);
}

.card--green::before {
  border: 3px solid var(--green);
}

.card--blue:hover::before {
  border: 5px solid var(--blue);
}

.card--red:hover::before {
  border: 5px solid var(--red);
}

.card--yellow:hover::before {
  border: 5px solid var(--yellow);
}

.card--green:hover::before {
  border: 5px solid var(--green);
}

.cards-row > .card:hover {
  transform: translateY(-12px);
}

.card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.card-header {
  width: 100%;
  display: flex;
  align-items: center;
}

.card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  max-width: 60px;
  max-height: 73px;
  transition: transform 180ms ease;
  transform-origin: center;
}

.cards-row > .card:hover .card-icon svg {
  transform: scale(1.1);
}

.card-title {
  margin: 0;
  color: var(--navy);
  text-align: left;
  font-family: PolySans, Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
}

.card-subtitle {
  width: 100%;
  align-self: center;
  margin: 0;
  color: #000;
  text-align: center;
  font-family: Aptos, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.card-arrow {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  margin-top: 16px;
  align-self: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-arrow img {
  width: 32px;
  height: 32px;
  display: none;
  object-fit: cover;
}

.card-arrow--rotate-135 { transform: rotate(135deg); }
.card-arrow--rotate-45 { transform: rotate(45deg); }
.card-arrow--rotate-neg45 { transform: rotate(-45deg); }
.card-arrow--rotate-neg135 { transform: rotate(-135deg); }

/* =========================================================
   ROUTE SECTION
   Desired layout:
   Row 1: title/text left | photo right
   Row 2: carousel left   | title/text right
========================================================= */

.route {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding: 88px 32px 96px;
}

.route-white {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding: 88px 32px 96px;
  background: var(--white);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16);
}

.route-content {
  width: min(var(--max-width), calc(100vw - 64px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.route-row {
  width: 100%;
  display: grid;
  /* grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); */
  grid-template-columns: 5fr 3fr;
  gap: 25px;
  align-items: start;
}

.route-left,
.route-right {
  min-width: 0;
  width: 100%;
}

.route-heading {
  margin-top: 14px;
  margin-bottom: 0px;  
  color: var(--navy);
  font-family: PolySans, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.12;
}

.route-body {
  max-width: 900px;
}

.route-body p,
.route-right p {
  margin: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.55;
}

.route-body br {
  display: block;
  content: "";
  margin: 22px 0;
}

.route-photo {
  width: 100%;
  margin-top: 88px;
}

.route-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 25px;
  border: 3px solid var(--yellow);
}

/* =========================================================
   REFERENCE CAROUSEL
========================================================= */

.reference-carousel {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: visible;
}

.reference-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 340px;
  min-height: 410px;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 32, 67, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Middenkaart */
.reference-card.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-12px) scale(1.03);
}

/* Linkerkaart */
.reference-card.is-prev {
  z-index: 3;
  opacity: 0.55;
  transform: translateX(-120%) translateY(12px) scale(0.9);
}

/* Rechterkaart */
.reference-card.is-next {
  z-index: 3;
  opacity: 0.55;
  transform: translateX(20%) translateY(12px) scale(0.9);
}

/* Vierde kaart: verborgen */
.reference-card.is-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px) scale(0.8);
}

.reference-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.reference-text {
  padding: 24px;
}

.reference-text h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: PolySans, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.18;
}

.reference-text p {
  margin: 0;
  color: #243b63;
  font-size: 15px;
  line-height: 1.55;
}

.reference-carousel-nav {
  position: absolute;
  left: 50%;
  bottom: -24px;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.reference-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* =========================================================
   EYEBROW
========================================================= */

.eyebrow-green,
.eyebrow-yellow,
.eyebrow-blue,
.eyebrow-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: Aptos, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 12px;
}

.eyebrow-green {
    background: #21A68C;
    color: #ffffff;
}

.eyebrow-yellow {
    background: #FECC30;
    color: #ffffff;
}

.eyebrow-blue {
    background: #2E94C2;
    color: #ffffff;
}

.eyebrow-red {
    background: #EB5B56;
    color: #ffffff;
}

/* =========================================================
   UNUSED SECTION2 PLACEHOLDER
========================================================= */

#section2 {
  display: none;
}

/* =========================================================
   MOBILE / RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .header {
    left: 24px;
    right: 24px;
  }

  .header-content {
    padding: 14px 28px;
  }

  .logo-image {
    width: 210px;
  }

  .nav-container {
    gap: 4px;
  }

  .text-button p {
    font-size: 14px;
  }

  .cards-row {
    flex-wrap: wrap;
    margin-top: -130px;
  }

  .cards-row > .card {
    width: calc(50% - 16px);
    max-width: 360px;
  }

  .route-row {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  body {
    padding-top: 80px;
  }

  .header {
    top: 10px;
    left: 16px;
    right: 16px;
  }

  .header-content {
    min-height: 68px;
    padding: 12px 18px;
    border-radius: 16px;
  }

  .logo-image {
    width: 180px;
  }

  .nav-container,
  .header > .languageselect {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    width: min(360px, 88vw);
    height: 100vh;
    padding: 96px 28px 32px;
    background: #fff;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    padding: 12px 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 32, 67, 0.1);
  }

  .mobile-nav .phonenumber {
    margin-top: 18px;
    justify-content: center;
  }

  .hero {
    height: 560px;
    margin-top: -60px;
  }

  .pacecorners {
    top: 80px;
    width: 760px;
    max-width: 110vw;
  }

  .hero-content {
    top: 245px;
  }

  .cards-row {
    margin-top: -120px;
  }

  .route {
    padding: 64px 24px 72px;
  }

  .route-content {
    width: min(100%, 720px);
    gap: 56px;
  }

  .route-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .route-row:nth-child(2) .route-left {
    order: 2;
  }

  .route-row:nth-child(2) .route-right {
    order: 1;
  }

  .reference-carousel {
    height: 400px;
    overflow: hidden;
  }

  .reference-card {
    width: 300px;
    min-height: 380px;
  }

  .reference-image {
    height: 170px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 72px;
  }

  .header {
    left: 10px;
    right: 10px;
  }

  .header-content {
    padding: 10px 14px;
  }

  .logo-image {
    width: 150px;
  }

  .hero {
    height: 500px;
    margin-top: -50px;
  }

  .pacecorners {
    top: 70px;
    width: 660px;
    max-width: 130vw;
  }

  .hero-content {
    top: 220px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-intro {
    font-size: 18px;
  }

  .cards-row {
    margin-top: -100px;
    padding: 0 18px;
    flex-direction: column;
    align-items: center;
  }

  .cards-row > .card {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 200px;
  }

  .route {
    padding: 48px 18px 60px;
  }

  .route-heading {
    font-size: 30px;
  }

  .route-body p,
  .route-right p {
    font-size: 16px;
  }

  .reference-carousel {
    height: 370px;
  }

  .reference-card {
    width: 270px;
    min-height: 350px;
  }

  .reference-image {
    height: 150px;
  }

  .reference-text {
    padding: 20px;
  }

  .reference-text h4 {
    font-size: 21px;
  }

  .reference-text p {
    font-size: 14px;
  }
}