/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@200;300;400;500;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --first-color: #1660f3;
  --black-color: #1a1d23;
  --white-color: #ffffff;
  --body-color: #fbfcfe;
  --text-main: #1d1d1f;
  --text-muted: #86868b;

  --logo-color: #C1001F;
  --logo-hover-color: #E00024;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Outfit', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;

  /* Font veličine */
  --h1-font-size: clamp(2.5rem, 8vw, 4.5rem);
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1.1rem;
  --small-font-size: 0.95rem;

  /* Font težine */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*========== Responsive typography ==========*/
@media (width >=1150px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font: var(--fw-regular) var(--normal-font-size) var(--body-font);
  background-color: var(--body-color);
  color: var(--text-main);
}

.container {
  max-width: 1150px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 2rem;
  background-color: var(--logo-color);
  color: var(--white-color);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  width: fit-content;
  border: none;
}

.btn:hover {
  color: var(--white-color);
  background-color: var(--logo-hover-color);
}

/*=============== HEADER & NAV ===============*/
.section {
  padding-top: 3rem;
  scroll-margin-top: 6rem;
}

.section h2,
.section__title {
  text-align: center;
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  margin-bottom: 2rem;
}

.header {
  background-color: #0b1121;
  /* Match footer background */
  border-radius: 4rem;
  padding: 1rem;
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  margin-inline: auto;
  box-shadow: 0 2px 16px hsla(220, 90%, 8%, 0.3);
  overflow: hidden;
  transition: width 0.4s, top 0.4s, padding 0.4s;
  z-index: 1000;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: max-content;
  padding: 0;
}

.nav__logo-description {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--small-font-size);
  color: var(--white-color);
  white-space: nowrap;
}

.nav__logo img {
  max-width: 40px;
  width: 100%;
  display: inline-block;
}

.nav__logo,
.nav__link {
  color: var(--white-color);
  white-space: nowrap;
  transition: color 0.4s, opacity 0.4s;
}

.nav__logo:hover,
.nav__link:hover {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.5rem;
  color: var(--white-color);
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media (width <=1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 1rem;
    right: 1rem;
    background-color: #0b1121;
    /* Match footer background */
    padding-block: 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px hsla(220, 90%, 8%, 0.3);
    z-index: 100;
    transition: top 0.4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__button {
  margin-inline: auto;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--white-color);
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

/* Show-menu */
.show-menu {
  top: 1rem;
}

.about__text .btn {
  margin-top: 1rem;
}

/*=============== HERO ===============*/
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 400px;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  background-image: url('../img/hero/Hero-vertical.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Subtle dark overlay at bottom for smooth transition to next section */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 17, 33, 0.15) 0%,
      rgba(11, 17, 33, 0.05) 50%,
      rgba(11, 17, 33, 0.35) 100%);
  pointer-events: none;
}

/* Subtle Ken Burns animation */
.hero::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: inherit;
  background-size: cover;
  background-position: center top;
  animation: heroPan 12s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.75rem;
  transition: background-color 0.3s, transform 0.3s;
  animation: heroScroll 2s ease-in-out infinite;
}

.hero__scroll:hover {
  background-color: var(--logo-color);
  border-color: var(--logo-color);
  transform: translateX(-50%) translateY(-4px);
  animation: none;
}

@keyframes heroScroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* =============== About section =============== */
.about__container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  width: 100%;
}

.about__img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 8px 32px hsla(220, 10%, 10%, 0.1);
}

.about__experience {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: var(--logo-color);
  color: var(--white-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px hsla(350, 100%, 20%, 0.3);
  transition: transform 0.4s, background-color 0.4s;
  cursor: pointer;
  z-index: 10;
}

.about__experience:hover {
  transform: scale(1.05);
  background-color: var(--logo-hover-color);
}

.about__experience-years {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.about__experience-text {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__subtitle {
  font-family: var(--font-heading);
  font-size: var(--h2-font-size);
  color: var(--logo-color);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about__subtitle span {
  color: var(--text-main);
  font-size: 1.5rem;
  display: block;
  margin-top: 0.5rem;
}

.about__description {
  font-size: var(--normal-font-size);
  font-weight: var(--fw-light);
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.about__description p {
  margin-bottom: 1rem;
}

.about__btn {
  background-color: var(--logo-color);
}

.about__btn:hover {
  background-color: var(--logo-hover-color);
}

/* =============== News section =============== */
.news__container {
  display: grid;
  grid-template-columns: 100%;
  gap: 2rem;
  margin-top: 3rem;
}

.news__item {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px hsla(220, 10%, 10%, 0.05);
  transition: transform 0.4s;
}

.news__item:hover {
  transform: translateY(-0.5rem);
}

.news__extra {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.news__subtitle,
.news__subtitle a {
  font-size: var(--small-font-size);
  color: var(--logo-color);
  font-weight: var(--fw-bold);
}

.news__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: var(--fw-light);
}

.news__item-title {
  font-family: var(--font-heading);
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news__item-title a {
  color: var(--text-main);
  transition: color 0.4s;
}

.news__item-title a:hover {
  color: var(--first-color);
}

.news__description {
  font-size: var(--small-font-size);
  font-weight: var(--fw-light);
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.news__btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* =============== Features section =============== */
.features__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.features__item {
  background-color: var(--white-color);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px hsla(220, 10%, 10%, 0.05);
  transition: transform 0.4s;
}

.features__item:hover {
  transform: translateY(-0.5rem);
}

.features__image-wrapper {
  height: 200px;
  overflow: hidden;
}

.features__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.features__item:hover .features__img {
  transform: scale(1.1);
}

.features__data {
  padding: 1.5rem;
}

.features__description {
  font-size: var(--small-font-size);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--text-main);
  text-align: center;
}

/* =============== Services section =============== */
.services__container {
  display: grid;
  grid-template-columns: 100%;
  gap: 1.5rem;
  background-color: var(--white-color);
  padding: 3rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 8px 32px hsla(220, 10%, 10%, 0.05);
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.services__item:hover {
  transform: translateX(0.5rem);
}

.services__icon {
  font-size: 1.5rem;
  color: var(--logo-color);
}

.services__name {
  font-size: var(--normal-font-size);
  font-weight: var(--fw-medium);
  color: var(--text-main);
}

.services__footer {
  text-align: center;
  margin-top: 3rem;
}

.services__btn {
  background-color: var(--logo-color);
}

.services__btn:hover {
  background-color: var(--logo-hover-color);
}

/* =============== BREAKPOINTS =============== */
/* For small devices <> */
@media (max-width: 539px) {
  .about__experience {
    bottom: -0.25rem;
    left: -0.25rem;
  }
}

/* For medium devices <> */
@media (width >=540px) {

  .header,
  .nav__menu {
    width: 500px;
    margin-inline: auto;
  }

  .hero {
    height: 90vh;
    background-image: url('../img/hero/Hero-horizontal.jpg');
    background-position: center center;
  }

  .hero::before {
    background-image: url('../img/hero/Hero-horizontal.jpg');
    background-position: center center;
  }

}

/* For large devices <> */
@media (width >=1150px) {
  .header {
    width: 1150px;
    padding: 1.625rem 1.5rem;
    top: 2rem;
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .nav__logo {
    position: relative;
    z-index: 110;
    width: max-content;
    pointer-events: auto;
    /* Prevent logo from covering links */
  }

  .nav__menu {
    width: initial;
    margin: 0;
    z-index: 100;
    pointer-events: none;
    /* Ensure links are above other elements */
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 3rem;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
  }

  .nav__link,
  .nav__button {
    pointer-events: auto;
  }

  /* Scroll nav */
  .scroll-nav {
    width: 500px;
  }

  .scroll-nav .nav__link {
    opacity: 0;
    pointer-events: none;
  }

  .scroll-nav .nav__button {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__logo,
  .nav__logo-description,
  .nav__logo-description span {
    pointer-events: auto !important;
  }

  .about__container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .about__image-wrapper,
  .about__content {
    flex: 1;
  }

  .about__experience {
    bottom: -2rem;
    left: -2rem;
    padding: 1.5rem 2rem;
  }

  .news__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem;
    gap: 4rem;
  }
}

/*=============== TEAM ===============*/
.team__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.team__filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid #e0e0e0;
  background-color: transparent;
  color: var(--text-muted);
  font-family: var(--body-font);
  font-weight: 500;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.team__filter-btn:hover,
.team__filter-btn.active {
  background-color: var(--logo-color);
  border-color: var(--logo-color);
  color: var(--white-color);
}

.team__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team__card {
  background-color: var(--white-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.team__link-wrapper {
  color: inherit;
  text-decoration: none;
  display: block;
}

.team__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team__img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background-color: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team__card:hover .team__img {
  transform: scale(1.05);
}

.team__img-box.placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team__icon {
  font-size: 4rem;
  color: rgba(193, 0, 31, 0.2);
}

.team__data {
  padding: 1.25rem 1rem;
  text-align: center;
}

.team__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}



.team__title {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Breakpoints for Team */
@media (width >=768px) {
  .team__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width >=1150px) {
  .team__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .team__data {
    padding: 1.5rem;
  }
}

/*=============== TESTIMONIALS ===============*/
.testimonial__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.testimonial__content {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.testimonial__item {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.testimonial__item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.testimonial__quote {
  font-size: 3rem;
  color: var(--logo-color);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.testimonial__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--logo-color);
}

.testimonial__name {
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial__status {
  font-size: var(--small-font-size);
  color: var(--text-muted);
}

.testimonial__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.testimonial__img-box {
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  filter: grayscale(1);
  opacity: 0.6;
}

.testimonial__img-box.active {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.testimonial__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scattered Grid Effects (Desktop Only) */
@media (width >=1150px) {
  .testimonial__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .testimonial__img-box:nth-child(1) {
    margin-top: 0;
  }

  .testimonial__img-box:nth-child(2) {
    margin-top: 4rem;
  }

  .testimonial__img-box:nth-child(3) {
    margin-top: -2rem;
  }

  .testimonial__img-box:nth-child(4) {
    margin-top: 2rem;
  }
}

@media (width < 540px) {
  .testimonial__text {
    font-size: 1.25rem;
  }

  .testimonial__images {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial__avatar {
    width: 45px;
    height: 45px;
  }
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 2rem;
}

.contact__description {
  margin-bottom: 2rem;
  color: var(--text-main);
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact__card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--logo-color);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact__card-icon img {
  width: 32px;
  height: 32px;
  filter: invert(19%) sepia(91%) rotate(341deg) brightness(89%) contrast(92%);
  /* This approximates the red theme color if the SVG is black */
}

.contact__card-title {
  font-size: var(--normal-font-size);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact__card-data {
  font-size: var(--small-font-size);
  display: block;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact__button {
  color: var(--logo-color);
  font-size: var(--small-font-size);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  transition: column-gap 0.3s;
}

.contact__button:hover {
  column-gap: 0.5rem;
}

.contact__map {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.contact__map iframe {
  display: block;
}

.contact__address {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.contact__address i {
  font-size: 1.25rem;
  color: var(--logo-color);
}

/* For small devices */
@media screen and (max-width: 340px) {
  .contact__info {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .contact__info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .contact__container {
    grid-template-columns: 1fr;
    row-gap: 4rem;
    padding-block: 4rem;
    text-align: center;
  }

  .contact__info {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .contact__description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
  }

  .contact__address {
    justify-content: center;
  }

  .contact__map {
    margin-bottom: 2rem;
  }
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 5rem 4rem;
  /* Increased bottom padding */
  background-color: #0b1121;
  /* Modern dark navy */
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--logo-color), transparent);
}

.footer__container {
  row-gap: 4rem;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  color: #fff;
  margin-bottom: 2rem;
}

.footer__logo img {
  width: 60px;
  filter: brightness(0) invert(1);
}

.footer__logo-description span {
  font-size: var(--small-font-size);
  font-weight: 700;
  line-height: 1.3;
}

.footer__title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--logo-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.25rem;
}

.footer__link {
  color: #94a3b8;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.75rem;
  font-size: var(--small-font-size);
}

.footer__link i {
  color: var(--logo-color);
  font-size: 1.3rem;
}

.footer__link:hover {
  color: #fff;
  transform: scale(1.05);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  display: inline-flex;
  padding: 0.6rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  font-size: 1.6rem;
  color: #fff;
  transition: all 0.4s;
}

.footer__social-link:hover {
  background-color: var(--logo-color);
  border-color: var(--logo-color);
  transform: translateY(-8px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(193, 0, 31, 0.3);
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer__legal-link {
  font-size: var(--smaller-font-size);
  color: #64748b;
  transition: color 0.3s;
}

.footer__legal-link:hover {
  color: var(--logo-color);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: #64748b;
}

/* For small devices */
@media screen and (max-width: 340px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    text-align: left;
  }

  .footer__logo {
    justify-content: flex-start;
  }

  .footer__title::after {
    left: 0;
    transform: none;
  }

  .footer__links {
    align-items: flex-start;
  }

  .footer__link {
    justify-content: flex-start;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__legal {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .footer__container {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr !important;
    column-gap: 6rem;
  }

  .footer {
    padding-block: 7rem 4rem;
  }

  .footer__link:hover {
    transform: translateX(10px);
  }
}

/*=============== DOCTOR PAGE ===============*/
.doctor.section {
  padding-top: 10rem;
  /* Increased to ensure clearance of floating header */
}

.doctor__header {
  margin-bottom: 3rem;
  text-align: center;
}

.doctor__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--logo-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: .5rem;
  font-weight: var(--fw-bold);
}

.doctor__badge {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  background-color: var(--black-color);
  color: #fff;
  padding: .25rem 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: max-content;
  font-weight: var(--fw-medium);
}

.doctor__container {
  row-gap: 3rem;
  padding-bottom: 4rem;
}

.doctor__image-wrapper {
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.doctor__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform .4s;
}

.doctor__image-wrapper:hover .doctor__img {
  transform: scale(1.05);
}

.doctor__description p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-main);
  text-align: justify;
  font-weight: var(--fw-light);
}

.section__subtitle {
  margin-bottom: 2rem;
  color: var(--logo-color);
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}

/* Career Section */
.career__container {
  row-gap: 3rem;
  margin-bottom: 4rem;
}

.career__image-wrapper {
  border-radius: 1rem;
  overflow: hidden;
}

.career__img {
  width: 100%;
}

.career.section {
  padding-bottom: 5rem;
}

.career__details {
  row-gap: 4rem;
}

.career__list {
  display: grid;
  row-gap: 1.5rem;
}

.career__list li {
  display: flex;
  column-gap: 1rem;
  align-items: flex-start;
}

.career__list i {
  color: var(--logo-color);
  font-size: 1.25rem;
  margin-top: .25rem;
}

.career__list span {
  color: var(--text-main);
  line-height: 1.6;
  font-weight: var(--fw-light);
}

/* Medium devices */
@media screen and (min-width: 768px) {
  .doctor__header {
    text-align: left;
    margin-bottom: 4rem;
  }

  .doctor__name {
    flex-direction: row;
    align-items: center;
    column-gap: 1.5rem;
  }

  .doctor__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .doctor__container-reverse {
    direction: rtl;
  }

  .doctor__container-reverse .doctor__data {
    direction: ltr;
  }

  .career__container {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    column-gap: 4rem;
  }

  .career__details {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }
}

/* Large devices */
@media screen and (min-width: 1150px) {
  .doctor__container {
    column-gap: 6rem;
  }

  .career__container {
    column-gap: 6rem;
  }

  .career__details {
    column-gap: 6rem;
  }
}

/*=============== PRIVACY ===============*/
.privacy {
  padding-bottom: 4rem;
}

.privacy__content {
  display: grid;
  gap: 2rem;
  margin-block: 3rem;
}

.privacy__group {
  display: grid;
  gap: 0.75rem;
}

.privacy__subtitle {
  font: var(--fw-bold) var(--h3-font-size) var(--font-heading);
  color: var(--logo-color);
}

.privacy__description {
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy__description a {
  color: var(--logo-color);
  font-weight: var(--fw-medium);
}

.privacy__footer {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/*=============== ERROR ===============*/
.error {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error__content {
  max-width: 600px;
  margin-inline: auto;
}

.error__number {
  font-size: 8rem;
  font-family: var(--font-heading);
  color: var(--logo-color);
  line-height: 1;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .error__number {
    font-size: 5rem;
  }
}

.error__description {
  color: var(--text-muted);
  margin-block: 1.5rem 2.5rem;
  font-size: 1.1rem;
}

.error__footer {
  display: flex;
  justify-content: center;
}

/*=============== COOKIE BANNER ===============*/
.cookie__banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  box-shadow: 0 -4px 24px hsla(220, 90%, 8%, 0.15);
  z-index: 2000;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding-block: 1.5rem;
}

.cookie__banner.show {
  bottom: 0;
}

.cookie__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.cookie__description {
  font-size: var(--small-font-size);
  color: var(--text-main);
  line-height: 1.5;
  max-width: 800px;
}

.cookie__description a {
  color: var(--logo-color);
  font-weight: var(--fw-bold);
  text-decoration: underline;
}

.cookie__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn--outline {
  background-color: transparent;
  color: var(--logo-color);
  border: 2px solid var(--logo-color);
}

.btn--outline:hover {
  background-color: var(--logo-color);
  color: var(--white-color);
}

.cookie__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--small-font-size);
}

.cookie__toggle i {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.cookie__accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.cookie__accordion.open {
  max-height: 500px;
}

.cookie__details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

.cookie__details-group h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.cookie__details-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media screen and (min-width: 768px) {
  .cookie__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cookie__actions {
    justify-content: flex-end;
  }
}

/*=============== SERVICES PAGE ===============*/
.services-page.section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(193, 0, 31, 0.02) 100%);
}

.services-page__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card {
  position: relative;
  background: var(--white-color);
  padding: 3rem 2.5rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(193, 0, 31, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--logo-color), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 20px 50px rgba(193, 0, 31, 0.1);
  border-color: rgba(193, 0, 31, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(193, 0, 31, 0.1), rgba(193, 0, 31, 0.02));
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s;
}

.service-card:hover .service-card__icon-box {
  transform: rotate(10deg) scale(1.1);
}

.service-card__icon-box i {
  font-size: 2.5rem;
  color: var(--logo-color);
  background: linear-gradient(135deg, var(--logo-color), #8b0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card__title {
  font-size: 1.4rem;
  color: var(--text-main);
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card__description {
  font-size: var(--small-font-size);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .services-page__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1150px) {
  .services-page__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}








/* Responsive adjustments */
@media (width >=768px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >=1150px) {
  .services-page__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .privacy__content {
    padding: 5rem;
  }
}

/*=============== FLOATING CALL BUTTONS ===============*/
.btn-floating {
  position: fixed;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 100px;
  overflow: hidden;
  color: var(--white-color);
  font-family: var(--body-font);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  z-index: 9999;
}

.btn-floating i {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-inline: 0;
  transition: margin 0.3s ease;
}

.btn-floating span {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    margin 0.3s ease;
}

.btn-floating:hover {
  width: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--white-color);
  padding-inline: 1.1rem;
}

.btn-floating:hover i {
  margin-right: 0.5rem;
}

.btn-floating:hover span {
  max-width: 8rem;
  opacity: 1;
}

/* Phone — fiksni */
.btn-floating--phone {
  bottom: 5.5rem;
  background-color: var(--logo-color);
}

.btn-floating--phone:hover {
  background-color: var(--logo-hover-color);
}

/* Mobile */
.btn-floating--mobile {
  bottom: 1.5rem;
  background-color: #1a6e2e;
}

.btn-floating--mobile:hover {
  background-color: #22923c;
}

@media (prefers-reduced-motion: reduce) {

  .btn-floating,
  .btn-floating span {
    transition: none;
  }
}