/* =========================================================
   SEVİMLİ SU TESİSATÇISI — TASARIM SİSTEMİ
   Mobile-first. Gradient/glassmorphism/ağır animasyon yok.
   ========================================================= */

:root {
  --primary: #0b2d52;        /* koyu lacivert */
  --primary-dark: #071d38;
  --secondary: #1d78c9;      /* açık mavi / vurgu */
  --secondary-light: #eaf4fc;
  --accent-green: #25d366;   /* sadece WhatsApp */
  --accent-green-dark: #1ebe5b;
  --text: #1c2733;
  --muted: #5b6b7c;
  --background: #ffffff;
  --background-alt: #f6f9fb;
  --border: #e2e8ef;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 45, 82, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 45, 82, 0.10);
  --container-width: 1180px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; color: var(--primary); }
p { margin: 0 0 16px; color: var(--muted); }

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

.section { padding: 56px 0; }
.section-alt { background: var(--background-alt); }
.section-header { max-width: 640px; margin-bottom: 32px; }
.section-header h2 { font-size: 1.7rem; }
.section-header p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-whatsapp { background: var(--accent-green); color: #fff; }
.btn-whatsapp:hover { background: var(--accent-green-dark); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--secondary-light); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--secondary-light); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-drop { font-size: 1.6rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 800; color: var(--primary); font-size: 1.15rem; }
.logo-sub { font-size: 0.72rem; color: var(--secondary); font-weight: 600; letter-spacing: .02em; }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.96rem; }
.main-nav a:hover { color: var(--secondary); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-call { padding: 11px 18px; font-size: 0.92rem; white-space: nowrap; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 56px; background: var(--background-alt); }
.hero-inner { display: flex; flex-direction: column; gap: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); color: var(--secondary);
  font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero-content h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-content .hero-subtitle { font-size: 1.15rem; color: var(--secondary); font-weight: 600; margin-bottom: 14px; }
.hero-content .hero-text { font-size: 1rem; max-width: 540px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0 26px; padding: 0; }
.hero-checks li { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.hero-checks li::before { content: "✓"; color: var(--accent-green-dark); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .1s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--background-alt); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card-body p { font-size: 0.92rem; margin-bottom: 12px; }
.service-card-body a { font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* ---------- Why Us ---------- */
.why-us { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.why-us-list { display: flex; flex-direction: column; gap: 14px; padding: 0; }
.why-us-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.why-us-list li::before { content: "✓"; color: var(--accent-green-dark); font-weight: 700; }

/* ---------- Service Areas ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--secondary-light); color: var(--primary);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
}

/* ---------- Emergency CTA Band ---------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cta-band h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.cta-band p { color: #cfe0f2; margin-bottom: 0; }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
}
.review-stars { color: #e8a93b; font-size: 0.95rem; margin-bottom: 6px; }
.review-name { font-weight: 700; color: var(--text); }
.review-date { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 4px; font-weight: 600; font-size: 0.98rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question::after { content: "+"; font-size: 1.3rem; color: var(--secondary); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: "–"; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .2s ease;
  padding: 0 4px; font-size: 0.92rem; color: var(--muted);
}
.faq-item.open .faq-answer { padding-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item strong { display: block; color: var(--text); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; background: #fff;
}
.form-control:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e7f7ec; color: #1a7d3f; border: 1px solid #bfe8cc; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f6c7c3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #cfe0f2; padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #cfe0f2; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-brand p { color: #a9c2db; font-size: 0.9rem; }
.footer-logo .logo-title { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 20px; text-align: center; font-size: 0.85rem; color: #9fb9d3;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  text-decoration: none;
}
.whatsapp-float:hover { background: var(--accent-green-dark); text-decoration: none; }
.whatsapp-icon { display: flex; }
.whatsapp-text { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Blog / list cards ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.blog-card-img { aspect-ratio: 16/9; background: var(--background-alt); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 16px; }
.blog-card-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page h1 { font-size: 5rem; margin-bottom: 6px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* =========================================================
   BREAKPOINTS — Mobile-first (min-width kademeleri)
   360 / 375 / 390 / 414 / 430 zaten bu temel stillerle çalışır.
   ========================================================= */

/* Tablet: 768px ve üzeri */
@media (min-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 76px; }
  .hero-content h1 { font-size: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Masaüstü: 1024px ve üzeri */
@media (min-width: 1024px) {
  .main-nav ul { display: flex; }
  .hamburger { display: none; }

  .hero-inner { flex-direction: row; align-items: center; }
  .hero-content { flex: 1; }
  .hero-image { flex: 1; }

  .why-us { flex-direction: row; align-items: center; justify-content: space-between; }
  .why-us-content { flex: 1; }
  .why-us-image { flex: 1; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Küçük mobil: 375px altı için ekstra sıkıştırma */
@media (max-width: 374px) {
  .hero-content h1 { font-size: 1.7rem; }
  .btn { padding: 12px 18px; font-size: 0.92rem; }
  .whatsapp-text { display: none; }
  .whatsapp-float { padding: 14px; }
}

/* Mobilde açık menü (JS ile .nav-open class'ı body'e eklenir) */
@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .2s ease;
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
}
