@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --accent: #ab191a;
  --neutral-100: #ffffff;
  --neutral-300: #f4f5f7;
  --neutral-400: #eaeaea;
  --neutral-500: #cccccc;
  --neutral-900: #1a1a1a;
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Osnovne postavke / Prozračan bijelo-sivi dizajn */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
  background-color: var(--neutral-100);
  color: var(--neutral-900);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  margin-bottom: 1em;
}

h1 {
  font-weight: 300;
  font-size: 4rem;
  max-width: 75ch;
  margin: 0 auto 20px auto;
  line-height: 1.2;
}

h2 {
  font-weight: 300;
  font-size: 3rem;
  margin-block-start: 0;
  line-height: 1.25;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 0.5em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 600;
}

ul {
  padding-left: 20px;
}
ul li {
  /* margin-bottom: 10px; */
}

.author {
  font-weight: 600;
}

/* for ul's */
.custom_list {
  list-style: none;
  padding: 0;
}

.custom_list li {
  display: flex;
  gap: 1rem;
  padding-block: 4px;
}

.custom_list li::before {
  content: '';
  position: relative;
  top: 4px;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(./check-circle.svg);
  background-size: cover;
  background-position: 50% 50%;
  flex-shrink: 0;
}

.custom_list[data-type='checkmark'] li::before {
  background-image: url(./check-circle.svg);
}

.custom_list[data-type='check'] li::before {
  background-image: url(./check.svg);
}

.custom_list[data-type='close'] li::before {
  background-image: url(./close.svg);
}

.subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}

.bg-accent .subtitle {
  color: var(--neutral-100);
}

.limit-width {
  max-width: 75ch;
}

.mx-auto {
  margin-inline: auto;
}

.color-accent {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: end;
}

.align-self-end {
  align-self: end;
}

.card {
  background-color: var(--neutral-100);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--neutral-400);
}

.card .icon {
  font-size: 2rem;
  color: var(--accent);
  margin-inline: auto;
  margin-block-end: 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  padding-block: 1rem;
}

section {
  padding: 80px 0;
}

.section {
  width: min(100% - 32px, 1600px);
  margin-inline: auto;
  border-radius: 1rem;
}

.section__cutout {
  padding-block-end: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sekcije naizmjenično mijenjaju lagane sive i bijele tonove */
.bg-white {
  background-color: var(--neutral-100);
}
.bg-light-gray {
  background-color: var(--neutral-300);
}

.bg-accent {
  margin-block: 3rem;
  background-color: var(--accent);
  color: var(--neutral-100);
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--neutral-100);
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--neutral-900);
  color: var(--neutral-100);
}

.btn__invert {
  background-color: var(--neutral-100);
  color: var(--accent);
}

figure {
  position: relative;
  margin: 0;
}

figcaption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--neutral-100);
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hero sekcija bez fotografije */
.hero {
  text-align: center;
  padding: 120px 20px;
  background-image: url(../images/header/header_01.png);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  background-blend-mode: multiply;
  background-color: var(--accent);
  background-size: cover;
  color: var(--neutral-100);
}

.hero .subtitle {
  color: inherit;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.image_bg {
  display: flex;
  align-items: end;
  justify-content: center;
  background: var(--neutral-400);
}

/* Grid sustavi za sadržaj */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* FAQ sekcija */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--neutral-400);
  padding-bottom: 15px;
}

/* Forma */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--neutral-500);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}
.container-narrow {
  max-width: 75ch;
  margin: 0 auto;
  text-align: center;
}

.footer {
  margin-bottom: 2rem;
  border: 1px solid var(--neutral-400);
  border-radius: 1rem;
  padding: 2rem 1rem;
}

.footer p {
  margin: 0;
}

.footer a {
  text-decoration: none;
  padding: 0.5rem;
}

.socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  font-size: 1.5rem;
  gap: 0.5rem;
}

.socials a {
  color: var(--accent);
}

.credentials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 0.25rem 1.5rem;
}

@media (max-width: 768px) {
  .credentials {
    display: none;
  }
}

.credentials a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--neutral-900);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.icon {
  display: block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

/* ==========================================
Single-colored icons can be modified like so:
.icon-name {
  font-size: 32px;
  color: red;
}
========================================== */

.steps {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 3rem;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  /* flex: 1; */
  /* flex-basis: 10rem; */
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 1rem;
}

.steps li::before {
  display: block;
  text-align: center;
  counter-increment: steps;
  content: counter(steps);
  background-color: var(--accent);
  color: var(--neutral-100);
  border-radius: 50vw;
  font-weight: 700;
  width: 3ch;
  height: 3ch;
  display: grid;
  place-content: center;
  padding: 0.5rem;
}

.radius-sm {
  border-radius: 0.5rem;
  overflow: hidden;
}

.radius-m {
  border-radius: 0.5rem;
  overflow: hidden;
}

.splide + .splide {
  margin-top: 1rem;
}

.splide__slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.splide__slide {
  opacity: 0.6;
}

.splide__slide.is-active {
  opacity: 1;
}

.splide__slide {
  border-radius: 1rem;
  overflow: hidden;
}

.splide--nav .splide__slide {
  border-radius: 0.5rem;
  overflow: hidden;
}

.splide__track--nav > .splide__list > .splide__slide.is-active {
  border: 4px solid var(--accent);
}
