/* =========================================================
   SY Makine — Kurumsal B2B Web Sitesi
   Renk paleti logodan: lacivert / beyaz
   ========================================================= */

:root {
  --navy: #2b2e83;          /* Logo lacivert */
  --navy-dark: #20224f;
  --navy-deep: #181a3d;
  --navy-700: #353a9c;
  --accent: #4a8fe7;        /* Teknik mavi vurgu */
  --steel: #6b7280;
  --ink: #1f2230;
  --muted: #5b6072;
  --line: #e4e6ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-soft-2: #eef1f8;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(24, 26, 61, .08);
  --shadow: 0 10px 30px rgba(24, 26, 61, .10);
  --shadow-lg: 0 24px 60px rgba(24, 26, 61, .16);
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--navy-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-dark); color: #dfe2f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c2c6ea; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #8fb6f2; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  border-radius: 7px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav a.active { color: var(--navy); background: var(--bg-soft-2); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(24,26,61,.90) 0%, rgba(32,34,79,.86) 60%, rgba(24,26,61,.92) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(74,143,231,.28), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 110px 24px 120px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { font-size: 1.22rem; color: #d3d7f1; margin-bottom: 16px; font-weight: 600; }
.hero p { color: #c2c6ea; font-size: 1.06rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: center;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-badge strong { display: block; font-size: 1.7rem; color: #fff; }
.hero-badge span { font-size: .9rem; color: #aeb3df; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(115deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 70px 0 60px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #c2c6ea; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .88rem; color: #9aa0d6; margin-bottom: 18px; }
.breadcrumb a { color: #c2c6ea; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfd4ea; }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--bg-soft-2);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--navy);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 600; font-size: .92rem;
}

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 50%; font-size: .8rem;
}
.feature-list strong { color: var(--ink); display: block; }
.feature-list span { color: var(--muted); font-size: .96rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-size: 2.4rem; color: #fff; line-height: 1; }
.stat span { color: #b7bce6; font-size: .95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfd3f2; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft-2);
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(24,26,61,.85));
  color: #fff; font-weight: 600; font-size: .95rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .ic {
  flex: 0 0 auto; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--bg-soft-2); color: var(--navy);
  border-radius: 12px;
}
.info-list h4 { margin: 0 0 4px; font-size: 1rem; }
.info-list p, .info-list a { margin: 0; color: var(--muted); font-size: .98rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .98rem; color: var(--ink);
  background: var(--bg-soft); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,143,231,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--steel); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; display: none; }
.form-status.show { display: block; }

.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9bde6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 18px; }
.site-footer a { color: #b9bde6; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: #969bce; font-size: .95rem; max-width: 320px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer-contact li { display: flex; gap: 10px; }
.footer-bottom {
  margin-top: 48px; padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .87rem; color: #8388bd;
}

/* ---------- Section wave divider (tek katman) ----------
   Üst kenar = bir üstteki section rengi (--from)
   Alt kenar = bir alttaki section rengi (--to)
   Böylece olası subpiksel boşluk komşu renkle aynı olur, çizgi görünmez. */
.wave {
  --from: #ffffff;
  --to: #f4f6fb;
  display: block;
  height: 56px;
  margin: 0;
  background: var(--to);
  position: relative;
  pointer-events: none;
}
.wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--from);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0H1440V52C1160,12,980,12,720,46C460,80,280,80,0,46Z'/%3E%3C/svg%3E") top/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0H1440V52C1160,12,980,12,720,46C460,80,280,80,0,46Z'/%3E%3C/svg%3E") top/100% 100% no-repeat;
}
.wave--flip::before { transform: scaleX(-1); }
@media (max-width: 760px) { .wave { height: 38px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 14px 20px; }
  .main-nav a { padding: 14px 12px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .hero-inner { padding: 72px 22px 80px; }
}
