/* Dexter Brand System — modern, local, professional */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --dx-red: #e11d37;
  --dx-red-dark: #be1230;
  --dx-ink: #0f172a;
  --dx-ink-soft: #334155;
  --dx-muted: #64748b;
  --dx-line: #e2e8f0;
  --dx-bg: #f1f5f9;
  --dx-bg-warm: #f8fafc;
  --dx-white: #ffffff;
  --dx-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --dx-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --dx-radius: 1.25rem;
  --dx-radius-sm: 0.85rem;
  --dx-font-display: "Sora", system-ui, sans-serif;
  --dx-font-body: "Figtree", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--dx-font-body) !important;
  color: var(--dx-ink);
  background: var(--dx-bg-warm);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-title, .section-title, .navbar-brand,
.project-title, .display-4 {
  font-family: var(--dx-font-display) !important;
  letter-spacing: -0.03em;
}

/* ——— Navbar polish ——— */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: none !important;
}

.navbar-nav .nav-link {
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: var(--dx-ink) !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.9rem !important;
  transition: background .2s ease, color .2s ease !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--dx-red) !important;
  background: rgba(225, 29, 55, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

.navbar .btn-primary {
  background: var(--dx-red) !important;
  border-color: var(--dx-red) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: none !important;
}

.navbar .btn-primary:hover {
  background: var(--dx-red-dark) !important;
  border-color: var(--dx-red-dark) !important;
  color: #fff !important;
}

.dropdown-menu {
  border: 1px solid var(--dx-line) !important;
  box-shadow: var(--dx-shadow) !important;
  border-radius: 1rem !important;
  padding: 0.5rem !important;
}

.dropdown-item {
  border-radius: 0.65rem !important;
  font-weight: 500;
  padding: 0.65rem 1rem !important;
}

.dropdown-item:hover {
  background: rgba(225, 29, 55, 0.08) !important;
  color: var(--dx-red) !important;
  transform: none !important;
}

/* ——— Page shell (inner pages) ——— */
.dx-page {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.dx-page-hero {
  position: relative;
  padding: 3.75rem 0 3rem;
  margin-bottom: 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at -10% -20%, rgba(225,29,55,0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(15,23,42,0.07), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--dx-line);
}

.dx-page-hero::after {
  content: "";
  position: absolute;
  right: -4%;
  top: 10%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, rgba(225,29,55,0.18), transparent 55%),
    linear-gradient(145deg, rgba(15,23,42,0.06), rgba(225,29,55,0.08));
  pointer-events: none;
  z-index: 0;
}

.dx-page-hero .container {
  position: relative;
  z-index: 1;
}

/* Bootstrap primary override — Dexter kırmızısı */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #e11d37 !important;
  border-color: #e11d37 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background-color: #be1230 !important;
  border-color: #be1230 !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: #e11d37 !important;
  border-color: #e11d37 !important;
}

.btn-outline-primary:hover {
  background: #e11d37 !important;
  color: #fff !important;
}

.dx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dx-red);
  margin-bottom: 1rem;
}

.dx-page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dx-ink);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.dx-page-hero .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--dx-ink-soft);
  max-width: 42rem;
  margin-bottom: 0;
}

.dx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.dx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1.5px solid transparent;
}

.dx-btn:hover { transform: translateY(-2px); }

.dx-btn-primary {
  background: var(--dx-red);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(225, 29, 55, 0.28);
}

.dx-btn-primary:hover {
  background: var(--dx-red-dark);
  color: #fff !important;
}

.dx-btn-ghost {
  background: #fff;
  color: var(--dx-ink) !important;
  border-color: var(--dx-line);
}

.dx-btn-ghost:hover {
  border-color: var(--dx-ink);
  color: var(--dx-ink) !important;
}

.dx-btn-wa {
  background: #16a34a;
  color: #fff !important;
}

.dx-btn-wa:hover { background: #15803d; color: #fff !important; }

/* Feature / solution tiles */
.dx-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.dx-tile {
  grid-column: span 12;
  background: #fff;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  padding: 1.5rem 1.4rem;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

@media (min-width: 576px) {
  .dx-tile.span-6 { grid-column: span 6; }
}
@media (min-width: 992px) {
  .dx-tile.span-3 { grid-column: span 3; }
  .dx-tile.span-4 { grid-column: span 4; }
  .dx-tile.span-6 { grid-column: span 6; }
}

a.dx-tile:hover,
.dx-tile:hover {
  border-color: rgba(225, 29, 55, 0.35);
  box-shadow: var(--dx-shadow);
  transform: translateY(-3px);
}

.dx-tile-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 29, 55, 0.08);
  color: var(--dx-red);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.dx-tile h2,
.dx-tile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--dx-ink);
}

.dx-tile p {
  margin: 0;
  color: var(--dx-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dx-tile .dx-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--dx-red);
  font-weight: 650;
  font-size: 0.9rem;
}

.dx-panel {
  background: #fff;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  padding: 1.75rem;
  box-shadow: var(--dx-shadow);
}

.dx-panel-dark {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border: none;
  border-radius: var(--dx-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dx-panel-dark::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(225,29,55,0.35), transparent 65%);
  pointer-events: none;
}

.dx-panel-dark h2,
.dx-panel-dark h3 { color: #fff; }

.dx-panel-dark p { color: #cbd5e1; }

.dx-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--dx-radius);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(225,29,55,0.25), transparent 45%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.dx-cta h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dx-cta p {
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.65;
}

.dx-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(225, 29, 55, 0.1);
  color: var(--dx-red);
}

.dx-section-label {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
  color: var(--dx-ink);
}

.dx-section-sub {
  color: var(--dx-muted);
  margin-bottom: 1.5rem;
}

/* Motion */
@keyframes dx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.dx-page-hero > .container > * {
  animation: dx-rise 0.7s ease both;
}

.dx-page-hero > .container > *:nth-child(2) { animation-delay: 0.08s; }
.dx-page-hero > .container > *:nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .dx-page-hero > .container > * { animation: none; }
  .dx-btn:hover, a.dx-tile:hover { transform: none; }
}

/* Mobil sticky CTA — agresif popup değil, sabit erişim çubuğu */
.dx-mobile-cta {
  display: none;
}
@media (max-width: 991.98px) {
  .dx-mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
  }
  .dx-mobile-cta a {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 0.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
  }
  .dx-mobile-cta .dx-m-wa { background: #16a34a; color: #fff; }
  .dx-mobile-cta .dx-m-tel { background: #0f172a; color: #fff; }
  .dx-mobile-cta .dx-m-teklif { background: #f73246; color: #fff; }
  body { padding-bottom: 72px; }
}
