/* ================================================================
   MENZİL — Yurt İçi / Yurt Dışı Nakliye
   Design System: "Liman Defteri" — kağıt dokusu + petrol/pas paleti
   ================================================================ */

/* --- Design Tokens --- */
:root {
  /* Marka renkleri: 1 ana + 1 nötr + 1 vurgu (tümü WCAG AA metin kontrastı için doğrulandı) */
  --petrol: #0f3d3a;         /* ana marka rengi — derinlik, güven, deniz/liman */
  --petrol-deep: #092523;    /* koyu bölümler için */
  --petrol-line: rgba(15, 61, 58, 0.16);
  --rust: #a8461f;           /* vurgu — kargo turuncusu/pas (paper üzerinde ~5:1) */
  --rust-hover: #8a3818;
  --paper: #f2ede1;          /* nötr zemin — kağıt/manifesto tonu */
  --paper-raised: #fbf8f0;
  --ink: #1c1f1c;            /* birincil metin */
  --mist: #55645e;           /* ikincil metin — paper üzerinde ~5.1:1 */
  --mist-dim: #5f6e68;       /* üçüncül metin — paper üzerinde ~4.6:1 */
  --line: rgba(28, 31, 28, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* 8px tabanlı boşluk sistemi */
  --sp-1: 0.5rem;   /* 8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 3rem;     /* 48px */
  --sp-6: 4rem;     /* 64px */
  --sp-7: 6rem;     /* 96px */

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-2); }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

/* ================================================================
   PAPER TEXTURE (subtle, brand-derived, not generic noise)
   ================================================================ */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  transition: all 0.35s var(--ease);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.navbar.scrolled {
  background: rgba(242, 237, 225, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--petrol);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.navbar-brand .brand-mark {
  color: var(--rust);
  font-style: italic;
}

.navbar-links {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--rust);
  transition: width 0.3s var(--ease);
}

.navbar-links a:hover::after { width: 100%; }

.navbar-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  background: var(--petrol);
  color: var(--paper-raised);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.navbar-cta:hover { background: var(--rust); transform: translateY(-1px); }

.navbar-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--petrol);
  cursor: pointer;
}

@media (max-width: 860px) {
  .navbar-links { display: none; }
  .navbar-menu-btn { display: block; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
  color: var(--petrol);
}

.mobile-menu-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: none;
  border: none;
  color: var(--petrol);
  cursor: pointer;
}

/* ================================================================
   HERO — asymmetric, kırık grid
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--sp-7) + var(--sp-4)) 0 var(--sp-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--sp-5);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.06;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--petrol);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mist);
  max-width: 480px;
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.75rem;
  background: var(--rust);
  color: var(--paper-raised);
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--rust);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(193, 85, 44, 0.45);
}

.btn-primary svg { transition: transform 0.3s var(--ease); width: 16px; height: 16px; }
.btn-primary:hover svg { transform: translateX(3px); }

.hero-phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 1px solid var(--petrol-line);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.hero-phone:hover { border-color: var(--petrol); }

.hero-corridors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.corridor-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--petrol);
  border: 1px solid var(--petrol-line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 61, 58, 0.04);
}

/* Hero ticker panel — kırık grid'de sağa taşan panel */
.hero-panel {
  background: var(--petrol);
  border-radius: 4px;
  padding: var(--sp-4);
  position: relative;
  transform: translateY(var(--sp-3));
  box-shadow: 0 30px 60px -20px rgba(9, 37, 35, 0.35);
}

.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.55);
  margin-bottom: var(--sp-3);
  display: flex;
  justify-content: space-between;
}

.hero-panel-label .live {
  color: #d9a441;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-panel-label .live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9a441;
  animation: pulse 1.6s ease-in-out infinite;
}

.ticker-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(242, 237, 225, 0.9);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(242, 237, 225, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 0.25rem;
  gap: var(--sp-2);
  opacity: 0;
  animation: lineIn 0.5s ease-out forwards;
}

.ticker-line:last-child { border-bottom: none; }

.ticker-status {
  color: #d9a441;
  white-space: nowrap;
}

@keyframes lineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { transform: none; margin-top: var(--sp-3); }
  .hero { padding-top: var(--sp-6); }
}

/* ================================================================
   SECTION shell
   ================================================================ */
.section {
  padding: var(--sp-7) 0;
  position: relative;
}

.section-heading {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: var(--sp-2);
}

.section-heading em { color: var(--petrol); font-style: italic; }

.section-lead {
  color: var(--mist);
  max-width: 520px;
  font-size: 1.02rem;
  margin-bottom: var(--sp-6);
}

/* ================================================================
   SERVICES — kırık grid, eşit olmayan kartlar
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
}

.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: var(--sp-4);
  transition: all 0.35s var(--ease);
  position: relative;
}

.service-card:nth-child(1) { grid-column: span 3; }
.service-card:nth-child(2) { grid-column: span 3; }
.service-card:nth-child(3) { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: span 4; }

.service-card:hover {
  border-color: var(--petrol);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(15, 61, 58, 0.25);
}

.service-icon {
  width: 30px;
  height: 30px;
  color: var(--rust);
  margin-bottom: var(--sp-3);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--sp-1);
  color: var(--ink);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CORRIDORS / KAPSAM — asymmetric two-column
   ================================================================ */
.corridors-section {
  background: var(--petrol-deep);
  color: var(--paper);
}

.corridors-section .section-label { color: #d9a441; }
.corridors-section .section-label::before { background: #d9a441; }

.corridors-section .section-heading { color: var(--paper-raised); }
.corridors-section .section-lead { color: rgba(242, 237, 225, 0.6); }

.corridors-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-6);
}

.corridor-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(242, 237, 225, 0.65);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(242, 237, 225, 0.15);
}

.corridor-list {
  list-style: none;
}

.corridor-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(242, 237, 225, 0.08);
  font-size: 1rem;
}

.corridor-list .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #d9a441;
}

@media (max-width: 760px) {
  .corridors-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
}

@media (max-width: 480px) {
  .corridor-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ================================================================
   PROCESS
   ================================================================ */
.process-list {
  display: flex;
  flex-direction: column;
}

.process-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}

.process-row:first-child { padding-top: 0; }
.process-row:hover { padding-left: var(--sp-2); }

.process-step {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--rust);
  padding-top: 0.3rem;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.process-desc {
  color: var(--mist);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .process-row { grid-template-columns: 1fr; gap: var(--sp-1); }
}

/* ================================================================
   WHY / FLEET — split layout
   ================================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-6);
  align-items: start;
}

.why-list { list-style: none; }

.why-list li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--sp-2);
}

.why-list li:first-child { padding-top: 0; }

.why-list .mark {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.why-list .txt-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.why-list .txt-desc {
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.6;
}

.fleet-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: var(--sp-4);
}

.fleet-card-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
  margin-bottom: var(--sp-3);
}

.fleet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}

.fleet-item:last-child { border-bottom: none; }

.fleet-item-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.fleet-item-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--petrol);
  background: rgba(15, 61, 58, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .why-layout { grid-template-columns: 1fr; }
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-section {
  background: var(--petrol);
  color: var(--paper);
  border-radius: 4px;
  margin: 0 var(--sp-3) var(--sp-6);
  padding: var(--sp-7) var(--sp-4);
  text-align: left;
}

@media (max-width: 640px) {
  .contact-section { margin: 0 var(--sp-2) var(--sp-4); padding: var(--sp-5) var(--sp-3); }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-6);
  align-items: start;
}

.contact-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--paper-raised);
  margin-bottom: var(--sp-2);
}

.contact-lead {
  color: rgba(242, 237, 225, 0.65);
  max-width: 460px;
  font-size: 1rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #d9a441;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.4);
  padding-bottom: 2px;
}

.contact-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(242, 237, 225, 0.7);
  text-decoration: none;
}

.contact-section .section-label { color: #d9a441; }
.contact-section .section-label::before { background: #d9a441; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 225, 0.65);
}

.form-row input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--paper-raised);
  background: rgba(251, 248, 240, 0.08);
  border: 1px solid rgba(242, 237, 225, 0.3);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input::placeholder { color: rgba(242, 237, 225, 0.45); }

.form-row input:focus-visible {
  outline: 2px solid #d9a441;
  outline-offset: 2px;
}

.form-row input:focus {
  border-color: #d9a441;
  background: rgba(251, 248, 240, 0.12);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: var(--sp-1);
}

.contact-alt {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; align-items: start; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: var(--sp-5) 0 var(--sp-4);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--petrol);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--mist);
  max-width: 320px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover { color: var(--rust); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f8f5f;
  animation: pulse 2s ease-in-out infinite;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--mist-dim);
}

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JS henüz çalışmadıysa veya hiç çalışmazsa içerik varsayılan olarak görünür kalır;
   sadece <html class="js"> eklendiyse (bkz. index.html <head> inline script) gizlenip
   IntersectionObserver ile geri getirilir. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
