/* =========================================================
   SU TESİSATÇISI — Toroslar
   Tasarım dili: "Hat şeması" — teknik tesisat diyagramı estetiği
   ========================================================= */

:root {
  --ink: #123A62;      /* belirgin kraliyet lacivert — siyaha kaçmayan ana koyu ton */
  --ink-2: #1E5088;    /* gradyanlar için daha açık/canlı mavi ucu */
  --brass: #C17F3E;
  --brass-light: #E0A868;
  --brass-text: #905F2E; /* açık zeminde AA (4.5:1+) geçen koyu brass — brass sadece 3:1 veriyordu */
  --paper: #F3F5F4;
  --paper-2: #E7EBEA;
  --steel: #5C7086;
  --steel-light: #B6C2CE; /* yeni (daha açık) lacivert tonunda AA geçmesi için aydınlatıldı */
  --alarm: #D6472D;
  --line: rgba(18, 58, 98, 0.12);
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(18, 58, 98, 0.35);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text); /* açık zemin: AA kontrastı için koyu brass */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Koyu zeminlerde (hero, .on-dark) daha açık brass — orada zaten AA geçiyor */
.hero .eyebrow, .on-dark .eyebrow { color: var(--brass-light); }
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* Skip link — erişilebilirlik */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px; gap: 16px; flex-wrap: wrap;
}
.topbar .status {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brass-light);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #33D17A; box-shadow: 0 0 0 0 rgba(51,209,122,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(51,209,122,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(51,209,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,209,122,0); }
}
.topbar .contacts { display: flex; gap: 20px; }
.topbar .contacts a:hover { color: var(--brass-light); }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand .mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--steel); letter-spacing: 0.04em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--alarm); color: #fff; box-shadow: 0 10px 24px -10px rgba(214,71,45,0.55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(214,71,45,0.6); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-ghost-light { border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost-light:hover { border-color: var(--brass-light); color: var(--brass-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-outline { display: none; }
@media (min-width: 720px) { .header-actions .btn-outline { display: inline-flex; } }

/* ---------- HERO ---------- */
.hero {
  background: radial-gradient(ellipse at top right, var(--ink-2) 0%, var(--ink) 62%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; z-index: 2;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  margin-top: 18px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--brass-light); }
.hero-lead { margin-top: 20px; font-size: 17.5px; color: var(--steel-light); max-width: 52ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

.hero-meta { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .item { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light); }
.hero-meta .item b { display: block; font-family: var(--font-display); font-size: 21px; color: #fff; font-weight: 700; }

/* Blueprint pipe route graphic */
.hero-diagram { position: relative; }
.pipe-svg { width: 100%; height: auto; }
.pipe-line {
  fill: none; stroke: var(--brass-light); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw-pipe 2.6s ease forwards 0.3s;
}
@keyframes draw-pipe { to { stroke-dashoffset: 0; } }
.pipe-node { fill: var(--ink); stroke: var(--brass-light); stroke-width: 2; }
.pipe-node.active { fill: var(--alarm); stroke: #fff; }
.pipe-label {
  font-family: var(--font-mono); font-size: 10.5px; fill: var(--steel-light); letter-spacing: 0.04em;
}
.pipe-label.here { fill: var(--brass-light); font-weight: 700; }
.drop {
  animation: drip 3.2s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb-nav { padding: 12px 24px; }
.breadcrumb-nav ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-nav li { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); display: flex; align-items: center; gap: 6px; }
.breadcrumb-nav li:not(:last-child)::after { content: "/"; color: var(--line); margin-left: 6px; }
.breadcrumb-nav a { color: var(--steel); }
.breadcrumb-nav a:hover { color: var(--brass-text); text-decoration: underline; }
.breadcrumb-nav li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- SECTION SHELL ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--steel); font-size: 16px; }
.on-dark { background: var(--ink); color: #fff; }
.on-dark .section-head p { color: var(--steel-light); }

/* ---------- SERVICE CARDS ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-text); letter-spacing: 0.08em; }
.service-card .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; margin: 14px 0 16px;
}
.service-card .icon-wrap svg { width: 24px; height: 24px; stroke: var(--ink); }
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { color: var(--steel); font-size: 14.5px; }

/* ---------- MAHALLE READOUT STRIP ---------- */
.readout {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 720px) { .readout { grid-template-columns: repeat(4, 1fr); } }
.readout .cell { background: #fff; padding: 20px 22px; }
.readout .cell .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.readout .cell .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 6px; }

/* ---------- PROCESS ---------- */
.process { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.process-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.12); align-items: start;
}
.process-row .tag { font-family: var(--font-mono); color: var(--brass-light); font-size: 13px; padding-top: 3px; }
.process-row h3 { font-size: 18px; margin-bottom: 6px; }
.process-row p { color: var(--steel-light); font-size: 14.5px; max-width: 60ch; }

/* ---------- COVERAGE / NEARBY ---------- */
.coverage-list { display: flex; flex-wrap: wrap; gap: 10px; }
.coverage-list a {
  font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); color: var(--steel-light); transition: all .15s ease;
}
.coverage-list a:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.faq-q .plus { font-family: var(--font-mono); font-size: 20px; color: var(--brass); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--steel); font-size: 15px; max-width: 68ch; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; border-radius: 20px; padding: 48px 36px;
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.3fr auto; padding: 56px 52px; } }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: var(--steel-light); margin-top: 10px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--steel-light); padding: 0 0 28px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Öne çıkan, "kayan" CTA kartı — footer'ın imza öğesi */
.footer-cta-card {
  margin-top: -64px;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid rgba(224,168,104,0.3);
  border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(18,58,98,0.55);
  padding: 36px 32px;
  display: grid; gap: 24px; align-items: center;
  position: relative; z-index: 3;
}
@media (min-width: 800px) { .footer-cta-card { grid-template-columns: 1.5fr auto; padding: 44px 48px; } }
.footer-cta-text h3 { color: #fff; font-size: clamp(21px, 2.6vw, 27px); margin-top: 12px; }
.footer-cta-text p { color: var(--steel-light); margin-top: 10px; max-width: 52ch; font-size: 15px; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 56px 0 40px; }
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; } }

.footer-brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.footer-brand-mark svg { width: 32px; height: 32px; flex-shrink: 0; }
.footer-brand-mark small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; color: var(--steel-light); letter-spacing: 0.05em; margin-top: 2px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 14.5px; color: var(--steel-light); }

.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--brass-light); }
.footer-note { margin-top: 14px; font-size: 13px; color: var(--steel-light); max-width: 26ch; }

.footer-trustbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-trustbar span {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 8px 16px;
}
.footer-trustbar svg { width: 15px; height: 15px; stroke: var(--brass-light); flex-shrink: 0; }

.footer-bottom {
  margin-top: 8px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; font-family: var(--font-mono); color: var(--steel-light);
}

/* ---------- FLOATING CONTACT ---------- */
.float-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(18,58,98,0.45); position: relative;
}
.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--alarm); }
.float-btn svg { width: 26px; height: 26px; fill: #fff; stroke: #fff; }
.float-btn .ring {
  position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.5;
  animation: ring-pulse 2.2s ease-out infinite;
}
.float-btn.call .ring { color: var(--alarm); }
.float-btn.whatsapp .ring { color: #25D366; }
@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- UTILITIES ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.text-steel { color: var(--steel); }
.site-footer .text-steel { color: var(--steel-light); } /* koyu footer zemininde AA için */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px;
  background: rgba(224,168,104,0.18); color: #fff; padding: 7px 13px; border-radius: 999px;
}
