/* ===== Trakya Ekspres — modern UI, SEO-friendly semantics ===== */
:root {
  --bg: #060a12;
  --bg-deep: #03060c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.16);
  --muted: rgba(226, 232, 240, 0.82);
  --muted2: rgba(226, 232, 240, 0.6);
  --white: #f8fafc;
  --accent: #38bdf8;
  --accent-muted: rgba(56, 189, 248, 0.14);
  --shadow-lg: 0 28px 90px -32px rgba(0, 0, 0, 0.75);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: #e2e8f0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.5;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(148, 163, 184, 0.08), transparent 45%),
    radial-gradient(ellipse 70% 40% at 0% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 99999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #0b1220;
  font-weight: 600;
  font-size: 14px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ——— Top bar ——— */
.topbar {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  background: rgba(3, 6, 12, 0.65);
  backdrop-filter: blur(8px);
}

.topbar .row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  opacity: 0.92;
}

.topbar .phones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar a {
  font-weight: 500;
}

.topbar a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 14px 0;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

body.nav-menu-open {
  overflow: hidden;
}

.header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand .logo {
  height: 46px;
  width: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  flex-shrink: 0;
}

.brand .name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.brand .tag {
  font-size: 12px;
  opacity: 0.68;
  margin-top: 2px;
}

/* ——— Mobile menu toggle ——— */
.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
}

.navToggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header .row.nav-expanded .navToggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header .row.nav-expanded .navToggle span:nth-child(2) {
  opacity: 0;
}

.header .row.nav-expanded .navToggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .navToggle span {
    transition: none;
  }
}

.nav {
  display: flex;
  gap: 6px 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.nav > a:not(.btn) {
  padding: 8px 6px;
  border-radius: 10px;
  opacity: 0.88;
}

.nav > a:not(.btn):hover {
  opacity: 1;
  background: var(--accent-muted);
  color: #e0f2fe;
}

.nav .btn-primary {
  padding: 10px 16px;
  font-size: 13px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #0b1220;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 20px -6px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  color: #020617;
  transform: translateY(-1px);
}

/* ——— Hero ——— */
.hero {
  padding: 8px 0 36px;
}

.heroCard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(56, 189, 248, 0.04) 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.heroCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 280px at 85% 10%, rgba(56, 189, 248, 0.1), transparent 65%);
  pointer-events: none;
}

.heroGrid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: clamp(22px, 4vw, 36px);
  align-items: center;
}

/* Logo sütunu: grid satırında dikey ortala, yatayda ortala */
.heroGrid > :last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
  font-size: 1.02rem;
}

.badges {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.95;
}

.kpis {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 12px;
}

.kpi .big {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.kpi .small {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 4px;
}

.heroMedia {
  width: 100%;
  max-width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.6);
  padding: clamp(16px, 4vw, 28px);
}

.heroImage {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ——— Sections ——— */
.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section p.lead {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 1.05rem;
  max-width: 65ch;
}

.grid3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  display: block;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.5);
}

.card .title {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}

.card .desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
}

.pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  background: rgba(3, 6, 12, 0.4);
}

.footer .grid {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
  font-size: 14px;
}

.footer .muted {
  color: var(--muted2);
  line-height: 1.65;
  margin-top: 10px;
}

.footer .colTitle {
  font-weight: 700;
  color: var(--white);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted2);
}

.footer .copy {
  padding: 0 0 24px;
  font-size: 12px;
  opacity: 0.55;
}

/* ——— Inner pages ——— */
.pageHead {
  padding: 16px 0 8px;
}

.pageTitle {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: var(--white);
}

.pageSub {
  margin: 12px 0 0;
  color: var(--muted2);
  line-height: 1.75;
  max-width: 70ch;
}

.content {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  padding: clamp(18px, 3vw, 28px);
  line-height: 1.78;
  color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 40px -32px rgba(0, 0, 0, 0.45);
}

.content h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.content h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 650;
  color: var(--white);
}

.content h3:first-child {
  margin-top: 0;
}

.content .faqList p {
  margin: 0 0 16px;
  color: var(--muted);
}

.content ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.content li {
  margin: 8px 0;
  color: var(--muted);
}

.content a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:hover {
  color: #bae6fd;
}

/* ——— Forms ——— */
.form {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 22px;
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.input,
.select,
.textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(3, 6, 12, 0.65);
  color: #e2e8f0;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px var(--accent-muted);
  outline: none;
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.help {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted2);
}

.success {
  color: rgba(134, 239, 172, 0.96);
}

.error {
  color: rgba(252, 165, 165, 0.96);
}

.hidden {
  display: none !important;
}

/* ——— Gallery ——— */
.galleryGrid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.galleryItem {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 160px;
}

.galleryItem:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.5);
}

.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.galleryItem:hover img {
  transform: scale(1.06);
}

.galleryItem.span-6 {
  grid-column: span 6;
}

.galleryItem.span-4 {
  grid-column: span 4;
}

.galleryItem.span-3 {
  grid-column: span 3;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.lightboxImg {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.lightboxClose {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 44px;
  width: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  font-size: 26px;
  line-height: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightboxClose:hover {
  background: var(--surface-hover);
}

.lightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 52px;
  width: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightboxNav:hover {
  background: var(--surface-hover);
}

.lightboxNav.left {
  left: 14px;
}

.lightboxNav.right {
  right: 14px;
}

/* ——— Logo image in header ——— */
.logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header .row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .heroGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .footer .grid {
    grid-template-columns: 1fr;
  }

  .fieldRow {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .navToggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header .row > .nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 0 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    background: rgba(6, 10, 18, 0.95);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .header .row.nav-expanded > .nav {
    display: flex;
  }

  .nav > a:not(.btn) {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }

  .nav .btn-primary {
    width: 100%;
    margin-top: 8px;
  }

  .galleryGrid {
    grid-template-columns: repeat(6, 1fr);
  }

  .galleryItem.span-6 {
    grid-column: span 6;
  }

  .galleryItem.span-4 {
    grid-column: span 3;
  }

  .galleryItem.span-3 {
    grid-column: span 3;
  }
}

@media (max-width: 520px) {
  .galleryGrid {
    grid-template-columns: 1fr;
  }

  .galleryItem {
    grid-column: span 1 !important;
    min-height: 220px;
  }

  .topbar .row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Sabit WhatsApp butonu ——— */
.wa-fab {
  position: fixed;
  z-index: 9998;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.45),
    0 12px 28px -8px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  overflow: visible;
}

.wa-fab:hover {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.04);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.55),
    0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.wa-fab:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.wa-fab__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.wa-fab__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.wa-fab__text {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .wa-fab {
    padding: 14px 16px;
    gap: 8px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .wa-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }

  .wa-fab__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wa-fab::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: wa-fab-ring 2.2s ease-out infinite;
    pointer-events: none;
  }
}

@keyframes wa-fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab::after {
    display: none;
  }
}
