/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat Alternates", sans-serif;
  --biggest-font-size: 2rem;
  --big-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--black-color);
  color: var(--white-color);
}

ul { list-style: none; }
a  { text-decoration: none; }

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container,
.swiper-container {
  max-width: 1400px;
  margin-inline: 1.5rem;
}

.main { overflow: hidden; }

/*=============== HEADER & NAV (used by other pages; unchanged) ===============*/
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background-color: hsla(0, 0%, 100%, 0.08);
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.nav__link:hover {
  color: #eaeaea;
  text-decoration: underline;
}

.nav__toggle,
.nav__close {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--white-color);
  display: none;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }
  .nav__menu.active { right: 0; }
  .nav__list { flex-direction: column; gap: 1.5rem; }
  .nav__toggle { display: block; }
  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .nav__logo-img { height: 32px; max-width: 150px; }
}

@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: right 0.4s ease-in-out;
    z-index: var(--z-fixed);
  }
  .nav__list {
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .nav__link { font-size: 1.5rem; color: #fff; font-weight: 600; }
  .nav__close {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }
  .nav__toggle { display: block; }
  .show-menu { right: 0; }
}

@media screen and (min-width: 768px) {
  .nav__menu { width: 50%; }
}

@media screen and (min-width: 1150px) {
  .container { margin-inline: auto; }
  .nav { height: calc(var(--header-height) + 2rem); }
  .nav__toggle,
  .nav__close { display: none; }
  .nav__menu { width: initial; }
  .nav__list { flex-direction: row; column-gap: 4rem; }
}

/*=============== HOME / HERO SLIDER ===============*/

/* Section + slider fill the screen (svh avoids the mobile address-bar jump) */
.home,
.home__swiper,
.home__swiper .swiper-slide {
  height: 100vh;
  height: 100svh;
}

.home__swiper {
  position: relative;
  z-index: var(--z-tooltip);
  overflow: hidden;
}

.home__swiper .swiper-wrapper { height: 100%; }

.home__article {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Image layers */
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

/* Blurred, enlarged copy of the photo that fills the empty areas.
   It is wider than the slide so the parallax movement never shows black edges. */
.home__bg {
  position: absolute;
  top: -5%;
  left: -20%;
  width: 140% !important;
  height: 110% !important;
  max-width: none;
  object-fit: cover;
  filter: blur(30px) brightness(.55);
  z-index: 0;
}

/* The real photo: always fully visible, never cropped */
.home__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* Soft gradient so text and buttons stay readable */
.dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.35)
  );
}

/* Text block (mobile first: sits below the image) */
.home__article .home__data {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5rem;
  margin-inline: auto;
  width: 100%;
  max-width: 90%;
  z-index: 10;
  padding: 0.5rem 1rem;
  color: var(--white-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInText 1.2s ease-in-out both;
}

.home__subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  margin-bottom: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.home__title {
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  margin-bottom: 1.25rem;
  font-weight: var(--font-bold);
  line-height: 1.3;
  padding: 0 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Desktop: the square photo is centered, so the text goes to the left blurred area */
@media screen and (min-width: 1024px) {
  .home__article .home__data {
    top: 0;
    bottom: 0;
    left: 4rem;
    right: auto;
    margin-inline: 0;
    width: auto;
    max-width: clamp(15rem, calc((100vw - 100vh) / 2 - 5rem), 24rem);
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .home__title {
    font-size: clamp(1.6rem, 2.6vw, 2.75rem);
    margin-bottom: 2rem;
    padding: 0;
  }

  .button-group { justify-content: flex-start; padding: 0; }
}

/*=============== SWIPER CONTROLS ===============*/
.swiper-pagination {
  width: initial;
  height: max-content;
  top: 6rem;
  left: initial;
  right: 4rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  display: flex;
  column-gap: 0.25rem;
  align-items: center;
}

.swiper-pagination-total { font-size: var(--big-font-size); }

.swiper-button-prev::after,
.swiper-button-next::after { content: ''; }

.swiper-button-prev,
.swiper-button-next {
  font-size: 1.5rem;
  color: var(--white-color);
  width: initial;
  height: initial;
  position: initial;
  outline: none;
  cursor: pointer;
  transition: color 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover { color: #cda274; }

.swiper-navigation {
  position: absolute;
  z-index: var(--z-tooltip);
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  width: auto;
  max-width: 100%;
}

@media screen and (min-width: 1150px) {
  .swiper-navigation { bottom: 2rem; column-gap: 1.5rem; }
  .swiper-button-prev,
  .swiper-button-next { font-size: 2rem; }
  .swiper-pagination { top: 10rem; }
  .swiper-pagination-total { font-size: 1.5rem; }
}

/*=============== BUTTONS ===============*/
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.custom-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  background: linear-gradient(to right, #ffffff22, #ffffff08);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  text-align: center;
  min-width: 140px;
}

.custom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff50;
  transform: translateY(-2px);
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.custom-btn.secondary {
  background: transparent;
  border: 1px solid #ffffff30;
  color: #fff;
}

.custom-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff80;
  cursor: pointer;
}

/* Phones: keep both buttons on one row so the text block stays short */
@media screen and (max-width: 480px) {
  .button-group { flex-direction: row; gap: 0.75rem; padding: 0; }
  .custom-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 170px;
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
}

/*=============== ENQUIRY FORM ===============*/
#hireUsForm.fade-in { animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/*=============== VERY SMALL PHONES ===============*/
@media screen and (max-width: 320px) {
  :root {
    --biggest-font-size: 1.5rem;
    --big-font-size: 1.25rem;
    --h3-font-size: 0.875rem;
    --normal-font-size: 0.813rem;
  }

  .nav__logo-img { width: 150px; height: auto; }
  .nav__toggle,
  .nav__close { font-size: 1.5rem; }
  .nav__menu { padding: 1.5rem; }
  .nav__link { font-size: 1.2rem; }

  .home__subtitle { font-size: 0.75rem; letter-spacing: 1px; }
  .home__title { font-size: 1.2rem; margin-bottom: 1rem; }
  .home__article .home__data { bottom: 4.5rem; padding: 0.25rem 0.5rem; }

  .custom-btn { font-size: 0.8rem; padding: 0.6rem 0.4rem; }

  .swiper-pagination { right: 1rem; top: 5rem; }
  .swiper-button-prev,
  .swiper-button-next { font-size: 1.5rem; }
}
