/* ===============================
   SECTIONS
================================ */

.section {
  padding: 0px 0px 20px 0px;
  margin-bottom: 30px;
  position: relative;
}

/* Animation classes for sections */
.section.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.section h2.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section h2.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.section p.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.section p.animate-on-scroll.animate {
  opacity: 0.9;
  transform: translateY(0);
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(190, 123, 46, 0.3);
}

.section h2 {
  font-size: clamp(24px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 10px auto;
  position: relative;
}

.section h3 {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.section p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
  color: var(--dark);
  max-width: 900px;
  margin: 10px auto;
  text-align: center;
  opacity: 0.9;
}

#lip {
  text-align: start;
}

/* ===============================
   WHY US
================================ */

.why-us {
  margin-top: 10px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.why-us li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  padding: 20px 24px 20px 40px;
  background: rgba(250, 247, 242, 0.8);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.why-us li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(190, 123, 46, 0.15);
  background: rgba(250, 247, 242, 0.95);
}

.why-us li::before {
  content: '✓';
  color: var(--gold);
  position: absolute;
  left: 12px;
  top: 20px;
  font-size: 20px;
  font-weight: bold;
}

/* ===============================
   CTA SECTION (BOTTOM)
================================ */

.cta {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

/* Animation for CTA section */
.cta.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.cta.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.cta h2.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.cta h2.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.cta p.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.cta p.animate-on-scroll.animate {
  opacity: 0.9;
  transform: translateY(0);
}

.cta .btn-primary.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.cta .btn-primary.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(190, 123, 46, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(64, 98, 110, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 50px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a96926 100%);
  box-shadow: 0 6px 20px rgba(190, 123, 46, 0.4);
  position: relative;
  z-index: 1;
}

.cta .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(190, 123, 46, 0.5);
}

/* ===============================
   ANIMATIONS
================================ */

/* Animation base classes */
.animate {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.animate-fadeInUp {
  animation-name: fadeInUp;
}

.animate-fadeInLeft {
  animation-name: fadeInLeft;
}

.animate-fadeInRight {
  animation-name: fadeInRight;
}

.animate-fadeIn {
  animation-name: fadeIn;
}

.animate-scaleIn {
  animation-name: scaleIn;
}

/* Initial states before animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-left {
  transform: translateX(-50px);
}

.animate-on-scroll.is-right {
  transform: translateX(50px);
}

.animate-on-scroll.is-scale {
  transform: scale(0.9);
}

/* When elements are in viewport */
.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===============================
   FEATURES GRID
================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-item p {
  text-align: center;
  margin-bottom: 0;
  font-size: 1rem;
}

/* ===============================
   PROCESS SECTION
================================ */

.process-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 40px;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.steps li {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-right: 4px solid var(--gold);
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animation for steps */
.steps li.animate-on-scroll {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.steps li.animate-on-scroll.animate {
  opacity: 1;
  transform: translateX(0);
}

.steps li:nth-child(even).animate-on-scroll {
  transform: translateX(30px);
}

/* ===============================
   SERVICES SECTION
================================ */

.services-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 40px;
  font-weight: 500;
}

.services-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Animation for service items */
.service-item.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-item.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item h3 {
  color: var(--gold);
  font-size: 1.5rem;
  /* margin-bottom: 20px; */
}

.service-item p {
  text-align: right;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===============================
   WHY CHOOSE US SECTION
================================ */

.why-intro {
  text-align: center;
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 50px;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.why-item {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Animation for why items */
.why-item.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-item.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.why-item p {
  text-align: right;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .steps {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-overlay {
    padding: 0 6%;
  }

  .why-us {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid,
  .services-detailed,
  .pricing-cards,
  .why-items {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80dvh;
  }

  .hero-overlay {
    align-items: center;
    text-align: center;
    padding: 0 6%;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }

  .section {
    padding: 80px 20px;
  }

  .section::before {
    width: 60px;
    height: 3px;
  }

  .section h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .why-us {
    padding: 0;
    margin-top: 30px;
  }

  .why-us li {
    padding: 16px 20px 16px 36px;
    font-size: 16px;
  }

  .cta {
    padding: 100px 20px;
  }

  .cta h2 {
    font-size: 36px;
  }

  .cta p {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

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

  .hero p {
    font-size: 16px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .section {
    padding: 60px 20px;
  }

  .section h2 {
    font-size: 28px;
  }

  .cta {
    padding: 80px 20px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .cta p {
    font-size: 16px;
  }
}
