:root {
  --bg: #fffaf7;
  --surface: #ffffff;

  --text: #171717;
  --muted: #6b6b6b;

  --red: #d81f32;
  --red-dark: #a91525;

  --blue: #2346a8;

  --dark: #141923;
  --dark-card: #1d2431;

  --border: #eadfda;

  --radius: 20px;

  --shadow:
    0 18px 50px rgba(0, 0, 0, 0.08);
}


/* GENERAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: var(--bg);

  color: var(--text);

  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}


/* NAVIGATION */

header {
  position: sticky;
  top: 0;
  z-index: 100;

  background:
    rgba(255, 250, 247, 0.95);

  border-bottom:
    1px solid var(--border);

  backdrop-filter: blur(12px);
}

.navbar {
  width:
    min(
      1100px,
      calc(100% - 32px)
    );

  margin: 0 auto;

  min-height: 72px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;
}

.logo {
  display: flex;

  align-items: center;

  gap: 12px;

  font-weight: 800;

  text-decoration: none;
}

.logo img {
  width: 48px;

  height: 48px;

  object-fit: cover;

  border-radius: 8px;
}

.nav-links {
  display: flex;

  gap: 22px;
}

.nav-links a {
  text-decoration: none;

  font-weight: 600;

  transition:
    color 0.2s ease;
}

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

.menu-button {
  display: none;

  border: 0;

  background: transparent;

  font-size: 1.8rem;

  cursor: pointer;
}


/* HERO */

.hero {
  min-height: 80vh;

  display: grid;

  place-items: center;

  padding:
    80px 16px;

  background:

    radial-gradient(
      circle at top right,
      rgba(216, 31, 50, 0.14),
      transparent 35%
    ),

    radial-gradient(
      circle at bottom left,
      rgba(35, 70, 168, 0.10),
      transparent 35%
    );
}

.hero-grid {
  width:
    min(
      1100px,
      100%
    );

  display: grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap: 60px;

  align-items: center;
}

.subtitle,
.section-label {
  margin-bottom: 12px;

  color: var(--red);

  font-size: 0.85rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

h1 {
  max-width: 800px;

  margin-bottom: 24px;

  font-size:
    clamp(
      3rem,
      8vw,
      6rem
    );

  line-height: 0.98;

  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 650px;

  margin-bottom: 28px;

  color: var(--muted);

  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}


/* BUTTONS */

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 48px;

  padding:
    0 22px;

  border-radius: 999px;

  background: var(--red);

  color: white;

  text-decoration: none;

  font-weight: 800;

  transition: 0.2s ease;
}

.button:hover {
  background:
    var(--red-dark);

  transform:
    translateY(-2px);
}

.secondary-button {
  background: transparent;

  color: var(--text);

  border:
    1px solid var(--border);
}

.secondary-button:hover {
  background: white;

  color: var(--red);
}


/* HERO LOGO */

.hero-image {
  width: 100%;
}

.image-placeholder {
  min-height: 430px;

  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(216, 31, 50, 0.95),
      rgba(35, 70, 168, 0.95)
    );

  color: white;

  display: grid;

  place-items: center;

  align-content: center;

  text-align: center;

  box-shadow: var(--shadow);

  padding: 40px;
}

.hero-logo {
  width:
    min(
      220px,
      65%
    );

  height: auto;

  object-fit: contain;

  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-placeholder p {
  margin-top: 20px;

  margin-bottom: 6px;

  font-size: 1.2rem;

  font-weight: 800;
}

.hero-logo-text {
  color:
    rgba(
      255,
      255,
      255,
      0.8
    );

  font-size: 0.9rem;
}


/* SECTIONS */

.section {
  width:
    min(
      1100px,
      calc(100% - 32px)
    );

  margin:
    0 auto;

  padding:
    90px 0;
}

.section h2 {
  margin-bottom: 18px;

  font-size:
    clamp(
      2rem,
      5vw,
      3.6rem
    );

  letter-spacing:
    -0.04em;

  line-height: 1.05;
}

.section > p {
  max-width: 720px;

  color: var(--muted);
}


/* DARK SECTIONS */

.alternate {
  width: 100%;

  max-width: none;

  padding-left:
    max(
      16px,
      calc((100% - 1100px) / 2)
    );

  padding-right:
    max(
      16px,
      calc((100% - 1100px) / 2)
    );

  background: var(--dark);

  color: white;
}

.alternate .section-label {
  color: #ff7887;
}

.alternate > p {
  color: #c4c8cf;
}


/* JOIN CARDS */

.cards {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  margin-top: 36px;
}

.card {
  padding: 26px;

  border:
    1px solid #2b3242;

  border-radius: var(--radius);

  background: var(--dark-card);
}

.card-icon {
  font-size: 2rem;
}

.card h3 {
  margin-top: 18px;

  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;

  color: #c4c8cf;
}


/* GALLERY */

.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;

  margin-top: 40px;
}

.gallery-item {
  min-height: 220px;

  padding: 24px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      #f6e5df,
      #f9f2ef
    );

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  transition: 0.2s ease;
}

.gallery-item:nth-child(even) {
  background:
    linear-gradient(
      145deg,
      #e5eaf9,
      #f3f4fb
    );
}

.gallery-item:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.gallery-item span {
  font-size: 3rem;
}

.gallery-item p {
  margin-bottom: 0;

  font-weight: 700;
}


/* CONTACT */

.contact-person {
  display: flex;

  align-items: center;

  gap: 14px;

  margin:
    30px 0;
}

.avatar {
  width: 54px;

  height: 54px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: var(--red);

  color: white;

  font-weight: 800;
}

.contact-person p {
  margin: 0;

  color: #c4c8cf;
}


/* FOOTER */

footer {
  padding:
    40px 16px;

  text-align: center;

  border-top:
    1px solid var(--border);

  color: var(--muted);
}

footer p {
  margin: 4px 0;
}


/* MOBILE */

@media (max-width: 760px) {

  .navbar {
    position: relative;

    min-height: 70px;

    flex-direction: row;

    align-items: center;
  }

  .logo img {
    width: 42px;

    height: 42px;
  }

  .logo span {
    font-size: 0.9rem;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;

    position: absolute;

    top: 70px;

    left: 0;

    right: 0;

    flex-direction: column;

    gap: 0;

    padding: 12px;

    background: white;

    border:
      1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: auto;

    padding-top: 64px;

    padding-bottom: 64px;
  }

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

    gap: 40px;
  }

  .image-placeholder {
    min-height: 320px;
  }

  .hero-logo {
    width: 180px;
  }

  .section {
    padding-top: 70px;

    padding-bottom: 70px;
  }

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

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

/* -------------------------
   Homepage team slider
-------------------------- */

.team-slider {
  position: relative;

  width: 100%;

  height: 430px;

  overflow: hidden;

  border-radius: 28px;

  background: #e9e9e9;

  box-shadow: var(--shadow);
}

.slide {
  position: absolute;

  inset: 0;

  opacity: 0;

  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;

  height: 100%;

  /*
    "cover" fills the whole slider.
    Parts of very wide/tall photos may be cropped.
  */
  object-fit: contain;

  object-position: center;
}


/* Previous / next buttons */

.slider-button {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 5;

  width: 44px;

  height: 44px;

  border: none;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.5);

  color: white;

  font-size: 2rem;

  cursor: pointer;

  display: grid;

  place-items: center;

  transition: 0.2s ease;
}

.slider-button:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slider-previous {
  left: 16px;
}

.slider-next {
  right: 16px;
}


/* Slider dots */

.slider-dots {
  position: absolute;

  z-index: 5;

  bottom: 18px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 8px;
}

.slider-dot {
  width: 10px;

  height: 10px;

  padding: 0;

  border: 2px solid white;

  border-radius: 50%;

  background: transparent;

  cursor: pointer;
}

.slider-dot.active {
  background: white;
}


/* Mobile */

@media (max-width: 760px) {

  .team-slider {
    height: 320px;
  }

  .slider-button {
    width: 38px;

    height: 38px;

    font-size: 1.6rem;
  }

}