/* ==========================================================================
   BS Otomasyon - site stilleri
   Renkleri ve görselleri değiştirmek için sadece aşağıdaki :root bloğunu düzenlemeniz yeterli.
   Kendi fotoğrafınızı kullanmak için: dosyayı assets/img klasörüne koyun ve ilgili
   --img-... satırındaki dosya adını değiştirin (ör. "../img/hero-gemi.jpg").
   ========================================================================== */

:root {
  /* Logodaki lacivert: #06243c */
  --navy-900: #06243c;
  --navy-800: #0a2e4c;
  --navy-700: #123f63;
  --accent: #06243c;        /* açık zeminde vurgu (logo laciverti) */
  --accent-hover: #123f63;
  --accent-mid: #3f6a8f;    /* koyu zeminde onay ikonları, odak çerçevesi */
  --accent-light: #a9c3da;  /* koyu zeminde vurgu yazıları ve ikonlar */
  --accent-soft: #e7eef4;   /* ikon arka planları */
  --ink: #0e1b2e;
  --muted: #5a6b82;
  --line: #e3e8ef;
  --bg-alt: #f4f7fb;
  --white: #ffffff;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(8, 26, 51, 0.08);
  --header-h: 76px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --img-hero-marine: url("../img/hero-gemi.jpg");
  --img-hero-industry: url("../img/hero-tesis.jpg");
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-check { width: 20px; height: 20px; flex: none; color: var(--accent); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 2px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { background: var(--accent-soft); }

/* ---------- Üst menü ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 38px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: block; padding: 8px 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--navy-900); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang__btn {
  border: 0; background: var(--white); padding: 6px 12px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lang__btn.is-active { background: var(--navy-900); color: var(--white); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 560px; display: flex; align-items: center;
  background: var(--navy-900); color: var(--white);
}
.hero__bg, .hero__shade, .hero__divider { position: absolute; inset: 0; z-index: -1; }
.hero__bg { background-size: cover; background-position: center; }
/* Gemi sol tarafı (0–63%), tesis sağ tarafı (47%–100%) kaplar; çapraz çizgi tesis katmanının kırpmasıyla oluşur */
.hero__bg--marine { right: 37%; background-image: var(--img-hero-marine), linear-gradient(160deg, #0b2347, #081a33); background-position: center 55%; }
.hero__bg--industry {
  background-image: var(--img-hero-industry), linear-gradient(160deg, #3a2a3c, #c56a32);
  left: 47%;
  clip-path: polygon(30.2% 0, 100% 0, 100% 100%, 11.3% 100%);
}
.hero__divider {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(169,195,218,.6));
  clip-path: polygon(62.7% 0, 63% 0, 53% 100%, 52.7% 100%);
}
.hero__shade {
  background:
    linear-gradient(90deg, rgba(4,22,38,.94) 0%, rgba(4,22,38,.82) 30%, rgba(4,22,38,.25) 55%, rgba(4,22,38,0) 68%, rgba(4,22,38,.55) 82%, rgba(4,22,38,.85) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
  padding-top: 72px; padding-bottom: 72px;
}
.hero__content { max-width: 760px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 3px 0;
  border-bottom: 1px solid rgba(169,195,218,.6);
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-light);
}
.hero__title { font-size: clamp(32px, 3.9vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.hero__title span { color: var(--accent-light); }
.hero__text { margin-top: 22px; max-width: 540px; font-size: 18px; color: rgba(255,255,255,.88); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__buttons .btn { min-height: 50px; }

.hero__list { display: flex; flex-direction: column; gap: 34px; padding-left: 8px; }
.hero__list li { text-shadow: 0 1px 6px rgba(0,0,0,.6); display: flex; align-items: center; gap: 18px; font-size: 14.5px; line-height: 1.35; color: rgba(255,255,255,.92); }
.hero__list .icon { width: 38px; height: 38px; stroke-width: 1.4; color: #d3e0eb; }

/* ---------- Öne çıkanlar ---------- */
.features { border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 28px 16px; font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--navy-900);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature .icon { width: 38px; height: 38px; color: var(--accent); stroke-width: 1.7; }

/* ---------- İki ana alan ---------- */
.areas { padding: 48px 0 24px; }
.areas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.area {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  min-height: 260px; padding: 32px; border-radius: var(--radius);
  color: var(--white); background-color: var(--navy-800);
  background-size: cover; background-position: center;
}
.area::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,30,50,.96) 0%, rgba(5,30,50,.85) 45%, rgba(5,30,50,.45) 100%);
}
.area .icon-check { color: var(--accent-mid); }
.area--marine { background-image: var(--img-hero-marine); }
.area--industry { background-image: var(--img-hero-industry); }
.area__body { max-width: 300px; align-self: stretch; display: flex; flex-direction: column; }
.area__title { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 700; }
.area__title .icon { width: 44px; height: 44px; color: #d3e0eb; stroke-width: 1.4; }
.area__body p { margin: 18px 0 24px; font-size: 15px; color: rgba(255,255,255,.88); }
.area__body .btn { margin-top: auto; align-self: flex-start; min-height: 42px; font-size: 14px; }
.checklist { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.checklist li { display: flex; align-items: center; gap: 10px; }

/* ---------- Bölümler ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.kicker {
  margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.kicker--light { color: var(--accent-light); }
.section-title { position: relative; padding-bottom: 16px; margin-bottom: 36px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-lead { max-width: 640px; margin: -16px 0 32px; color: var(--muted); font-size: 17px; }

/* Hakkımızda */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about__text p + p { margin-top: 16px; }
.about__text p { color: #34445a; font-size: 16.5px; }
.about__points {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
}
.about__points li { display: flex; gap: 12px; font-weight: 600; color: var(--navy-900); }
.about__points .icon-check { margin-top: 3px; }

/* Hizmetler */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 28px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfdcf0; }
.service .icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); stroke-width: 1.7;
}
.service h3 { margin: 20px 0 10px; font-size: 18px; color: var(--navy-900); }
.service p { font-size: 15px; color: var(--muted); }

/* Projeler */
/* 3'lü sıra; son satırdaki kartlar ortalanır */
.projects { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.projects > .project { flex: 0 1 calc((100% - 48px) / 3); }
.project {
  overflow: hidden; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(5,30,50,.04);
  transition: box-shadow .2s, transform .2s;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe6ef; }
.project__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
.project h3 { font-size: 16.5px; color: var(--navy-900); }
.project p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.project__link {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--line); color: var(--navy-900); transition: background-color .2s, color .2s;
}
.project__link:hover { background: var(--navy-900); color: var(--white); }
.project__link .icon { width: 16px; height: 16px; }

/* Rakamlar */
.stats { background: var(--navy-900); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 40px 16px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat .icon { width: 40px; height: 40px; color: var(--accent-light); stroke-width: 1.6; }
.stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: 14.5px; color: rgba(255,255,255,.75); }

/* Sektörler */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sectors li {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid var(--line); font-weight: 600; color: var(--navy-900);
}
.sectors .icon { width: 28px; height: 28px; color: var(--accent); }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.contact__info { padding: 48px 40px; background: var(--navy-900); color: var(--white); }
.contact__info h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.contact__info > p { margin-top: 14px; color: rgba(255,255,255,.8); }
.contact__list { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--accent-light); }
.contact__list a:hover { color: var(--accent-light); }

.form { display: flex; flex-direction: column; gap: 16px; padding: 44px 40px; background: var(--white); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3dbe6; border-radius: 8px;
  background: var(--white); font-weight: 400; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,36,60,.15); }
.field .is-invalid, .field input:user-invalid, .field textarea:user-invalid { border-color: #d93636; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }
.form__submit { align-self: flex-start; min-width: 160px; }
.form__submit[disabled] { opacity: .6; cursor: wait; }
.form__status { min-height: 1.4em; font-size: 14.5px; font-weight: 600; }
.form__status.is-ok { color: #13804b; }
.form__status.is-error { color: #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Alt bilgi */
.footer { background: #041a2c; color: rgba(255,255,255,.75); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 380px; }
.footer h3 { margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--white); }
.footer__legal { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.55); }
.footer__legal p + p { margin-top: 6px; }

/* ---------- Duyarlı (mobil / tablet) ---------- */
/* Logo + menü tek satıra sığmadığında menü hamburger'e döner */
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__link::after { display: none; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1180px) {
  .projects > .project { flex-basis: calc((100% - 24px) / 2); }
  .hero__list { display: none; }
  .hero__shade { background: linear-gradient(90deg, rgba(4,22,38,.94) 0%, rgba(4,22,38,.8) 40%, rgba(4,22,38,.3) 75%, rgba(4,22,38,.2) 100%); }
}

@media (max-width: 1060px) {
  .areas__grid, .about, .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .features__grid, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3), .stat:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .feature, .stat { justify-content: flex-start; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand__logo { height: 28px; }
  .header__inner { gap: 12px; }
  .header__cta { display: none; }
  .lang__btn { padding: 6px 9px; }
  .hero { min-height: 0; }
  .hero__bg--industry, .hero__divider { display: none; }
  .hero__bg--marine { right: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(4,22,38,.75), rgba(4,22,38,.9)); }
  .hero__inner { padding-top: 56px; padding-bottom: 56px; }
  .hero__text { font-size: 16.5px; }
  .hero__buttons .btn { flex: 1 1 100%; }
  .eyebrow { font-size: 11.5px; letter-spacing: .16em; }
  .features__grid, .stats__grid { grid-template-columns: 1fr; }
  .feature + .feature, .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat + .stat { border-top-color: rgba(255,255,255,.14); }
  .feature, .stat { padding: 20px 4px; }
  .area { flex-direction: column; align-items: flex-start; padding: 26px; }
  .area__body .btn { margin-top: 0; }
  .services, .sectors, .form__row { grid-template-columns: 1fr; }
  .projects > .project { flex-basis: 100%; }
  .section { padding: 64px 0; }
  .contact__info, .form { padding: 32px 22px; }
  .contact { border-radius: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Dar telefonlarda sadece "BS" işareti */
@media (max-width: 479px) {
  .brand__logo { height: 34px; }
}

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

/* ---------- KVKK ve 404 sayfaları ---------- */
.legal__inner { max-width: 820px; }
.legal h2 { margin: 32px 0 10px; font-size: 19px; color: var(--navy-900); }
.legal p { color: #34445a; }
.legal p + p { margin-top: 12px; }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; }
.legal__back { margin-top: 40px; }
