/* ============================================
   Konya Rot Balans — Ana Stil (Beyaz & Turkuaz)
   Renkler admin panelinden yönetilir:
   --primary, --primary-dark JSON'dan gelir.
   ============================================ */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-tint: color-mix(in srgb, var(--primary) 8%, #ffffff);
  --primary-tint-2: color-mix(in srgb, var(--primary) 14%, #ffffff);
  --primary-border: color-mix(in srgb, var(--primary) 35%, #ffffff);

  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --text: #17252b;
  --text-muted: #5c6f78;
  --border: #e4edeb;
  --danger: #dc2626;
  --shadow: 0 10px 30px -12px rgba(13, 148, 136, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.muted { color: var(--text-muted); }

/* ---------- Üst şerit ---------- */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Başlık ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(23, 37, 43, 0.18); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon .icon { width: 26px; height: 26px; }
.brand-name { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; }
.brand-sub { display: block; font-size: 0.78rem; color: var(--text-muted); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 10px; transition: all 0.2s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-tint); }

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

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: #fff; padding: 10px 20px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--text-muted); font-weight: 600;
}
.mobile-nav a:hover { background: var(--primary-tint); color: var(--primary); }
.mobile-nav .btn { margin-top: 8px; width: 100%; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1;
  transition: all 0.2s ease; min-height: 46px;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 55%, transparent);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: #fff; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-header-phone { padding: 11px 18px; min-height: 42px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--primary-tint-2), transparent 65%),
    radial-gradient(700px 380px at -10% 110%, var(--primary-tint), transparent 60%),
    #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-tint-2); color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  font-size: 0.85rem; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.badge .icon { width: 1em; height: 1em; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.hero h1 .accent { color: var(--primary); }
.hero-text {
  margin-top: 18px; font-size: 1.1rem; color: var(--text-muted);
  max-width: 34rem;
}
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-address {
  margin-top: 22px; display: inline-flex; align-items: flex-start; gap: 8px;
  color: var(--text-muted); font-size: 0.95rem;
}
.hero-address:hover { color: var(--primary); }
.hero-address .icon { color: var(--primary); margin-top: 3px; }

.hero-media { position: relative; }
.hero-media .blob {
  position: absolute; inset: -26px -26px auto auto; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--primary-tint-2) 0%, transparent 70%);
  z-index: 0;
}
.hero-media img {
  position: relative; z-index: 1;
  border-radius: 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%; height: 420px; object-fit: cover;
}
.hero-media .float-chip {
  position: absolute; z-index: 2; bottom: 18px; left: -18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.float-chip .chip-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint-2);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.float-chip strong { font-size: 0.95rem; display: block; line-height: 1.2; }
.float-chip span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Öne çıkanlar ---------- */
.highlights {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.highlight-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all 0.2s ease;
}
.highlight-card:hover { border-color: var(--primary-border); transform: translateY(-3px); box-shadow: var(--shadow); }
.highlight-head { display: flex; align-items: center; gap: 12px; }
.highlight-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-tint-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.highlight-head strong { font-size: 0.98rem; line-height: 1.3; }
.highlight-card p { margin-top: 12px; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Bölümler ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  color: var(--primary); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.82rem;
}
.section-head h2 {
  margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.section-desc { margin-top: 12px; color: var(--text-muted); }

/* ---------- Kartlar ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.2s ease;
}
.service-card { padding: 22px; height: 100%; display: flex; flex-direction: column; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-tint-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { margin-top: 16px; font-size: 1.02rem; line-height: 1.35; }
.service-card p { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); flex: 1; }

.tip-card { padding: 26px; height: 100%; display: flex; flex-direction: column; }
.tip-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); }
.tip-top { display: flex; align-items: center; justify-content: space-between; }
.tag {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-dark);
  font-size: 0.78rem; font-weight: 700;
}
.tip-num { font-size: 2.4rem; font-weight: 800; color: var(--primary-border); line-height: 1; }
.tip-card h3 { margin-top: 14px; font-size: 1.15rem; }
.tip-card p { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); flex: 1; }

.news-card { padding: 26px; height: 100%; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card.highlight-card-news {
  border-color: var(--primary-border);
  background: linear-gradient(160deg, var(--primary-tint) 0%, #fff 55%);
}
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.news-pin { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 0.8rem; font-weight: 700; }
.news-pin .icon { width: 1em; height: 1em; }
.news-card h3 { margin-top: 14px; font-size: 1.15rem; }
.news-card p { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.news-foot {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 700; font-size: 0.9rem;
}

/* ---------- CTA bandı ---------- */
.cta-band {
  margin-top: 44px; border: 1px solid var(--primary-border);
  background: var(--primary-tint); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cta-band p { color: var(--text-muted); max-width: 46rem; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #fff; padding: 0;
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; color: #fff; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(10, 20, 20, 0.75));
}

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 18px; }
.contact-left { display: flex; flex-direction: column; gap: 18px; }
.contact-card { padding: 24px; }

.info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px; margin: -10px -10px; border-radius: 12px; color: inherit;
  transition: background 0.15s ease;
}
.info-row:hover { background: var(--primary-tint); }
.info-row + .info-row { margin-top: 10px; }
.info-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-tint-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.info-icon.wa { background: color-mix(in srgb, #25d366 12%, #fff); color: #1aa851; }
.info-row strong { display: block; font-size: 0.92rem; }
.info-row span.val { display: block; font-size: 0.9rem; color: var(--text-muted); }
.info-row .link-note { font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-top: 2px; display: block; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.hours-table th, .hours-table td { padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 0.92rem; text-align: left; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table td { text-align: right; color: var(--text-muted); }
.hours-table td.closed { color: var(--danger); font-weight: 700; }
.hours-card-title { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; }
.hours-card-title .icon { color: var(--primary); }

.contact-form-card { padding: 28px; }
.contact-form-card h3 { font-size: 1.25rem; }
.contact-form-card > .muted { margin-top: 4px; font-size: 0.92rem; }
#contactForm { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; }
.req { color: var(--primary); }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; background: #fff; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint-2);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-msg { display: none; padding: 13px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 600; }
.form-msg.ok { display: block; background: color-mix(in srgb, #16a34a 10%, #fff); color: #15803d; border: 1px solid color-mix(in srgb, #16a34a 30%, #fff); }
.form-msg.err { display: block; background: color-mix(in srgb, var(--danger) 8%, #fff); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, #fff); }
#contactForm button[type="submit"] { align-self: flex-start; min-width: 190px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto; background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 56px 0 0; padding-bottom: env(safe-area-inset-bottom);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 36px; }
.footer-title { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-grid p, .footer-grid li, .footer-grid address { font-size: 0.9rem; color: var(--text-muted); font-style: normal; }
.footer-grid ul li + li { margin-top: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--primary); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--primary); margin-top: 3px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-row .brand-icon { width: 40px; height: 40px; }
.footer-brand-row strong { font-size: 1.05rem; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted);
}

/* ---------- WhatsApp butonu ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-fab:hover { transform: scale(1.07); background: var(--primary-dark); }
.wa-fab .icon { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 16, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(920px, 92vw); max-height: 78vh; border-radius: 14px; }
.lightbox p { color: #fff; margin-top: 14px; font-size: 0.95rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; font-size: 1.6rem;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Yükleme ---------- */
.loading-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; color: var(--text-muted);
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--primary-tint-2); border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Duyarlılık ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 36px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .btn-header-phone { display: none; }
  .hero { padding: 48px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 320px; }
  .float-chip { left: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .cards-grid, .cards-grid.cols-3 { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-inner { justify-content: center; }
  #contactForm button[type="submit"] { align-self: stretch; }
  .topbar-links { font-size: 0.8rem; }
}
