/* =============================================================
   Giriş Kartı — Ana Stil Dosyası
   Mobil öncelikli, minimal, modern
   ============================================================= */

/* ── CSS Değişkenleri ─────────────────────────────────────── */
:root {
  --clr-dark:    #0f2a44;
  --clr-blue:    #2f6fed;
  --clr-blue-d:  #1e57d4;
  --clr-gray-50: #f5f7fa;
  --clr-gray-100:#eef1f6;
  --clr-gray-200:#dde3ee;
  --clr-gray-400:#9aa5b8;
  --clr-gray-600:#5c6b84;
  --clr-text:    #1a2840;
  --clr-white:   #ffffff;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --container:  1200px;
  --gutter:     1.25rem;

  --nav-height: 68px;
  --sticky-bar: 64px; /* Mobile sticky CTA height */

  --transition: 200ms ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}

/* Mobil'de sticky CTA için body'ye padding ekle */
body.has-sticky-cta {
  padding-bottom: var(--sticky-bar);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Tipografi ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--clr-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { color: var(--clr-gray-600); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--clr-blue);
  color: var(--clr-white);
}
.btn-primary:hover {
  background: var(--clr-blue-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47,111,237,.35);
}

.btn-dark {
  background: var(--clr-dark);
  color: var(--clr-white);
}
.btn-dark:hover {
  background: #1a3d60;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-blue);
  border-color: var(--clr-blue);
}
.btn-outline:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}

.btn-white {
  background: var(--clr-white);
  color: var(--clr-dark);
}
.btn-white:hover {
  background: var(--clr-gray-100);
  transform: translateY(-1px);
}

.btn-green {
  background: #25d366;
  color: var(--clr-white);
}
.btn-green:hover {
  background: #1ab855;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-full { width: 100%; justify-content: center; }

.btn svg, .btn img { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Navigasyon ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-gray-100);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-logo img,
.navbar-logo svg {
  height: 38px;
  width: auto;
  max-width: 160px;
}
.navbar-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -0.03em;
}

.navbar-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-gray-600);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--clr-dark); background: var(--clr-gray-50); }

.navbar-cta {
  display: none;
  margin-left: auto;
}

.navbar-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
  transition: background var(--transition);
}
.navbar-burger:hover { background: var(--clr-gray-50); }
.navbar-burger span {
  display: block;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.open span:nth-child(2) { opacity: 0; }
.navbar-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.navbar-mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-gray-100);
  padding: 16px var(--gutter) 20px;
  box-shadow: var(--shadow-md);
  z-index: 199;
}
.navbar-mobile.open { display: block; }
.navbar-mobile .nav-link { display: block; padding: 11px 12px; border-radius: var(--radius-md); font-size: 1rem; }
.navbar-mobile .btn { margin-top: 12px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-dark) 0%, #163a5f 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(47,111,237,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  display: inline-block;
  background: rgba(47,111,237,.25);
  color: #93b8ff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--clr-white); margin-bottom: 16px; }
.hero-sub { color: rgba(255,255,255,.72); font-size: 1.0625rem; margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Section Başlık ───────────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--clr-gray-600); font-size: 1.0625rem; max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-blue);
  margin-top: 24px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 10px; }
.section-link svg { width: 18px; height: 18px; }

/* ── Ürün Kartları ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-gray-50);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.product-card-body h3 { font-size: 1.0625rem; margin-bottom: 8px; color: var(--clr-dark); }
.product-card-body p { font-size: 0.9rem; color: var(--clr-gray-600); flex: 1; }
.product-card-footer { padding: 0 20px 20px; }

/* ── Ürün Detay ───────────────────────────────────────────── */
.product-detail { padding: 48px 0 64px; }

.product-detail-grid {
  display: grid;
  gap: 40px;
}

.product-gallery {}
.product-gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--clr-gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--clr-gray-100);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--clr-gray-50);
  flex-shrink: 0;
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--clr-blue); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--clr-gray-400);
  margin-bottom: 16px;
}
.product-breadcrumb a { color: var(--clr-blue); }
.product-breadcrumb span { color: var(--clr-gray-400); }

.product-info h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 16px; }
.product-short-desc { font-size: 1.0625rem; color: var(--clr-gray-600); margin-bottom: 28px; line-height: 1.7; }

.product-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.product-desc-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-gray-400);
  margin-bottom: 12px;
  margin-top: 28px;
}
.product-desc {
  font-size: 1rem;
  color: var(--clr-gray-600);
  line-height: 1.8;
  background: var(--clr-gray-50);
  border-left: 3px solid var(--clr-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
}
.product-desc p { margin-bottom: 12px; }
.product-desc p:last-child { margin-bottom: 0; }
.product-desc ul { list-style: disc; padding-left: 20px; color: var(--clr-gray-600); }
.product-desc li { margin-bottom: 6px; }

/* ── Bölüm Arası ──────────────────────────────────────────── */
.section-bg { background: var(--clr-gray-50); }
.section-dark {
  background: var(--clr-dark);
  color: var(--clr-white);
}
.section-dark h2 { color: var(--clr-white); }
.section-dark p { color: rgba(255,255,255,.72); }

/* ── İletişim Sayfası ─────────────────────────────────────── */
.contact-page { padding: 60px 0 80px; }

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon.blue { background: rgba(47,111,237,.1); color: var(--clr-blue); }
.contact-icon.green { background: rgba(37,211,102,.1); color: #25d366; }
.contact-icon.dark { background: rgba(15,42,68,.1); color: var(--clr-dark); }
.contact-icon.pink { background: rgba(225,48,108,.1); color: #e1306c; }
.contact-icon svg { width: 24px; height: 24px; }

.contact-info h3 { font-size: 0.9375rem; margin-bottom: 4px; color: var(--clr-dark); }
.contact-info p, .contact-info a { font-size: 0.9375rem; color: var(--clr-gray-600); }
.contact-info a:hover { color: var(--clr-blue); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,.65);
  padding: 40px 0 32px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-logo { color: var(--clr-white); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--clr-white); }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,.4); margin-top: 8px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.2); color: var(--clr-white); }
.footer-social svg { width: 18px; height: 18px; }

/* ── Sticky Mobile CTA ────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-gray-100);
  padding: 10px var(--gutter);
  box-shadow: 0 -4px 24px rgba(0,0,0,.10);
}
.sticky-cta .btn { font-size: 1rem; padding: 14px 24px; border-radius: var(--radius-md); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--clr-gray-50);
  border-bottom: 1px solid var(--clr-gray-100);
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--clr-gray-400);
}
.breadcrumb a { color: var(--clr-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--clr-gray-200); }

/* ── Boş Durum ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--clr-gray-400);
}
.empty-state svg { width: 56px; height: 56px; opacity: .4; margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--clr-gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ── Fiyat Teklifi (placeholder) ─────────────────────────── */
.quote-placeholder {
  text-align: center;
  padding: 80px 20px;
}
.quote-placeholder .icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(47,111,237,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--clr-blue);
}
.quote-placeholder .icon-wrap svg { width: 36px; height: 36px; }
.quote-placeholder h1 { margin-bottom: 12px; }
.quote-placeholder p { font-size: 1.0625rem; max-width: 480px; margin: 0 auto 32px; }
.quote-placeholder .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── 404 Sayfası ──────────────────────────────────────────── */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: 6rem; font-weight: 900; color: var(--clr-gray-100); line-height: 1; margin-bottom: 16px; }
.error-page h1 { font-size: 1.75rem; margin-bottom: 12px; }
.error-page p { margin-bottom: 28px; }

/* ── Ortak Kart ───────────────────────────────────────────── */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ── FAQ Sayfası ──────────────────────────────────────────── */
.faq-page { padding: 60px 0 80px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
}
.faq-item.open { border-color: var(--clr-blue); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
  background: none;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--clr-gray-50); }
.faq-item.open .faq-question { background: rgba(47,111,237,.04); color: var(--clr-blue); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 300ms ease; color: var(--clr-gray-400); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--clr-blue); }
.faq-answer { border-top: 1px solid var(--clr-gray-100); }
.faq-answer-inner { padding: 20px 24px; font-size: 0.9375rem; color: var(--clr-gray-600); line-height: 1.75; }

/* ── Mobil: 2 kolon ürün grid ─────────────────────────────── */
@media (max-width: 639px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-body h3 { font-size: 0.875rem; }
  .product-card-body p { display: none; }
  .product-card-footer { padding: 0 12px 12px; }

  .footer-inner { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-links { justify-content: center; }
}

/* ── Masaüstü Responsive ──────────────────────────────────── */
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

@media (min-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
  .product-actions { flex-direction: column; }
}

@media (min-width: 1024px) {
  .navbar-nav    { display: flex; }
  .navbar-cta    { display: block; }
  .navbar-burger { display: none; }
  .sticky-cta    { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }

  .hero { padding: 80px 0 96px; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blue   { color: var(--clr-blue); }
.fw-700      { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
