/* Ayelinklux - Home Page (index.php) only styles.
   Global/shared styles (variables, reset, buttons, .section basics,
   feature cards, pricing cards, FAQ) now live in shared.css. */

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  position: relative;
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--off-white) 0%, rgba(27,46,94,0.02) 100%);
  overflow: hidden;
  z-index: 10;
  margin-top: 0;
}

.hero-bg-img {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244,123,32,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-bg-pattern {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: repeating-linear-gradient(
    45deg,
    rgba(244,123,32,0.06),
    rgba(244,123,32,0.06) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 0;
}
.hero-dots {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(27,46,94,0.12) 2px, transparent 2px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 { 
  font-size: 64px; 
  line-height: 1.1; 
  margin: 0 0 24px; 
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -1px;
}
.hero-content .highlight { 
  background: linear-gradient(135deg, var(--orange), #ff6b3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(244,123,32,0.15), rgba(244,123,32,0.05));
  color: var(--orange);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(244,123,32,0.2);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.hero-features span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-features i {
  color: #4cb050;
  font-size: 16px;
  background: rgba(76,175,80,0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Image Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(27, 46, 94, 0.15);
  padding: 12px;
  background: var(--white);
  box-sizing: border-box;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px;
  box-sizing: border-box;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 5;
}

.carousel-prev,
.carousel-next {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--orange);
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
}

.dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 5px;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}


.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  min-width: 0; /* grid items default to min-width:auto, which stops them
                   shrinking below the intrinsic width of their content
                   (the 320px phone mockup) - this was forcing the whole
                   .hero-inner grid column, and therefore the page, to
                   overflow horizontally on narrow screens */
  width: 100%;
}
.hero-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card {
  background: var(--off-white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,46,94,0.1);
  border-color: var(--orange);
}
.hero-card.accent {
  background: linear-gradient(135deg, rgba(244,123,32,0.1), rgba(244,123,32,0.05));
  border-color: var(--orange);
}
.hero-card-icon {
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 12px;
}
.hero-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.hero-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 20px;
}
.stat-pill {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
}
.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 42px; }
  .hero-carousel { max-width: 600px; }
  .carousel-container { aspect-ratio: 1 / 0.95; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 24px; }
  .hero-content h1 { font-size: 36px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .hero-bg-pattern,
  .hero-dots { display: none; }
  .hero-bg-img { width: 260px; height: 260px; top: 0; right: -20%; }
  .hero-carousel { max-width: 100%; gap: 16px; }
  .carousel-container { aspect-ratio: 1 / 0.96; padding: 10px; }
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .carousel-dots { gap: 6px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px; }
  .hero-badge { font-size: 12px; padding: 8px 16px; }
  .hero-subtitle { font-size: 16px; }
  .hero-features { gap: 16px 24px; }
  .hero-carousel { max-width: 100%; gap: 14px; }
  .carousel-container { aspect-ratio: 1 / 0.98; padding: 8px; }
  .carousel-controls {
    padding: 0 12px;
  }
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .carousel-dots {
    gap: 6px;
    padding: 0 12px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .dot.active {
    width: 24px;
  }
}

/* =========================================================
   WHAT WE DO / OVERVIEW SECTION
========================================================= */
#what-we-do {
  background: var(--white);
}
#what-we-do .section {
  padding: 100px 40px;
}
.what-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.what-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.what-left .section-label {
  text-align: left;
}
.what-left .section-title {
  text-align: left;
  line-height: 1.2;
}
.what-left .section-sub {
  text-align: left;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}
.what-img-block {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 20px 60px rgba(27,46,94,0.15);
}
.what-img-block img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.what-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27,46,94,0.8), transparent);
  color: var(--white);
  padding: 28px;
  font-weight: 600;
  font-size: 16px;
}

.what-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.what-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  align-items: flex-start;
  transition: all 0.3s;
}
.what-item > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.what-item:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(244,123,32,0.1);
  transform: translateY(-4px);
}
.what-icon {
  width: 52px;
  height: 52px;
  background: rgba(244,123,32,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.what-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.what-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .what-layout { grid-template-columns: 1fr; gap: 60px; align-items: start; }
  .what-img-block img { height: 300px; }
}

/* =========================================================
   CATEGORIES SECTION
========================================================= */
/* CATEGORIES SECTION REMOVED */

/* =========================================================
   PROBLEM & SOLUTION SECTION
========================================================= */
.problem-section {
  background: var(--white);
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.problem-solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  max-width: 1600px;
  margin: 0 auto;
}
.problem-solution-image {
  height: 100%;
}
.problem-solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(27,46,94,0.15);
}
.problem-solution-content {
  text-align: left;
}
.problem-solution-content .section-title {
  text-align: left;
  max-width: none;
  margin: 0 0 16px;
}
.problem-solution-content .section-subtitle {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}
.problem-solution-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.problem-box, .solution-box {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.box-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 28px;
  margin-bottom: 20px;
}
.problem-icon {
  background: rgba(244,123,32,0.15);
  color: var(--orange);
}
.solution-icon {
  background: rgba(76,175,80,0.15);
  color: #4cb050;
}
.problem-box h3, .solution-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.problem-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.problem-box li {
  padding: 8px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.problem-box li:last-child {
  border-bottom: none;
}
.solution-box p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.solution-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .problem-solution-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .problem-solution-image img {
    height: 320px;
  }
}
@media (max-width: 700px) {
  .problem-solution-boxes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .problem-solution-layout {
    gap: 24px;
  }
  .problem-solution-image img {
    height: 240px;
  }
  .problem-box, .solution-box {
    padding: 24px;
  }
}

/* =========================================================
   HOW IT WORKS SECTION
========================================================= */
.how-it-works-section {
  background: var(--white);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}
.how-step {
  background: var(--off-white);
  padding: 40px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
  text-align: center;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,46,94,0.1);
  border-color: var(--orange);
}
.step-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
}
.step-icon {
  font-size: 44px;
  color: var(--orange);
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.how-step p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.how-cta {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.how-visual {
  position: relative;
  height: 40px;
  margin: 40px 0 0;
}
.how-connect-line {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--orange), transparent);
  display: none;
}

/* =========================================================
   CATEGORIES SECTION
========================================================= */
.categories-section {
  background: var(--white);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.categories-view-all {
  text-align: center;
  margin-top: 40px;
}
.category-card {
  background: var(--white);
  padding: 28px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(244,123,32,0.1);
}
.cat-icon {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 14px;
}
.category-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 6px;
  flex-grow: 1;
}
.category-special-note {
  background: rgba(244,123,32,0.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-dark);
  text-align: left;
  line-height: 1.5;
}
.category-special-note i { color: var(--orange); margin-right: 4px; }
.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.category-link i { font-size: 11px; transition: transform 0.2s; }
.category-card:hover .category-link i { transform: translateX(3px); }
.coming-soon {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

@media (max-width: 1200px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .step-number { font-size: 18px; }
  .step-icon { font-size: 36px; }
}

/* =========================================================
   TESTIMONIALS SECTION
========================================================= */
.testimonials-section {
  background: var(--white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--off-white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,46,94,0.1);
  border-color: var(--orange);
}
.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.stars i {
  color: var(--orange);
  font-size: 14px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.testimonial-author h4 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.testimonial-author p {
  font-size: 13px;
  color: var(--text-light);
}

@media (max-width: 1000px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CTA BANNER SECTION
========================================================= */
.cta-outer {
  padding: 40px;
  background: var(--white);
}
/* .pricing-section and .faq-section already carry their own responsive
   left/right padding via .section - cancel the horizontal padding here
   so it isn't added twice, while keeping .cta-outer's vertical spacing. */
.cta-outer .section {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 768px) {
  .cta-outer { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .cta-outer { padding: 40px 16px; }
}
.cta-banner {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,154,69,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}
.cta-banner-content h2 {
  font-size: 42px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.cta-banner-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-banner { padding: 40px 24px; }
  .cta-banner-content h2 { font-size: 32px; }
  .cta-banner-actions { flex-direction: column; }
  .btn-white, .btn-outline-white { width: 100%; }
}

/* =========================================================
   HERO CAROUSEL - Category Switcher
========================================================= */
.shop-sample {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.shop-sample.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.category-indicators {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  z-index: 20;
  position: relative;
}

.category-indicators .indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-indicators .indicator:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.08);
}

.category-indicators .indicator.active {
  background: linear-gradient(135deg, var(--orange), #ff6b3b);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(244,123,32,0.3);
}