/* Home page (/): rules only this page uses. Loaded after style.css through the pageCss prop of Layout. */

/* ==========================================================================
   Homepage Banner Hero
   ========================================================================== */
.homepage-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 135px 0 54px;
  overflow: hidden;
  color: #ffffff;
  background: #102333;
}

.homepage-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 18, 29, 0.88) 0%, rgba(5, 18, 29, 0.72) 48%, rgba(5, 18, 29, 0.18) 100%);
}

.homepage-banner-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.homepage-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.65s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.homepage-banner h1 {
  max-width: 100%;
  margin-bottom: 2rem;
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
}

.homepage-banner-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  width: min(100%, 1192px);
  margin-inline: auto;
}

.homepage-banner-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: min(100%, 1192px);
  margin-top: 1.25rem;
  margin-inline: auto;
}

/* ==========================================================================
   CTA (Call To Action Panel)
   ========================================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-lg);
  padding: 5rem 4rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .cta-section {
      padding: 3rem 1.5rem;
    }
}

.clearance-strip-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.clearance-ticker-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.clearance-ticker-track {
  transform: translateX(0);
}

.clearance-ticker-window:hover .clearance-ticker-track,
.clearance-ticker-window:focus-within .clearance-ticker-track {
  transition: transform 560ms ease;
}

.clearance-strip-link {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: #d97706;
  color: #ffffff;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.clearance-strip-link:hover {
  background: #b45309;
  color: #ffffff;
}

.clearance-strip-link > span:first-child {
  font-size: 0.88rem;
  font-weight: 700;
}

.clearance-strip-english {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
}

.clearance-strip-english span {
  color: rgba(255, 255, 255, 0.68);
}

@media (prefers-reduced-motion: reduce) {
  .clearance-ticker-track {
      transition: none;
    }
}

/* ==========================================================================
   Features / Why Us Grid
   ========================================================================== */
.why-us-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #0076e5);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px var(--shadow-hover);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-glow-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(var(--accent-blue-rgb), 0.18);
  transform: scale(1.1) rotate(4deg);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Enhanced CTA Section
   ========================================================================== */
.cta-outer-section {
  background: var(--bg-primary);
}

.cta-section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.cta-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #25d366, #1da851);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
  50%  { box-shadow: 0 14px 45px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

.cta-address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive: new sections
   ========================================================================== */
@media (max-width: 992px) {
  .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
  .clearance-strip-content {
      grid-template-columns: 1fr;
      gap: 0.45rem;
    }
  .clearance-strip-link {
      justify-self: center;
      min-height: 44px;
      padding: 0.35rem 0.8rem;
    }
  .cta-section {
      padding: 2.5rem 1.25rem;
    }
  .cta-title {
      font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
  /* Neden ÜÇ-EL: telefonda da iki sütun (kartlar kompakt) */
  .features-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
  .feature-card {
      padding: 1.1rem 0.8rem;
    }
  .feature-card .feature-icon {
      width: 44px;
      height: 44px;
      margin-bottom: 0.7rem;
    }
  .feature-card h3 {
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
    }
  .feature-card p {
      font-size: 0.8rem;
      line-height: 1.45;
    }
}

@media (max-width: 800px) {
  .homepage-banner {
      min-height: 0;
      padding: 96px 0 28px;
    }
  .homepage-banner::before {
      background: linear-gradient(90deg, rgba(5, 18, 29, 0.86), rgba(5, 18, 29, 0.56));
    }
  .homepage-banner h1 {
      margin-bottom: 1.1rem;
      font-size: 1.75rem;
    }
  /* Üst üç kutu ve alttaki Dlex/Opkon satırı aynı genişlikte ve hizalı (satırların toplam genişliği eşit) */
  .homepage-banner-brands,
    .homepage-banner-secondary {
      width: min(100%, 340px);
      margin-inline: auto;
    }
  .homepage-banner-brands {
      grid-template-columns: 1fr;
      gap: 0.65rem;
    }
  .homepage-banner-secondary {
      gap: 0.65rem;
      margin-top: 0.65rem;
    }
  .homepage-banner-secondary a {
      flex: 1 1 0;
      max-width: 180px;
      height: 76px;
      padding: 6px;
    }
}

@media (max-width: 768px) {
  .cta-outer-section.section { padding-bottom: 2rem; }
}
