/* ------------------ */
/* FONT & VARIABLES   */
/* ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500&display=swap');

/* Local Font: Dream Avenue */
@font-face {
  font-family: 'Dream Avenue';
  src: url('fonts/Dream-Avenue.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


:root {
  --green: #0b5b46;
  --olivebrown: #6d6243;
  --beige: #f4f0e6;
  --accent: #c2a477;
  --light: #fdfdfc;
  --text: #333;
  --muted: #777;
  --Annagreen: #3b4438;
}

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

body {
  font-family: 'Dosis', sans-serif;
  background-color: var(--beige);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
  text-align: center;
}

h1, h2, h3, h4 {
  font-family: 'Dream Avenue', serif;
  color: var(--olivebrown);
}


a {
  color: var(--green);
  text-decoration: none;
}

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

/* ------------------ */
/* NAVBAR             */
/* ------------------ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fdfdfc;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-logo {
  max-height: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--olivebrown);
  transition: color 0.3s ease;
}

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

/* ------------------ */
/* HERO               */
/* ------------------ */
.hero {
  
 min-height: 80vh;
  transition: background-image 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  color: var(--light);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;


}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  text-align: center;
}

.hero .logo {
  max-width: 390px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: 3.0rem;
  color: var(--beige);
}

.hero .tagline {
  font-style: italic;
  color: var(--beige);
  font-size: 1.1rem;
}

/* ------------------ */
/* SECTIONS           */
/* ------------------ */
section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  scroll-margin-top: 100px;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

/* ------------------ */
/* SERVICES GRID      */
/* ------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

.services-grid h4 {
  font-size: 1.2rem;
  color: var(--olivebrown);
  margin-bottom: 0.5rem;
}

/* ------------------ */
/* SHOWCASE GRID      */
/* ------------------ */

.showcase {
  width: 100%;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  overflow: visible;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.showcase-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Toolbar (simple filters) */
.showcase-toolbar {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.filter-btn {
  border: 1px solid var(--olivebrown);
  background: transparent;
  padding: .4rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Dosis', sans-serif; /* match body font */
  font-size: 0.95rem; 
  font-weight: 400;
}
.filter-btn.active,
.filter-btn:hover { background: var(--olivebrown); color: #fff; }

/* Card styling with caption on hover */
.showcase-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.showcase-item:hover img { transform: scale(1.03); }

.showcase-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .6rem .8rem;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  color: #fff;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.showcase-item:hover .showcase-caption { opacity: 1; transform: translateY(0); }


  /* Ensure videos behave like images */
.showcase-item video {
  width: 100%;
           /* Same as image height cap */
  aspect-ratio: 4 / 3;
max-height: 300px;
object-fit: cover;
  border-radius: 12px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}


.showcase-item:hover video {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lb-img {
  width: auto; height: auto;
  max-width: min(92vw, 1200px);
  max-height: calc(100vh - 160px);  /* room for controls/caption */
  object-fit: contain;               /* keep proportions, no overflow */
  border-radius: 12px;
}

.lb-video {
  width: auto;
  height: auto;
  max-width: min(92vw, 1200px);
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.lb-caption {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: #fff; text-align: center; font-weight: 500;
  max-width: 90vw;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; color: #fff;
  padding: .6rem .8rem; cursor: pointer;
}
.lb-close { top: 1.25rem; right: 1.25rem; transform: none; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }

@media (max-width: 768px) {
  .lb-img { max-width: 94vw; max-height: calc(100vh - 200px); }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
.showcase-toolbar {
  display: flex; gap: .5rem; justify-content: center;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .showcase-toolbar {
    justify-content: flex-start;       /* left align when scrolling */
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.75rem 2rem;
    margin-left: -1rem; margin-right: -1rem; /* edge-to-edge */
  }
  .filter-btn { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ------------------ */
/* TEAM               */
/* ------------------ */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  max-width: 200px;
  text-align: center;
}

.team-member img {
  width: 100%;
  border-radius: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

/* ------------------ */
/* FOOTER             */
/* ------------------ */
footer.contact {
  background-color: var(--light);
  padding: 2rem 1rem;
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
    text-align: center;
}

.footer-links a {
  color: var(--olivebrown);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links i {
  font-size: 1.2rem;
}

/* ------------------ */
/* UTILITIES          */
/* ------------------ */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: none;
  background-color: var(--green);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 100px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: var(--accent);
}

/* ------------------ */
/* RESPONSIVE         */
/* ------------------ */
@media (max-width: 768px) {

      html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

    .hero {
    height: auto;
    min-height: 100vh; /* keeps layout flexible */
  }

  .hero .logo {
    max-width: 190px;
  }

  .hero h1 {
    font-size: 2.5rem;
    flex-wrap: wrap;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
      gap: 1rem;
  }

 
  .showcase {
    padding-bottom: 4rem;
    overflow: visible;
  }

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


  .nav-links {
    justify-content: center;
  }
    section {
    overflow: visible;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .nav-logo {
    max-height: 36px;
  }

  #backToTop {
    bottom: 20px;
    right: 10px;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }
}


/* Collapsible styles only for mobile */
@media (max-width: 768px) {
  .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .collapsible-section.active .collapsible-content {
    max-height: 6000px; /* large enough for full content */
    transition: max-height 0.4s ease-in;
  }

  .collapsible-title {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
    
  }

  .collapsible-title::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: bold;
  }

  .collapsible-section.active .collapsible-title::after {
    content: '-';
  }
  .collapsible-section:last-of-type {
  margin-bottom: 0rem; /* or even 0 if you want it tighter */
}

}

/* Fix showcase image cut-off and layout on mobile */
@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .showcase {
    display: block;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 6rem;
  }

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

  .showcase-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Hide nav bar on mobile */
@media (max-width: 768px) {
  .navbar {
    display: none !important;
  }
  body {
    padding-top: 0;
  }
}

/* Service description reveal on title hover (desktop only) */
@media (min-width: 769px) {
  .services-grid div p {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1.5s ease, max-height 1.5s ease;
  }

  .services-grid h4:hover + p {
    opacity: 1;
    max-height: 300px; /* enough space for text */
  }
}


.workflow-timeline {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2rem;
  gap: 2rem;
  text-align: center;
}

.step {
  flex: 0 0 180px;
  position: relative;
}

.step h4 {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--olivebrown);
}

.workflow-timeline .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(100% + 10px);
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

.circle {
  width: 36px;
  height: 36px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Dosis', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .workflow-timeline {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    padding: 1rem;
  }

  .step {
    scroll-snap-align: start;
  }
}
/* Hide native scrollbar */
@media (min-width: 769px) {
  .workflow-timeline {
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
  }

  .workflow-timeline::-webkit-scrollbar {
    display: none;
  }
}

/* Optional scroll indicator shadow */
.workflow-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, var(--beige), transparent);
  pointer-events: none;
}


/* Container with overlay hint */
.workflow-container {
  position: relative;
  overflow-x: hidden; /* prevent native scrollbar peeking */
}

/* Scroll hint overlay on the right */
.workflow-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to left, var(--beige), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Animated chevron */
.workflow-container::before {
  content: "❯";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--muted);
  animation: bounce-right 1.6s infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes bounce-right {
  0%, 100% { transform: translate(0, -50%); opacity: 0.4; }
  50%      { transform: translate(6px, -50%); opacity: 1; }
}

/* Only show on desktop */
@media (max-width: 768px) {
  .workflow-container::after,
  .workflow-container::before {
    display: none;
  }
}
