/* Homepage-specific overrides (extracted from index.html) */

/* Ana sayfa — funfact metinleri (GSAP öncesi/sonrası okunaklı, tüm genişlikler) */
body.lg-home-page .funfact-area .funfact-item,
body.lg-home-page .funfact-area .funfact-item.go-visible {
  opacity: 1 !important;
}
body.lg-home-page .funfact-area .section-title,
body.lg-home-page .funfact-area .funfact-item .number,
body.lg-home-page .funfact-area .word-anim {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.lg-home-page .funfact-area .funfact-item .text {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Desktop ana sayfa: GSAP pin yerine statik hero + about (bozuk dev yazı / boş kutu önlenir) */
@media (min-width: 1200px) {
  body.lg-home-page .hero-area .big-text-wrapper {
    display: none !important;
  }

  body.lg-home-page .hero-area .hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 120px !important;
  }

  body.lg-home-page .about-area .about-area-inner,
  body.lg-home-page .about-area-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 5rem 0 6rem !important;
  }

  body.lg-home-page .about-area .pin-spacer {
    height: auto !important;
    padding: 0 !important;
    inset: auto !important;
  }

  body.lg-home-page .about-area .section-title-wrapper {
    display: block !important;
    margin-bottom: 2.5rem;
  }

  body.lg-home-page .about-area .section-title {
    font-size: clamp(3.5rem, 7vw, 7.5rem) !important;
    display: block !important;
    line-height: 0.9 !important;
    color: #ff6a3a !important;
    font-family: var(--font_thunder, "Thunder", sans-serif) !important;
  }

  body.lg-home-page .about-area .section-content {
    height: auto !important;
    min-height: 0 !important;
    padding: 2.5rem 1.5rem 3rem;
  }

  body.lg-home-page .about-area .section-content .text-wrapper,
  body.lg-home-page .about-area .section-content .btn-wrapper {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  body.lg-home-page .about-area .section-content .text {
    color: var(--primary, #111) !important;
  }
}
/* Header placeholder — prevents CLS while component fetch completes */
#component-header {
  min-height: 70px;
}
@media (min-width: 1200px) {
  #component-header {
    min-height: 100px;
  }
}
.lg-header-placeholder .header-area__inner {
  min-height: 70px;
}
@media (min-width: 1200px) {
  .lg-header-placeholder .header-area__inner {
    min-height: 100px;
  }
}
/* Mobile: system font = fast LCP; desktop keeps Instrument Sans */
@media (max-width: 767px) {
  body.font-heading-instrumentsans-medium h1,
  body.font-heading-instrumentsans-medium h2,
  body.font-heading-instrumentsans-medium h3,
  .hero-area .section-title,
  .hero-area .hero-subtitle {
    font-family:
      system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  }
  .fade-anim {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
@media (min-width: 768px) {
  .hero-area .section-title,
  .hero-area .hero-subtitle {
    font-family:
      "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
}
/* Hero title - slightly smaller on web and mobile */
.hero-area .section-title {
  font-size: 72px !important;
  line-height: 1.05 !important;
}
@media only screen and (max-width: 1919px) {
  .hero-area .section-title {
    font-size: 58px !important;
  }
}
@media only screen and (max-width: 1399px) {
  .hero-area .section-title {
    font-size: 50px !important;
  }
}
@media only screen and (max-width: 991px) {
  .hero-area .section-title {
    font-size: 50px !important;
  }
}
@media only screen and (max-width: 575px) {
  .hero-area .section-title {
    font-size: 40px !important;
  }
}
/* Hero subtitle - ana başlıktan net ayrım, özellikle mobilde */
.hero-area .hero-tagline,
.hero-area .hero-subtitle {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: #000000;
  margin: 1rem 0 0;
  letter-spacing: -0.01em;
}
@media (min-width: 992px) {
  .hero-area .hero-tagline,
  .hero-area .hero-subtitle {
    font-size: clamp(24px, 1.8vw, 30px);
    margin-top: 1.25rem;
    color: #000000;
  }
}
@media (max-width: 991px) {
  .hero-area .hero-tagline,
  .hero-area .hero-subtitle {
    font-size: clamp(18px, 3.5vw, 22px);
    margin-top: 1.25rem;
    color: #000000;
    font-weight: 400;
  }
}
@media (max-width: 575px) {
  .hero-area .hero-tagline,
  .hero-area .hero-subtitle {
    font-size: 25px;
    line-height: 1.5;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #000000;
    font-weight: 400;
  }
}
/* Desktop only - center the HOT badge */
@media (min-width: 992px) {
  .hot-badge {
    padding-left: 4rem;
    text-align: center;
  }
}
/* Industries section - two columns, plain text, left-aligned, centered */
.industries-area {
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.industries-area .industries-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.industries-area .section-header {
  margin-bottom: 1.75rem;
}
.industries-area .section-title {
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.3;
}
.industries-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;
  text-align: left;
}
.industries-tags-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.industries-tags-col--left,
.industries-tags-col--right {
  align-items: flex-start;
  text-align: left;
}
/* Desktop: paragraf gibi okunaklı – büyük punto, bol satır aralığı */
@media (min-width: 992px) {
  .industries-area .industries-card {
    max-width: 1000px;
    padding: 4rem 4.5rem;
    border-radius: 20px;
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.06),
      0 2px 12px rgba(0, 0, 0, 0.03);
  }
  .industries-area .section-header {
    margin-bottom: 2.5rem;
  }
  .industries-area .section-title {
    font-size: clamp(32px, 3.8vw, 44px) !important;
    line-height: 1.25;
    color: #111;
  }
  .industries-area .subtitle-wrapper .section-subtitle {
    font-size: 0.8rem !important;
    letter-spacing: 0.2em !important;
  }
  .industries-tags {
    gap: 0.85rem 3rem;
  }
  .industries-tags-col {
    gap: 0.75rem;
  }
  .industry-tag {
    font-size: 1.25rem;
    line-height: 1.6;
    padding: 0.6rem 1rem 0.6rem 1rem;
    color: #111;
    font-weight: 600;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition:
      border-color 0.2s,
      box-shadow 0.2s,
      background 0.2s;
  }
  .industry-tag:hover {
    border-color: var(--theme, #ff6a3a);
    background: #fff;
    box-shadow: 0 2px 12px rgba(255, 106, 58, 0.12);
  }
  .industry-tag::before {
    width: 8px;
    height: 8px;
  }
}
@media (max-width: 576px) {
  .industries-area .industries-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }
  .industries-tags {
    grid-template-columns: 1fr;
    gap: 0.4rem 0;
  }
  .industries-tags-col {
    gap: 0.4rem;
  }
  .industries-tags-col--right {
    margin-top: 0;
  }
}
.industry-tag {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  color: #111;
  line-height: 1.5;
  padding: 0.5rem 0.85rem;
  position: relative;
  padding-left: 0.85rem;
  font-weight: 600;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.industry-tag:hover {
  border-color: var(--theme, #ff6a3a);
  background: #fff;
  box-shadow: 0 2px 10px rgba(255, 106, 58, 0.1);
}
.industry-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme, #ff6a3a);
  flex-shrink: 0;
}
/* Client area - smaller title text */
.client-area .section-title-wrapper .section-title {
  font-size: 1.9rem !important;
  line-height: 1.6;
  font-weight: 500;
}
/* Services & Solutions sections - readable, responsive */
.services-solutions-section .section-title {
  font-size: clamp(38px, 4vw, 68px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}
.services-solutions-section .solution-block {
  margin-bottom: 3rem;
}
.services-solutions-section .solution-block:last-child {
  margin-bottom: 0;
}
.services-solutions-section .solution-block h2.solution-title {
  font-family: var(--font_instrumentsans, inherit);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.services-solutions-section .solution-block h3.solution-subtitle {
  font-family: var(--font_instrumentsans, inherit);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.services-solutions-section .solution-block .text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #333;
  margin-bottom: 0;
}
.services-solutions-section .solution-block .text + .text {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .services-solutions-section .solution-block {
    margin-bottom: 2.25rem;
  }
}
/* How We Have Teamed Up + Ready to Scale section */
.team-cta-section .section-header .section-title {
  letter-spacing: -0.02em;
  color: #111;
}
/* Aynı tipografi: Our Services and Solutions ile aynı */
.team-cta-section .solution-block h2.solution-title {
  font-family: var(--font_instrumentsans, inherit);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.team-cta-section .solution-block h3.solution-subtitle,
.team-cta-section .cta-card h3.solution-subtitle {
  font-family: var(--font_instrumentsans, inherit);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.team-cta-section .solution-block h3.solution-subtitle:first-child,
.team-cta-section .cta-card h3.solution-subtitle:first-child {
  margin-top: 0;
}
.team-cta-section .solution-block .text,
.team-cta-section .cta-card .text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #333;
  margin-bottom: 0;
}
.team-cta-section .solution-block .text + .text,
.team-cta-section .cta-card .text + .text {
  margin-top: 1rem;
}
.team-cta-section .solution-block {
  margin-bottom: 3rem;
}
.team-cta-section .solution-block:last-of-type {
  margin-bottom: 0;
}
.team-cta-section .cta-card {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  margin-top: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.team-cta-section .cta-card .audit-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}
.team-cta-section .cta-card .audit-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #333;
}
.team-cta-section .cta-card .audit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--theme, #ff6a3a);
  font-weight: 700;
}
.team-cta-section .cta-card .audit-note {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #333;
  margin-top: 1.25rem;
  font-style: italic;
}
.team-cta-section .cta-card .btn-wrapper {
  margin-top: 1.5rem;
}
.team-cta-section .cta-tagline {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #333;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile layout fixes (no GSAP — visibility & spacing)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  /* 1) Hero: fixed header altında gereksiz boşluk */
  .body-digital-agency .hero-area .hero-area-inner.section-spacing-top {
    padding-top: 1.25rem !important;
  }
  .hero-area .award-wrapper {
    display: none;
  }
  .hero-area .hero-content {
    margin-top: 0 !important;
  }

  /* 2) LeadGulls Agency — 100vh pin alanı mobilde kırılıyordu */
  .about-area-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 3rem 0 3.5rem;
  }
  .about-area .section-title {
    font-size: clamp(2.25rem, 11vw, 3.5rem) !important;
    display: block;
    line-height: 1.05;
    word-break: break-word;
    color: #ff6a3a !important;
  }
  .about-area .section-content .text-wrapper,
  .about-area .section-content .btn-wrapper {
    opacity: 1 !important;
    transform: none !important;
  }

  /* 3) Funfact — mobil çizgi düzeni (renk/opacity üstte lg-home-page ile) */
  .funfact-area .funfact-area-inner {
    display: block;
  }
  .funfact-area .funfact-wrapper-box .line-1,
  .funfact-area .funfact-wrapper-box .line-2,
  .funfact-area .funfact-wrapper-box .line-3,
  .funfact-area .funfact-wrapper-box .line-4 {
    display: none !important;
  }

  /* 4) Client area — fizik kapsülleri metnin üstüne binmesin (statik etiket bulutu) */
  .client-area .section-title.word-anim,
  .client-area .fade-anim {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .client-area .section-content {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
  }
  .client-area .section-content .section-title {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
    line-height: 1.35;
  }
  .client-area .client-capsule-wrapper-box {
    position: relative !important;
    z-index: 1;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
  }
  .client-area .client-capsule-wrapper {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding: 0.75rem 0 1.25rem !important;
    pointer-events: auto !important;
  }
  .client-area .client-capsule-wrapper > * {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  .client-area .client-box {
    position: static !important;
    transform: none !important;
    translate: none !important;
    width: auto !important;
    min-width: 9.5rem;
    max-width: 100%;
    height: auto !important;
    min-height: 2.75rem;
    padding: 0.65rem 1rem !important;
    font-size: 0.75rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .client-area .lines-wrapper {
    display: none !important;
  }
}

/* Mobilde throwable devre dışı — JS class ile ek güvence */
.client-area .lg-client-static .client-capsule-wrapper-box,
.client-area .lg-client-static .client-capsule-wrapper,
.client-area .lg-client-static .client-capsule-wrapper > * {
  position: relative !important;
  transform: none !important;
}

@media (max-width: 1199px) {
  /* 5) Sayfa sonu görseli — parallax olmadan oran koru */
  .image-wrapper.parallax-view {
    line-height: 0;
    overflow: hidden;
  }
  .image-wrapper.parallax-view img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .hero-area .section-spacing-bottom {
    padding-bottom: 2.5rem !important;
  }
  .funfact-area .funfact-item .number {
    font-size: clamp(3rem, 14vw, 5rem) !important;
  }
  /* Below-fold: skip layout/paint until near viewport */
  .services-solutions-section,
  .funfact-area,
  .client-area,
  .team-cta-section,
  .work-area,
  .ss-header,
  .ss-block {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }
}
