/*
Theme Name: ACF Clone Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom theme with ACF-like frontend editing and Bootstrap.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acf-clone-theme
Tags: bootstrap, custom-fields, frontend-editing
*/

@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css'); 

/* Gallery Masonry Layout */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: #fff;
}
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(255,102,0,0.18);
  z-index: 2;
}

.masonry {
  column-count: 2;
  column-gap: 12px;
}
@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}
@media (min-width: 992px) {
  .masonry {
    column-count: 4;
  }
}
@media (min-width: 1199px) {
  .masonry {
    column-count: 5;
  }
}
.brick {
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: #fff;
  min-width: 220px;
}
.brick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
}
.masonry img:hover {
  transform: scale(1.05);
  transition: transform linear 0.3s;
  box-shadow: 0 6px 24px rgba(255,102,0,0.18);
  z-index: 2;
}
.line-title {
  margin-top: 22px;
  color: #2e2a2a;
  text-shadow: -2px -1px #fb8c00 !important;
  font-size: 27px;
  margin-bottom: 26px;
} 

/* Vertical scroll/overlap animation for .solution_card.center-card */
.solution_card.center-card[data-aos] {
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s, transform 0.3s, z-index 0.3s;
  will-change: transform, box-shadow;
}

.solution_card.center-card[data-aos="fade-up"] {
  /* Initial state for AOS */
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.solution_card.center-card[data-aos="fade-up"].aos-animate {
  /* Animated in state */
  opacity: 1;
  transform: translateY(0) scale(1.04);
  box-shadow: 0 12px 32px rgba(255,144,0,0.13), 0 2px 12px rgba(0,0,0,0.10);
  z-index: 10;
}


/* Overlap effect for center card on scroll */
@media (min-width: 900px) {
  .approach-col-center {
    margin-top: -60px;
    margin-bottom: -60px;
    z-index: 2;
  }
  .solution_card.center-card {
    box-shadow: 0 8px 32px rgba(255,144,0,0.10), 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s, transform 0.3s, z-index 0.3s;
  }
  .solution_card.center-card.aos-animate {
    transform: scale(1.04) translateY(-16px);
    z-index: 10;
    box-shadow: 0 16px 48px rgba(255,144,0,0.18), 0 2px 12px rgba(0,0,0,0.13);
  }
}

/* Parallax stacked card effect for .solution_card.center-card and siblings */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 120px auto 60px auto;
  height: 320px;
}

.card-stack .solution_card.center-card {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  min-height: 180px;
  border-radius: 18px;
  color: #222;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(calc(var(--i, 1) * 30px));
  z-index: var(--i, 1);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), box-shadow 0.3s, z-index 0.2s;
  opacity: 0.97;
  background: #fff;
}

.card-stack .solution_card.center-card.active {
  transform: translateY(0) scale(1.05);
  box-shadow: 0 16px 48px rgba(255,144,0,0.18), 0 2px 12px rgba(0,0,0,0.13);
  z-index: 10;
  opacity: 1;
}

@media (max-width: 600px) {
  .card-stack {
    max-width: 98vw;
    height: auto;
    margin: 40px auto 20px auto;
  }
  .card-stack .solution_card.center-card {
    position: static;
    transform: none !important;
    z-index: 1 !important;
    margin-bottom: 24px;
  }
}

@media (max-width: 800px) {
  body { overflow-x: hidden; }
  .simple-header-inner { padding: 8px 4vw; }
  .simple-logo .custom-logo, .site-title { max-width: 80vw; font-size: 1.2rem; }
  .simple-btn { font-size: 1.05rem; padding: 12px 18px; min-width: 44px; min-height: 44px; }
  .simple-header-cta { margin-left: 0; }
}

@media (max-width: 700px) {
  .solution_card {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


