/* Home Template Styles - QualityTeam Website */

/* ===== LAYOUT COMPONENTS ===== */

/* Body Padding & Centering */
.body-padding {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
}

.body-centered {
  text-align: center;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  width: auto;
  height: 100%;
  display: block;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-bg-mobile {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 3rem 5rem;
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  pointer-events: auto;
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.hero-company-logo {
  max-width: 200px;
  max-height: 80px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-company-logo:hover {
  transform: scale(1.05);
}

.hero-description {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-description p {
  margin-bottom: 1.5rem;
}

/* ===== COMPANIES SECTION ===== */
.companies {
  text-align: center;
  margin: 2rem 0;
}

.companies .text-purple-black {
  line-height: 1.8;
}

.companies .text-purple-black h3 {
  margin-bottom: 1rem;
}

.companies .text-purple-black p {
  margin-top: 0.5rem;
}

.companies-logo {
  padding-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 6rem;
}

.companies-logo img {
  max-width: 150px;
  max-height: 150px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.companies-logo img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  margin: 3rem 0;
}

.problem-title {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 4rem;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: transform 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
}

.problem-item:hover {
  transform: translateY(-8px);
  background: rgba(53, 196, 117, 0.05);
}

.problem-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.problem-item:hover .problem-icon {
  transform: scale(1.15) rotate(5deg);
}

.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.problem-text {
  max-width: 200px;
}

/* ===== MVP SECTION ===== */
.mvp {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mvp-image {
  flex: 1;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mvp-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(72, 62, 184, 0.15));
}

.btn-mvp:hover img {
  cursor: pointer;
  transform: scale(1.08);
  filter: drop-shadow(0 12px 32px rgba(72, 62, 184, 0.25));
}

/* ===== CONSTRUCTION SECTION ===== */
.construction {
  text-align: center;
  margin: 2rem 0;
}

.construction .h2 {
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 1rem;
}

.construction-text {
  margin-top: 0.5rem;
  font-size: 4rem;
  line-height: 1.3;
}

.construction-text p {
  font-weight: 800;
  line-height: 1.3;
}

/* strong is the highlight color (green) via colors.css */
.construction-text strong {
  font-weight: 800;
}

/* ===== TEAM SECTION ===== */
.team-section {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-text,
.example-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.team-text p,
.example-text p {
  margin-bottom: 1rem;
}

.team-spot {
  width: 120px;
  height: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* ===== TRANSITION ELEMENTS ===== */
.transition-rectangle {
  width: 40%;
  height: 70px;
  background-color: var(--color-primary);
  border-radius: 50px 50px 0 0;
  margin: 0 auto;
}

.double-transition-spot {
  position: relative;
  z-index: 10;
  text-align: center;
  margin: -50px 0;
}

.double-transition-spot img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

/* ===== PURPLE SECTION - METHOD ===== */
.hourglass-container {
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

.hourglass {
  width: 4rem;
  height: auto;
  object-fit: cover;
  position: relative;
  top: -20px;
  animation: rotate-hourglass 3s ease-in-out infinite;
}

@keyframes rotate-hourglass {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.method-header {
  text-align: center;
  margin-bottom: 2rem;
}

.method-description {
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 400;
}

.arrow-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
  font-weight: 500;
  padding-left: 23vw;
}

.arrow-container div {
  padding-top: 4rem;
}

.purple-arrow {
  width: 32px;
  padding-right: 1rem;
  height: auto;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(10px);
  }
}

.method-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 70rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.method-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
  transition: left 0.3s;
  max-width: 90vw;
}
.method-step:nth-child(1) { left: -5rem; }
.method-step:nth-child(2) { left: 2rem; }
.method-step:nth-child(3) { left: 4rem; }
.method-step:nth-child(4) { left: 6rem; }
.method-step:nth-child(4) { left: 6rem; }


.step-number {
  font-weight: 100;
  line-height: 1;
  margin-right: 2rem;
  flex-shrink: 0;
  font-style: italic;
}

.step-content {
  flex: 1;
  color: var(--color-white);
}

.step-title {
  margin-bottom: 1rem;
  font-style: italic;
  text-align: left;
}

.step-description {
  line-height: 1.6;
}

.step-description ul {
  margin: 0;
  padding-left: 1.5rem;
}

.step-description li {
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

/* ===== ACCOMPANIMENT SECTION ===== */
.accompaniment-section {
  text-align: center;
  color: var(--color-white);
}

.accompaniment-header {
  margin-bottom: 3rem;
}

.accompaniment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 6rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.accompaniment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.accompaniment-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.accompaniment-item:hover .accompaniment-icon {
  transform: scale(1.15) rotate(-5deg);
}


.accompaniment-text {
  line-height: 1.4;
  max-width: 200px;
}

/* strong now acts as highlight in accompaniment texts */
.accompaniment-text strong {
  color: var(--color-accent);
}

.cta-accompaniment {
  margin-bottom: 2rem;
}

.button-spots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem auto;
  max-width: 450px;
}

.button-spot-left,
.button-spot-right {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.btn-launch {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 5rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 24px 0 rgba(72, 62, 184, 0.18);
  border: 4px solid transparent;
}

.btn-launch:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px 0 rgba(72, 62, 184, 0.35);
  background: var(--color-code-purple);
  border: 4px solid var(--color-white);
}

.expertise-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.expertise-title {
  margin-bottom: 3rem;
  line-height: 1.2;
}

.expertise-title-line1 {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.expertise-title-line2 {
  display: block;
  font-weight: 800;
}

.expertise-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.expertise-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
}

.expertise-icon:hover {
  transform: scale(1.1) rotate(10deg);
}

.expertise-icon img {
  transition: filter 0.3s ease;
}

.expertise-icon:hover img {
  filter: brightness(1.2);
}

.expertise-text {
  flex: 1;
  line-height: 1.6;
}

.expertise-text p {
  margin-bottom: 1.5rem;
}

.expertise-cta {
  text-align: center;
}

.btn-expertise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 2px solid var(--color-white);
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-expertise:hover::before {
  left: 0;
}

.btn-expertise:hover {
  transform: translateY(-2px);
  color: var(--color-black);
}

.btn-expertise .arrow {
  transition: color 0.3s ease;
}

.btn-expertise:hover .arrow {
  color: var(--color-black);
}

.arrow {
  font-weight: bold;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--color-white);
  position: relative;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-title {
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.faq-title span {
  display: inline-block;
}

.faq-title-part1 {
  color: var(--color-black);
}

.faq-title-part2 {
  color: var(--color-text-green);
}

.faq-subtitle {
  color: var(--color-text-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0;
  transition: background 0.3s ease;
}

.faq-item:nth-child(odd) {
  background: rgba(72, 62, 184, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 1rem;
}

.faq-question:hover {
  background: rgba(72, 62, 184, 0.1);
  padding-left: 0.5rem;
}

.faq-number {
  color: var(--color-primary);
  min-width: 30px;
  font-style: italic;
}

.faq-question-text {
  flex: 1;
  color: var(--color-black);
  text-align: left;
  padding-left: 2rem;
}

.faq-arrow {
  color: var(--color-primary);
  transition: transform 0.3s ease;
  min-width: 20px;
  text-align: center;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 2rem;
  padding-right: 2rem;
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 1.5rem 0;
}

.faq-checkmark {
  color: var(--color-secondary);
  font-weight: bold;
  min-width: 20px;
}

.faq-answer-text {
  flex: 1;
  color: var(--color-black);
  text-align: left;
}

.faq-answer-text p {
  font-size: 1rem !important;
}

.faq-answer-text strong {
  color: var(--color-black);
  font-weight: 600;
}

/* ===== GREEN SECTION - CTA ===== */
.green-cta-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.green-title {
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.green-title-part1 {
  color: var(--color-white);
}

.green-title-part2 {
  color: var(--color-primary);
}

.green-subtitle {
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 3rem;
}

.green-buttons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.green-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.5rem;
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 12px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-green:hover::before {
  left: 0;
}

.btn-green:hover {
  color: var(--color-secondary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-green span {
  position: relative;
  z-index: 1;
}

.btn-green .arrow {
  font-weight: bold;
}

.pink-arrow-left,
.pink-arrow-right {
  width: 60px;
  height: auto;
  object-fit: contain;
  z-index: 5;
  transition: transform 0.3s ease;
}

.green-button-container:hover .pink-arrow-left {
  transform: translateX(-8px);
}

.green-button-container:hover .pink-arrow-right {
  transform: translateX(8px);
}

.pink-arrow-left {
  margin-right: 1rem;
}

.pink-arrow-right {
  margin-left: 1rem;
  padding-bottom: 4rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.scroll-top-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(53, 196, 117, 0.4);
  }
}

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

/* Tablet */
@media (max-width: 900px) {
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }

  .hero-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
  }

  .hero-content {
    max-width: 500px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero {
    min-height: auto;
    height: 100vh;
    position: relative;
  }

  .hero-bg {
    height: 100%;
  }

  .hero-bg img {
    height: 100%;
    object-fit: cover;
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    margin-bottom: 1.25rem;
  }

  .hero-companies {
    gap: 0.75rem;
    justify-content: center;
  }

  .hero-company-logo {
    max-width: 120px;
    max-height: 50px;
  }

  .hero-description {
    padding: 1rem;
  }

  .construction-text {
    font-size: 2.5rem;
  }

  .problem-item {
    padding: 1.5rem 1rem;
  }

  .expertise-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .faq-question {
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .faq-answer-content {
    gap: 0.5rem;
    padding: 0 0 1rem 0;
  }

  .btn-green {
    padding: 1rem 1.5rem;
  }

  .btn-launch {
    padding: 0 3rem;
    min-height: 48px;
  }

  .pink-arrow-left,
  .pink-arrow-right {
    width: 40px;
    display: none;
  }

  .green-button-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
  }

  .scroll-top-btn {
    width: 45px;
    height: 45px;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .companies-logo img {
    max-width: 100px;
    max-height: 100px;
  }

  .transition-rectangle {
    width: 80%;
  }

  .hourglass {
    width: 2rem;
  }

  .method-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    position: relative;
  }

  .method-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    left: 0 !important;
    transition: none;
  }


  .method-step:nth-child(1),
  .method-step:nth-child(2),
  .method-step:nth-child(3),
  .method-step:nth-child(4) {
    padding-left: 0;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .arrow-container {
    padding-left: 1rem;
  }

  .btn-launch {
    padding: 0 3rem;
  }

  .button-spots {
    max-width: 300px;
  }

  .accompaniment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .expertise-content {
    flex-direction: column;
    align-items: center;
  }
  .expertise-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

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