@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Kurumsal Belediye Renk Paleti */
  --primary: #1e3a8a;
  /* Resmi Koyu Lacivert */
  --primary-dark: #0f172a;
  /* Koyu Kurşuni / Neredeyse Siyah */
  --primary-light: #3b82f6;
  /* Kurumsal Mavi */

  /* Su Modülü Özel Vurguları */
  --water-blue: #0284c7;
  /* Su Mavisi */
  --water-light: #e0f2fe;
  /* Açık Su Arka Planı */

  /* Vurgu ve İkincil Renkler */
  --accent: #d97706;
  /* Söğüt Altın / Turuncu (Tarihi Vurgu) */
  --accent-light: #fef3c7;

  /* Temel Renkler */
  --bg: #f8fafc;
  /* Çok Açık Gri/Beyaz Ferah Arka Plan */
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;

  /* Durum Renkleri */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;

  /* Gölgeler ve Kenarlar */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── DESKTOP NAVBAR ─── */
.desktop-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
}

.brand-text .city {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-text .name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.btn-nav-su {
  background: var(--water-blue);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-su:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ─── MOBILE HEADER ─── */
.mobile-header {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  position: relative;
}

.mobile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .brand-text .name {
  color: var(--primary);
  font-size: 1.1rem;
}

.mobile-header .brand-text .city {
  color: var(--text-muted);
  font-size: 0.65rem;
}

/* ─── KURUMSAL HERO ALANI ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
  padding: 5rem 2rem;
  border-bottom: 5px solid var(--accent);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  color: #fff;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #60a5fa;
}

.hero-desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Kurumsal Odaklı Su Yükleme Hızlı Modül Kartı */
.hero-su-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  width: 100%;
  border-top: 4px solid var(--water-blue);
}

.hero-su-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.hero-su-card-header .icon {
  width: 48px;
  height: 48px;
  background: var(--water-light);
  color: var(--water-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-su-card-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.hero-su-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.btn-hero-action {
  width: 100%;
  padding: 16px;
  background: var(--water-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s;
  text-decoration: none;
}

.btn-hero-action:hover {
  background: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.2);
}

/* ─── MAIN CONTENT (Kurumsal Portal Düzeni) ─── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--accent);
  border-radius: 3px;
}

/* Grid Düzenleri */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Resmi Belediye Kart Tasarımları */
.portal-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portal-card-header {
  background: var(--surface2);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.portal-card-header .icon {
  font-size: 1.3rem;
}

.portal-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.portal-card-body {
  padding: 1.5rem;
  flex: 1;
}

/* Haberler Listesi */
.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  transition: color .2s;
}

.news-item a:hover {
  color: var(--primary-light);
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Duyurular Listesi */
.duyuru-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.duyuru-item:first-child {
  padding-top: 0;
}

.duyuru-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.duyuru-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.duyuru-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Eczane Listesi */
.eczane-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.eczane-item:first-child {
  padding-top: 0;
}

.eczane-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eczane-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eczane-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
}

.eczane-addr {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0;
}

.eczane-phone {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

/* Kurumsal E-Hizmet Kartları */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.8rem 1.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.service-card .sc-icon {
  width: 56px;
  height: 56px;
  background: var(--surface2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all .2s;
}

.service-card:hover .sc-icon {
  background: var(--primary);
  color: #fff;
}

.service-card .sc-label {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ─── FOOTER ─── */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── BOTTOM NAVIGATION BAR (Sadece Mobilde Görünür) ─── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  height: 64px;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 10px;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  height: 100%;
}

.nav-item .icon {
  font-size: 1.2rem;
}

.nav-item .label {
  font-size: 0.65rem;
  font-weight: 600;
}

.nav-item.active {
  color: var(--primary);
}

/* Ortadaki Su Yükle Butonu (Kurumsal Uyumlu) */
.nav-item-su {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--water-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transform: translateY(-10px);
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid var(--surface);
}

.nav-item-su .icon {
  font-size: 1.4rem;
}

/* ─── MODAL / BOTTOM SHEET (Su Yükleme Akışı İçin) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.sheet-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 10px auto 0;
}

.modal-header {
  padding: 1.5rem 1.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

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

.header-left .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--water-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--water-blue);
}

.step-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Noktaları */
.modal-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 1rem 1.8rem 0;
}

.dot {
  height: 4px;
  width: 20px;
  border-radius: 2px;
  background: var(--border);
}

.dot.active {
  background: var(--water-blue);
  width: 36px;
}

.dot.done {
  background: var(--success);
}

.modal-body {
  padding: 1.8rem;
  overflow-y: auto;
}

/* Form Elemanları */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color .2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--water-blue);
}

.btn-primary {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: none;
  background: var(--water-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

/* Su Miktarı Seçimi */
.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.amount-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: all .2s;
}

.amount-option.selected {
  border-color: var(--water-blue);
  background: var(--water-light);
}

.amount-m3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.amount-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.amount-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--water-blue);
  margin-top: 8px;
}

/* Vergi Tablosu */
.tax-box {
  background: var(--surface2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
}

.tax-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.tax-row:last-child {
  border-bottom: none;
}

.tax-row.total {
  font-weight: 700;
  color: var(--text);
  padding-top: 10px;
  font-size: 0.95rem;
}

/* Kart Önizleme */
.card-visual {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.card-chip {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-num-disp {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  font-family: monospace;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.card-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Başarı Ekranı */
.success-wrap {
  text-align: center;
  padding: 1rem 0;
}

.anim-circle {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
}

.success-wrap h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .desktop-nav {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .bottom-nav {
    display: block;
  }

  .main-content {
    padding: 2rem 1.2rem calc(64px + 2rem);
  }

  footer {
    padding: 3rem 1.5rem calc(64px + 1.5rem);
  }

  /* Modal -> Bottom Sheet */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-container {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  .sheet-handle {
    display: block;
  }
}