/* ==========================================================================
   İznik Minibüs ve Otobüsçüler Kooperatifi — style.css
   ========================================================================== */

:root {
  --navy: #16324a;
  --navy-dark: #0d2033;
  --navy-light: #24506f;
  --red: #9c2a2a;
  --red-dark: #7d2020;
  --sea-1: #0d3b4f;
  --sea-2: #1c6d7c;
  --sea-3: #3fa5a0;
  --sand: #f7f5f0;
  --paper: #ffffff;
  --ink: #22303c;
  --ink-soft: #5b6b78;
  --line: #e4ded3;
  --shadow: 0 10px 30px rgba(13, 32, 51, 0.08);
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(13, 32, 51, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

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

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-img-sm {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  border-color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--sea-1) 0%, var(--navy) 45%, var(--sea-2) 100%);
  overflow: hidden;
  padding-bottom: 60px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,24,38,0.68) 0%, rgba(9,24,38,0.42) 40%, rgba(9,24,38,0.5) 70%, rgba(9,24,38,0.88) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 24px 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #cfe9e6;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 16px;
  max-width: 820px;
  margin-inline: auto;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.hero p.lead {
  font-size: 1.1rem;
  color: #dcebe9;
  max-width: 560px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(156,42,42,0.35);
}
.btn-red:hover { background: var(--red-dark); }

.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: #cfe9e6;
  letter-spacing: 0.5px;
}

/* ---------- Route finder widget ---------- */
.route-finder-wrap {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: -46px auto 0;
  padding: 0 20px;
}

.route-finder-card {
  background: var(--navy-dark);
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  padding: 28px 26px 26px;
  border: 1px solid rgba(255,255,255,0.08);
}

.route-finder-card h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 4px;
  text-align: center;
}

.route-finder-card > p {
  color: #a9bdc7;
  font-size: 0.88rem;
  text-align: center;
  margin: 0 0 22px;
}

.route-finder-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.rf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rf-field label {
  color: #9fb4bf;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rf-field select {
  appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 38px 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.rf-field select:disabled { opacity: 0.65; cursor: default; }
.rf-field select option { color: #16324a; }

.rf-swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.rf-swap:hover { background: rgba(255,255,255,0.18); transform: rotate(180deg); }

.rf-submit {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.rf-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.rf-result-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-result .accordion-note {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #ffd7d7;
}

.rf-result .time-chip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

/* ---------- Section shell ---------- */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 8px 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--ink-soft);
}

.section-alt { background: var(--paper); }

/* ---------- Route tabs ---------- */
.route-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.route-tab-btn {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.route-tab-btn.active,
.route-tab-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.route-panel { display: none; }
.route-panel.active { display: block; }

/* ---------- Accordion ---------- */
.accordion { max-width: 760px; margin: 0 auto; }

.accordion-item {
  border-bottom: 1px solid var(--red);
  padding: 6px 0;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.accordion-trigger .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--navy);
}

.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-panel {
  max-height: 900px;
}

.accordion-panel-inner {
  padding: 4px 4px 22px;
}

.accordion-note {
  font-size: 0.88rem;
  color: var(--red-dark);
  background: #fbeeee;
  border: 1px solid #f0d3d3;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  display: inline-block;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.time-chip {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  padding: 10px 4px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.day-btn {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.day-btn.active,
.day-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.rf-result .day-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.rf-result .day-btn.active,
.rf-result .day-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Cards (about / blog) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.1rem;
}

.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* board members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.board-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.board-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea-2), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.board-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.02rem;
}

.board-card span {
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* stats strip */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 50px 0;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 6px;
}

.stat-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Blog ---------- */
.blog-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.blog-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--sea-1), var(--sea-3));
  position: relative;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
}

.blog-thumb span {
  position: absolute;
  bottom: 10px;
  left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.blog-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 { color: var(--navy); font-size: 1.05rem; margin: 0 0 10px; }
.blog-body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.blog-body .read-more { margin-top: 12px; font-weight: 700; color: var(--red); font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info .item .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .item h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.contact-info .item p { margin: 0; color: var(--ink-soft); }
.contact-info .item a { color: var(--navy); font-weight: 700; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--sea-2));
  color: #fff;
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
  margin: 0 24px;
}
.cta-band h2 { font-size: 1.7rem; margin: 0 0 10px; }
.cta-band p { color: #dcebe9; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cbd7de;
  padding: 56px 0 24px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.footer-brand .brand-main { color: #fff; font-weight: 800; }
.footer-brand .brand-sub { color: #93a6b1; font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; }

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #7d8f9a;
}

.footer-credit {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #647680;
}

.footer-credit a {
  color: #647680;
  text-decoration: underline;
}

.footer-credit a:hover {
  color: #cbd7de;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--sea-1), var(--navy));
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}
.page-hero h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.page-hero p { color: #dcebe9; max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: #b9d4d0; letter-spacing: 0.5px; }
.breadcrumb a { font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Article (blog post) ---------- */
.article-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px clamp(20px, 5vw, 56px);
  color: var(--ink);
}

.article-content h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 34px 0 14px;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  color: var(--navy);
  font-size: 1.12rem;
  margin: 28px 0 10px;
}
.article-content h3:first-child { margin-top: 0; }

.article-content p {
  margin: 0 0 16px;
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }

.article-content a { color: var(--red); font-weight: 700; text-decoration: underline; }
.article-content strong { color: var(--navy); }
.article-content em { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .route-finder-form { grid-template-columns: 1fr; }
  .rf-swap { justify-self: center; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-img { height: 38px; }
  .site-header .container { min-height: 66px; }
  .hero-inner { padding: 56px 18px 34px; }
  .hero-stats { gap: 28px; }
  .route-finder-wrap { margin-top: -34px; padding: 0 14px; }
  .route-finder-card { padding: 22px 18px 20px; border-radius: 16px; }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
  .section { padding: 52px 0; }
  .cta-band { margin: 0 14px; padding: 44px 18px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 18px; }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .btn { padding: 13px 22px; font-size: 0.9rem; }
}
