/*
 * Intro
 */
header.with-img {
  background-image: url(../images/hero3.jpg);
}

.paragraph {
  text-align: justify;
  margin-top: 1em;
}

/*
 * Stats Section
 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 1.5em;
  background-color: var(--mediumGoldOp05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: var(--mediumGoldOp1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--mediumGold);
  line-height: 1;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 10px var(--mediumGoldOp4);
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/*
 * Why Us Section
 */
.why-us-section {
  margin: 3em 0;

  h2 {
    color: var(--teal);
    font-size: 1.9rem;
    margin-bottom: 1.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1em;

  i {
    color: var(--teal);
    font-size: 2em;
  }

  li {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1em 2em;
    background-color: var(--tealOp1);
  }
}

/*
 * Reviews Section
 */
.reviews-section {
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;

  h2 {
    color: var(--magenta);
    font-size: 1.9rem;
    margin-bottom: 0.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  h4 {
    color: var(--magenta);
  }

  .google-review-btn {
    margin: auto;
  }
}

.reviews-section > p {
  text-align: center;
  margin-bottom: 2.5em;
}

.review-container {
  max-width: 65vw;
  margin: 0 auto 2em;
  position: relative;
}

.review-list {
  max-height: 452px;
  overflow-y: scroll;
  scrollbar-color: var(--magenta);
}

.review-list::-webkit-scrollbar {
  width: 12px;
}

.review-list::-webkit-scrollbar-track {
  background: var(--magentaOp1);
  border-radius: 10px;
}

.review-list::-webkit-scrollbar-thumb {
  background: var(--magentaOp4);
  border-radius: 10px;
}

.review-list::-webkit-scrollbar-thumb:hover {
  background: var(--magenta);
}

/* Fade overlay at bottom - only shows when not scrolled to bottom */
.review-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--black2));
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.review-list.scrolled-to-bottom::after {
  opacity: 0;
}

.review-card {
  border-left: 4px solid var(--magentaOp4);
  padding: 0 2em;
  display: flex;
  align-items: center;
  gap: 2em;
  margin-bottom: 2em;
}

.review-avatar {
  padding: 1em;
  background-color: var(--mediumGoldOp1);
  border-radius: 50%;

  i {
    color: var(--mediumGold);
    font-size: 1.5rem;
  }
}

.review-stars {
  color: var(--mediumGold);
  letter-spacing: 0.25em;
}

.review-text {
  font-size: 0.9rem;
  font-style: italic;
}

.review-content {
  flex: 1;
}

/*
 * Services Grid Section
 */
.grid-section {
  h2 {
    color: var(--mediumGold);
    font-size: 1.9rem;
    margin-bottom: 0.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  p {
    margin-bottom: 1em;
  }
}

.section-intro {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
}

.feature-item {
  text-align: center;
  padding: 2em 1.5em;
  background-color: var(--black);
  border: 2px solid var(--black3);
  border-radius: 0.25em;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--mediumGold);
  box-shadow: 0 4px 20px var(--mediumGoldOp4);
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--mediumGoldOp4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em;
  border: 3px solid var(--black3);

  i {
    font-size: 1.75rem;
    color: var(--mediumGold);
  }
}

.feature-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.75em;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

/*
 * Process Section
 */
.process-svg {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.zigzag {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 2.5s ease;
}

.reveal.visible .zigzag {
  stroke-dashoffset: 0;
}

/* Step circles */
.step {
  circle {
    fill: var(--black2);
    stroke: var(--teal);
    stroke-width: 2;
    transition: all 0.3s ease;
  }

  text {
    fill: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
  }
}

.step:hover {
  cursor: pointer;

  circle {
    fill: var(--teal);
    stroke-width: 3;
  }
  text {
    fill: var(--black3);
  }
}

.step.active {
  circle {
    fill: var(--teal);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px var(--teal));
  }

  text {
    fill: var(--black2);
  }
}

/* RTL support */
html[dir="rtl"] .process-svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .step text {
  transform: scaleX(-1);
  font-size: 1.5rem;
}

.process-section {
  margin: 3em 0 2em;

  h2 {
    color: var(--teal);
    font-size: 1.9rem;
    margin-bottom: 1em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

.process-step {
  display: flex;
  align-items: center;
  gap: 1.75em;
  background-color: var(--black);
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75em;
    font-weight: 600;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 40px;
  height: 40px;
  background-color: var(--teal);
  color: var(--black2);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  border: 3px solid var(--black3);
  padding: 1.5em;
}

.process-step.active {
  box-shadow: 0 4px 20px var(--tealOp4);
  border: 2px solid var(--teal);
  padding: 2em 1.5em;
  max-height: unset;
  opacity: 1;
}

.process-step.active p {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/*
 * FAQ Section
 */
.faq-section {
  margin-bottom: 1em;

  h2 {
    color: var(--magenta);
    font-size: 1.9rem;
    margin-bottom: 1.5em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--black);
  border: 2px solid var(--black3);
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--magenta);
}

.faq-question {
  width: 100%;
  padding: 1.25em 1.5em;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  transition: all 0.3s ease;

  i {
    color: var(--magenta);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
  }
}

.faq-question:hover {
  color: var(--mediumGold);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5em;

  p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0;
  }
}

.faq-answer a,
.hyperlink {
  color: var(--teal);
  text-decoration: underline;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5em 1.5em;
}

.faq-answer a:hover,
.hyperlink:hover {
  color: var(--mediumGold);
}

/*
 * CTA Section
 */
.cta-section {
  padding: 4em 2em;
  text-align: center;
  border: 2px solid var(--mediumGold);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--mediumGoldOp4);

  h2 {
    font-size: 1.9rem;
    margin-bottom: 1.5em;
    color: var(--mediumGold);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 2em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-section .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--mediumGoldOp4);
}

html[dir="rtl"] {
  .review-card {
    border-left: none;
    border-right: 4px solid var(--magentaOp4);
  }
}

/*
 * TABLET
 */
@media screen and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }

  .process-steps {
    margin-top: 1em;
  }

  .step circle {
    transform: scale(2);
  }

  .step text {
    font-size: 1.75rem;
  }

  .step-number {
    padding: 1em;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1em 1.25em;
  }

  .faq-answer {
    padding: 0 1.25em;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25em 1.25em;
  }

  .services-section h2,
  .grid-section h2,
  .process-section h2,
  .why-us-section h2,
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section {
    margin: 3em auto;
    padding: 3em 1.5em;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .process-svg {
    max-width: 100%;
  }
}

/*
 * MOBILE
 */
@media screen and (max-width: 600px) {
  .services-section h2,
  .process-section h2,
  .grid-section h2,
  .why-us-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5em;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .about-intro p {
    font-size: 0.95rem;
  }

  .service-card,
  .process-step,
  .feature-item {
    padding: 1.5em 1em;
  }

  .review-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-left: none;
    border-bottom: 4px solid var(--magenta);
    padding: 0 0 2em;
    gap: 0.75em;
  }

  .review-card:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
  }

  html[dir="rtl"] {
    .review-card {
      border-right: none;
    }

    .faq-question {
      text-align: right;
    }
  }

  .review-card .review-text {
    text-align: center;
  }

  .reviews-section > p {
    margin-bottom: 4em;
  }

  .review-container {
    max-width: unset;
  }

  .review-list::-webkit-scrollbar {
    width: unset;
  }

  .cta-section {
    padding: 2.5em 1em;
  }

  .cta-section .cta-button {
    padding: 0.9em 2em;
    font-size: 0.9rem;
  }

  .process-svg {
    display: none;
  }

  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 2.5em;
  }

  .process-steps .process-step {
    box-shadow: unset;
    border: 2px solid var(--tealOp4);
    padding: 1em 1.5em;
    max-height: unset;
    opacity: 1;

    p {
      transform: translateY(0);
    }
  }

  .step circle {
    transform: scale(2);
  }

  .step-number {
    padding: 1em;
  }

  .stats-section {
    padding: 2em 1em;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .faq-section h2 {
    font-size: 1.4rem;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 1em;
  }

  .faq-answer {
    padding: 0 1em;
  }

  .faq-item.active .faq-answer {
    padding: 0 1em 1em;
  }

  .faq-answer p {
    font-size: 0.875rem;
  }
}
