/* === Header === */

.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: white;
  z-index: 999;

  /*add header-inner if needed*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box; /*optional but maybe needed later*/
}


/* Logo */
.logo img {
  width: 50px;
  height: auto;
  display: block;
}

/* Nav */
.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #2f2a26;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  opacity: 0.6;
}

.nav a {
  font-family: "Ranade", sans-serif;
  text-decoration: none;
  color: #2f2a26;
  font-size: 0.85rem;
  font-weight: 400;
}


/* Fix content under header */
#wrapper {
  margin-top: 80px;
}



/* === TYPOGRAPHY === */
@font-face {
  font-family: "Ranade";
  src: url("../webfonts/Ranade-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Ranade";
  src: url("../webfonts/Ranade-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Ranade";
  src: url("../webfonts/Ranade-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: "Ranade", sans-serif;
  color: #2f2a26;
}



/* === HERO === */



.hero {

  position: relative;

  min-height: 80vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding-left: 3.0rem;

  padding-right: 3.0rem;

  box-sizing: border-box;

  text-align: center;

}




/* Title */

.hero-title {

  font-size: clamp(3rem, 7vw, 5rem);

  font-weight: 700;

  margin-bottom: 1.5rem;

}


.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 0;
}

.hero-photo {
  width: 140px;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;

  display: block;

  animation: heroPhotoWiggle 4.5s ease-in-out infinite;
}

@keyframes heroPhotoWiggle {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  20% {
    transform: translateX(7px) rotate(2.5deg);
  }

  40% {
    transform: translateX(3px) rotate(1deg);
  }

  60% {
    transform: translateX(-7px) rotate(-2.5deg);
  }

  80% {
    transform: translateX(-3px) rotate(-1deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}


/* Description */

.hero-description {

  font-size: 1.0rem;

  line-height: 1.8;

  font-weight: 400;

  max-width: 600px;

  margin: 0 auto;

}



.scroll-indicator {

  position: absolute;

  bottom: 1rem;

  left: 50%;

  transform: translateX(-50%);

}





/* === CASE STUDIES === */

.case-studies {

  padding: 1rem 3rem 4rem;

}



.case-section-title {

  text-align: center;

  font-size: 3.0rem;

  font-weight: 700;

  margin-bottom: 4rem;

}



.case-card {

  max-width: 1300px;

  margin: 0 auto 3rem; /* Distance between each card */

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  /*gap: 0rem;*/

  align-items: center;

  background: #ffffff;

}



.case-text {

  padding: 2rem;

}



.case-text .case-category {

  font-size: 0.85rem; 

  font-weight: 400;

  margin-bottom: 1.2rem;

}



.case-text h3 {

  font-size: 2.0rem;

  font-weight: 700;

}



.case-meta {

  font-size: 1.75rem;

  font-weight: 700;

  margin-bottom: 1rem;

}



.case-text p {

  font-size: 1rem;

  max-width: 470px;

}



.case-image {

  height: 440px;

}



.case-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



/* mobile */

@media (max-width: 768px) {

  .case-section-title {

    font-size: 1.8rem;

  }

}



/* Mobile */

@media (max-width: 768px) {

  .case-studies {

    padding: 4rem 1.5rem;

  }



  .case-card {

    grid-template-columns: 1fr;

  }



  .case-image {

    height: 300px;

  }

}


.coming-soon-btn {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #f4f0ed;
  color: #2f2a26 !important;
  border-color: #d8cec8 !important;
}

/* ================================================================
   MOBILE RESPONSIVE — Index page improvements
================================================================ */

/* ----------------------------------------------------------------
   Header — wrap nav below logo on small screens
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .custom-header {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 0.85rem 1.2rem;
    gap: 0.5rem;
  }

  /* Logo slightly smaller */
  .logo img {
    width: 40px;
  }

  /* Nav wraps and tightens */
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.78rem;
  }

  /* Adjust wrapper offset — header is now auto height, not 80px */
  #wrapper {
    margin-top: 0;
  }
}


/* ----------------------------------------------------------------
   Hero — scale down title, keep photo a reasonable size
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    padding-top: 5rem;    /* clear the wrapped header */
    padding-bottom: 5rem; /* clear the scroll arrow */
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  /* Stack title and photo vertically on very small screens */
  .hero-title-row {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.15;
  }

  .hero-photo {
    width: 100px;
    height: 130px;
    border-radius: 14px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  /* Scroll arrow — keep it visible but not clipped */
  .scroll-indicator {
    bottom: 0.5rem;
  }

  .scroll-indicator lottie-player {
    width: 80px !important;
    height: 80px !important;
  }
}


/* ----------------------------------------------------------------
   Case Studies — text hierarchy and card layout on mobile
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .case-studies {
    padding: 2.5rem 1.2rem 3rem;
  }

  .case-section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* Card: image on top, text below */
  .case-card {
    grid-template-columns: 1fr;
    margin-bottom: 2.5rem;
  }

  /* Put image first visually */
  .case-image {
    order: -1;
    height: 220px;
  }

  .case-text {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .case-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .case-meta {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }

  .case-text .case-category {
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
  }

  .case-text p {
    font-size: 0.92rem;
    max-width: 100%;
    line-height: 1.65;
  }

  /* Make the button full-width for easy tapping */
  .case-text .actions.stacked {
    margin-top: 1rem;
  }

  .case-text .actions.stacked li {
    width: 100%;
  }

  .case-text .actions.stacked .button,
  .case-text .actions.stacked .coming-soon-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* ----------------------------------------------------------------
   Contact form — comfortable on small screens
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .wrapper.style1.align-center .inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  /* Stack the two half-fields vertically */
  .fields .field.half {
    width: 100%;
    float: none;
  }
}


/* ----------------------------------------------------------------
   Footer icons — looser tap targets on mobile
---------------------------------------------------------------- */
@media (max-width: 768px) {
  footer.wrapper .icons {
    gap: 1.2rem;
  }

  footer.wrapper .icons li a {
    font-size: 1.1rem;
    padding: 0.4rem;
  }
}