/* ==========================================================================
   İskenderun Şahin Su Arıtma — Kurumsal Site Stilleri
   ========================================================================== */

:root {
  --navy: #0b3556;
  --blue-deep: #0f6fb3;
  --blue: #1a8fd1;
  --blue-light: #4fc3f7;
  --blue-pale: #eaf6fd;
  --ink: #10222f;
  --ink-soft: #4a5c68;
  --paper: #ffffff;
  --paper-soft: #f5fafd;
  --border: #e1edf3;
  --success: #1fa971;
  --warn: #e8a53d;
  --shadow-sm: 0 2px 10px rgba(11, 53, 86, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 53, 86, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 53, 86, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding: 0; margin: 0; list-style: none; }
.container { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { font-size: 16.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline.on-light { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn-ghost { background: var(--blue-pale); color: var(--blue-deep); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger { background: #fdeceb; color: #c0392b; }

/* ---------- Header ---------- */
.site-header {
  /* Not: backdrop-filter (bulanıklık) kasıtlı olarak kullanılmıyor —
     bu özellik header'ı, içindeki position:fixed mobil menü için bir
     "containing block"a çevirir ve menünün tam ekran yerine header'ın
     kendi küçük kutusu içine sıkışmasına (açılınca üstte ince bir şerit
     gibi kalmasına) neden olur. */
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--navy); }
.brand img { height: 46px; width: 46px; object-fit: contain; border-radius: 10px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue-pale); color: var(--blue-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 15px; }
.header-phone i { color: var(--blue-deep); font-size: 18px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 100%); color: #fff; padding: 90px 0 110px; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(79,195,247,.35), transparent 55%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.9); }
.hero-badge i { font-size: 20px; color: var(--blue-light); }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.15);
  aspect-ratio: 4/5;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .floaty {
  position: absolute;
  bottom: -26px; left: -26px;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero-media .floaty i { font-size: 30px; color: var(--blue-deep); }
.hero-media .floaty strong { display: block; font-size: 15px; }
.hero-media .floaty span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Trust stats strip ---------- */
.stats-strip {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.stats-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-item { padding: 26px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 26px; color: var(--blue-deep); margin-bottom: 8px; display: inline-block; }
.stat-item .num { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 26px; color: var(--navy); }
.stat-item .lbl { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 14px; }
.service-card .more { font-size: 13.5px; font-weight: 700; color: var(--blue-deep); display: inline-flex; align-items: center; gap: 6px; }

.service-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.service-detail-hero img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-body { font-size: 16px; }
.service-body h2 { font-size: 22px; margin-top: 28px; }

/* ---------- About / lifestyle split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split .checklist { margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.split .checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }
.split .checklist i { color: var(--success); font-size: 19px; margin-top: 1px; }

/* ---------- Testimonials ---------- */
.testimonials-wrap { background: var(--paper-soft); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testi-stars { color: #f4b400; font-size: 15px; margin-bottom: 12px; }
.testi-card p.quote { color: var(--ink); font-size: 15px; font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-person strong { font-size: 14.5px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; }
.post-card .date { font-size: 12.5px; color: var(--blue-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { font-size: 17.5px; margin: 8px 0; }
.post-card p { font-size: 14px; }
.post-content { font-size: 16.5px; max-width: 780px; margin: 0 auto; }
.post-content h2, .post-content h3 { margin-top: 32px; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content strong { color: var(--navy); }
.post-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 34px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--navy); background: var(--paper-soft); }
.faq-q i { transition: transform .2s ease; color: var(--blue-deep); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 4px 22px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--blue-deep));
  color: #fff;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18; mix-blend-mode: luminosity;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; max-width: 480px; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-banner > * { position: relative; z-index: 2; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info-card { background: var(--paper-soft); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-row i { font-size: 20px; color: var(--blue-deep); width: 32px; }
.contact-info-row strong { display: block; font-size: 14.5px; color: var(--navy); }
.contact-info-row span, .contact-info-row a { font-size: 14.5px; color: var(--ink-soft); }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 22px; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--paper-soft);
  transition: border-color .15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); background: #fff; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; }
.alert-success { background: #e7f8f0; color: #157347; border: 1px solid #bfe9d3; }
.alert-error { background: #fdeceb; color: #c0392b; border: 1px solid #f6c9c4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 60px 0 26px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 8px; object-fit: contain; }
.site-footer h4 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--blue-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating action buttons ---------- */
.floating-actions {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
  pointer-events: none;
}
.floating-actions .fab { pointer-events: auto; }
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--blue-deep); }
.fab-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  animation: fab-pulse 2s infinite;
}
.fab { position: relative; }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 20px; }
.error-page .code { font-family: var(--font-heading); font-size: 100px; font-weight: 700; color: var(--blue-pale); -webkit-text-stroke: 2px var(--blue-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .contact-grid, .service-detail-hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .services-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 0; }
  .cta-banner { padding: 36px 24px; flex-direction: column; text-align: center; }
  .cta-banner p { max-width: 100%; }
  .fab { width: 52px; height: 52px; font-size: 22px; }
  .floating-actions { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .hero-media .floaty { left: 8px; bottom: -18px; max-width: calc(100% - 16px); padding: 14px 16px; }
}
