/* =========================================================================
   HASKOOP — stil
   Tasarım dili: "Güvenilir kıyı-ulaşım" — Akdeniz mavisi + kum/güneş aksanı.
   Mobil öncelikli, iri ve yüksek kontrastlı (15–70 yaş + durakta güneş).
   ========================================================================= */

:root {
  --sea-deep: #06425e;
  --sea:      #0a7ea4;
  --sea-light:#bfe3f2;
  --sun:      #f0a202;
  --sun-dark: #cf7d00;
  --sun-tint: #fff6e3;
  --green:    #11a36b;
  --sand:     #f4ece0;
  --paper:    #fbfaf7;
  --ink:      #102530;
  --ink-soft: #4d626d;
  --line:     #e6ded2;
  --white:    #ffffff;

  --radius:    18px;
  --radius-sm: 11px;
  --shadow:    0 8px 30px rgba(6, 66, 94, .10);
  --shadow-sm: 0 2px 10px rgba(6, 66, 94, .07);
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 720px) { body { font-size: 18px; } }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--sea); }
img, svg { max-width: 100%; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sea-deep); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ------------------------------- Butonlar ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }

.btn-primary { background: var(--white); color: var(--sea-deep); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.btn-call { background: var(--sun); color: #3a2700; box-shadow: var(--shadow-sm); }
.btn-call:hover { background: var(--sun-dark); color: #2a1c00; }

.btn-outline { background: transparent; color: var(--sea); border: 2px solid var(--sea); }
.btn-outline:hover { background: var(--sea); color: #fff; }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { flex: none; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--sea-deep); }
.brand-sub { font-size: .76rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 9px 13px; border-radius: 9px;
}
.site-nav a:hover { background: var(--sand); color: var(--sea-deep); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-btn {
  border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  padding: 7px 11px; border-radius: 999px; cursor: pointer; min-width: 40px;
}
.lang-btn:hover { color: var(--sea-deep); }
.lang-btn.is-active { background: var(--sea); color: #fff; box-shadow: var(--shadow-sm); }

.header-call { min-height: 46px; padding: 0 16px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { width: 22px; height: 2.4px; background: var(--sea-deep); border-radius: 2px; }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 100%);
  padding: 64px 0 110px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.16); color: #eaf7fd;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  letter-spacing: .03em; margin-bottom: 18px; backdrop-filter: blur(2px);
}
.hero-title { font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 800; }
.hero-sub { margin-top: 16px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #dff0f8; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; display: block; }

/* ------------------------------- Sections ------------------------------- */
.section { padding: 62px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 800; color: var(--sea-deep); }
.section-sub { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px;
}

.banner {
  max-width: 760px; margin: 0 auto 20px; background: var(--sun-tint);
  border: 1px solid #f3dca0; border-left: 5px solid var(--sun);
  color: #7a5200; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .96rem;
}

/* ----------------------------- Sefer tablosu ---------------------------- */
.timetable { max-width: 760px; margin: 0 auto; }

.segmented { display: flex; background: var(--sand); border-radius: 999px; padding: 5px; gap: 5px; }
.seg-btn {
  flex: 1 1 0; border: 0; background: transparent; color: var(--sea-deep);
  font: inherit; font-weight: 700; padding: 12px 10px; border-radius: 999px; cursor: pointer;
  font-size: .98rem; transition: background .15s, color .15s;
}
.seg-btn.is-active { background: var(--sea); color: #fff; box-shadow: var(--shadow-sm); }

.chip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-tab {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem;
}
.chip-tab:hover { border-color: var(--sea); color: var(--sea-deep); }
.chip-tab.is-active { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }

.tt-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 2px 12px; flex-wrap: wrap; }
.tt-count { font-weight: 700; color: var(--sea-deep); }
.tt-updated { font-size: .85rem; color: var(--ink-soft); }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.time-chip {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid var(--sea-light); color: var(--sea-deep);
  border-radius: 12px; padding: 14px 8px; font-weight: 700; font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}
.empty { color: var(--ink-soft); padding: 18px 4px; text-align: center; font-style: italic; }

/* -------------------------------- Duraklar ------------------------------ */
.stops-wrap { max-width: 640px; margin: 0 auto; }
.stops { list-style: none; margin: 0 0 24px; padding: 0; }
.stop { position: relative; padding: 0 0 26px 36px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: -6px; width: 2px; background: var(--sea-light); }
.stop:last-child::before { display: none; }
.stop-dot { position: absolute; left: 1px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--sea); }
.is-terminal .stop-dot { background: var(--sea-deep); border-color: var(--sea-deep); }
.is-placeholder .stop-dot { border-style: dashed; border-color: var(--ink-soft); }
.stop-name { display: block; font-weight: 700; font-size: 1.1rem; }
.is-placeholder .stop-name { color: var(--ink-soft); font-weight: 600; font-style: italic; }
.stop-note { display: block; color: var(--ink-soft); font-size: .92rem; }

/* --------------------------------- Ücret -------------------------------- */
.fare-card { max-width: 560px; margin: 0 auto; }
.fare-table { width: 100%; border-collapse: collapse; }
.fare-table th { text-align: left; color: var(--sea-deep); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 12px; border-bottom: 2px solid var(--line); }
.fare-table th:last-child { text-align: right; }
.fare-table td { padding: 15px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.fare-table tr:last-child td { border-bottom: 0; }
.fare-price { text-align: right; font-weight: 800; color: var(--sea-deep); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fine-print { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }

/* ---------------------------------- SSS --------------------------------- */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 700; color: var(--sea-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; position: relative; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--sea); border-radius: 2px; transition: transform .2s ease; }
.faq-icon::before { left: 0; right: 0; top: 8px; height: 2.4px; }
.faq-icon::after { top: 0; bottom: 0; left: 8px; width: 2.4px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-soft); }

/* ------------------------------- İletişim ------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 860px; margin: 0 auto; }
.contact-card { text-align: center; }
.contact-card h3 { color: var(--sea-deep); font-size: 1.05rem; margin-bottom: 10px; }
.phone-big { display: block; font-size: 1.7rem; font-weight: 800; color: var(--sea-deep); text-decoration: none; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.phone-big:hover { color: var(--sea); }
.contact-line { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* -------------------------------- Footer -------------------------------- */
.site-footer { background: var(--sea-deep); color: #cfe6f0; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; }
.footer-tagline { font-size: .9rem; color: #9fc6d6; }
.lang-switch-footer { background: rgba(255,255,255,.10); }
.lang-switch-footer .lang-btn { color: #cfe6f0; }
.lang-switch-footer .lang-btn.is-active { background: var(--sun); color: #2a1c00; }
.footer-legal { font-size: .85rem; color: #9fc6d6; }
.footer-legal a, .site-footer a { color: #eaf7fd; }

/* ------------------------------- Erişim --------------------------------- */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

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

/* ------------------------------ Responsive ------------------------------ */
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 28px; }
}

@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-actions { order: 2; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .header-call span { display: none; }
  .hero { padding: 48px 0 90px; }
}
