/* Kayra Yapı ve Su Tesisat — public site */
:root {
  --navy: #16407A;
  --navy-d: #0F2B52;
  --navy-2: #163E6E;
  --blue: #0A6FB0;
  --blue-d: #08588C;
  --cyan: #22B5E8;
  --cyan-t: #E3F5FC;
  --ink: #0F1F33;
  --muted: #536477;
  --line: #DCE4EC;
  --bg: #F5F8FB;
  --white: #FFFFFF;
  --wa: #1E8E4E;
  --ms: #0866FF;
  --ig: #C13584;
  --ok: #166B3B;
  --warn-bg: #FFF4E0;
  --warn: #7A4A00;
  --err-bg: #FDECEA;
  --err: #A1260F;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 43, 82, .10);
  --font-h: "Nunito", system-ui, sans-serif;
  --font-b: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { flex: 0 0 auto; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 22px; font-size: 17px; border-radius: 14px; }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ms { background: var(--ms); color: #fff; }
.btn-ig { background: var(--ig); color: #fff; }
.btn-wa:hover, .btn-ms:hover, .btn-ig:hover { color: #fff; }
.btn-dark { background: var(--navy-d); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { color: var(--navy); background: var(--cyan-t); }
.btn-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; border: 0; background: var(--cyan-t); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-icon.busy { opacity: .6; cursor: progress; }
.link-btn { display: inline-block; margin-top: 12px; font-weight: 700; }

/* ---------- header */
.topbar { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 70px; flex-wrap: wrap; }
.brand-link { text-decoration: none; margin-right: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-h); font-weight: 900; font-size: 28px; color: var(--navy); letter-spacing: -.5px; }
.brand-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); margin-top: 3px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #B8C7D9; }
.main-nav { display: none; width: 100%; order: 10; flex-direction: column; padding: 6px 0 12px; }
.main-nav.open { display: flex; }
.main-nav a { padding: 12px 6px; text-decoration: none; color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.topbar-in { flex-wrap: wrap; gap: 10px; }
.nav-toggle { order: 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--navy); }
.lang-select { order: 2; width: auto; min-height: 44px; height: 44px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316407A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; }
.lang-switch { display: none; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; order: 2; }
.lang-switch a { min-width: 36px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; font-size: 12.5px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.top-call { display: none; }

@media (max-width: 420px) {
  .brand-name { font-size: 24px; }
  .brand img { width: 38px; height: 38px; }
  .brand-sub { font-size: 9px; letter-spacing: 1.1px; }
  .lang-switch a { min-width: 30px; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; flex-direction: row; width: auto; order: 1; padding: 0; gap: 2px; margin-right: 8px; }
  .main-nav a { border: 0; padding: 10px 12px; border-radius: 8px; }
  .main-nav a:hover { background: var(--bg); }
  .nav-toggle, .nav-cta-mobile { display: none !important; }
  .lang-switch { display: flex; order: 2; }
  .lang-select { display: none; }
  .top-call { display: inline-flex; order: 3; }
}

/* ---------- hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #1E5A9E 0%, transparent 60%), linear-gradient(160deg, var(--navy-d), #123A6B); color: #fff; padding: 34px 0 110px; overflow: hidden; }
.hero-in { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; position: relative; z-index: 1; }
.hero-copy { flex: 1 1 420px; min-width: 0; padding-top: 8px; }
.hero-form { flex: 1 1 440px; max-width: 540px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #CFEFFC; }
.badge .ic { color: var(--cyan); }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 900; margin: 18px 0 14px; max-width: 600px; }
.lead { font-size: 18px; color: #C9DCEA; max-width: 540px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #C9DCEA; }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks .ic { color: var(--cyan); }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }

@media (max-width: 640px) {
  .hero { padding-top: 22px; }
  .hero-actions .btn { flex: 1 1 calc(50% - 10px); }
  .hero-actions .btn-call { flex-basis: 100%; }
}

/* ---------- cards & forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-card { color: var(--ink); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 14px; border: 0; }
.form-head h2 { font-size: 26px; font-weight: 900; color: var(--navy-d); }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 14.5px; padding: 0; }
.field > legend { margin-bottom: 8px; }
input[type=text], input[type=tel], input[type=search], textarea, select {
  width: 100%; min-height: 48px; border: 1.5px solid #B9CAD8; border-radius: 12px; padding: 10px 14px; font-size: 16px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,111,176,.18); }
input.invalid, textarea.invalid { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.addr-field { position: relative; }
.addr-row { display: flex; gap: 8px; }
.addr-input { position: relative; flex: 1; min-width: 0; }
.addr-input .ic { position: absolute; left: 14px; top: 15px; color: var(--muted); pointer-events: none; }
.addr-input input { padding-left: 42px; border-color: var(--blue); }
.addr-list { list-style: none; margin: 2px 0 0; padding: 0; position: relative; z-index: 1200; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 300px; overflow-y: auto; }
.addr-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid #EEF3F7; min-height: 44px; }
.addr-list li:last-child { border-bottom: 0; }
.addr-list li .ic { color: var(--blue); margin-top: 3px; }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--cyan-t); }
.addr-list b { display: block; font-weight: 700; }
.addr-list small { color: var(--muted); font-size: 13px; }
.addr-list .empty { color: var(--muted); cursor: default; }
.addr-extra { margin-top: 2px; font-size: 15px !important; min-height: 44px !important; }

.map-box { position: relative; height: 210px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #E7EEF3; }
.req-map { position: absolute; inset: 0; }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 600; color: var(--muted); background: rgba(231,238,243,.72); pointer-events: none; z-index: 500; font-size: 14.5px; }
.area-badge { position: absolute; right: 10px; top: 10px; z-index: 600; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ok); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 10px rgba(15,43,82,.2); }
.area-badge.out { color: var(--warn); }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #B9CAD8; font-weight: 700; font-size: 15px; cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--navy-d); border-color: var(--navy-d); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-pick { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border: 1.5px dashed #9DB3C4; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; padding: 0 12px; text-align: center; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-pick.has { border-style: solid; border-color: var(--ok); color: var(--ok); }
.photo-pick:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-foot .btn { flex: 1 1 180px; }
.privacy { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

.success-card { color: var(--ink); padding: 32px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.28); border: 0; }
.success-card h2 { font-size: 26px; color: var(--navy-d); margin-top: 12px; }
.success-card p { color: var(--muted); margin: 8px 0 20px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; background: #E2F4E8; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- sections */
.section { padding: 48px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--navy-d); margin-bottom: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head .section-title { margin-bottom: 4px; }
.section-head p { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.step { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.step-n { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--cyan-t); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 900; font-size: 19px; }
.step h3 { font-size: 18px; }
.step p { margin: 4px 0 0; color: var(--muted); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-weight: 700; font-size: 17px; }
.service-ic { flex: 0 0 50px; height: 50px; border-radius: 12px; background: var(--cyan-t); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; padding: 14px; }
}

.shop-teaser { display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none; color: var(--ink); }
.shop-teaser > span:nth-child(2) { flex: 1; }
.shop-teaser b { display: block; font-size: 18px; }
.shop-teaser small { color: var(--muted); font-size: 14px; }
.shop-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--cyan-t); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, 22%), 1fr)); gap: 14px; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4 / 3; background: var(--cyan-t); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }
.product h3, .product h2 { font-size: 17px; font-weight: 800; }
.product p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.price { font-family: var(--font-h); font-weight: 900; font-size: 20px; color: var(--navy-d); white-space: nowrap; }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.product-foot .btn { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }

.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; color: var(--navy-d); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; background: #FFF6DA; border: 1px solid #EBD38A; color: #5C4400; border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.searchbar { display: flex; gap: 8px; margin-top: 18px; max-width: 560px; }
.searchbar .addr-input { flex: 1; }
.searchbar input { padding-left: 42px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.cat-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.cat-chips a span { color: var(--muted); font-weight: 600; }
.cat-chips a[aria-current="page"] { background: var(--navy-d); border-color: var(--navy-d); color: #fff; }
.cat-chips a[aria-current="page"] span { color: #C9DCEA; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- footer */
.footer { background: var(--navy-d); color: #C9DCEA; margin-top: 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.f-col { flex: 1 1 220px; }
.f-about { flex-basis: 300px; }
.f-about p { margin: 14px 0; max-width: 340px; font-size: 15px; }
.footer h2 { font-size: 17px; color: #fff; margin-bottom: 12px; }
.f-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; }
.f-list .ic { color: var(--cyan); margin-top: 3px; }
.f-list a { color: #fff; text-decoration: none; }
.f-list a:hover { text-decoration: underline; color: #fff; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 96px; font-size: 13px; color: #9FB3C8; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social .s-wa { background: var(--wa); }
.social .s-ms { background: var(--ms); }
.social .s-ig { background: var(--ig); }

/* ---------- mobile bar & floating button */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,43,82,.08); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
.mb-call { background: var(--blue); }
.mb-wa { background: var(--wa); }
.mb-form { background: var(--navy-d); }
.wa-float { display: none; }
@media (min-width: 980px) {
  .mobile-bar { display: none; }
  .f-bottom { padding-bottom: 20px; }
  .wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 1100; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(15,43,82,.3); }
  .wa-float:hover { color: #fff; filter: brightness(1.08); }
}

/* Leaflet tweaks */
.leaflet-container { font-family: var(--font-b); }
.kayra-pin { background: none; border: 0; }
