:root {
  --bg: #ffffff;
  --bg-dark: #1d1d1d;
  --white: #ffffff;
  --card: #f7f9fc;
  /* --brand: #0054A6; */
  --brand: #303030;
  --text: #0e1726;
  --text-dark: #838383;
  --muted: #5b6b82;
  --line: #e6ebf2;
  --line-dark: #505050;
  --red: #ce1219;
  /* --red-light: #ce1219; */
  --blue: #e83334;
  --medium: #bd0f15;
  --red-light: #fbb7b7;
  --red-lighter: #fff2f2;
  /* --radial-gradient-light: radial-gradient(circle at 80% -10%, rgba(198, 221, 250, 0.3)), radial-gradient(circle at -10% 100%, rgba(217, 251, 240, 0.3)); */
  --radial-gradient-light: #fafafa;
  --radial-gradient-dark: #272727;
  --line-width: 1px;
  --brand-img-height-default: 40px;
  --brand-img-height-mobile: 40px;
  --shift-x: -20px;
  --shift-x-delta: 10px;
}

.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Inter,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

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

a:hover {
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-bottom: var(--line-width) solid var(--line);
  z-index: 20;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

header.scrolled,
.case header {
  border-color: var(--line);
}

header.scrolled .nav a {
  padding: 1rem 1.6rem;
  font-size: 14px;
}

.nav a {
  color: var(--brand);
  padding: 1.6rem;
  /* padding: 1rem 1.6rem; */
  border-right: 1px solid #eee;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover {
  /* border-bottom: 1px solid var(--red); */
  background-color: var(--red-lighter);
}

.nav a:first-child {
  border-left: 1px solid #eee;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--brand);
  padding: 1rem 1.6rem;
  transition: transform 0.2s ease;
}

.burger:active {
  transform: scale(0.9);
}

.brand {
  height: var(--brand-img-height-default);
  display: flex;
  position: relative;
  width: 210px;
}

.brand img {
  position: absolute;
  left: 0;
  top: 0;
  height: var(--brand-img-height-default);
  transition: all 0.3s ease;
}

.brand img {
  opacity: 1;
}

.brand img.scrolled {
  opacity: 0;
}

header.scrolled .brand img {
  opacity: 0;
  height: var(--brand-img-height-mobile);
  padding-top: 5px;
  padding-bottom: 5px;
}

header.scrolled .brand img.scrolled {
  opacity: 1;
}

.strong {
  color: var(--red-light);
  font-style: italic;
}

.nav {
  display: flex;
  /* gap: 22px; */
  align-items: center;
}

.nav a.cta {
  background: var(--brand);
  color: #fff;
  border-radius: 0;
  transition: all 0.3s ease;
}

.nav a.cta:hover {
  background-color: var(--red);
}

.nav a::after {
  content: " ";
  display: block;
  height: var(--line-width);
  background-color: transparent;
  bottom: -2px;
  position: absolute;
  z-index: 100000;
  width: 100%;
  left: 0;
}

.nav a:hover::after {
  background-color: var(--red);
}

.btn {
  background: var(--medium);
  border: 1px solid var(--red);
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover,
.btn.alt:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--medium);
}

.btn.alt {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.section {
  padding: 0 20px 0;
  border-bottom: var(--line-width) solid var(--line);
}

.section.dark {
  border-bottom: var(--line-width) solid var(--line-dark);
}

.section-main {
  padding: 4rem 2rem;
  text-align: center;
}

.section-internal {
  padding: 1rem 2rem;
  text-align: left;
}

.container {
  max-width: 1200px;
  margin: auto;
  border-width: 0 var(--line-width) 0 var(--line-width);
  border-style: solid;
  border-color: var(--line);
}

footer .container {
  border-width: 0;
}

footer .grid {
  gap: 2rem;
}

.dark {
  background-color: var(--bg-dark);
}

.dark h2 {
  color: #fff;
}

.dark .lead {
  color: var(--text-dark);
}

.dark a {
  color: var(--line);
}

.dark .container {
  border-color: var(--line-dark);
}

.card p {
  color: var(--text-dark);
  font-size: 16px;
}

.hero {
  height: 80vh;
  border-bottom: var(--line-width) solid var(--line);
  /* background: var(--radial-gradient-light); */
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-image: url(../images/03.jpg); */
}

.hero .content {
  height: 80vh;
  text-align: center;
  /* padding: 110px 20px; */
  /* background: radial-gradient(
    circle,
    rgba(88, 72, 72, 0.5) 0%,
    transparent 60%
  ); */
  /* background-image: url(./images/01.jpeg); */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero h1 {
  font-weight: 400;
  font-size: 60px;
  line-height: 80px;
  margin-bottom: 12px;
  max-width: 900px;
  text-align: center;
  margin: 0 auto 24px;
  color: var(--red-light);
  /* -webkit-text-stroke: 1px #f79c9c; */
}

.text-gradient {
  background: linear-gradient(
    95deg,
    var(--blue) 15%,
    var(--medium) 50%,
    var(--red) 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--white);
  max-width: 1050px;
  margin: 0 auto 24px;
  font-size: 22px;
  line-height: 30px;
}

.hero-video {
  position: absolute;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

h2 {
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 8px;
}

h3 {
  font-weight: 400;
  font-size: 20px;
  margin: 4px 0 6px;
}

.icon-container img {
  display: inline-block;
  width: 100px;
  margin-bottom: 2rem;
}

.dark h3 {
  color: #fff;
}

.lead {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  /* line-height: 24px; */
}

.grid {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  /* background: radial-gradient(circle at 80% -10%, rgba(0, 84, 166, .08), transparent 70%), radial-gradient(circle at -10% 100%, rgba(0, 84, 166, .06), transparent 70%); */
  background-color: var(--radial-gradient-light);
  color: #0e1726;
  border-radius: 0;
  border: var(--line-width) solid var(--line);
  border-bottom: 0;
  border-right: 0;
  flex: 1;
}

/* .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 0;
} */

.card-cover {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  background-blend-mode: multiply;
  height: 210px;
  display: block;
}

.card-content {
  padding: 2rem 2rem;
}

.project-details .card {
  padding: 0.5rem 2rem;
}

.project-details .card h3 {
  font-size: 14px;
}

.project-details .card p {
  font-size: 12px;
}

.grid .card:first-child {
  border-left: 0;
}

.dark .card {
  background-color: var(--radial-gradient-dark) !important;
  border-color: var(--line-dark);
}

.card-cover {
  width: 100%;
}

.card-cover img {
  display: inline-block;
  width: 100%;
}

.card-footer {
  margin: 0;
  text-align: right;
}

.card-footer a {
  margin: -2rem;
}

.form-container {
  padding-bottom: 3rem;
}

footer {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  margin: 0;
}

.footer-links div {
  text-align: center;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 36px;
  }

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

/* FORM */
/* form {
            max-width: 500px;
            margin: 40px auto;
            padding: 30px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        } */

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 14px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line-dark);
  font-size: 14px;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #404040;
  color: #fff;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 4px rgba(206, 18, 25, 0.4);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

p.consent-text {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.submit {
  width: 100%;
}

/* ===== Modal styles ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--bg-dark);
  color: var(--text);
  width: min(560px, 92vw);
  border: 1px solid var(--line-dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-radius: 0;
  max-height: 85vh;
  overflow: auto;
}

.modal .header {
  background: var(--bg-dark);
  color: var(--text-dark);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 1rem 1.25rem;
  z-index: 2;
}

.modal .content {
  padding: 2rem;
}

.modal h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.btn-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 14px;
}

.btn-close:hover {
  background: var(--red-light);
  border-color: var(--medium);
  color: var(--red);
}

.gallery {
  display: flex;
}

.gallery img {
  display: inline-block;
  width: 100%;
}

.description-container {
  max-width: 900px;
}

.description {
  font-size: 14px;
  padding: 2rem 0;
  line-height: 1.6rem;
}

.description-container ul {
  font-size: 14px;
  margin-left: 24px;
}

.description-container ul li {
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.simple-text {
  font-size: 14px;
  padding: 0.8rem 0;
}

strong.paragraph-title {
  font-size: 16px;
  display: block;
  margin-bottom: 0.5rem;
}

.h3 {
  font-size: 14px;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: var(--medium);
}

.details-column {
  padding: 0.5rem 2rem;
}

.details-title {
  padding-top: 1rem;
  font-size: 18px;
  font-style: italic;
}

.details-description {
  font-size: 14px;
  color: var(--muted);
  width: 80%;
  padding-bottom: 1rem;
  line-height: 1.6rem;
}

.details-description ul {
  margin-left: 20px;
}

.icons-container {
  margin-top: 2rem;
}

.icons-container img {
  display: inline-block;
  width: 40px;
  height: 40px;
}

/* Stack cards and make them 100% width below 992px */
@media (min-width: 992px) {
  .project-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .details-column {
    padding: 2rem;
  }

  .details-title {
    grid-column: span 1 / span 1;
  }

  .details-description {
    grid-column: span 3 / span 3;
  }
}
@media (max-width: 991px) {
  .hero p {
    max-width: 80%;
  }

  .grid {
    flex-direction: column;
    /* stack */
    gap: 0;
    /* borders will act as separators */
  }

  .grid.icons-container {
    flex-direction: row;
    text-align: center;
  }

  .grid .card {
    flex: 0 0 auto;
    width: 100%;
    /* Reset the shared-border layout used for multi-column */
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: center;
  }

  /* Match dark theme separators */
  .dark .grid .card {
    border-bottom-color: var(--line-dark);
  }

  /* Optional: scale hero title a bit sooner */
  .hero h1 {
    font-size: 36px;
    line-height: 44px;
  }

  nav {
    flex-wrap: wrap;
    position: relative;
    margin-left: 25px;
  }

  .burger {
    display: block;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    display: none;
    background: var(--white);
    /* border-top: 1px solid var(--line); */
  }

  .nav a {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: 1rem;
  }

  .nav.show {
    display: flex;
    position: fixed;
    top: 65px;
  }

  h2 {
    font-size: 26px;
  }
}

/* --- Slider --- */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-track .card {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
}

/* Navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--red);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn-container {
  position: relative;
  height: 60px;
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slider-btn:disabled:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Mobile: 1 card per slide */
@media (max-width: 768px) {
  .slider-track .card {
    flex: 0 0 100%;
  }
}

.checkboc-container {
  position: relative;
  width: 20px;
}

.checkboc-container input {
  position: absolute;
  left: 0;
  top: 3px;
}

label a {
  color: var(--red-lighter);
}

.cookie-audit-table {
  font-family: inherit;
  border-collapse: collapse;
  width: 100%;

  border-spacing: 0;
  border-width: 1px 0 0 1px;
  margin: 0 0 1.5em;
}

.cookie-audit-table th {
  text-align: left;
  padding: 10px;
  font-size: 12px;
  color: #000000;
  word-break: normal;
  background-color: #d9dfe7;
  border: 1px solid #cbced6;
}

.cookie-audit-table td {
  text-align: left;
  padding: 10px;
  font-size: 12px;
  color: #000000;
  word-break: normal;
  border: 1px solid #d5d8df;
}

.cookie-audit-table tr:nth-child(2n + 1) td {
  background: #f1f5fa;
}

.bounce-move {
  animation: bounceShift 1.2s ease-out forwards;
}

@keyframes bounceShift {
  0% {
    transform: translateX(var(--shift-x));
  }
  25% {
    transform: translateX(calc(var(--shift-x) - var(--shift-x-delta)));
  }
  50% {
    transform: translateX(var(--shift-x));
  }
  75% {
    transform: translateX(calc(var(--shift-x) - var(--shift-x-delta)));
  }
  100% {
    transform: translateX(var(--shift-x));
  }
}
