/* ==========================================================================
   Gündüz Bilişim ve Danışmanlık — shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #336791;        /* PostgreSQL blue */
  --color-primary-dark: #1e3d5c;   /* logo blue, darkened for nav/footer */
  --color-primary-darker: #142943;
  --color-accent: #c8393a;         /* logo red, used sparingly */
  --color-accent-dark: #a51f24;
  --color-ink: #17222c;
  --color-muted: #56697a;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fa;
  --color-bg-soft-2: #eaf0f5;
  --color-border: #dde5ec;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(23, 34, 44, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 34, 44, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #eef2f6;
    --color-muted: #a9b7c4;
    --color-bg: #0f1720;
    --color-bg-soft: #151f2a;
    --color-bg-soft-2: #1b2733;
    --color-border: #263544;
    --color-primary: #5b9bc9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--color-primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar {
  background: var(--color-primary-darker);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #cfe0ee; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch a {
  padding: 2px 7px;
  border-radius: 4px;
  color: #cfe0ee;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lang-switch a[aria-current="true"] { background: rgba(255,255,255,0.16); color: #fff; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name span { display: block; font-weight: 400; font-size: 0.72rem; color: #b9cfe2; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #e8f0f7;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 6px;
  display: block;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .navbar { position: relative; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 70px 0;
}
.hero.hero-compact { padding: 46px 0; }
.hero h1 { font-size: 2.3rem; margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.15rem; color: #dbe8f2; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a9d4ff;
  margin-bottom: 10px;
  display: block;
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-header { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-header h2 { font-size: 1.9rem; }
.section-header p { color: var(--color-muted); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--color-bg-soft-2);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.96rem; }
.card p:last-child { margin-bottom: 0; }

.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; }
.card-link:hover h3 { color: var(--color-primary); }

/* ---------- service detail blocks ---------- */
.detail-block { padding: 44px 0; border-bottom: 1px solid var(--color-border); }
.detail-block:last-of-type { border-bottom: none; }
.detail-block h2 { font-size: 1.55rem; color: var(--color-primary-dark); }
.detail-block .kicker {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subservice-grid { margin-top: 8px; }
.subservice-grid .card h3 { color: var(--color-primary-dark); }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  font-style: italic;
  color: var(--color-ink);
}
.testimonial + .testimonial { margin-top: 18px; }

/* ---------- timeline (about page) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 4px 0 22px 30px;
  border-left: 2px solid var(--color-border);
  margin-left: 6px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}
.timeline .year { font-weight: 700; color: var(--color-primary-dark); margin-right: 8px; }

/* ---------- customer slider ---------- */
.customers-wrap { overflow: hidden; position: relative; }
.customers-wrap::before, .customers-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.customers-wrap::before { left: 0; background: linear-gradient(90deg, var(--color-bg), transparent); }
.customers-wrap::after { right: 0; background: linear-gradient(270deg, var(--color-bg), transparent); }
.customers-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: customers-scroll 32s linear infinite;
}
.customers-wrap:hover .customers-track { animation-play-state: paused; }
.customers-track img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.15s ease;
}
.customers-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes customers-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.customers-empty { color: var(--color-muted); text-align: center; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-bg);
  color: var(--color-ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(51, 103, 145, 0.18);
}
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1e7a3e; }
.form-status.err { color: var(--color-accent-dark); }

/* ---------- contact info / map ---------- */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-list .icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: var(--color-bg-soft-2); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--color-primary-darker); color: #cfe0ee; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfe0ee; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9fb7c9;
}

/* ---------- misc ---------- */
.badge {
  display: inline-block;
  background: var(--color-bg-soft-2);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin: 0 6px 6px 0;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.figure-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.figure-card img { margin: 0 auto; max-height: 160px; }
