/* main.fixed.css — doSimplify
 * Changes:
 * - Normalize primary color usage by mapping to Bootstrap's --bs-primary
 * - Remove duplicate .hero::after rule
 * - Add prefers-reduced-motion safeguards
 * - Fix selector targeting product card heading (h3, not h2)
 * - Minor a11y/UX polish and comments for maintainability
 */

/* ===== Base / Theme ===== */
:root{
  --brand-primary:#0d6efd;   /* Brand primary; aligned with Bootstrap 5 default */
  --brand-dark:#212529;
  --brand-muted:#6c757d;
  --brand-light:#f8f9fa;
  --radius:.5rem;
  --shadow-soft:0 .125rem .75rem rgba(0,0,0,.06);
  --section-y:3.5rem;        /* mobile */
  --section-y-lg:5rem;       /* desktop */

  /* Map brand to Bootstrap CSS var to keep utilities/components consistent */
  --bs-primary: var(--brand-primary);
}

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

body{
  color:var(--brand-dark);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Links */
a{ color:var(--bs-primary); text-decoration:none; transition:color .2s ease, opacity .2s ease; }
a:hover{ color:#0b5ed7; text-decoration:underline; }

/* Media */
img, svg{ max-width:100%; height:auto; display:block; }

/* Headings spacing (slightly tighter than Bootstrap defaults) */
h1,h2,h3,h4,h5,h6{ margin-bottom:.5rem; }

/* Sections (vertical rhythm) */
.section{ padding:var(--section-y) 0; }
@media (min-width:992px){ .section{ padding:var(--section-y-lg) 0; } }

/* Containers (helpers) */
.container-narrow{ max-width:860px !important; }
.container-wide{   max-width:1320px !important; }

/* Buttons & Forms */
.btn, .form-control, .form-select{ border-radius:var(--radius); }
.btn-primary{ background:var(--bs-primary); border-color:var(--bs-primary); }
.btn-outline-primary:hover{ color:#fff; background:var(--bs-primary); border-color:var(--bs-primary); }

/* Utilities */
.shadow-soft{ box-shadow:var(--shadow-soft) !important; }
.rounded-xl{ border-radius:1rem !important; }
.lh-tight{ line-height:1.2 !important; }

/* ===== Header & Navbar ===== */
.site-header .navbar{ padding-top:.75rem; padding-bottom:.75rem; }
.brand-title{ font-size:1.25rem; line-height:1; }
.brand-tagline{ color:var(--brand-muted); font-size:.875rem; }
.navbar-nav .nav-link{ font-weight:500; }
.navbar-nav .nav-link.active{ color:var(--bs-primary); }

/* Active nav link highlight */
.navbar .nav-link.active {
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* Keyboard focus ring */
.navbar .nav-link:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  border-radius: .25rem;
}

/* Global focus ring (fallback) */
:focus-visible{ outline:2px solid var(--brand-primary); outline-offset:2px; }

/* ===== Hero (static) ===== */
.hero{
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-cover{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Single gradient overlay (avoid duplicate declarations) */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35));
}
.hero .hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero .hero-content .lead{
  color: rgba(255,255,255,.9);
}

/* Small screens */
@media (max-width: 576px){
  .hero{ min-height: 60vh; }
  .hero .display-5{ font-size: 2rem; }
}

/* Move hero content lower on medium+ screens */
@media (min-width: 768px){
  .hero{
    align-items: flex-end;
    min-height: 75vh;
  }
  .hero .hero-content{
    padding-bottom: clamp(2rem, 8vh, 5rem);
  }
}

/* ===== Homepage sections ===== */

/* Feature / Service cards */
.feature-card, .service-card { transition: transform .15s ease; }
.feature-card:hover, .service-card:hover { transform: translateY(-2px); }

/* Product cards */
.product-card .ratio { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.product-card .card-body { padding-top: 1rem; }
/* Title spacing: actual markup uses <h3 class="h5"> */
.product-card .card-body h3{ margin-bottom:.35rem; }
.product-card .card-body p{ min-height:2.5rem; }

/* Steps */
.step { background:#fff; }
.step-badge{
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--bs-primary); color:#fff; font-weight:700;
}

/* ===== Footer ===== */
.site-footer{ background:#f8f9fa; }
.site-footer .link-secondary:hover{ text-decoration: underline; }

/* Sticky footer layout */
html, body{ height:100%; }
body{ display:flex; flex-direction:column; }
main{ flex:1 0 auto; }
.site-footer{ flex-shrink:0; }

/* ===== Misc page tweaks ===== */
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* HERO (full-bleed + text overlay) */
.hero { min-height: 520px; }
.hero picture { position: absolute; inset: 0; z-index: 0; display: block; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero .hero-content { color: #fff; }

/* Fixed navbar offset + anchor düzeltmesi */
:root { --nav-h: 64px; }                 /* mobile yükseklik */
@media (min-width: 992px){ :root { --nav-h: 72px; } }  /* lg ve üstü */

body{ padding-top: var(--nav-h); }       /* içerik navbarın altına insin */
section[id]{ scroll-margin-top: calc(var(--nav-h) + 8px); } /* #services vb. başlık gizlenmesin */

:root{
    --ds-bg-start:#ffffff;
    --ds-bg-mid:#f6faff;
    --ds-bg-end:#eef4ff;
    --ds-border:#d9e4f5;
    --ds-title:#0f172a;  /* heading */
    --ds-text:#334155;   /* body */
  }
  .ds-banner{
    background: linear-gradient(90deg,
      var(--ds-bg-start) 0%,
      var(--ds-bg-mid) 50%,
      var(--ds-bg-end) 100%);
    border:1px solid var(--ds-border);
    border-radius:.8rem;
    box-shadow:0 6px 20px rgba(15,23,42,.06);
  }
  .ds-banner .ds-wrap{ padding:2.75rem 2rem; }
  @media (max-width:767.98px){ .ds-banner .ds-wrap{ padding:2.25rem 1rem; } }
  .ds-title{ color:var(--ds-title); margin:0 0 .75rem 0; font-weight:700; }
  .ds-text{ color:var(--ds-text); margin:0; }

  /* ===== Section: Highlights ===== */
  /* Grid: lg=3, md=2, sm=1 (satır içinde yükseklikler en uzun karta eşitlenir) */
  .ds-3up{
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  @media (min-width:768px){ .ds-3up{ grid-template-columns: repeat(2,1fr); } }
  @media (min-width:992px){ .ds-3up{ grid-template-columns: repeat(3,1fr); } }

  /* Kart: Görsel arka plan katmanında, metin üst katmanda (zemin şeffaf) */
  .ds-feature-bg{
    position: relative;
    overflow: hidden;
    /* Soldaki görsel dilimi: layout’tan pay almıyor, sadece background */
    --slice: clamp(160px, 45%, 240px);   /* min 160px, tipik %45, max 240px */
    min-height: 240px;                   /* kısa metinde görsel küçük kalmasın */
  }

  /* Arka plan görseli (tam görünüm, kırpma yok) + sağa doğru yumuşak sönüm */
  .ds-feature-bg::before{
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--slice);
    background: var(--bg) left center / contain no-repeat;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to right, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
    pointer-events: none;                /* tıklamayı engelleme */
  }

  /* Metin alanı: şeffaf zemin; soldan görsel dilimi kadar iç boşluk */
  .ds-feature-bg .ds-body{
    padding: 1rem 0 1rem calc(var(--slice) + 1rem);
    background: transparent;
  }

  /* Daha geniş ekranlarda hafif daha yüksek taban */
  @media (min-width:1200px){
    .ds-feature-bg{ min-height: 260px; }
  }

  /* Mobil: görsel üst şerit, yükseklik esnek; metin alta kayar */
  @media (max-width:767.98px){
    .ds-feature-bg{
      --slice: 100%;
      min-height: auto;
    }
    .ds-feature-bg::before{
      width: 100%;
      height: clamp(150px, 34vw, 210px);
      background-position: left top;
      background-size: contain;
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
              mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    }
    .ds-feature-bg .ds-body{
      padding: calc(clamp(150px, 34vw, 210px) + .75rem) 0 0 0;
    }
  }

  /* ===== Section: About ===== */
  .about-h3{ margin:0 0 .5rem 0; font-size:1.125rem; font-weight:700; color:#0f172a; }
  .about-p{ margin:0; color:#334155; line-height:1.7; }
  .about-block + .about-block{ margin-top:1rem; }

  /* Social pills */
  .about-social{ list-style:none; padding:0; margin:.25rem 0 0 0;
    display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
  .about-social li{ margin:0; }
  .about-social a{
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.5rem .75rem; border-radius:999px; text-decoration:none;
    color:#0f172a; background:linear-gradient(90deg,#fff 0%,#f6faff 50%,#eef4ff 100%);
    border:1px solid #d9e4f5;
  }
  .ico{ width:16px; height:16px; border-radius:3px; display:inline-block; }
  .ico.insta{ background: radial-gradient(circle at 70% 30%, #ffd1a3 0%, #ffb1a3 35%, #ff88b7 60%, #8ab6ff 100%); }
  .ico.fb{ background:#1877f2; }
  .ico.yt{ background:#ff0033; clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%); position:relative; }
  .ico.yt::after{ content:""; position:absolute; left:40%; top:32%; width:0; height:0; border-left:8px solid #fff; border-top:6px solid transparent; border-bottom:6px solid transparent; }
  .ico.x{ background:#111; }
  .ico.in{ background:#0a66c2; }

  /* Steps with colored icons */
  .about-steps-icons{ list-style:none; padding:0; margin:.25rem 0 0 0;
    display:grid; gap:.75rem; grid-template-columns:1fr; color:#334155; }
  .about-steps-icons li{ display:flex; align-items:center; gap:.5rem; }
  .ico-circle{
    width:30px; height:30px; display:inline-grid; place-items:center; border-radius:999px;
    color:#0f172a; font-weight:700;
  }
  .c1{ background:#e6f3ff; border:1px solid #cfe7ff; }
  .c2{ background:#e9f8f1; border:1px solid #c9ecd9; }
  .c3{ background:#fff4e6; border:1px solid #ffe3bf; }
  .c4{ background:#eef4ff; border:1px solid #d9e4f5; }
  @media (min-width:768px){ .about-steps-icons{ grid-template-columns:repeat(2,1fr); } }
  @media (min-width:992px){ .about-steps-icons{ grid-template-columns:repeat(4,1fr); } }

  /* References soft callout */
  .about-callout{
    padding:1rem 1.25rem; border-radius:.8rem;
    background: linear-gradient(90deg, rgba(238,244,255,.75) 0%, rgba(246,250,255,.4) 100%);
    color:#1f2937; border:1px solid #d9e4f5;
  }

  /* Trust (kept from previous version) */
  .about-trust{
    display:flex; gap:.75rem; align-items:flex-start;
    padding:1rem 1.25rem; border-radius:.8rem; margin-top:1.25rem;
    background: linear-gradient(90deg, rgba(238,244,255,.75) 0%, rgba(246,250,255,.4) 100%);
    color:#1f2937; border:1px solid #d9e4f5;
  }
  .about-trust svg{ color:#1e40af; flex:0 0 22px; margin-top:.2rem; }
  .m-0{ margin:0; }

/* === Sosyal Medya Logoları — tek tip ve biraz büyük === */
.about-social-logos{
  list-style: none;          /* nokta kaldır */
  padding: 0;
  margin: .25rem 0 0 0;
  display: flex;             /* yatay diz */
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  --pill: 48px;              /* kapsayıcı boyutu */
  --icon: 30px;              /* logo boyutu */
}
.about-social-logos li{ margin: 0; }

.about-social-logos a{
  width: var(--pill);
  height: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5eaf3;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.about-social-logos a:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,23,42,.10);
  border-color: #cfd7e6;
}

/* PNG/SVG karışık; oran bozulmasın */
.about-social-logos img{
  width: var(--icon);
  height: auto;
  display: block;
  object-fit: contain;
}

/* X logosu beyazsa görünürlük: normalde siyah, hover’da beyaz */
.about-social-logos a.x img{ filter: invert(1); }
.about-social-logos a.x:hover{ background:#000; border-color:#000; }
.about-social-logos a.x:hover img{ filter: none; }

/* LinkedIn wordmark uzunsa biraz genişlet (opsiyonel) */
/* .about-social-logos a.in img{ width: 34px; } */

.page-link:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #0d6efd; /* ince mavi kenarlık */
}

/* Footer social icons */
.site-footer .social a { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; }
.site-footer .social a img { width:20px; height:20px; display:block; }

/* X ikonunuz beyaz SVG ise koyu görünmesi için tersle */
.site-footer .social a.x img { filter: invert(1); }

/* Footer social icons: kare alan, tek tip boyut */
.site-footer .social a{
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-footer .social a img{
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}

/* X ikonunuz beyazsa görünürlük için tersle (sadece X’e uygula) */
.site-footer .social a.x img{ filter: invert(1); }