/* ------------------------------------------------------
   HOME PAGE STYLES — BenCode Studio
   Conversion polish without changing messaging
------------------------------------------------------ */

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section rhythm */
.site-main section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 14px;
  color: #1d1230;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
  color: #4d4561;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Hero */
.hero-section {
  position: relative;
  padding: clamp(108px, 11vw, 150px) 0 clamp(86px, 8vw, 124px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(248, 244, 255, 0.92) 35%, rgba(243, 236, 255, 0.88) 100%),
    linear-gradient(145deg, #f7f3ff 0%, #efebff 45%, #ece6ff 100%);
  border-bottom: 1px solid rgba(76, 43, 123, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f4371;
  margin: 0 0 1.1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #1a0e2a;
}

.hero-title span {
  color: #6a1b9a;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.17rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #453f57;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
}

.hero-cta .btn:focus-visible,
.btn-view-project:focus-visible,
.btn-visit-site:focus-visible,
.contact-cta-section .btn-primary:focus-visible,
.contact-cta-section .btn.btn-primary:focus-visible {
  outline: 2px solid #ffdf37;
  outline-offset: 3px;
}

.hero-bg-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.66;
  z-index: 1;
  animation: float-orbit 11s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg-orbit--1 {
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(255, 223, 55, 0.82), transparent 66%);
  top: -90px;
  right: 8%;
}

.hero-bg-orbit--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(106, 27, 154, 0.62), transparent 68%);
  bottom: -70px;
  left: 5%;
}

.hero-bg-orbit--3 {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(74, 20, 140, 0.48), transparent 70%);
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes float-orbit {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-11px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

/* Home Summary */
.home-summary-section {
  background: linear-gradient(180deg, rgba(241, 235, 255, 0.78), #ffffff);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.home-summary-section .wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.home-summary-headline {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-summary-headline .eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #7059a0;
  font-weight: 700;
}

.home-summary-headline h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.18;
  color: #1f1028;
  letter-spacing: -0.02em;
}

.home-summary-subtitle {
  margin-top: 12px;
  color: #4b445f;
  line-height: 1.75;
}

.home-summary-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
  margin: 32px auto 0;
  max-width: 1120px;
}

.home-summary-left,
.home-summary-right {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(110, 77, 168, 0.16);
  box-shadow: 0 14px 34px rgba(31, 16, 40, 0.08);
}

.home-summary-left {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.home-summary-note {
  font-size: 1rem;
  color: #4f4563;
  line-height: 1.72;
  margin: 0;
}

.home-summary-process {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.process-step {
  display: flex;
  gap: 14px;
  background: linear-gradient(180deg, #fdfbff 0%, #f8f4ff 100%);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.process-index {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  color: #7155a7;
  font-weight: 700;
  padding-top: 4px;
}

.process-step h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #1f1028;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #1f1028;
}

.process-step p {
  margin: 0;
  color: #4a4160;
  line-height: 1.65;
}

.home-summary-right {
  padding: 24px;
}

.home-summary-block {
  background: linear-gradient(180deg, #fdfbff 0%, #f8f4ff 100%);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.home-summary-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #1f1028;
}

.home-summary-block > p {
  margin: 0 0 8px;
  color: #4a4160;
  line-height: 1.65;
}

.home-summary-list {
  margin: 0;
  padding-left: 18px;
  color: #453f57;
}

.home-summary-list li {
  margin-bottom: 6px;
}

.home-summary-services {
  display: grid;
  gap: 14px;
}

.home-summary-services article {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
}

.home-summary-services article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-summary-services h5 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #4a148c;
}

.home-summary-services h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #4a148c;
}

.home-summary-services p {
  margin: 0;
  color: #453f57;
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Projects */
.selected-work-section {
  background: #ffffff;
}

.projects-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 20px;
}

.project-card {
  border: 1px solid rgba(106, 27, 154, 0.16);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(106, 27, 154, 0.15);
}

.project-card .project-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 22px;
}

.project-meta {
  font-weight: 700;
  color: #6a1b9a;
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.project-info h3 {
  margin: 0 0 10px;
  font-size: 1.26rem;
}

.project-highlights-preview {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #45414f;
}

.project-highlights-preview li {
  margin-bottom: 6px;
}

.project-insights-list li strong {
  color: #2b1843;
}

.project-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-view-project,
.btn-visit-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-view-project {
  background: linear-gradient(135deg, #7c3aed, #4a148c);
  color: #fff;
}

.btn-view-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.34);
}

.btn-visit-site {
  background: #efe5ff;
  color: #3d2158;
}

.btn-visit-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 27, 154, 0.18);
}

.view-all-wrapper {
  text-align: center;
  margin-top: 44px;
}

.view-all-wrapper .btn.btn-primary {
  padding: 0.78rem 1.7rem;
  border-radius: 999px;
}

.project-empty-state {
  grid-column: 1 / -1;
  border: 1px solid rgba(106, 27, 154, 0.16);
  border-radius: 18px;
  background: #fff;
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(31, 16, 40, 0.08);
}

.project-empty-state p {
  margin: 0 0 14px;
  color: #4d4560;
}

/* Social Proof */
.social-proof {
  background: #faf8ff;
  text-align: center;
  border-top: 1px solid rgba(106, 27, 154, 0.08);
  border-bottom: 1px solid rgba(106, 27, 154, 0.08);
}

.trust-text {
  font-weight: 700;
  margin: 0 0 22px;
  color: #595066;
  letter-spacing: 0.04em;
}

.social-proof .logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 16px 0 4px;
}

.social-proof .logo-row img {
  max-height: 82px;
  width: auto;
  opacity: 0.92;
  filter: grayscale(28%);
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.social-proof .logo-row img:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: grayscale(0%);
}

.social-proof .logo-row::-webkit-scrollbar,
.horizontal-scroll-grid::-webkit-scrollbar,
.selected-work-section .projects-grid::-webkit-scrollbar {
  height: 6px;
}

.social-proof .logo-row::-webkit-scrollbar-thumb,
.horizontal-scroll-grid::-webkit-scrollbar-thumb,
.selected-work-section .projects-grid::-webkit-scrollbar-thumb {
  background: rgba(106, 27, 154, 0.4);
  border-radius: 999px;
}

/* How It Works */
.how-section {
  background: #ffffff;
}

.horizontal-scroll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(106, 27, 154, 0.14);
  box-shadow: 0 8px 22px rgba(31, 16, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(31, 16, 40, 0.1);
}

.step-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #201231;
}

.step-item p {
  margin: 10px 0 0;
  color: #4d4560;
  line-height: 1.65;
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
}

.testimonials-carousel {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-item {
  padding: 34px 28px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(110, 44, 255, 0.24);
  box-shadow: 0 12px 30px rgba(110, 44, 255, 0.12);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.quote {
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  color: #2c2638;
  margin: 14px 0;
  line-height: 1.75;
}

.client {
  font-weight: 700;
  color: #6a1b9a;
  margin: 0;
}

.testimonial-controls {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.testimonial-controls .btn {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
}

/* Final CTA (existing section-contact-cta.php) */
.contact-cta-section {
  background: linear-gradient(140deg, #6a1b9a, #4a148c);
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-cta-section h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: #fff;
}

.contact-cta-section p {
  margin: 0 auto 24px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
}

.contact-cta-section .btn-primary,
.contact-cta-section .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #ffffff;
  color: #4a148c;
  font-weight: 700;
  text-decoration: none;
}

.contact-cta-section .btn-primary:hover,
.contact-cta-section .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
  .horizontal-scroll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-summary-body {
    grid-template-columns: 1fr;
  }

  .home-summary-right {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .site-main section {
    padding: 74px 0;
  }

  .hero-section {
    padding-top: 96px;
    padding-bottom: 78px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: min(360px, 100%);
  }

  .home-summary-body {
    gap: 20px;
  }

  .home-summary-note,
  .process-step p,
  .home-summary-services p {
    font-size: 0.95rem;
  }

  .selected-work-section .projects-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 8px 4px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .selected-work-section .projects-grid > .project-card {
    flex: 0 0 86%;
    min-width: 260px;
    scroll-snap-align: start;
  }

  .horizontal-scroll-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .horizontal-scroll-grid > * {
    flex: 0 0 82%;
    min-width: 260px;
    scroll-snap-align: start;
  }

  .social-proof .logo-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.8rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .social-proof .logo-row > img {
    flex: 0 0 auto;
    scroll-snap-align: start;
    max-height: 72px;
  }

  .testimonial-controls {
    flex-direction: column;
    align-items: center;
  }

  .contact-cta-section .btn-primary,
  .contact-cta-section .btn.btn-primary {
    width: min(360px, 100%);
  }
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .project-card,
  .step-item,
  .btn-view-project,
  .btn-visit-site,
  .social-proof .logo-row img,
  .hero-bg-orbit {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
