/**
 * Türk Texno Servis — müasir vahid dizayn sistemi (2026)
 * site-polish + mobile-polish üzərində; əsas tema ilə uyğun.
 */

:root {
  --tt-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tt-navy: #0b1220;
  --tt-navy-muted: #475569;
  --tt-muted: #64748b;
  --tt-accent: #1e4a8c;
  --tt-accent-deep: #0f2d52;
  --tt-blue: #2563eb;
  --tt-blue-soft: #dbeafe;
  --tt-surface: #ffffff;
  --tt-surface-2: #f4f8fc;
  --tt-surface-3: #e8f0fa;
  --tt-border: rgba(15, 23, 42, 0.08);
  --tt-border-strong: rgba(30, 64, 120, 0.14);
  --tt-radius-xs: 10px;
  --tt-radius: 16px;
  --tt-radius-lg: 24px;
  --tt-radius-xl: 32px;
  --tt-shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
  --tt-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --tt-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --tt-shadow-lg: 0 24px 56px rgba(30, 64, 120, 0.12);
  --tt-shadow-glow: 0 20px 50px rgba(37, 99, 235, 0.18);
  --tt-section-y: clamp(4rem, 8vw, 6rem);
  --tt-container: min(1140px, 100% - 2rem);
  --tt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tt-gradient-brand: linear-gradient(135deg, #1a4d8f 0%, #2563eb 55%, #3b82f6 100%);
  --tt-gradient-surface: linear-gradient(180deg, #f8fbff 0%, #eef4fb 48%, #f6f9fc 100%);
  --tt-gradient-hero: linear-gradient(145deg, #f5f9ff 0%, #e9f1fb 42%, #f8fafc 100%);
}

/* ——— Tipografiya ——— */
body,
.coolair-classic-swiper {
  font-family: var(--tt-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tt-navy);
  background: var(--tt-surface);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--tt-font);
  letter-spacing: -0.025em;
  color: var(--tt-navy);
}

p,
.lead {
  color: var(--tt-navy-muted);
}

.lead {
  font-size: clamp(1.02rem, 1.15vw, 1.125rem);
  line-height: 1.75;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Bölmə ritmi ——— */
#content > section:not(.ca-hero-split-wrap):not(.coolair-hero-wrap),
.coolair-legacy-root > section {
  padding-top: var(--tt-section-y);
  padding-bottom: var(--tt-section-y);
}

.ca-hero-split-wrap,
.coolair-hero-wrap {
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  background: var(--tt-gradient-hero);
  overflow: hidden;
}

section.ca-home-services.no-top {
  padding-top: clamp(2.75rem, 5vw, 4.25rem) !important;
  padding-bottom: var(--tt-section-y);
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 55%, #fff 100%);
  position: relative;
  z-index: 2;
}

.ca-home-services .ca-section-head {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.ca-home-services-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

@media (min-width: 992px) {
  .ca-home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .ca-home-services-grid > [class*='col-'] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
    margin: 0;
  }
}

.ca-section-head .lead {
  margin-top: 0.75rem;
}

/* Subtitle / eyebrow */
.subtitle,
.ca-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tt-accent) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 999px;
}

/* Yalnız tünd fonlu bölmələrdə ağ eyebrow */
section.bg-color-3 .subtitle.bg-color-2,
section.bg-color-3 .subtitle.bg-color-3,
.text-light .subtitle.bg-color-2,
.text-light .subtitle.bg-color-3,
.padding60.rounded-1 .subtitle {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.subtitle.ca-eyebrow-light,
.ca-home-services .subtitle {
  color: var(--tt-accent) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
}

.subtitle.s2 {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Başlıqlar */
.section-title,
section h2.section-title,
.ca-section-head h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.section-title span {
  background: var(--tt-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ——— Düymələr (sayt üzrə vahid) ——— */
.theme-btn,
a.theme-btn,
.btn-main,
a.btn-main {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem;
  height: auto !important;
  min-height: 50px !important;
  line-height: 1.25 !important;
  padding: 0.8125rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  box-sizing: border-box !important;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  overflow: visible;
  background: var(--tt-gradient-brand) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(30, 74, 140, 0.28);
  transition:
    transform 0.22s var(--tt-ease),
    box-shadow 0.22s var(--tt-ease),
    background 0.22s var(--tt-ease),
    color 0.22s var(--tt-ease),
    border-color 0.22s var(--tt-ease);
}

.theme-btn::before,
a.theme-btn::before,
.btn-main::before {
  display: none !important;
  content: none !important;
}

.theme-btn:hover,
a.theme-btn:hover,
.btn-main:hover,
a.btn-main:hover {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
  background: linear-gradient(135deg, #2563eb 0%, #1e4a8c 100%) !important;
}

.theme-btn.black-btn,
a.theme-btn.black-btn,
.btn-main.btn-line {
  background: #fff !important;
  color: var(--tt-navy) !important;
  border-color: rgba(30, 64, 120, 0.22) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.theme-btn.black-btn:hover,
a.theme-btn.black-btn:hover {
  transform: translateY(-2px);
  background: var(--tt-blue-soft) !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  color: var(--tt-accent-deep) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15) !important;
}

.coolair-classic-swiper .theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 50px !important;
  line-height: 1.25 !important;
}

/* Yan-yana düymə qrupları */
.tt-btn-row,
.aslider--btn,
.ca-hero-cta-row,
.ca-home-services-foot,
.service-detail-hero .d-flex:has(.theme-btn),
.portfolio-detail-hero .d-flex:has(.theme-btn),
.coolair-legacy-root .text-center:has(> .theme-btn + .theme-btn),
.coolair-legacy-root .text-center:has(> a.theme-btn + a.theme-btn),
.coolair-legacy-root p:has(> .theme-btn + .theme-btn),
.coolair-legacy-root .home-bottom-cta,
.coolair-legacy-root .anewsletter--btn {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.tt-btn-row > .theme-btn,
.tt-btn-row > a.theme-btn,
.aslider--btn > .theme-btn,
.aslider--btn > a.theme-btn,
.ca-hero-cta-row > .theme-btn,
.ca-hero-cta-row > a.theme-btn,
.coolair-legacy-root .text-center:has(> .theme-btn + .theme-btn) > .theme-btn,
.coolair-legacy-root .text-center:has(> a.theme-btn + a.theme-btn) > a.theme-btn,
.coolair-legacy-root p:has(> .theme-btn + .theme-btn) > .theme-btn,
.coolair-legacy-root .home-bottom-cta .theme-btn,
.coolair-legacy-root .home-bottom-cta a.theme-btn {
  margin: 0 !important;
}

@media (max-width: 575.98px) {
  .theme-btn,
  a.theme-btn {
    width: 100%;
    max-width: 22rem;
  }

  .tt-btn-row,
  .aslider--btn,
  .ca-hero-cta-row,
  .coolair-legacy-root .text-center:has(> .theme-btn + .theme-btn) {
    flex-direction: column;
    align-items: stretch !important;
  }

  .tt-btn-row .theme-btn,
  .aslider--btn .theme-btn,
  .ca-hero-cta-row .theme-btn {
    max-width: none;
    width: 100%;
  }
}

/* ——— Header / topbar ——— */
header.header-s1 #topbar {
  background: linear-gradient(90deg, #0c1f3d 0%, #163a6b 50%, #1e4a8c 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.header-s1 {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--tt-border) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), var(--tt-shadow-xs) !important;
}

header.header-s1 .topbar-widget a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
}

header.header-s1 #mainmenu > li > a.menu-item {
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  color: var(--tt-navy) !important;
  transition: color 0.2s ease;
}

header.header-s1 #mainmenu > li > a.menu-item:hover {
  color: var(--tt-blue) !important;
}

/* ——— Hero ——— */
.ca-hero-split__text .aslider--title {
  font-size: clamp(2rem, 5.5vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

.ca-hero-visual-frame {
  border-radius: var(--tt-radius-xl) !important;
  padding: 0.5rem !important;
  background: linear-gradient(160deg, #fff 0%, #edf4ff 100%) !important;
  border: 1px solid var(--tt-border-strong) !important;
  box-shadow: var(--tt-shadow-lg) !important;
}

.ca-hero-slide {
  border-radius: calc(var(--tt-radius-xl) - 8px) !important;
}

.ca-hero-swiper-ui .swiper-button-prev,
.ca-hero-swiper-ui .swiper-button-next {
  --swiper-navigation-color: #1e4a8c;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid rgba(30, 74, 140, 0.22) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12) !important;
  color: #1e4a8c !important;
}

.ca-hero-swiper-ui .swiper-button-prev::after,
.ca-hero-swiper-ui .swiper-button-next::after {
  display: none !important;
}

.ca-hero-swiper-ui .ca-hero-nav-icon {
  font-size: 1.65rem !important;
  font-weight: 700;
  color: #1e4a8c !important;
}

.ca-hero-swiper-fraction.swiper-pagination-fraction {
  font-weight: 700;
  color: #0f172a !important;
  background: #fff !important;
  border: 1px solid rgba(30, 74, 140, 0.18);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ca-hero-swiper-fraction .swiper-pagination-current {
  color: #2563eb !important;
  font-size: inherit !important;
}

/* Hero dekor ikonları split layoutda konteynerdən çıxmasın */
.ca-hero-split__text .hero__text--2 {
  overflow: hidden;
}

.ca-hero-split-wrap .hero__text--2 .hero__icon2,
.ca-hero-split-wrap .hero__text--2 .hero__icon3 {
  display: none;
}

.ca-hero-split-wrap .hero__text--2 .hero__icon1 {
  left: auto;
  right: 0.5rem;
  top: 0.25rem;
  opacity: 0.35;
  font-size: 2.5rem;
}

/* ——— Xidmət kartları (ana səhifə) ——— */
.ca-home-services .ca-home-service-card {
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-border);
  box-shadow: var(--tt-shadow-sm);
  background: var(--tt-surface);
  overflow: hidden;
  transition:
    transform 0.3s var(--tt-ease),
    box-shadow 0.3s var(--tt-ease),
    border-color 0.3s var(--tt-ease);
}

.ca-home-services .ca-home-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--tt-shadow-lg);
}

.ca-home-services .ca-home-service-image-wrap {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, var(--tt-blue-soft) 0%, #f0f7ff 100%);
}

.ca-home-services .ca-home-service-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ca-home-services-foot {
  margin-top: 2.5rem;
}

/* ——— Proses addımları ——— */
.ca-process-section {
  background: var(--tt-gradient-surface);
}

.ca-process-section .ca-process-card.de-step-s1 {
  --ca-process-bg: linear-gradient(145deg, #1a4d8f 0%, #2d6bc4 50%, #3b82f6 100%) !important;
  border-radius: var(--tt-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--tt-shadow) !important;
}

/* ——— Niyə biz ——— */
section.bg-color-3 {
  background: linear-gradient(180deg, #0f2d52 0%, #163a6b 55%, #1e4a8c 100%) !important;
  color: #e2e8f0;
}

section.bg-color-3 h2,
section.bg-color-3 h4 {
  color: #fff;
}

section.bg-color-3 p {
  color: rgba(226, 232, 240, 0.88);
}

section.bg-color-3 .pl-80 h4 {
  font-weight: 700;
}

section.bg-color-3 .icon_check {
  border-radius: 14px !important;
  box-shadow: var(--tt-shadow-sm);
}

/* ——— Jarallax CTA ——— */
.padding60.rounded-1 {
  border-radius: var(--tt-radius-xl) !important;
  overflow: hidden;
  border: 1px solid var(--tt-border-strong);
  box-shadow: var(--tt-shadow-lg);
}

.padding60.rounded-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 18, 32, 0.82) 0%, rgba(30, 74, 140, 0.55) 55%, rgba(37, 99, 235, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.padding60.rounded-1 .relative {
  z-index: 2;
}

.padding60.rounded-1 h2,
.padding60.rounded-1 .subtitle {
  color: #fff !important;
}

/* ——— Statistikalar ——— */
.de_count h3 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
}

.de_count h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.bg-color,
.bg-color-3.rounded-10 {
  border-radius: var(--tt-radius) !important;
  box-shadow: var(--tt-shadow);
}

/* ——— Rəylər ——— */
.ca-testimonials {
  background: var(--tt-surface-2);
}

.ca-testimonials .ca-testimonial-card {
  border-radius: var(--tt-radius-lg) !important;
  border: 1px solid var(--tt-border) !important;
  background: var(--tt-surface) !important;
  box-shadow: var(--tt-shadow-sm) !important;
  margin: 0.5rem;
}

.ca-testimonials .ca-testimonial-card blockquote {
  min-height: 0 !important;
  padding: 1.75rem 1.5rem 1.5rem !important;
}

.ca-testimonials .ca-review-avatar {
  background: var(--tt-gradient-brand) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
}

.ca-testimonial-carousel .owl-dots .owl-dot span {
  background: rgba(37, 99, 235, 0.25) !important;
}

.ca-testimonial-carousel .owl-dots .owl-dot.active span {
  background: var(--tt-blue) !important;
  transform: scale(1.15);
}

/* ——— FAQ ——— */
.ca-faq-section {
  background: var(--tt-surface);
}

.ca-faq-section .ca-faq-media-wrap {
  border-radius: var(--tt-radius-lg) !important;
  box-shadow: var(--tt-shadow) !important;
}

.ca-faq-section .ca-faq-accordion {
  background: var(--tt-surface) !important;
  border: 1px solid var(--tt-border) !important;
  border-radius: var(--tt-radius-lg) !important;
  padding: 0.5rem !important;
  box-shadow: var(--tt-shadow-sm) !important;
}

.ca-faq-section .accordion-section-title {
  font-weight: 600;
  border-radius: var(--tt-radius-xs);
  transition: background 0.2s ease;
}

.ca-faq-section .accordion-section-title.active,
.ca-faq-section .accordion-section-title:hover {
  background: var(--tt-surface-2);
}

/* ——— Portfolio kartları ——— */
.ca-portfolio-section,
.portfolio-projects-section {
  background: var(--tt-gradient-surface) !important;
}

.ca-portfolio-card,
.portfolio-list-card {
  border-radius: var(--tt-radius-lg) !important;
  border: 1px solid var(--tt-border) !important;
  box-shadow: var(--tt-shadow-sm) !important;
  transition:
    transform 0.3s var(--tt-ease),
    box-shadow 0.3s var(--tt-ease) !important;
}

.ca-portfolio-card:hover,
.portfolio-list-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tt-shadow-lg) !important;
}

.ca-portfolio-card__badge,
.portfolio-list-card__badge {
  backdrop-filter: blur(8px);
}

/* ——— Footer ——— */
.ca-footer-root .ca-site-footer {
  background: linear-gradient(180deg, #0a1628 0%, #0f1f38 100%) !important;
}

.ca-footer-brands-strip {
  background: var(--tt-surface) !important;
  border-bottom: 1px solid var(--tt-border);
}

/* ——— Köhnə / daxili səhifələr ——— */
.coolair-legacy-root {
  background: var(--tt-surface-2);
}

.grey-bg {
  background: var(--tt-gradient-surface) !important;
}

.portfolio-page-intro,
.services-page-intro,
.portfolio-scope,
.portfolio-process {
  background: transparent !important;
}

.portfolio-scope-card,
.coolair-legacy-root .white-bg.px-4 {
  border-radius: var(--tt-radius) !important;
  border: 1px solid var(--tt-border) !important;
  box-shadow: var(--tt-shadow-sm) !important;
  transition: transform 0.25s var(--tt-ease), box-shadow 0.25s var(--tt-ease);
}

.portfolio-scope-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-shadow) !important;
}

.coolair-legacy-root .ablog {
  border-radius: var(--tt-radius-lg) !important;
  border: 1px solid var(--tt-border) !important;
  box-shadow: var(--tt-shadow-sm) !important;
  overflow: hidden;
  background: var(--tt-surface) !important;
  transition: transform 0.28s var(--tt-ease), box-shadow 0.28s var(--tt-ease);
}

.coolair-legacy-root .ablog:hover {
  transform: translateY(-6px);
  box-shadow: var(--tt-shadow) !important;
}

.coolair-legacy-root .ablog__img img {
  border-radius: 0 !important;
}

.coolair-legacy-root .ablog__text--title {
  font-weight: 700 !important;
  color: var(--tt-navy) !important;
}

.service-detail-hero__media,
.portfolio-detail-hero__media {
  border-radius: var(--tt-radius-lg) !important;
  box-shadow: var(--tt-shadow) !important;
}

.breadcrumb {
  background: var(--tt-surface) !important;
  border: 1px solid var(--tt-border) !important;
  border-radius: var(--tt-radius-xs) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.875rem;
}

.contact-info .box-wraper {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--tt-shadow-xs);
}

.home-bottom-cta,
.anewsletter--bg {
  border-radius: var(--tt-radius-lg);
}

/* Owl / carousel */
.owl-carousel .owl-nav button {
  border-radius: 50% !important;
  background: var(--tt-surface) !important;
  box-shadow: var(--tt-shadow-sm) !important;
}

/* Spacer utilities — azaldılmış */
.spacer-single {
  height: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.spacer-double {
  height: clamp(2.5rem, 5vw, 4rem) !important;
}

/* Focus */
a:focus-visible,
button:focus-visible,
.theme-btn:focus-visible {
  outline: 2px solid var(--tt-blue);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
